/* ==========================================================================
   Loomfield Studio — site.css
   "Mid-century" theme · 2026-08

   One stylesheet for every page on loomfieldstudio.com. Tokens live in
   :root; everything below reads from them, so a re-theme is a token edit.

   THEME NOTES
   Mid-century modern, taken from the Saarinen / Eames side of the era —
   soft shells, rounded corners, pill shapes, organic curves — rather than
   the severe Knoll-ad side. The palette is deliberately light and neutral:
   grey ground, soft blue-grey bands, one muted blue.

   Grey and blue read COOL, so the warmth here comes from geometry and
   spacing, not from hue. Keep the radii generous and the type open; a
   sharp-cornered variant of this palette reads cold and corporate.

   CONTRAST CONTRACT — every value below was computed, not eyeballed.
   Do not introduce a new ink or blue without checking it on all three
   grounds (--bg, --bg-2, --invert).
     --ink      #23292E on --bg  13.3:1   body + headings
     --ink-2    #4C555C on --bg   6.9:1   body copy        (6.3:1 on --bg-2)
     --ink-3    #5A646B on --bg   5.5:1   meta / labels    (5.0:1 on --bg-2)
     --blue     #4A6B85 on --bg   5.1:1   ANY blue TEXT    (4.7:1 on --bg-2)
     --blue-soft #7FA0BC          3.8:1   RULES + SVG MARKS ONLY — never text
     --on-invert   #EDF1F3 on --invert 10.1:1
     --on-invert-2 #B9C6D0 on --invert  6.4:1
   Sections:
     1. Tokens
     2. Base / reset
     3. Shared components (nav, mobile menu, buttons, eyebrow, tags, cards)
     4. Contact block + quote form
     5. CTA band
     6. Footer
     7. Landing page
     8. Services page
     9. Work page
    10. Service detail pages
    11. Lightbox
    12. Responsive
   ========================================================================== */


/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Ground — light, neutral, faintly cool */
  --bg:        #F2F4F5;   /* page */
  --bg-2:      #E7EBEE;   /* alternating sections, soft cards */
  --surface:   #FFFFFF;   /* cards that must lift off a band */
  --invert:    #2C3D4C;   /* deep slate panel: contact + CTA */
  --footer:    #23292E;

  /* Ink */
  --ink:       #23292E;
  --ink-2:     #4C555C;
  --ink-3:     #5A646B;

  /* Blue — split so type is always legible */
  --blue:       #4A6B85;  /* the only blue permitted on text */
  --blue-deep:  #3A5568;  /* hover / pressed fills */
  --blue-soft:  #7FA0BC;  /* rules + SVG marks ONLY */
  --blue-tint:  #DCE5EC;  /* quiet fills */

  /* On the inverted panel */
  --on-invert:   #EDF1F3;
  --on-invert-2: #B9C6D0;

  /* Lines — non-text, held at or above 3:1 where they carry meaning */
  --line:        #D5DBDF;
  --line-strong: #B4BEC5;
  --line-invert: rgba(237, 241, 243, .20);

  /* Focus — per-context, see :focus-visible below */
  --focus:        #23292E;
  --focus-invert: #EDF1F3;

  /* Type */
  --display: 'Jost', 'Century Gothic', 'Futura', sans-serif;
  --sans:    'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;

  /* Shape — generous by design; this is where the friendliness lives */
  --r-sm:   8px;
  --r:      14px;
  --r-lg:   20px;
  --r-pill: 999px;

  /* Layout */
  --maxw:   1280px;
  --gutter: 48px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
}


/* ---------- 2. Base ------------------------------------------------------ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--blue-tint); color: var(--ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.06;
  color: var(--ink);
}
h3 { font-weight: 500; letter-spacing: -.005em; }
/* Emphasised words in a headline carry the accent. <em> is used
   structurally in the markup; it is never rendered italic here. */
h1 em, h2 em, h3 em { font-style: normal; font-weight: 500; color: var(--blue); }

.eyebrow {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
}
.lede { color: var(--ink-2); }

/* Focus: dark ring on light ground, light ring inside inverted panels.
   A single ring cannot clear 3:1 on both. */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
/* Inverted panels need the light ring; the dark one is ~1:1 on slate. */
.contact :focus-visible,
.cta :focus-visible,
footer.site :focus-visible { outline-color: var(--focus-invert); }
/* Explicit, so no later colour-only :hover/:focus rule can win and
   leave a nav link with no visible focus at all. */
.mobile-menu-links a:focus-visible,
.mobile-menu-links a.cta:focus-visible,
.mobile-menu-links a.active:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 4px;
}


/* ---------- 3. Shared components ---------------------------------------- */

/* Header / nav */
header.site {
  position: sticky; top: 0; z-index: 50;
  /* .95, not lower: at .86 the composite over the --invert band drops
     --blue nav links to 4.00:1. Verified against slate, footer and black. */
  background: rgba(242, 244, 245, .95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 13px;
  font-family: var(--display);
  font-size: 19px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
}
/* The ring mark. Two small gaps are cut out of it — one at 12 o'clock, one
   at 3 o'clock — with a conic-gradient mask, so the ground shows through
   rather than a painted-on white line. That matters: the same .wordmark
   renders on the dark footer (see footer.site .wordmark::before), where a
   literal white slash would read as a mistake. --wm-gap is the arc each
   gap subtends; below ~12deg it closes up at 22px and stops reading as a
   gap. Browsers without mask support just get the unbroken ring. */
.wordmark::before {
  content: ""; width: 22px; height: 22px;
  border: 2px solid var(--blue); border-radius: 50%;
  flex-shrink: 0;
  --wm-gap: 16deg;
  -webkit-mask-image: conic-gradient(
    transparent 0deg                              calc(var(--wm-gap) / 2),
    #000        calc(var(--wm-gap) / 2)           calc(90deg - var(--wm-gap) / 2),
    transparent calc(90deg - var(--wm-gap) / 2)  calc(90deg + var(--wm-gap) / 2),
    #000        calc(90deg + var(--wm-gap) / 2)  calc(360deg - var(--wm-gap) / 2),
    transparent calc(360deg - var(--wm-gap) / 2)  360deg
  );
  mask-image: conic-gradient(
    transparent 0deg                              calc(var(--wm-gap) / 2),
    #000        calc(var(--wm-gap) / 2)           calc(90deg - var(--wm-gap) / 2),
    transparent calc(90deg - var(--wm-gap) / 2)  calc(90deg + var(--wm-gap) / 2),
    #000        calc(90deg + var(--wm-gap) / 2)  calc(360deg - var(--wm-gap) / 2),
    transparent calc(360deg - var(--wm-gap) / 2)  360deg
  );
}
.nav-links {
  display: flex; align-items: center; gap: 34px;
  font-size: 15px; color: var(--ink-3);
}
.nav-links a { color: var(--ink-3); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--blue); font-weight: 500; }

.nav-toggle {
  display: none;
  background: none; border: none;
  padding: 8px; margin: -8px;
  cursor: pointer; color: var(--ink); line-height: 0;
  transition: color .15s;
}
.nav-toggle svg { width: 26px; height: 26px; display: block; }
.nav-toggle:hover { color: var(--blue); }

/* Mobile overlay menu.
   overflow-y is load-bearing: the panel is fixed and body scroll is
   locked behind it, so without it the CTA is unreachable in landscape. */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 100;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.mobile-menu[data-open] {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear 0s;
}
.mobile-menu-bar {
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.mobile-menu-links {
  padding: 44px 24px 48px;
  display: flex; flex-direction: column; gap: 24px;
  max-width: 480px;
}
.mobile-menu-links a {
  font-family: var(--display);
  font-size: 38px; font-weight: 300; letter-spacing: -.02em; line-height: 1.1;
  color: var(--ink); text-decoration: none; transition: color .15s;
}
.mobile-menu-links a:hover { color: var(--blue); }
.mobile-menu-links a.active { color: var(--blue); font-weight: 500; }
.mobile-menu-divider { height: 1px; background: var(--line); margin: 6px 0 0; }
.mobile-menu-links a.cta {
  font-family: var(--sans);
  font-size: 16px; font-weight: 500; letter-spacing: 0;
  color: #FFFFFF; background: var(--blue);
  padding: 15px 28px; border-radius: var(--r-pill);
  align-self: flex-start; margin-top: 6px;
  transition: background .2s;
}
.mobile-menu-links a.cta:hover { background: var(--blue-deep); color: #FFFFFF; }
body.menu-open { overflow: hidden; }

/* Buttons — pill shapes carry most of the theme's warmth */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 15px; font-weight: 500;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #FFFFFF; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
/* Sits on an inverted (deep slate) band. */
.btn-invert { background: var(--on-invert); color: var(--invert); border-color: var(--on-invert); }
.btn-invert:hover { background: #FFFFFF; border-color: #FFFFFF; }
.btn-outline {
  border: 1px solid var(--blue);
  color: var(--blue) !important;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-outline:hover { background: var(--blue); color: #FFFFFF !important; border-color: var(--blue); }
.btn-text {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500; color: var(--blue);
  text-decoration: none;
  transition: color .15s;
}
.btn-text::after { content: "→"; transition: transform .2s var(--ease); }
.btn-text:hover { color: var(--blue-deep); }
.btn-text:hover::after { transform: translateX(4px); }

/* Tags — soft pills */
.tag {
  display: inline-block;
  font-family: var(--display);
  font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
  background: var(--bg-2);
  border-radius: var(--r-pill);
  padding: 6px 13px;
  line-height: 1.2;
  white-space: nowrap;
}

/* Section rhythm */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-2); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
  margin-bottom: 52px;
}
.section-head .copy { max-width: 720px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(34px, 4.2vw, 54px); }
.section-head .lede { font-size: 16px; line-height: 1.65; max-width: 340px; padding-bottom: 6px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center .copy { max-width: 760px; }
.section-head.center .lede { max-width: 560px; margin-top: 16px; font-size: 18px; }

/* Image frame — soft shell */
.frame {
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-2);
}

/* Icon colour for inline SVGs (they use currentColor) */
.ico { color: var(--blue); flex-shrink: 0; }


/* ---------- 4. Contact block + quote form -------------------------------- */
.contact {
  background: var(--invert);
  color: var(--on-invert);
  padding: 104px 0;
}
.contact-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 72px; align-items: start;
}
.contact .eyebrow { color: var(--on-invert-2); margin-bottom: 20px; }
.contact h2 { font-size: clamp(38px, 5vw, 62px); color: var(--on-invert); }
.contact h2 em { color: #A8C4DA; font-weight: 500; }
.contact .lede {
  font-size: 18px; line-height: 1.7;
  color: var(--on-invert-2);
  max-width: 480px; margin-top: 22px;
}
.contact-meta {
  margin-top: 38px; padding-top: 26px;
  border-top: 1px solid var(--line-invert);
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 480px;
}
.contact-meta .k {
  font-family: var(--display);
  font-size: 11px; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--on-invert-2); margin-bottom: 5px;
}
.contact-meta .v { font-size: 15px; color: var(--on-invert); }

.quote-form { display: grid; gap: 12px; }
/* Fields sit on white so both the placeholder (4.9:1) and the border
   (3.1:1) clear their WCAG minimums. A tinted field on the slate panel
   could not do both. */
.qf-input, .qf-textarea {
  width: 100%;
  padding: 15px 17px;
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid #9AA3AA;
  border-radius: var(--r-sm);
  font-family: var(--sans); font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.qf-input::placeholder, .qf-textarea::placeholder { color: #666F76; opacity: 1; }
.qf-input:focus, .qf-textarea:focus {
  /* No outline:none here — it would beat .contact :focus-visible and
     leave the form with no visible keyboard focus on the slate panel. */
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(74, 107, 133, .45);
}
.qf-textarea { min-height: 124px; resize: vertical; }
.qf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.qf-submit {
  background: var(--on-invert); color: var(--invert);
  padding: 16px 32px;
  border: none; border-radius: var(--r-pill);
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  justify-self: start; margin-top: 4px;
}
.qf-submit:hover { background: #FFFFFF; }
.qf-submit:disabled { opacity: .6; cursor: not-allowed; }
.qf-status { margin-top: 12px; font-size: 14px; color: var(--on-invert-2); min-height: 1.2em; }
.qf-status.ok  { color: #9FD8AE; }
.qf-status.err { color: #F0A98D; }
.qf-altmail { font-size: 15px; color: var(--on-invert-2); margin-top: 20px; line-height: 1.7; }
.qf-altmail a {
  color: var(--on-invert);
  text-decoration: none;
  box-shadow: 0 1px 0 0 var(--on-invert-2);
}
.qf-altmail a:hover { box-shadow: 0 1px 0 0 var(--on-invert); }


/* ---------- 5. CTA band --------------------------------------------------- */
.cta {
  background: var(--invert); color: var(--on-invert);
  padding: 92px 0; text-align: center;
}
.cta h2 { font-size: clamp(36px, 4.4vw, 54px); color: var(--on-invert); }
.cta h2 em { color: #A8C4DA; font-weight: 500; }
.cta p {
  font-size: 18px; line-height: 1.7; color: var(--on-invert-2);
  max-width: 540px; margin: 18px auto 32px;
}


/* ---------- 6. Footer ----------------------------------------------------- */
footer.site { background: var(--footer); color: var(--on-invert); }
.footer-row {
  max-width: var(--maxw); margin: 0 auto;
  padding: 52px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line-invert);
  flex-wrap: wrap; gap: 20px;
}
footer.site .wordmark { color: var(--on-invert); }
footer.site .wordmark::before { border-color: var(--on-invert-2); }
.footer-links { display: flex; gap: 30px; font-size: 14.5px; flex-wrap: wrap; }
.footer-links a { color: var(--on-invert-2); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--on-invert); }
.footer-meta {
  max-width: var(--maxw); margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex; justify-content: space-between;
  font-family: var(--display); font-size: 12px; letter-spacing: .1em;
  color: var(--on-invert-2);
  flex-wrap: wrap; gap: 8px;
}


/* ---------- 7. Landing page ---------------------------------------------- */
.hero { padding-top: 76px; padding-bottom: 72px; }
.hero-grid {
  display: grid; grid-template-columns: .92fr 1.08fr;
  gap: 56px; align-items: center;
}
/* Pill eyebrow — hero only, applied without touching the markup. */
.hero .eyebrow, .svc-hero .eyebrow, .d-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg-2);
  border-radius: var(--r-pill);
  padding: 8px 17px 8px 13px;
}
.hero .eyebrow::before, .svc-hero .eyebrow::before, .d-hero .eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue-soft); flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(46px, 5.6vw, 78px);
  line-height: 1.03; letter-spacing: -.025em;
}
.hero .eyebrow { margin-bottom: 26px; }
.hero-lede {
  font-size: 18px; line-height: 1.75;
  color: var(--ink-2);
  max-width: 470px; margin-top: 26px;
}
.hero-ctas { display: flex; gap: 22px; align-items: center; margin-top: 34px; flex-wrap: wrap; }
.hero-visual { position: relative; }
/* The markup wraps hero media in .frame; in hero contexts that frame
   becomes a padded shell so the image sits inset on the soft band. */
.hero-visual > .frame,
.svc-hero .hero-visual > .frame,
.d-hero-grid > .frame,
.feature .frame { background: var(--bg-2); border-radius: var(--r-lg); padding: 20px; }
.hero-img { width: 100%; height: 470px; object-fit: cover; border-radius: var(--r); }
.hero-badge {
  display: flex; align-items: center; gap: 13px;
  margin-top: 15px; padding: 0 6px;
  justify-content: space-between;
}
.hero-badge .dot { display: none; }
.hero-badge .eyebrow {
  font-size: 11px;
  background: var(--bg-2); border-radius: var(--r-pill);
  padding: 6px 13px; margin: 0;
}
.hero-badge .title { font-size: 14.5px; color: var(--ink-2); }

/* Trust row — four soft cards */
.trust {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 72px;
}
.trust-cell {
  background: var(--bg-2);
  border-radius: var(--r);
  padding: 26px 24px 28px;
  display: flex; flex-direction: column; gap: 12px;
  align-items: flex-start;
}
.trust-cell h2, .trust-cell h3 {
  font-family: var(--display);
  font-size: 19px; font-weight: 500; letter-spacing: 0;
  line-height: 1.2;
}
.trust-cell p { font-size: 14.5px; line-height: 1.62; color: var(--ink-2); }

/* Services cards */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px -20px rgba(35, 41, 46, .45);
}
.service-card .media { height: 220px; overflow: hidden; background: var(--bg-2); }
.service-card img { width: 100%; height: 100%; object-fit: cover; }
.service-card img.screenshot { object-fit: contain; padding: 12px; background: var(--surface); }
.service-card .body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.service-card .num {
  font-family: var(--display); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; color: var(--blue); margin-bottom: 12px;
}
.service-card h3 { font-size: 24px; margin-bottom: 9px; }
.service-card p { font-size: 15px; line-height: 1.65; color: var(--ink-2); flex: 1; }
.service-card .more { margin-top: 20px; }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.process-step {
  background: var(--bg-2);
  border-radius: var(--r-lg);
  padding: 32px 30px 34px;
}
.process-step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #FFFFFF;
  font-family: var(--display); font-size: 15px; font-weight: 500; letter-spacing: .04em;
  margin-bottom: 22px;
}
.process-step h3 { font-size: 25px; margin-bottom: 11px; }
.process-step p { font-size: 15px; line-height: 1.7; color: var(--ink-2); }

/* Work grid */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.work-tile { text-decoration: none; color: inherit; display: block; }
.work-tile .frame { height: 300px; }
.work-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work-tile:hover img { transform: scale(1.03); }
.work-tile .meta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: 13px; padding: 0 4px;
}
.work-tile .name { font-size: 15px; color: var(--ink); }

/* Audience */
.audience-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.audience-col {
  background: var(--bg-2); border-radius: var(--r);
  padding: 26px 24px 28px;
}
.audience-col h3 { font-size: 20px; margin-bottom: 7px; }
.audience-col p { font-size: 14.5px; line-height: 1.62; color: var(--ink-2); }


/* ---------- 8. Services page --------------------------------------------- */
.svc-hero { padding-top: 76px; padding-bottom: 56px; }
.svc-hero-grid { display: grid; grid-template-columns: .84fr 1.16fr; gap: 60px; align-items: start; }
.svc-hero h1 { font-size: clamp(42px, 5.2vw, 66px); letter-spacing: -.025em; max-width: 15ch; }
.svc-hero .eyebrow { margin-bottom: 26px; }
.svc-hero .hero-lede { max-width: 56ch; }
.hero-vid { width: 100%; height: auto; display: block; border-radius: var(--r-sm); }
.hero-caption {
  margin-top: 15px; padding: 0 6px;
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
}
.hero-caption .label {
  font-family: var(--display); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blue);
  background: var(--bg-2); border-radius: var(--r-pill); padding: 6px 13px;
  flex-shrink: 0;
}
.hero-caption .hint { font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.toc {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.toc a {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 12px 22px;
  background: var(--bg-2); border-radius: var(--r-pill);
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: background .2s, color .2s;
}
.toc a:hover { background: var(--blue); color: #FFFFFF; }
.toc a:hover .num { color: #FFFFFF; }
.toc .num { font-family: var(--display); font-size: 11px; font-weight: 500; letter-spacing: .16em; color: var(--blue); transition: color .2s; }

.svc { padding: 104px 0; }
.svc-alt { background: var(--bg-2); }
.svc-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 64px; align-items: center; }
.svc-grid.reverse { grid-template-columns: .98fr 1.02fr; }
.svc-grid.reverse .svc-visual { order: 2; }
.svc-copy .eyebrow { margin-bottom: 16px; }
.svc-copy h2 { font-size: clamp(32px, 4vw, 50px); margin-bottom: 20px; }
.svc-copy .lede { font-size: 17px; line-height: 1.75; margin-bottom: 6px; }
.svc-copy ul {
  list-style: none; padding: 0;
  margin: 26px 0 0; padding-top: 26px;
  display: grid; gap: 12px;
  border-top: 1px solid var(--line);
}
.svc-copy ul li {
  position: relative; padding-left: 28px;
  color: var(--ink-2); font-size: 15px; line-height: 1.65;
}
.svc-copy ul li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--blue-soft);
}
/* On the alt band the soft cards need a lighter fill to read. */
.svc-alt .frame, .svc-alt .svc-tile { background: var(--surface); }
.svc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.svc-tile { aspect-ratio: 1/1; border-radius: var(--r); overflow: hidden; }
.svc-tile img { width: 100%; height: 100%; object-fit: cover; }
.svc-video {
  width: 100%; height: auto; max-height: 540px;
  aspect-ratio: 4/3; object-fit: cover;
  background: var(--bg-2); display: block;
}
.svc-screenshot img { width: 100%; height: auto; display: block; }
.svc-stack-head { max-width: 820px; margin: 0 auto 48px; text-align: center; }
.svc-stack-head .eyebrow { margin-bottom: 16px; }
.svc-stack-head h2 { font-size: clamp(34px, 4.2vw, 52px); margin-bottom: 20px; }
.svc-stack-head .lede { font-size: 17px; line-height: 1.75; }
.svc-stack .frame { margin: 0 0 48px; padding: 16px; }
.svc-features {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px;
  border-top: 1px solid var(--line); padding-top: 34px;
}
.feat { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.feat .check { width: 19px; height: 19px; flex-shrink: 0; margin-top: 2px; color: var(--blue); }

/* Custom Applications (03) — one .app-row per app, stacked in a single
   section. Each row reuses .svc-grid, so the image/copy alternation and
   the 960px collapse to one column come for free. The rule below just
   cancels the stacked-section frame margin and puts a hairline between
   the two apps. */
.app-row + .app-row { margin-top: 66px; padding-top: 66px; border-top: 1px solid var(--line); }
.svc-stack .app-row .frame { margin: 0; }
.svc-copy h3 { font-size: clamp(26px, 2.9vw, 36px); margin-bottom: 18px; }
.svc-stack .svc-features { margin-top: 66px; }


/* ---------- 9. Work page --------------------------------------------------- */
.page-head {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 52px; align-items: end;
  padding-top: 76px; padding-bottom: 42px;
}
.page-head .eyebrow { margin-bottom: 20px; }
.page-head h1 { font-size: clamp(44px, 5.8vw, 76px); letter-spacing: -.025em; line-height: 1.02; }
.page-head .lede { font-size: 18px; line-height: 1.75; padding-bottom: 8px; }
.chips { display: flex; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.chip {
  font-family: var(--display); font-size: 12px; font-weight: 500;
  letter-spacing: .12em;
  color: var(--ink-3);
  background: var(--bg-2);
  border: none; border-radius: var(--r-pill);
  padding: 9px 18px;
}
.chip.is-active { color: #FFFFFF; background: var(--blue); }
.feature { padding-top: 42px; padding-bottom: 0; }
.feature-wrap { position: relative; }
.feature-img { width: 100%; height: 540px; object-fit: cover; border-radius: var(--r); }
.feature-badge {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 15px; padding: 0 8px; flex-wrap: wrap;
}
.feature-badge .eyebrow {
  font-size: 11px;
  background: var(--bg-2); border-radius: var(--r-pill); padding: 6px 13px;
}
.feature-badge .title { font-size: 16px; color: var(--ink); }
.gallery { padding-top: 26px; padding-bottom: 104px; }
.gal-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.gal-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.tile-lg .frame { height: 420px; }
.tile-sm .frame { height: 300px; }
.tile-lg img, .tile-sm img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile-lg:hover img, .tile-sm:hover img { transform: scale(1.03); }
.tile-meta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: 13px; padding: 0 4px;
}
.tile-meta .name { font-size: 15.5px; color: var(--ink); }
.tile-sm .tile-meta .name { font-size: 15px; }


/* ---------- 10. Service detail pages ------------------------------------- */
.d-hero { padding-top: 64px; padding-bottom: 88px; }
.d-hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.d-hero .eyebrow { margin-bottom: 24px; }
.d-hero h1 { font-size: clamp(42px, 5vw, 64px); letter-spacing: -.025em; }
.d-hero .hero-lede { max-width: 480px; margin-top: 26px; }
.d-hero .hero-cta { margin-top: 32px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.d-hero-img { width: 100%; height: 460px; object-fit: cover; border-radius: var(--r); }
.d-hero-shot img { width: 100%; height: auto; display: block; border-radius: var(--r-sm); }

/* Video page: text on top, wide video below */
.d-hero-stack { padding-top: 56px; padding-bottom: 0; }
.d-hero-stack .hero-text { max-width: 820px; margin-bottom: 40px; }
/* A text-only stacked hero has no media to close it off, so the
   following section supplies the gap instead. */
.d-hero-stack:has(+ .svc) { padding-bottom: 8px; }
.d-hero-stack .hero-lede { max-width: 560px; }
.d-hero-stack > .frame { background: var(--bg-2); border-radius: var(--r-lg); padding: 20px; }
.d-hero-video { width: 100%; height: 560px; object-fit: cover; border-radius: var(--r); background: var(--bg-2); }
.d-hero-shot > .frame, .svc-screenshot { background: var(--bg-2); border-radius: var(--r-lg); padding: 18px; }

/* Feature grid ("what's included" / "formats" / "how it fits") */
.d-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.d-item {
  background: var(--surface); border-radius: var(--r-lg);
  padding: 28px 26px 30px;
}
.section-alt .d-item { background: var(--surface); }
.d-item .ico { margin-bottom: 20px; }
.d-item h3 { font-size: 23px; margin-bottom: 9px; }
.d-item p { font-size: 15px; line-height: 1.68; color: var(--ink-2); }

/* Samples strip */
.samples-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.samples-grid .frame { height: 300px; }
.samples-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 11. Lightbox -------------------------------------------------
   Any content image NOT already inside a link becomes a real <button>
   (wrapped by site.js) that opens the image large. Button semantics are
   deliberate: the image is then keyboard-reachable and announced, which a
   click handler on a bare <img> would not give.
   Without JS nothing changes — the image just renders as it always did. */
.zoomable {
  display: block; width: 100%; height: 100%;
  padding: 0; border: 0; background: none;
  font: inherit; color: inherit;
  cursor: zoom-in;
  position: relative;
}
/* Hover affordance — a small expand glyph, so the zoom is discoverable
   rather than something you have to guess at. */
.zoomable::after {
  content: "";
  position: absolute; right: 10px; bottom: 10px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(35, 41, 46, .62) center / 15px 15px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2F4F5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3H3v6M15 21h6v-6M3 3l7 7M21 21l-7-7'/%3E%3C/svg%3E");
  opacity: 0;
  transition: opacity .18s var(--ease);
  pointer-events: none;
}
.zoomable:hover::after,
.zoomable:focus-visible::after { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 5vh 5vw;
  background: rgba(20, 26, 31, .93);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease), visibility 0s linear .2s;
}
.lightbox[data-open] {
  opacity: 1; visibility: visible;
  transition: opacity .2s var(--ease), visibility 0s linear 0s;
}
.lightbox figure {
  margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px;
  max-width: 100%; max-height: 100%;
}
.lightbox img {
  display: block;
  max-width: 100%; max-height: 80vh;
  width: auto; height: auto; object-fit: contain;
  border-radius: var(--r);
  background: var(--surface);
}
.lightbox figcaption {
  color: var(--on-invert-2);
  font-size: 14.5px; line-height: 1.6; text-align: center;
  max-width: 68ch;
}
.lightbox-close {
  position: absolute; top: 18px; right: 18px;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-invert);
  border-radius: 50%;
  background: rgba(242, 244, 245, .10);
  color: var(--on-invert);
  cursor: pointer;
  transition: background .18s var(--ease);
}
.lightbox-close:hover { background: rgba(242, 244, 245, .22); }
.lightbox-close svg { width: 20px; height: 20px; display: block; }
.lightbox :focus-visible { outline: 2px solid var(--focus-invert); outline-offset: 3px; }
body.lightbox-open { overflow: hidden; }

@media (max-width: 600px) {
  .lightbox { padding: 64px 16px 24px; }
  .lightbox img { max-height: 70vh; }
  .lightbox-close { top: 12px; right: 12px; }
}


/* ---------- 12. Responsive ---------------------------------------------- */
@media (max-width: 1080px) {
  .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --gutter: 24px; }
  .nav { padding: 14px var(--gutter); }
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .section, .svc, .contact { padding: 68px 0; }
  .section-head { margin-bottom: 34px; }

  .hero { padding-top: 48px; padding-bottom: 52px; }
  .hero-grid, .svc-hero-grid, .svc-grid, .svc-grid.reverse, .d-hero-grid, .contact-grid, .page-head { grid-template-columns: 1fr; }
  .hero-grid, .d-hero-grid { gap: 34px; }
  .svc-grid.reverse .svc-visual { order: 0; }
  .hero-img { height: 380px; }
  .d-hero-img { height: 350px; }
  .d-hero-video { height: 300px; }
  .feature-img { height: 320px; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 44px; }
  .services-grid, .process-grid, .work-grid, .gal-2, .gal-3, .d-grid, .samples-grid { grid-template-columns: 1fr; }
  .svc-features { grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 26px; }
  .svc-stack-head { text-align: left; margin-bottom: 32px; }
  .svc-stack .frame { margin-bottom: 32px; }
  .app-row + .app-row { margin-top: 44px; padding-top: 44px; }
  .svc-stack .svc-features { margin-top: 44px; }
  .svc-hero { padding-top: 48px; padding-bottom: 42px; }
  .svc-hero h1 { max-width: 18ch; }
  .toc { margin-top: 32px; }
  .page-head { padding-top: 48px; padding-bottom: 28px; gap: 20px; }
  .gal-3 { margin-top: 24px; }
  .tile-lg .frame, .tile-sm .frame { height: 260px; }
  .d-hero { padding-top: 42px; padding-bottom: 60px; }
  .d-hero-stack { padding-top: 42px; }
  .cta { padding: 68px 0; }
  .contact-grid { gap: 38px; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer-meta { flex-direction: column; gap: 8px; }
}

@media (max-width: 600px) {
  .audience-grid, .svc-features, .trust { grid-template-columns: 1fr; }
  .hero-img { height: 300px; }
  .hero-ctas, .d-hero .hero-cta { gap: 14px; }
  .btn { padding: 14px 24px; }
  .contact-meta { grid-template-columns: 1fr; }
  .hero-visual > .frame, .d-hero-grid > .frame, .feature .frame,
  .d-hero-stack > .frame, .d-hero-shot > .frame, .svc-screenshot { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .work-tile:hover img, .tile-lg:hover img, .tile-sm:hover img, .service-card:hover { transform: none; }
}
