/* Shared structural styles for the new service pages. Palette and editorial layout follow in subpages.css. */
:root {
    --bg: #ffffff;
    --ink: #0f0f0f;
    --muted: #6e6e6e;
    --rule: #e8e8e8;
    --font: "Archivo", system-ui, -apple-system, sans-serif;
    --serif: "Instrument Serif", ui-serif, Georgia, serif;
    --max: 1600px;
    --pad: clamp(1.25rem, 3vw, 2.5rem);
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
  body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.6; font-feature-settings: "ss01"; overflow-x: hidden; }
  img, video { max-width: 100%; display: block; height: auto; }
  video { background: #f3f3f3; }
  a { color: inherit; text-decoration: none; }
  .shell { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
  ::selection { background: #f4cd4a; color: #0f0f0f; text-shadow: none; }
  .brand::selection, h1::selection, h2::selection { background: #0f0f0f; color: #f4cd4a; }
  .svg-backdrop { --glass-refraction: url(#liquidGlass); }
  .nav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.14); backdrop-filter: var(--glass-refraction, blur(0px)) blur(8px) saturate(1.9) brightness(1.04); -webkit-backdrop-filter: var(--glass-refraction, blur(0px)) blur(8px) saturate(1.9) brightness(1.04); box-shadow: inset 0 1px 0 rgba(255,255,255,0.70), inset 0 -1px 0 rgba(255,255,255,0.18), 0 1px 2px rgba(0,0,0,0.03); transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease); }
  .nav.scrolled { background: rgba(255,255,255,0.10); box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), inset 0 -1px 0 rgba(255,255,255,0.22), 0 4px 14px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04); }
  html:not(.svg-backdrop) .nav { background: linear-gradient(180deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.09) 55%, rgba(255,255,255,0.17) 100%), rgba(255,255,255,0.08); backdrop-filter: blur(22px) saturate(2.1) brightness(1.06); -webkit-backdrop-filter: blur(22px) saturate(2.1) brightness(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), inset 0 -1px 0 rgba(255,255,255,0.28), 0 8px 24px rgba(0,0,0,0.05); }
  html:not(.svg-backdrop) .nav.scrolled { background: linear-gradient(180deg, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0.12) 55%, rgba(255,255,255,0.22) 100%), rgba(255,255,255,0.10); backdrop-filter: blur(26px) saturate(2.3) brightness(1.07); -webkit-backdrop-filter: blur(26px) saturate(2.3) brightness(1.07); }
  /* Native blur and highlights stay reliable on touch/mobile browsers. */
  @media (max-width: 859px), (hover: none), (pointer: coarse) {
    html .nav, html:not(.svg-backdrop) .nav {
      background: linear-gradient(180deg, rgba(255,255,255,0.38) 0%, rgba(255,255,255,0.14) 55%, rgba(255,255,255,0.24) 100%), rgba(255,255,255,0.08);
      -webkit-backdrop-filter: blur(20px) saturate(1.8) brightness(1.05);
      backdrop-filter: blur(20px) saturate(1.8) brightness(1.05);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.90), inset 0 -1px 0 rgba(255,255,255,0.40), 0 4px 14px rgba(0,0,0,0.06);
    }
    html .nav.scrolled, html:not(.svg-backdrop) .nav.scrolled {
      background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.18) 55%, rgba(255,255,255,0.28) 100%), rgba(255,255,255,0.10);
      -webkit-backdrop-filter: blur(24px) saturate(1.9) brightness(1.06);
      backdrop-filter: blur(24px) saturate(1.9) brightness(1.06);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), inset 0 -1px 0 rgba(255,255,255,0.45), 0 6px 18px rgba(0,0,0,0.08);
    }
  }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 1.15rem; gap: 1rem; }
  .brand { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.3rem, 2vw, 1.75rem); letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
  .nav-links { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); }
  .nav-links a { font-size: 0.875rem; font-weight: 500; letter-spacing: -0.002em; color: rgba(15,15,15,0.55); padding-block: 0.25rem; text-shadow: 0 1px 0 rgba(255,255,255,0.65), 0 -0.5px 0 rgba(0,0,0,0.04); }
  .nav-links a:hover { color: rgba(15,15,15,0.96); }
  .page-hero { padding-block: clamp(1.25rem, 2.5vw, 2rem) clamp(2.5rem, 4vw, 4rem); }
  .hero-frame { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "main copy" "main detail"; gap: 1.25rem clamp(2rem, 4vw, 4rem); height: clamp(560px, 76svh, 760px); align-items: stretch; }
  .hero-main, .hero-side figure, .hero-copy { overflow: hidden; background: #f4f4f4; }
  .hero-main img, .hero-main video, .hero-side img, .hero-side video { width: 100%; height: 100%; object-fit: cover; }
  .hero-main { grid-area: main; min-height: 0; }
  .hero-side { display: contents; }
  .hero-side > figure { grid-area: detail; min-height: 0; }
  .hero-side > figure img { object-position: center 62%; }
  .hero-copy { grid-area: copy; display: flex; flex-direction: column; padding: 0.25rem 0 0.75rem; background: transparent; overflow: visible; }
  .eyebrow { display: block; margin-bottom: 0.7rem; color: rgba(15,15,15,0.54); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
  h1 { max-width: 720px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1.03; letter-spacing: -0.025em; }
  .hero-copy p { max-width: 500px; margin-top: 1rem; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
  .button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding-inline: 1.1rem; border: 1px solid rgba(15,15,15,0.28); color: rgba(15,15,15,0.78); font-size: 0.9rem; transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease); }
  .button.primary { border-color: var(--ink); background: var(--ink); color: #fff; }
  .button:hover { border-color: var(--ink); background: #f4f4f4; color: var(--ink); }
  .button.primary:hover { background: #303030; color: #fff; }
  a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
  .section { padding-block: clamp(3rem, 5vw, 5rem); border-top: 1px solid var(--rule); }
  .series-head { display: grid; grid-template-columns: minmax(0,0.85fr) minmax(0,1.15fr); gap: clamp(1.5rem,4vw,4rem); align-items: start; margin-bottom: clamp(2rem,3vw,3rem); }
  .series-top { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; color: var(--muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
  h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2rem, 3.2vw, 3.5rem); line-height: 1.03; letter-spacing: -0.025em; }
  .content-copy, .content-copy p, .content-copy li, .content-copy h3, .faq-copy, .seo-note { color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.16rem); line-height: 1.6; }
  .content-copy h2 { color: var(--ink); margin-bottom: 1rem; font-size: clamp(2rem, 3.6vw, 4rem); }
  .content-copy h3, .faq-copy h3 { color: var(--ink); margin: 1.6rem 0 0.45rem; font-size: 1rem; font-weight: 600; }
  .content-copy p + p { margin-top: 1rem; }
  .content-copy ul { padding-left: 1.15rem; }
  .content-copy .media-wide, .content-copy .media { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(0.75rem, 1.5vw, 1.25rem); margin: 1.6rem 0; }
  .content-copy .media-wide img, .content-copy .media img, .content-copy .media-wide video, .content-copy .media video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
  .related { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.4rem; }
  .related a { border: 1px solid var(--rule); padding: 0.55rem 0.75rem; color: rgba(15,15,15,0.72); font-size: 0.9rem; }
  .work-grid { column-count: 1; column-gap: clamp(0.8rem, 1.5vw, 1.25rem); }
  @media (min-width: 780px) { .work-grid { column-count: 2; } }
  @media (min-width: 1180px) { .work-grid { column-count: 3; } }
  .work-item { break-inside: avoid; margin-bottom: clamp(0.8rem, 1.5vw, 1.25rem); background: #f4f4f4; }
  .work-item img, .work-item video { width: 100%; height: auto; }
  .text-grid, .service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(1.25rem,3vw,2.5rem); }
  .text-card, .service-card, .faq-item { padding-top: 1.25rem; border-top: 1px solid var(--rule); }
  .text-card h2, .service-card h3, .text-card h3, .faq-item h3 { margin-bottom: 0.6rem; color: var(--ink); font-size: 1rem; font-weight: 600; font-family: var(--font); font-style: normal; line-height: 1.3; }
  .text-card p, .text-card li, .service-card p, .faq-item p { color: var(--muted); line-height: 1.55; }
  .text-card ul { padding-left: 1.15rem; }
  .faq-copy h2 { margin-bottom: 2rem; }
  .seo-note { margin-top: clamp(2.5rem,5vw,4rem); max-width: 900px; }
  .seo-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.22em; }
  .cta { padding-block: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--rule); }
  .cta-grid { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1.5rem; align-items: end; }
  .cta-copy h2, .cta-title { max-width: 900px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2.6rem, 5.8vw, 7rem); line-height: 0.92; letter-spacing: -0.025em; }
  .cta-copy p { max-width: 620px; margin-top: 1rem; color: var(--muted); }
  .footer { padding-block: 1.5rem; color: var(--muted); font-size: 0.9rem; }
  .footer .shell { display: flex; justify-content: space-between; gap: 1rem; }
  @media (max-width: 820px) {
    .nav-inner { padding-block: 0.95rem; }
    .brand { font-size: 1.3rem; }
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 0.82rem; }
    .hero-frame, .series-head, .text-grid, .service-grid, .cta-grid { grid-template-columns: 1fr; }
    .hero-frame { height: auto; grid-template-areas: "copy" "main" "detail"; grid-template-rows: auto; gap: 1.5rem; }
    .hero-main { min-height: 0; aspect-ratio: 4 / 5; }
    .hero-side > figure { height: 260px; }
    .hero-copy { padding: 0; }
    .content-copy .media-wide, .content-copy .media { grid-template-columns: 1fr; }
    .footer .shell { flex-direction: column; }
  }
  @media (max-width: 560px) {
    .nav-links { gap: 0.85rem; }
    .nav-links a { font-size: 0.78rem; }
    .nav-links a:nth-child(3) { display: none; }
    .page-hero { padding-top: 1rem; }
    .hero-side > figure { height: 220px; }
  }
