/*
 * bagri.dev — implementation of design/bagri-dev/project/Bagri.dev Natural.dc.html
 * (revision of 2026-08-20; its predecessor is archived alongside it as
 * archive/Bagri.dev Natural v1.dc.html)
 *
 * Part 1: Schibsted Grotesk, self-hosted. The design linked Google Fonts;
 *         CLAUDE.md §3.4 says self-host, so this is Google's own css2 output
 *         with the gstatic URLs repointed at ../fonts/.
 * Part 2: the design's <helmet><style> block, transcribed verbatim.
 * Part 3: the design's style-hover / style-active / style-focus attributes.
 *         Those are a Claude Design authoring convention with no CSS
 *         equivalent, so they had to become real rules — every declaration
 *         below is copied from the attribute it replaces.
 * Part 4: state classes standing in for the design's <sc-if> conditional
 *         rendering (menu open, mega open, chip selected).
 */

/* ==========================================================================
   1. Schibsted Grotesk — self-hosted
      One variable file per subset serves all four weights, exactly as
      Google delivers it; the unicode-ranges are Google's, unaltered.
   ========================================================================== */

/* latin-ext */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/schibsted-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/schibsted-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/schibsted-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/schibsted-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/schibsted-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/schibsted-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/schibsted-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/schibsted-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   2. The design's own stylesheet — verbatim, including the duplicated
      scroll-behavior line and the packetX / packetY / shimmerX / pulseRing
      rules the prototype declared but never used. Nothing here has been
      "tidied".
   ========================================================================== */

  html { scroll-behavior: smooth; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: #000000; color: #eef1f9; -webkit-font-smoothing: antialiased; }
  a { color: #5eead4; }
  a:hover { color: #c7fff2; }
  @keyframes riseIn { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
  @keyframes swayA { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(-14px,18px) rotate(3deg); } }
  @keyframes swayB { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(18px,-14px) rotate(-4deg); } }
  .ri { opacity: 0; animation: riseIn .62s cubic-bezier(.16,1,.3,1) forwards; }
  @media (max-width: 900px) {
    .n-heroGrid { grid-template-columns: 1fr !important; gap: clamp(28px, 5vh, 46px) !important; }
    .n-stage { perspective: none !important; padding-right: 0 !important; display: grid !important; gap: 14px; }
    .n-mon { transform: none !important; max-width: none !important; margin-right: 0 !important; }
    .n-wire { display: none !important; }
    .n-rack { position: static !important; transform: none !important; width: 100% !important; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .n-rack > div { border-bottom: 0 !important; padding: 0 !important; }
  }
  @media (max-width: 700px) {
    .n-h1 { font-size: clamp(30px, 10.4vw, 82px) !important; letter-spacing: -0.045em !important; line-height: 0.96 !important; }
    .n-navlinks { display: none !important; }
    .n-burger { display: flex !important; }
    .ns-xs { font-size: 8px !important; }
    .ns-sm { font-size: 8.5px !important; }
    .ns-logo { font-size: 11px !important; }
    .ns-h { font-size: 19px !important; }
    .n-btns { width: 100%; }
    .n-btns > a { flex: 1 1 140px; justify-content: center; padding: 15px 16px !important; font-size: 13px !important; letter-spacing: 0.06em !important; }
    .n-bar { padding: 8px 8px 8px 12px !important; }
    .n-sheet-in { padding: 2px 8px 10px !important; }
    .n-shot { height: 240px !important; }
    .n-h2 { font-size: clamp(30px, 10vw, 60px) !important; }
    .n-packs { grid-template-columns: 1fr !important; }
    .n-quote { grid-template-columns: 1fr !important; }
    .n-qrow { grid-template-columns: 1fr !important; }
    .n-logo-sub { display: none !important; }
    .n-mega { grid-template-columns: 1fr !important; }
  }
  @media (max-width: 420px) {
    .n-h1 { font-size: 10.2vw !important; }
    .n-hero { padding-left: 16px !important; padding-right: 16px !important; }
    .ns-h { font-size: 16px !important; }
    .ns-xs { font-size: 7.5px !important; }
    .ns-sm { font-size: 8px !important; }
    .n-mini { height: 168px !important; }
    .n-btns > a { flex: 1 1 100%; }
    .n-shot { height: 200px !important; }
  }
  .n-reveal { animation: revealDown .42s cubic-bezier(.3,.85,.25,1); }
  @keyframes revealDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  @keyframes siteScroll { 0%, 18% { transform: translateY(0); } 52%, 70% { transform: translateY(calc(-100% + clamp(150px, 20vw, 208px))); } 100% { transform: translateY(0); } }
  @keyframes packetY { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
  @keyframes packetX { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
  @keyframes ledBlink { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
  @keyframes blockPop { 0%, 100% { transform: translateY(0); background: rgba(255,255,255,0.07); } 50% { transform: translateY(-3px); background: rgba(94,234,212,0.16); } }
  @keyframes inkSweepLine { to { stroke-dashoffset: 0; } }
  @keyframes wireFlow { to { stroke-dashoffset: -22; } }
  @keyframes shimmerX { to { background-position: 250% 0; } }
  @keyframes pulseRing { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
  @media (prefers-reduced-motion: reduce) { .ri { animation: none; opacity: 1; } }

/* ==========================================================================
   3. style-hover / style-active / style-focus → real CSS
      Each rule names the design element it came from, and its declarations
      are copied from the attribute value character for character.

      Why !important: the design keeps every base style in a `style`
      attribute, and an inline declaration outranks any selector. Holding
      the base styles inline is what guarantees the pixel match, so the
      interaction states — which have no inline equivalent to live in —
      have to out-rank them the only way left. It is confined to this
      block and part 4.
   ========================================================================== */

/* nav: logo link — style-hover="opacity: 0.85;" */
.nb-logo:hover { opacity: 0.85 !important; }

/* nav: "Work" link and the closed "Services" button —
   style-hover="color: #ffffff; background: rgba(255,255,255,0.08);"
   The open Services button carries no style-hover in the design, hence
   the :not(.is-on). */
.nb-link:hover,
.nb-svc:not(.is-on):hover { color: #ffffff !important; background: rgba(255,255,255,0.08) !important; }

/* nav: "Get in touch" pill — style-hover="transform: translateY(-2px);" */
.nb-cta:hover { transform: translateY(-2px) !important; }

/* nav: burger — style-active="transform: scale(0.94);" */
.n-burger:active { transform: scale(0.94) !important; }

/* mega: a service row — style-hover="background: rgba(94,234,212,0.08);
   box-shadow: inset 0 0 0 1px rgba(94,234,212,0.4);" */
.nm-svc:hover { background: rgba(94,234,212,0.08) !important; box-shadow: inset 0 0 0 1px rgba(94,234,212,0.4) !important; }

/* quote calculator chips. The design shipped two whole <sc-if> branches per
   chip — selected and unselected — differing only in these three
   properties, so they are the one set of base styles that had to leave the
   style attribute: a chip changes state at runtime, and an inline colour
   cannot be toggled by a class. Both branches are reproduced exactly. */
.nq-chip { color: #c3cadb; background: rgba(255,255,255,0.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }

/* unselected chip — style-hover="background: rgba(255,255,255,0.1);" */
.nq-chip:not(.is-on):hover { background: rgba(255,255,255,0.1) !important; }

/* mega + contact form: "Send brief" — style-hover="filter: brightness(1.08);" */
.nq-send:hover { filter: brightness(1.08) !important; }

/* mobile sheet: rows — style-active="transform: scale(0.98);" */
.nsheet-item:active { transform: scale(0.98) !important; }

/* hero: "Request a quote" — style-hover="background: rgba(94,234,212,0.1);
   border-color: #5eead4;" */
.nh-primary:hover { background: rgba(94,234,212,0.1) !important; border-color: #5eead4 !important; }

/* hero: "View work" — style-hover="background: rgba(255,255,255,0.07);" */
.nh-ghost:hover { background: rgba(255,255,255,0.07) !important; }

/* work: the browser frame — style-hover="border-color: rgba(94,234,212,0.4);" */
.nw-frame:hover { border-color: rgba(94,234,212,0.4) !important; }

/* packages: a card — style-hover="transform: translateY(-4px);
   box-shadow: inset 0 0 0 1px rgba(94,234,212,0.55);" */
.np-card:hover { transform: translateY(-4px) !important; box-shadow: inset 0 0 0 1px rgba(94,234,212,0.55) !important; }

/* packages: the card CTA — style-hover="filter: brightness(1.12);"
   style-active="transform: translate(1px, 1px);" */
.np-cta:hover { filter: brightness(1.12) !important; }
.np-cta:active { transform: translate(1px, 1px) !important; }

/* contact form: inputs + textarea —
   style-focus="border-color: rgba(94,234,212,0.6);" */
.nf-input:focus { border-color: rgba(94,234,212,0.6) !important; }

/* ==========================================================================
   4. State classes replacing the design's <sc-if> conditional rendering.
      React removed these nodes from the DOM entirely; here they are present
      and hidden, so display:none → display:<x> restarts the .n-reveal
      animation exactly as a remount did.
   ========================================================================== */

/* mega panel: <sc-if value="{{ mega }}"> — grid when open.
   `display` is the one declaration these two panels could not keep inline:
   an inline style would pin them permanently open. Everything else about
   them stays on the element. */
.n-mega { display: none; }
.n-nav.is-mega-open .n-mega { display: grid; }

/* mobile sheet: <sc-if value="{{ open }}"> — flex column when open */
.n-sheet { display: none; }
.n-nav.is-menu-open .n-sheet { display: flex; }

/* burger glyph: three bars closed, two crossed teal bars open.
   display:contents lets the wrappers vanish from layout so the button's
   own flex `gap: 4.5px` still spaces the bars themselves. */
.n-burger .nb-bars { display: contents; }
.n-burger .nb-cross { display: none; }
.n-nav.is-menu-open .n-burger .nb-bars { display: none; }
.n-nav.is-menu-open .n-burger .nb-cross { display: contents; }

/* Services button + caret, open branch:
   color: #ffffff; background: rgba(255,255,255,0.09);
   and <svg style="transform: rotate(180deg);"> */
.nb-svc.is-on { color: #ffffff !important; background: rgba(255,255,255,0.09) !important; }
.n-nav.is-mega-open .nb-svc-caret { transform: rotate(180deg); }

/* quote chips, selected branch:
   color: #04201d; background: #5eead4; — and no inset ring */
.nq-chip.is-on { color: #04201d !important; background: #5eead4 !important; box-shadow: none !important; }

/* nav, scrolled past 60px with nothing open: the design swaps one glass
   shell for two — the bar itself goes flat and the logo and the link group
   each take the glass on. Those are {{ shellBg }} / {{ shellRim }} /
   {{ pillBg }} in the prototype, recomputed on every render; here the
   at-rest branch stays inline on the elements and this class carries the
   scrolled branch, which assets/js/main.js adds. Values copied from
   renderVals() character for character; !important for the reason given
   in part 3. */
.n-nav.is-split { background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; }
.n-nav.is-split > span[aria-hidden="true"] { opacity: 0 !important; }
.n-nav.is-split .nb-pill {
  background: rgba(6,10,10,0.72) !important;
  backdrop-filter: blur(22px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.3) !important;
  box-shadow: 0 20px 44px -26px rgba(0,0,0,0.95), inset 0 0 0 1px rgba(255,255,255,0.12), inset 0 1px 0 rgba(255,255,255,0.16) !important;
}

/* the grain overlay's background-image — the design's {{ grain }} value.
   It lives here rather than inline because the data URI contains both
   quote characters and could not survive an HTML style attribute. */
.n-grain {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

/* ==========================================================================
   5. WordPress plumbing — not part of the design.
      The admin bar is chrome only logged-in users see; without this it
      covers the sticky nav. Logged-out visitors get the design's own offset.
   ========================================================================== */

body.admin-bar .n-nav { top: calc(32px + clamp(8px, 1.6vw, 14px)); }
@media screen and (max-width: 782px) {
  body.admin-bar .n-nav { top: calc(46px + clamp(8px, 1.6vw, 14px)); }
}

/* Inner pages (privacy, terms, 404, blog fallback): the design is a
   one-pager and specifies nothing for them. These rules only set the
   long-form typography loose inside the same dark shell — no new colours,
   all taken from the design's own palette. */
.n-page { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; padding: clamp(48px, 8vh, 96px) clamp(20px, 4vw, 56px) clamp(70px, 10vh, 130px); }
.n-page h1 { margin: 0 0 clamp(18px, 3vh, 30px); font-weight: 700; text-transform: uppercase; letter-spacing: -0.045em; line-height: 0.94; font-size: clamp(34px, 6vw, 72px); color: #f6f8fc; }
.n-page h2 { margin: 2em 0 0.6em; font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.03em; color: #f6f8fc; }
.n-page h3 { margin: 1.8em 0 0.5em; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: #f6f8fc; }
.n-page p, .n-page li { font-size: 15.5px; line-height: 1.7; color: #a7b2c7; }
.n-page ul, .n-page ol { padding-left: 1.2em; }
.n-page li { margin: 0.4em 0; }
.n-page a { color: #5eead4; }
.n-page hr { margin: 2.4em 0; border: 0; border-top: 1px solid rgba(255,255,255,0.12); }
.n-page blockquote { margin: 1.6em 0; padding: 2px 0 2px 18px; border-left: 2px solid rgba(94,234,212,0.4); color: #c3cadb; }
.n-page code, .n-page pre { font-size: 13.5px; background: rgba(255,255,255,0.05); border-radius: 2px; }
.n-page code { padding: 2px 6px; }
.n-page pre { padding: 14px 16px; overflow-x: auto; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }
.n-page img { max-width: 100%; height: auto; }
.n-page table { width: 100%; border-collapse: collapse; }
.n-page th, .n-page td { padding: 10px 12px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 14.5px; color: #c3cadb; }
.n-page .n-page-kicker { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #5eead4; }
.n-page-back { display: inline-flex; align-items: center; gap: 10px; margin-top: clamp(28px, 5vh, 48px); padding: 16px 28px; border-radius: 0; text-decoration: none; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #04201d; background: #5eead4; transition: background .2s, transform .2s; }
.n-page-back:hover { background: #99f6e4 !important; color: #04201d; }
.n-page-back:active { transform: translate(1px, 1px); }
