/* ============================================================
   LevelX — Teknik med precision

   Near-black ground, light grey type, gold spent in exactly two places:
   the primary call-to-action and the marker on the precision scale.
   Everything else is neutral. That restraint is what makes the gold read
   as expensive rather than decorative.

   The signature is the scale itself: a hairline ruled with fine ticks and
   one gold mark. It is a spirit level and a machinist's rule at once,
   which is the name and the promise in a single drawn object.
   ============================================================ */

/* Self-hosted, not linked from Google. A Swedish site that calls
   fonts.googleapis.com hands every visitor's IP to a third country, which
   is exactly the kind of thing a client's DPO asks about. Two latin
   subsets, 79 KB total. */
@font-face{
  font-family:"Archivo";
  src:url("/fonts/archivo.woff2") format("woff2");
  font-weight:400 600; font-style:normal; font-display:swap;
}

:root{
  /* ---- colour. Every pair below is measured, not eyeballed.
     The neutrals carry a faint warm bias so the gold sits in the same
     world as the greys instead of looking pasted on top of them. ---- */
  --void:      #0B0A09;   /* the page */
  --surface:   #121110;   /* sections that need separating */
  --raise:     #191716;   /* cards */
  --text:      #EDEBE7;   /* 16.61 : 1 on void */
  --text-2:    #A5A099;   /*  7.62 : 1 — body and lead */
  --text-3:    #8F8A80;   /*  5.76 : 1 — micro-caps labels */
  --gold:      #D2B171;   /*  9.67 : 1 — CTA and one accent, nothing else */
  --gold-deep: #B8945A;   /*  6.99 : 1 — hairlines and hover only */
  --line:      rgba(237,235,231,.09);
  --line-2:    rgba(237,235,231,.16);
  --tick:      rgba(237,235,231,.22);

  /* ---- space. Premium comes from what is left out, so the ramp runs
     much further than a normal one. ---- */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 20px;
  --s-5: 32px;  --s-6: 48px;  --s-7: 72px;  --s-8: 112px;
  --s-9: 160px; --s-10: 220px;

  --gutter: 24px;
  --measure: 46ch;          /* body never runs wider than this */
  --shell: 1180px;

  /* both showcase panels are locked to this one height */
  --shot-h: 620px;

  --r-sm: 4px;
  --r-md: 8px;

  /* ---- motion. 200–300ms, ease-out, nothing bouncy. ---- */
  --t-fast: 200ms;
  --t-base: 260ms;
  --t-slow: 300ms;
  --ease: cubic-bezier(.22,.61,.36,1);

  /* ---- type ---- */
  /* The serif was retired 2026-09-03: headings, the wordmark and the pricing
     panel all moved to the sans. Nothing uses a display face any more, so the
     token and its @font-face are gone and the build stops shipping the file. */
  --sans: "Archivo", ui-sans-serif, -apple-system, BlinkMacSystemFont,
          "Segoe UI", system-ui, sans-serif;
}

*{ box-sizing:border-box; }

html{ background:var(--void); -webkit-text-size-adjust:100%; }

body{
  margin:0;
  background:var(--void);
  color:var(--text);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  overflow-x:clip;
}

.shell{
  max-width:var(--shell);
  margin:0 auto;
  padding-inline:max(var(--gutter), env(safe-area-inset-left));
}

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

a{ color:inherit; }

:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:3px;
  border-radius:var(--r-sm);
}

/* ============================================================
   TYPE ROLES
   ============================================================ */

/* Micro-caps label. Wide tracking is what makes a small label feel
   deliberate rather than merely small. */
.label{
  font-size:11px; font-weight:500;
  letter-spacing:.22em; text-transform:uppercase;
  color:var(--text-3);
  margin:0;
}
.label--gold{ color:var(--gold); }

/* One display role, one family. This started as a Didone (Bodoni Moda) and
   was moved to the sans in stages after the headings kept reading as fragile:
   a Didone's hairlines bloom and break up against near-black, worst at the
   30-46px section-heading size, and the variable font stopped at weight 600
   so there was nothing heavier to reach for. Measured contrast was 16.6:1 the
   whole time — the eye was judging stroke mass, not luminance ratio.
   78px rather than 92px because Archivo 600 carries far more ink. */
.display{
  font-family:var(--sans);
  font-weight:600;
  font-size:clamp(38px, 7.2vw, 78px);
  line-height:1.05;
  letter-spacing:-.03em;
  margin:0;
  text-wrap:balance;
}
/* Section headings sit two steps below the hero and keep the same family and
   weight, so the page has exactly one heading voice. */
.display--sm{
  font-family:var(--sans);
  font-weight:600;
  font-size:clamp(28px, 4.4vw, 42px);
  line-height:1.14;
  letter-spacing:-.02em;
}

.lead{
  font-size:clamp(16.5px, 1.5vw, 18.5px);
  line-height:1.62;
  color:var(--text-2);
  max-width:var(--measure);
  margin:0;
}

.tabular{ font-variant-numeric:tabular-nums; }

/* ============================================================
   THE PRECISION SCALE — the signature
   A ruled hairline with fine ticks and a single gold mark.
   ============================================================ */

.scale{
  position:relative;
  height:16px;
  border-top:1px solid var(--line-2);
}
.scale::before{
  content:"";
  position:absolute; left:0; right:0; top:0; height:6px;
  background:repeating-linear-gradient(
    to right, var(--tick) 0 1px, transparent 1px 14px);
}
/* every fifth tick runs longer, the way a real rule is graduated */
.scale::after{
  content:"";
  position:absolute; left:0; right:0; top:0; height:10px;
  background:repeating-linear-gradient(
    to right, var(--tick) 0 1px, transparent 1px 70px);
}
.scale__mark{
  position:absolute; top:0; left:38.2%;
  width:1px; height:16px;
  background:var(--gold);
}
.scale__mark::after{
  content:"";
  position:absolute; left:50%; top:16px;
  width:5px; height:5px; margin-left:-2.5px;
  border-radius:50%;
  background:var(--gold);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  min-height:52px; padding:0 28px;
  border:0; border-radius:var(--r-md);
  font-family:var(--sans); font-size:14.5px; font-weight:600;
  letter-spacing:.02em; text-decoration:none;
  cursor:pointer;
  transition:background-color var(--t-base) var(--ease),
             box-shadow var(--t-base) var(--ease),
             border-color var(--t-base) var(--ease),
             color var(--t-base) var(--ease),
             transform var(--t-base) var(--ease);
}

/* The one gold object on the page. */
.btn--primary{
  background:var(--gold);
  color:var(--void);
  box-shadow:0 0 0 0 rgba(210,177,113,0);
}
.btn--primary:hover{
  background:#DCC08A;
  /* a gentle glow, not a shadow */
  box-shadow:0 0 0 1px rgba(210,177,113,.4), 0 8px 40px -12px rgba(210,177,113,.45);
}
.btn--primary:active{ transform:translateY(1px); }

.btn--ghost{
  background:transparent;
  color:var(--text);
  box-shadow:inset 0 0 0 1px var(--line-2);
  padding-inline:22px;
}
.btn--ghost:hover{
  box-shadow:inset 0 0 0 1px var(--text-3);
  background:rgba(237,235,231,.03);
}
.btn__arrow{
  transition:transform var(--t-base) var(--ease);
  display:inline-block;
}
.btn--ghost:hover .btn__arrow{ transform:translateX(3px); }

/* ============================================================
   HEADER — sticky, condenses on scroll
   ============================================================ */

.header{
  position:sticky; top:0; z-index:40;
  padding-top:env(safe-area-inset-top);
  background:rgba(11,10,9,.72);
  -webkit-backdrop-filter:saturate(160%) blur(14px);
          backdrop-filter:saturate(160%) blur(14px);
  border-bottom:1px solid transparent;
  transition:border-color var(--t-base) var(--ease),
             background-color var(--t-base) var(--ease);
}
.header.is-condensed{
  background:rgba(11,10,9,.88);
  border-bottom-color:var(--line);
}

.header__bar{
  display:flex; align-items:center; gap:var(--s-5);
  height:92px;
  transition:height var(--t-base) var(--ease);
}
.header.is-condensed .header__bar{ height:62px; }

/* The lockup IS the logo: wordmark plus slogan, set as one typographic
   object. On scroll the slogan retires and the wordmark stays — the
   condense does something meaningful rather than just shrinking. */
.lockup{
  display:flex; flex-direction:column; justify-content:center;
  gap:3px; text-decoration:none; flex:0 0 auto;
}
.lockup__mark{
  /* Sans, matching every heading on the page. The serif was the last thing
     still using --display, and a wordmark in a different family from all the
     headings read as a leftover rather than a choice. */
  font-family:var(--sans);
  font-size:22px; font-weight:600; line-height:1;
  letter-spacing:-.01em;
  color:var(--text);
}
.lockup__mark b{ font-weight:500; color:var(--gold); }
.lockup__slogan{
  font-size:9.5px; font-weight:500;
  letter-spacing:.3em; text-transform:uppercase;
  color:var(--text-3);
  line-height:1;
  max-height:14px; opacity:1;
  overflow:hidden;
  transition:max-height var(--t-base) var(--ease),
             opacity var(--t-fast) var(--ease);
}
.header.is-condensed .lockup__slogan{ max-height:0; opacity:0; }

.nav{
  display:flex; align-items:center; gap:var(--s-5);
  margin-left:auto;
}
.nav a{
  font-size:14px; color:var(--text-2); text-decoration:none;
  transition:color var(--t-fast) var(--ease);
  position:relative; padding:6px 0;
}
.nav a:hover{ color:var(--text); }
.header__cta{ min-height:42px; padding-inline:20px; font-size:13.5px; }

@media (max-width:860px){
  .nav{ display:none; }
}

/* ============================================================
   LANGUAGE SWITCHER
   Injected by scripts/build-levelx.py, not present in the source page —
   levelx/index.html has no /sv/ or /en/ to point at.
   ============================================================ */
.langs{
  display:flex; align-items:center; gap:var(--s-3);
  margin-left:var(--s-5); flex:0 0 auto;
  font-size:11px; font-weight:600; letter-spacing:.16em;
}
.langs__on{ color:var(--text); }
.langs a{ color:var(--text-3); text-decoration:none;
  transition:color var(--t-fast) var(--ease); }
.langs a:hover, .langs a:focus-visible{ color:var(--text); }

@media (max-width:860px){
  .header__bar > .langs{ display:none; }   /* the menu carries it instead */
}

/* In the mobile menu it is a real tap target, not an 11px label. */
.menu .langs{
  margin:var(--s-5) 0 0; gap:var(--s-5);
  font-size:15px; letter-spacing:.12em;
}
.menu .langs a, .menu .langs .langs__on{
  display:inline-flex; align-items:center; min-height:44px;
}

/* ============================================================
   HERO
   ============================================================ */

.hero{
  position:relative;
  /* The bottom pad used to be 160px, and the section below added another
      158px on top of it — 330px of empty ground between the hero and the
      first heading. Halved. */
  padding-block:clamp(var(--s-8), 14vw, var(--s-10)) clamp(var(--s-6), 4vw, var(--s-7));
  overflow:hidden;
}
/* Depth without a shadow: one very soft off-centre wash, and a hairline
   that fades out at both ends. */
.hero::before{
  content:"";
  position:absolute; inset:-20% -10% auto -10%; height:120%;
  background:radial-gradient(60% 55% at 22% 18%,
    rgba(210,177,113,.055) 0%, rgba(210,177,113,0) 62%);
  pointer-events:none;
}
.hero > *{ position:relative; }

.hero__label{ margin-bottom:var(--s-5); }

/* 22ch, not 16: the English headline is longer than the Swedish one and broke
   onto a third line at 16ch. Tuning this against Swedish alone is how the
   other language silently ends up looking wrong. */
.hero__title{ margin-bottom:var(--s-6); max-width:22ch; }

.hero__scale{
  max-width:520px;
  margin-bottom:var(--s-6);
}

/* Two parallel claims under the headline: what we protect (the visitor
   staying on the client's site) and what is actually delivered. A rule over
   each column so they read as two halves of one statement rather than two
   paragraphs that happened to land side by side. */
.hero__pitch{ margin-bottom:var(--s-7); }
.pitch{
  display:grid; gap:var(--s-6) var(--s-7);
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  max-width:940px;
}
.pitch__col{ border-top:1px solid var(--line-2); padding-top:var(--s-4); }
.pitch__label{ margin-bottom:var(--s-3); }
/* after .lead, and same specificity — source order is what wins here */
.pitch__p{ font-size:16.5px; line-height:1.6; max-width:44ch; margin:0; }

@media (max-width:760px){
  .pitch{ grid-template-columns:1fr; gap:var(--s-5); }
}

.hero__actions{
  display:flex; flex-wrap:wrap; align-items:center; gap:var(--s-4);
}

/* A quiet line of fact under the actions — no invented numbers. */
.hero__terms{
  margin:var(--s-7) 0 0;
  display:flex; flex-wrap:wrap; gap:var(--s-2) var(--s-5);
}
.hero__terms li{ list-style:none; }
.hero__terms span{
  font-size:11px; font-weight:500;
  letter-spacing:.18em; text-transform:uppercase;
  color:var(--text-3);
}

@media (max-width:560px){
  .hero__title{ max-width:none; }
  .hero__actions .btn{ width:100%; }
}

/* ============================================================
   ENTRANCE — one slow, staged reveal. Nothing bouncy.
   ============================================================ */
.rise{
  opacity:0;
  transform:translateY(14px);
  animation:rise var(--t-slow) var(--ease) forwards;
}
@keyframes rise{ to{ opacity:1; transform:none; } }
.rise--1{ animation-delay:60ms; }
.rise--2{ animation-delay:140ms; }
.rise--3{ animation-delay:220ms; }
.rise--4{ animation-delay:300ms; }
.rise--5{ animation-delay:380ms; }

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  .rise{ opacity:1; transform:none; }
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section{ padding-block:clamp(var(--s-6), 6vw, var(--s-7)); }
.section--surface{ background:var(--surface); }
.section__head{ max-width:var(--shell); margin-bottom:var(--s-8); }
.section__label{ margin-bottom:var(--s-4); }
.section__title{ margin-bottom:var(--s-5); max-width:20ch; }
.section__lead{ margin-bottom:0; }

/* The scale returns between sections, its mark at a different graduation
   each time, so it reads as a measure of how far down the page you are. */
.section__rule{ max-width:340px; margin-bottom:var(--s-6); }
.section__rule .scale__mark{ left:var(--at, 38.2%); }

/* A second movement inside a section: the assistant lives under "Det vi
   gör" rather than as its own stripe. The rule and the long gap do the
   separating that a background change used to do.
   scroll-margin-top matters here — it no longer has a section's own top
   padding to absorb the sticky header when the menu link jumps to it. */
.subsection{
  display:block;
  margin-top:clamp(var(--s-8), 9vw, var(--s-9));
  padding-top:clamp(var(--s-7), 6vw, var(--s-8));
  border-top:1px solid var(--line);
  scroll-margin-top:86px;
}

/* ============================================================
   DISCLOSURE — progressive detail
   The essentials are always visible; the detail is one tap away.
   Native <details> so it works with no JavaScript and reads correctly
   to a screen reader.
   ============================================================ */

.disclose{
  border-top:1px solid var(--line);
}
.disclose:last-of-type{ border-bottom:1px solid var(--line); }

.disclose__summary{
  display:flex; align-items:flex-start; gap:var(--s-4);
  padding:var(--s-5) 0;
  cursor:pointer; list-style:none;
  transition:color var(--t-fast) var(--ease);
}
.disclose__summary::-webkit-details-marker{ display:none; }
.disclose__summary:hover{ color:var(--text); }
.disclose__summary:hover .disclose__sign{ border-color:var(--gold-deep); }

.disclose__no{
  flex:0 0 auto; width:2.5em;
  font-size:11px; font-weight:500; letter-spacing:.18em;
  color:var(--text-3); font-variant-numeric:tabular-nums;
  padding-top:7px;
}
.disclose__h{
  flex:1 1 auto;
  font-size:clamp(18px,2.2vw,22px); font-weight:500; line-height:1.35;
  letter-spacing:-.01em; margin:0;
}
.disclose__sign{
  flex:0 0 auto; position:relative;
  width:30px; height:30px; margin-top:2px;
  border:1px solid var(--line-2); border-radius:50%;
  transition:border-color var(--t-base) var(--ease),
             transform var(--t-base) var(--ease);
}
.disclose__sign::before,
.disclose__sign::after{
  content:""; position:absolute; background:var(--text-2);
  transition:opacity var(--t-base) var(--ease);
}
.disclose__sign::before{ left:9px; right:9px; top:14px; height:1px; }
.disclose__sign::after{ top:9px; bottom:9px; left:14px; width:1px; }
.disclose[open] .disclose__sign{ transform:rotate(90deg); }
.disclose[open] .disclose__sign::after{ opacity:0; }

.disclose__body{
  padding:0 0 var(--s-6) calc(2.5em + var(--s-4));
  max-width:var(--measure);
  color:var(--text-2);
}
.disclose__body p{ margin:0 0 var(--s-3); }
.disclose__body p:last-child{ margin-bottom:0; }
/* Dash markers, matching the pricing panel — the browser's round bullets are
   the one piece of unstyled default left on the page and they read as such. */
.disclose__body ul{ margin:var(--s-4) 0 0; padding:0; list-style:none; }
.disclose__body li{
  position:relative; padding-left:22px; margin-bottom:10px;
  color:var(--text);
}
.disclose__body li:last-child{ margin-bottom:0; }
.disclose__body li::before{
  content:""; position:absolute; left:0; top:11px;
  /* text-3, NOT gold: the accent is budgeted to three places on this site
     (primary CTA, scale mark, pricing panel border). This would be a fourth. */
  width:9px; height:1px; background:var(--text-3);
}

@media (max-width:560px){
  .disclose__no{ display:none; }
  .disclose__body{ padding-left:0; }
}

/* ============================================================
   CARDS / COLUMNS
   ============================================================ */

.cols{ display:grid; gap:var(--s-4); }
.cols--2{ grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); }
.cols--3{ grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); }

.card{
  background:var(--raise);
  border-radius:var(--r-md);
  box-shadow:inset 0 0 0 1px var(--line);
  padding:var(--s-6);
}
.card__h{ font-size:19px; font-weight:600; margin:0 0 var(--s-3); letter-spacing:-.01em; }
.card__p{ color:var(--text-2); margin:0; font-size:15.5px; }

/* ============================================================
   THE DIFFERENTIATOR — the assistant
   ============================================================ */

/* Centred, not top-aligned: the questions that used to fill this column were
   removed, so the text is now much shorter than the chat beside it and
   top-aligning left a long empty gap under it. */
.assistant{
  display:grid; gap:var(--s-7);
  grid-template-columns:minmax(0,1fr) minmax(0,420px);
  align-items:center;
}
@media (max-width:900px){ .assistant{ align-items:start; } }

/* A rendered screenshot of a real panel, not a drawn mock-up. It is a light
   image on a dark ground, so it needs a shadow rather than a border to sit
   on the page instead of floating over it. */
/* Two example panels, deliberately the SAME rectangle. Both are a <figure>
   with an identically-sized scrolling frame and a caption underneath, so the
   caption can never end up as a stray grid item under the wrong panel — which
   is exactly what happened when the chat's caption was a sibling of the grid. */
.showcase{
  display:grid; gap:var(--s-6);
  grid-template-columns:repeat(2, minmax(0,1fr));
  align-items:start;
}
/* Three dense dashboards do not fit the 1180px text shell at a legible size,
   so the strip breaks out of it and uses the viewport. Capped at 1600px so it
   does not sprawl on a wide monitor. */
/* Four panels, so two columns rather than four across: at four the dashboards
   would be ~370px and illegible. Two gives ~670px each on a laptop. */
/* Kept inside the shell, not bled out past it. Breaking out made the panels
   672px and overhang every other element on the page by 98px a side, which
   read as an accident rather than a decision. */
@media (min-width:901px){
  .showcase{
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:var(--s-5);
  }
}

/* One panel is a link to the live site. The frame must not swallow the focus
   ring, and the caption carries the affordance since the image cannot. */
.shot__link{ display:block; text-decoration:none; border-radius:var(--r-md); }
.shot__go{
  color:var(--text-2); text-decoration:none;
  border-bottom:1px solid transparent; transition:color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}
.shot__link:hover + figcaption .shot__go,
.shot__go:hover, .shot__go:focus-visible{
  color:var(--text); border-bottom-color:var(--text-3);
}
.shot__link:hover .shot__frame{ box-shadow:0 26px 60px rgba(0,0,0,.6); }
.shot__frame{ transition:box-shadow var(--t-base) var(--ease); }
.shot{ margin:0; min-width:0; }
.shot__frame{
  height:var(--shot-h);
  overflow-y:auto; overflow-x:hidden;
  border-radius:var(--r-md);
  background:var(--raise);
  box-shadow:0 20px 50px rgba(0,0,0,.5);
  scrollbar-width:thin;
}
.shot__frame img{ display:block; width:100%; height:auto; }
/* the chat draws its own ground, so inside a frame it must not draw a second */
.shot__frame--chat{ box-shadow:inset 0 0 0 1px var(--line), 0 20px 50px rgba(0,0,0,.5); }
.shot__frame--chat .chat{
  background:none; box-shadow:none; border-radius:0; height:auto;
}
.shot figcaption{
  margin:var(--s-3) 0 0;
  font-size:11px; font-weight:500;
  letter-spacing:.18em; text-transform:uppercase;
  color:var(--text-3);
}

/* On a phone the panels are already narrow; a nested scroll region inside a
   page that also scrolls is miserable on touch, so let them run full height. */
@media (max-width:900px){
  .showcase{ grid-template-columns:1fr; gap:var(--s-7); }
  .shot__frame{ height:auto; overflow:visible; }
}
@media (max-width:900px){ .assistant{ grid-template-columns:1fr; } }

/* A drawn conversation, not a screenshot. CSS only — no image to load,
   and it stays sharp on any screen. */
.chat{
  background:var(--raise);
  border-radius:var(--r-md);
  box-shadow:inset 0 0 0 1px var(--line);
  padding:var(--s-5);
  display:flex; flex-direction:column; gap:var(--s-3);
}
.chat__head{
  display:flex; align-items:center; gap:10px;
  padding-bottom:var(--s-4); margin-bottom:var(--s-2);
  border-bottom:1px solid var(--line);
}
.chat__dot{
  width:7px; height:7px; border-radius:50%; background:var(--text-3);
  flex:0 0 auto;
}
.chat__who{ font-size:11px; font-weight:500; letter-spacing:.18em;
  text-transform:uppercase; color:var(--text-3); }
.bubble{
  max-width:86%; padding:12px 15px; border-radius:12px;
  font-size:14.5px; line-height:1.5;
}
/* The visitor speaks on the right, the assistant answers on the left —
   the way every chat widget on every site works. Getting this backwards
   makes the mock read as the company interrogating the customer. */
.bubble--fraga{                       /* the visitor */
  align-self:flex-end;
  background:rgba(237,235,231,.055);
  color:var(--text);
  border-bottom-right-radius:4px;
}
.bubble--svar{                        /* the assistant */
  align-self:flex-start;
  background:rgba(237,235,231,.03);
  box-shadow:inset 0 0 0 1px var(--line);
  color:var(--text-2);
  border-bottom-left-radius:4px;
}
.chat__foot{
  margin:var(--s-2) 0 0; font-size:11.5px; color:var(--text-3);
  letter-spacing:.04em;
}

/* ============================================================
   WORK
   ============================================================ */

.work{ display:grid; gap:var(--s-5); grid-template-columns:repeat(auto-fit,minmax(340px,1fr)); }

.work__item{
  display:block; text-decoration:none;
  border-radius:var(--r-md);
  background:var(--raise);
  box-shadow:inset 0 0 0 1px var(--line);
  overflow:hidden;
  transition:box-shadow var(--t-base) var(--ease),
             transform var(--t-base) var(--ease);
}
.work__item:hover{
  box-shadow:inset 0 0 0 1px var(--line-2), 0 20px 50px -30px rgba(0,0,0,.9);
  transform:translateY(-2px);
}

/* A browser chrome drawn in CSS rather than a screenshot: no raster asset,
   no layout shift while it loads, sharp at any density. */
.frame{
  aspect-ratio:16/10;
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(210,177,113,.07) 0%, transparent 60%),
    linear-gradient(180deg, #14100C 0%, #0E0C0A 100%);
  border-bottom:1px solid var(--line);
  display:flex; flex-direction:column;
}
.frame__bar{
  display:flex; align-items:center; gap:5px;
  padding:11px 13px; border-bottom:1px solid var(--line);
}
.frame__dot{ width:7px; height:7px; border-radius:50%; background:rgba(237,235,231,.16); }
.frame__body{
  flex:1 1 auto; display:flex; flex-direction:column; justify-content:center;
  gap:11px; padding:var(--s-5);
}
.frame__sub{ font-size:12.5px; color:var(--text-3); margin:0; }
.frame__line{ height:1px; background:var(--line); }
.frame__line--short{ width:44%; }

.work__meta{ padding:var(--s-5); }
.work__h{ font-size:18px; font-weight:600; margin:0 0 6px; }
.work__p{ font-size:14.5px; color:var(--text-2); margin:0 0 var(--s-4); }
.work__go{
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; font-weight:600; color:var(--text);
  letter-spacing:.02em;
  border-bottom:1px solid var(--line-2); padding-bottom:3px;
  transition:border-color var(--t-base) var(--ease);
}
.work__item:hover .work__go{ border-bottom-color:var(--text-3); }
.work__item:hover .work__go .btn__arrow{ transform:translateX(3px); }
.work__tags{ display:flex; flex-wrap:wrap; gap:6px; margin:0 0 var(--s-4); padding:0; }
.work__tags li{ list-style:none; }
.work__tags span{
  display:inline-block; padding:5px 10px; border-radius:99px;
  font-size:10.5px; font-weight:500; letter-spacing:.14em; text-transform:uppercase;
  color:var(--text-3); box-shadow:inset 0 0 0 1px var(--line);
}

/* placeholder slot for work still to come */
.work__soon{
  border-radius:var(--r-md);
  box-shadow:inset 0 0 0 1px var(--line);
  display:flex; align-items:center; justify-content:center;
  min-height:220px; padding:var(--s-6); text-align:center;
}
.work__soon{ margin-top:var(--s-7); }
.work__soon p{ margin:0; color:var(--text-3); font-size:14px; max-width:26ch; }

/* ============================================================
   PRICING
   ============================================================ */

/* One tailored offer, not a grid of packages. Two columns inside the panel
   so a single card reads as deliberate rather than as the survivor of a
   three-tier layout. The gold hairline is the third and last permitted use
   of the accent: CTA, scale mark, this border. */
.tailor{
  display:grid; gap:var(--s-6) var(--s-8);
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:start;
  background:var(--raise); border-radius:var(--r-md);
  box-shadow:inset 0 0 0 1px var(--gold-deep);
  padding:clamp(var(--s-5), 4vw, var(--s-7));
}
.tailor__name{
  font-family:var(--sans); font-weight:600;
  font-size:clamp(28px, 3.6vw, 38px); letter-spacing:-.01em;
  margin:0 0 var(--s-4);
}
.tailor__p{
  color:var(--text-2); font-size:15.5px; line-height:1.6;
  margin:0 0 var(--s-4); max-width:var(--measure);
}
.tailor__p + .tailor__p{ margin-bottom:var(--s-6); }
.tailor__side .btn{ align-self:flex-start; }

.tailor__list{ list-style:none; margin:0; padding:0; }
.tailor__list li{
  position:relative; padding-left:22px; margin-bottom:14px;
  font-size:15px; color:var(--text-2); line-height:1.55;
}
.tailor__list li:last-child{ margin-bottom:0; }
.tailor__list li::before{
  content:""; position:absolute; left:0; top:11px;
  width:9px; height:1px; background:var(--text-3);
}

@media (max-width:820px){
  .tailor{ grid-template-columns:1fr; gap:var(--s-6); }
  .tailor__side .btn{ width:100%; }
}

.tier__note{
  margin:var(--s-6) 0 0; font-size:13.5px; color:var(--text-3);
  max-width:60ch;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq{ max-width:840px; }

/* ============================================================
   CONTACT
   ============================================================ */

.contact{
  display:grid; gap:var(--s-7);
  grid-template-columns:minmax(0,1fr) minmax(0,300px);
  align-items:start;
}
@media (max-width:900px){ .contact{ grid-template-columns:1fr; } }

.field{ margin-bottom:var(--s-4); }
.field label{
  display:block; margin-bottom:8px;
  font-size:11px; font-weight:500; letter-spacing:.18em; text-transform:uppercase;
  color:var(--text-3);
}
.field input,
.field textarea,
.field select{
  width:100%;
  /* 16px minimum, or iOS Safari zooms the page when the field is focused */
  font-family:var(--sans); font-size:16px; line-height:1.5;
  color:var(--text); background:rgba(237,235,231,.03);
  border:0; border-radius:var(--r-md);
  box-shadow:inset 0 0 0 1px var(--line-2);
  padding:14px 16px;
  -webkit-appearance:none; appearance:none;
  transition:box-shadow var(--t-base) var(--ease),
             background-color var(--t-base) var(--ease);
}
.field textarea{ min-height:132px; resize:vertical; }
.field input:hover, .field textarea:hover, .field select:hover{
  box-shadow:inset 0 0 0 1px var(--text-3);
}
.field input:focus, .field textarea:focus, .field select:focus{
  outline:none;
  background:rgba(237,235,231,.05);
  box-shadow:inset 0 0 0 1px var(--gold), 0 0 0 3px rgba(210,177,113,.16);
}
.field input::placeholder, .field textarea::placeholder{ color:var(--text-3); }
.field select{
  background-image:linear-gradient(45deg,transparent 50%,var(--text-3) 50%),
                   linear-gradient(135deg,var(--text-3) 50%,transparent 50%);
  background-position:calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size:6px 6px, 6px 6px;
  background-repeat:no-repeat;
}
.form__foot{ display:flex; flex-wrap:wrap; align-items:center; gap:var(--s-4); margin-top:var(--s-5); }
.form__fine{ font-size:12.5px; color:var(--text-3); margin:0; max-width:38ch; }
.form__sent{ margin:var(--s-4) 0 0; font-size:14px; color:var(--text-2); max-width:52ch; }
.form__sent a{ color:var(--text); }

.direct{ display:grid; gap:var(--s-5); }
.direct__row{ }
.direct__k{
  font-size:11px; font-weight:500; letter-spacing:.18em; text-transform:uppercase;
  color:var(--text-3); margin:0 0 6px;
}
.direct__v{ margin:0; font-size:16px; }
.direct__v a{
  text-decoration:none; color:var(--text);
  border-bottom:1px solid var(--line-2);
  padding-bottom:2px;
  transition:border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.direct__v a:hover{ color:var(--gold); border-bottom-color:var(--gold-deep); }

/* ============================================================
   FOOTER
   ============================================================ */

.footer{
  border-top:1px solid var(--line);
  padding-block:var(--s-7);
  padding-bottom:calc(var(--s-7) + env(safe-area-inset-bottom));
}
.footer__bar{
  display:flex; flex-wrap:wrap; align-items:flex-end; gap:var(--s-5);
}
.footer__meta{ margin-left:auto; text-align:right; }
.footer__meta p{ margin:0; font-size:12.5px; color:var(--text-3); }
@media (max-width:560px){
  .footer__meta{ margin-left:0; text-align:left; }
}

/* ============================================================
   MOBILE MENU — a slim panel that slides down under the header.
   Not a full-screen overlay: this site is quiet, and an overlay that
   takes the whole screen to show five links is theatre.
   ============================================================ */

.burger{
  display:none;
  width:44px; height:44px; margin-left:auto;
  border:0; background:transparent; cursor:pointer;
  position:relative; border-radius:var(--r-sm);
  -webkit-tap-highlight-color:transparent;
}
.burger span{
  position:absolute; left:12px; right:12px; height:1px;
  background:var(--text);
  transition:transform var(--t-base) var(--ease), opacity var(--t-fast) var(--ease);
}
.burger span:nth-child(1){ top:17px; }
.burger span:nth-child(2){ top:22px; }
.burger span:nth-child(3){ top:27px; }
.burger[aria-expanded="true"] span:nth-child(1){ transform:translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.burger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-5px) rotate(-45deg); }

.menu{
  display:none;
  border-top:1px solid var(--line);
  overflow:hidden;
  max-height:0;
  transition:max-height var(--t-slow) var(--ease);
}
.menu.is-open{ max-height:420px; }
.menu__inner{ padding:var(--s-4) 0 var(--s-6); }
/* :not(.btn) matters. `.menu a` scores 0-1-1 and `.btn--primary` only
   0-1-0, so without it this rule wins and paints grey text on the gold
   button — 1.27:1, unreadable. Specificity, not source order. */
.menu a:not(.btn){
  display:block; padding:14px 0;
  font-size:17px; color:var(--text-2); text-decoration:none;
  border-bottom:1px solid var(--line);
  transition:color var(--t-fast) var(--ease);
}
.menu a:not(.btn):hover{ color:var(--text); }
.menu .btn{ margin-top:var(--s-5); width:100%; }

@media (max-width:860px){
  .burger{ display:block; }
  .header__cta{ display:none; }
  .menu{ display:block; }
}

/* ============================================================
   SCROLL REVEAL — one slow lift, once, and only on block openings.
   Everything is visible by default: if the observer never runs, nothing
   is lost.
   ============================================================ */
.reveal{ opacity:1; }
html.js .reveal{
  opacity:0; transform:translateY(12px);
  transition:opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
html.js .reveal.is-in{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  html.js .reveal{ opacity:1 !important; transform:none !important; }
  .menu{ transition:none; }
}
