/* =========================================================
   JVM — design system
   Quiet, editorial, upmarket. One accent. Long soft easing.
   ========================================================= */

:root {
  --navy-900: #071528;
  --navy-800: #0B1F3A;
  --navy-700: #13294A;
  --navy-600: #1E3A60;
  --ink: #111820;
  --ink-soft: #4A5562;
  --ink-mute: #7C8693;
  --paper: #F6F4EF;
  --paper-2: #EDEAE3;
  --white: #FFFFFF;
  --line: #DAD6CD;
  --line-dark: rgba(255, 255, 255, .14);
  --accent: #E0702A;
  --accent-soft: #F3B386;

  --font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: 400ms;
  --t-med: 700ms;
  --t-slow: 1200ms;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --header-h: 84px;
  --section: clamp(80px, 11vw, 168px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5.6rem); font-weight: 250; }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); font-weight: 400; letter-spacing: -.01em; line-height: 1.25; }
h4 { font-size: 1.05rem; font-weight: 500; letter-spacing: 0; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.55; color: var(--ink-soft); font-weight: 300; max-width: 46ch; text-wrap: pretty; }
.muted { color: var(--ink-soft); }
strong { font-weight: 600; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 1.5px solid var(--accent);
  outline-offset: 4px;
  border-radius: 1px;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy-800); color: #fff; padding: 10px 16px;
  transition: top var(--t-fast) var(--ease);
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--dark { background: var(--navy-800); color: #E8ECF2; }
.section--dark .lede, .section--dark .muted { color: #A9B4C4; }
.section--paper2 { background: var(--paper-2); }
.section--white { background: var(--white); }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-body);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.eyebrow__num { color: var(--accent); font-variant-numeric: tabular-nums; }
.eyebrow::after { content: ""; flex: 0 0 40px; height: 1px; background: currentColor; opacity: .35; order: 1; }
.eyebrow__num + .eyebrow__txt { order: 2; }
.eyebrow--plain::after { display: none; }
.section--dark .eyebrow, .on-dark .eyebrow { color: #A9B4C4; }

/* ---------- links ---------- */
.u-link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--t-med) var(--ease);
  padding-bottom: 2px;
}
.u-link:hover, .u-link:focus-visible { background-size: 100% 1px; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.arrow-link .arw { transition: transform var(--t-fast) var(--ease); }
.arrow-link:hover .arw { transform: translateX(4px); }
.arrow-link span:first-child {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--t-med) var(--ease);
  padding-bottom: 3px;
}
.arrow-link:hover span:first-child { background-size: 100% 1px; }

.arw { display: inline-block; width: 18px; height: 10px; flex: none; }

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 17px 28px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy-800);
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  transition: color var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
  font-family: var(--font-body);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--navy-800);
  transform: scaleX(0); transform-origin: right center;
  transition: transform var(--t-med) var(--ease);
}
.btn:hover, .btn:focus-visible { color: #fff; border-color: var(--navy-800); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.btn .arw { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

.btn--solid { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.btn--solid::before { background: var(--accent); }
.btn--solid:hover { border-color: var(--accent); }

.btn--light { color: #fff; border-color: rgba(255,255,255,.55); }
.btn--light::before { background: #fff; }
.btn--light:hover, .btn--light:focus-visible { color: var(--navy-800); border-color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: #fff;
  background-color: rgba(7, 21, 40, 0);
  -webkit-backdrop-filter: blur(0) saturate(1);
  backdrop-filter: blur(0) saturate(1);
  transition:
    background-color var(--t-med) var(--ease),
    backdrop-filter var(--t-med) var(--ease),
    -webkit-backdrop-filter var(--t-med) var(--ease),
    color var(--t-med) var(--ease),
    transform var(--t-med) var(--ease),
    box-shadow var(--t-med) var(--ease);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: rgba(255,255,255,.16);
  transition: background-color var(--t-med) var(--ease);
}
/* Frosted glass. Dark tint while over a dark hero, light tint everywhere else. */
.site-header.is-glass {
  background-color: rgba(7, 21, 40, .42);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset;
}
.site-header.is-solid {
  background-color: rgba(246, 244, 239, .72);
  color: var(--ink);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: 0 8px 32px -24px rgba(7, 21, 40, .35);
}
.site-header.is-solid::after { background: rgba(17, 24, 32, .08); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-glass { background-color: rgba(7, 21, 40, .88); }
  .site-header.is-solid { background-color: rgba(246, 244, 239, .96); }
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }

.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand img { width: 40px; height: auto; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: .14em; line-height: 1; }
.brand__sub { display: block; font-family: var(--font-body); font-size: 9.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; opacity: .7; margin-top: 6px; }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); }
.nav__list { display: flex; gap: clamp(18px, 2.2vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav__list a {
  position: relative; display: inline-block; padding-block: 8px;
  font-size: 13.5px; font-weight: 450; letter-spacing: .02em;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-med) var(--ease);
}
.nav__list a:hover::after, .nav__list a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav__list a[aria-current="page"]::after { background: var(--accent); transform: scaleX(1); }
.nav .btn { padding: 12px 20px; font-size: 12px; }
.site-header:not(.is-solid) .nav .btn { color: #fff; border-color: rgba(255,255,255,.5); }
.site-header:not(.is-solid) .nav .btn::before { background: #fff; }
.site-header:not(.is-solid) .nav .btn:hover { color: var(--navy-800); }

.menu-btn {
  display: none;
  appearance: none; background: none; border: 0; color: inherit; cursor: pointer;
  width: 44px; height: 44px; padding: 0; position: relative;
}
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform var(--t-fast) var(--ease); }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 26px; left: 18px; }
.menu-btn:hover span:nth-child(2) { transform: translateX(-8px); }

@media (max-width: 480px) { .site-header .brand__sub { display: none; } }
@media (max-width: 1080px) {
  .nav__list, .nav .btn { display: none; }
  .menu-btn { display: block; }
}

/* ---------- drawer (mobile nav) ---------- */
.Drawer {
  --drawer-width: min(26em, 86dvw);
  --drawer-backdrop: 0;
  inset: 0; width: auto; height: auto; max-width: none; max-height: none;
  margin: 0; padding: 0; background: transparent; border: 0; overflow: visible;
}
.Drawer::backdrop { background: var(--navy-900); opacity: calc(var(--drawer-backdrop) * .6); overflow: hidden; overscroll-behavior: contain; }
.Drawer:modal { overscroll-behavior: contain; }
.Drawer-scroller {
  position: relative; display: grid;
  grid-template-columns: 100% var(--drawer-width);
  height: 100%;
  overflow-x: scroll; overscroll-behavior: none; scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.Drawer-scroller::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: no-preference) { .Drawer-scroller { scroll-behavior: smooth; } }
.Drawer-scroller::before { content: ""; scroll-snap-align: start; scroll-initial-target: nearest; }
.Drawer-sheet {
  display: flex; flex-direction: column;
  height: 100svh; overflow-y: auto; scrollbar-width: none;
  scroll-snap-align: end;
  background: var(--navy-800); color: #fff;
  padding: 28px 32px 40px;
}
.Drawer-sheet .drawer-close {
  align-self: flex-end; appearance: none; background: none; border: 0; color: #fff;
  width: 44px; height: 44px; cursor: pointer; position: relative;
}
.drawer-close::before, .drawer-close::after { content: ""; position: absolute; left: 11px; right: 11px; top: 50%; height: 1px; background: currentColor; }
.drawer-close::before { transform: rotate(45deg); }
.drawer-close::after { transform: rotate(-45deg); }
.Drawer-sheet ul { list-style: none; margin: 40px 0 0; padding: 0; }
.Drawer-sheet li { border-top: 1px solid var(--line-dark); }
.Drawer-sheet li:last-child { border-bottom: 1px solid var(--line-dark); }
.Drawer-sheet li a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-family: var(--font-display); font-weight: 300; font-size: 1.6rem; letter-spacing: -.01em; }
.Drawer-sheet li a[aria-current="page"] { color: var(--accent-soft); }
.Drawer-sheet .drawer-foot { margin-top: auto; padding-top: 40px; font-size: 14px; color: #A9B4C4; line-height: 1.8; }
@supports (animation-timeline: scroll()) {
  @property --drawer-backdrop { syntax: '<number>'; inherits: true; initial-value: 0; }
  .Drawer { timeline-scope: --drawer-fade; animation: fade-drawer-backdrop linear both; animation-timeline: --drawer-fade; }
  .Drawer-scroller { scroll-timeline: --drawer-fade x; }
  @keyframes fade-drawer-backdrop { 0% { --drawer-backdrop: 0 } 100% { --drawer-backdrop: 1 } }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: var(--navy-900);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform-origin: 60% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: drift 24s var(--ease) both; }
  @keyframes drift { from { transform: scale(1.12) translate3d(1.5%, 0, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,21,40,.6) 0%, rgba(7,21,40,0) 24%),
    linear-gradient(90deg, rgba(7,21,40,.78) 0%, rgba(7,21,40,.5) 38%, rgba(7,21,40,0) 68%),
    linear-gradient(0deg, rgba(7,21,40,.94) 0%, rgba(7,21,40,.6) 40%, rgba(7,21,40,.1) 72%);
}
@media (max-width: 760px) {
  .hero__shade { background: linear-gradient(0deg, rgba(7,21,40,.95) 0%, rgba(7,21,40,.75) 55%, rgba(7,21,40,.45) 100%); }
}
.hero h1, .hero .lede { text-shadow: 0 1px 24px rgba(7,21,40,.35); }
.hero__inner { position: relative; width: 100%; padding-bottom: clamp(56px, 9vh, 112px); padding-top: calc(var(--header-h) + 60px); }
.hero h1 { max-width: 14ch; margin-bottom: .45em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line > span { animation: rise 1.3s var(--ease) both; }
  .hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
  .hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
  .hero__fade { animation: fadeup 1.2s .45s var(--ease) both; }
  @keyframes rise { from { transform: translateY(105%); } }
  @keyframes fadeup { from { opacity: 0; transform: translateY(14px); } }
}
.hero__bottom { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.hero .lede { color: rgba(255,255,255,.82); max-width: 44ch; margin: 0; }
.hero__meta { display: flex; gap: 40px; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.hero__meta b { display: block; font-weight: 500; color: #fff; letter-spacing: .06em; font-size: 13px; text-transform: none; margin-top: 6px; font-family: var(--font-display); }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.hero .eyebrow { color: rgba(255,255,255,.75); }
.scroll-cue {
  position: absolute; right: var(--gutter); bottom: clamp(56px, 9vh, 112px);
  width: 1px; height: 72px; background: rgba(255,255,255,.25); overflow: hidden;
}
.scroll-cue::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 24px; background: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue::after { animation: cue 2.6s var(--ease) infinite; }
  @keyframes cue { from { transform: translateY(-24px); } to { transform: translateY(72px); } }
}
@media (max-width: 760px) {
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__meta { gap: 24px; flex-wrap: wrap; }
  .scroll-cue { display: none; }
}

/* page hero (inner pages) */
.page-hero { position: relative; min-height: min(78svh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--navy-900); }
.page-hero .hero__inner { padding-bottom: clamp(48px, 7vw, 96px); }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.8rem); max-width: 16ch; }
.page-hero .lede { color: rgba(255,255,255,.8); }
.page-hero--plain {
  min-height: min(64svh, 600px);
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(224,112,42,.10) 0%, rgba(224,112,42,0) 45%),
    radial-gradient(90% 80% at 10% 100%, rgba(30,58,96,.9) 0%, rgba(11,31,58,0) 60%),
    var(--navy-800);
}
.page-hero--plain::before {
  content: ""; position: absolute; right: var(--gutter); top: calc(50% + var(--header-h) / 2); width: min(40vw, 480px, 60svh); aspect-ratio: 240 / 216;
  translate: 0 -50%;
  background: url("../img/logo-mark.png") center / contain no-repeat;
  opacity: .06; filter: grayscale(1) brightness(2.2);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .page-hero--plain::before { animation: mark-in 2.4s var(--ease) both; }
  @keyframes mark-in { from { opacity: 0; rotate: -8deg; } }
}
.crumbs { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 28px; display: flex; gap: 10px; }
.crumbs a:hover { color: #fff; }

/* ---------- grid helpers ---------- */
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 40px); }
.col-intro { grid-column: 1 / span 4; }
.col-body { grid-column: 6 / span 7; }
@media (max-width: 900px) {
  .grid-12 { grid-template-columns: 1fr; row-gap: 24px; }
  .grid-12 > * { grid-column: 1 / -1 !important; }
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 112px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

/* ---------- framed images & hover ---------- */
.frame { display: block; position: relative; overflow: hidden; background: var(--navy-700); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease), filter var(--t-slow) var(--ease); filter: saturate(.92) brightness(.97); }
.frame--43 { aspect-ratio: 4 / 3; }
.frame--32 { aspect-ratio: 3 / 2; }
.frame--169 { aspect-ratio: 16 / 9; }
.frame--45 { aspect-ratio: 4 / 5; }
.frame--21 { aspect-ratio: 21 / 9; }
.frame--product { background: #fff; }
.frame--product img { object-fit: contain; padding: 8%; filter: none; }
.frame figcaption, .caption { font-size: 13px; color: var(--ink-mute); margin-top: 14px; letter-spacing: .01em; }

.hover-zoom:hover .frame img,
.hover-zoom:focus-visible .frame img,
.frame.hover-zoom:hover img { transform: scale(1.04); filter: saturate(1) brightness(1.03); }

/* ---------- key figures ---------- */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.figure { padding: 40px 32px 8px 0; border-right: 1px solid var(--line-dark); margin-right: 32px; }
.figure:last-child { border-right: 0; margin-right: 0; }
.figure__num { font-family: var(--font-display); font-weight: 200; font-size: clamp(2.6rem, 4.6vw, 4.4rem); letter-spacing: -.03em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.figure__num small { font-size: .42em; font-weight: 300; letter-spacing: 0; margin-left: .18em; color: var(--accent-soft); }
.figure p { margin-top: 18px; font-size: 14.5px; color: #A9B4C4; max-width: 24ch; }
.section:not(.section--dark) .figures { border-color: var(--line); }
.section:not(.section--dark) .figure { border-color: var(--line); }
.section:not(.section--dark) .figure__num { color: var(--navy-800); }
.section:not(.section--dark) .figure__num small { color: var(--accent); }
.section:not(.section--dark) .figure p { color: var(--ink-soft); }
@media (max-width: 900px) {
  .figures { grid-template-columns: 1fr 1fr; }
  .figure { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line-dark); padding-right: 16px; }
}
@media (max-width: 480px) { .figures { grid-template-columns: 1fr; } }

/* ---------- division cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 40px); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .cards, .cards--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards, .cards--2, .cards--4 { grid-template-columns: 1fr; } }

.card { display: block; color: inherit; }
.card__body { padding-top: 26px; position: relative; }
.card__body::before {
  content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 1px; background: var(--accent);
  transition: width var(--t-slow) var(--ease);
}
.card:hover .card__body::before, .card:focus-visible .card__body::before { width: 100%; }
.card__kicker { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 10px; display: block; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 18px; }
.card .more {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--navy-800);
  opacity: .55; transform: translateX(-4px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.card:hover .more, .card:focus-visible .more { opacity: 1; transform: none; }
.section--dark .card p { color: #A9B4C4; }
.section--dark .card .more { color: #fff; }
.section--dark .card__kicker { color: #8794A6; }

/* ---------- numbered services ---------- */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.services li {
  position: relative; padding: 40px 36px 44px 0; margin-right: 36px;
  border-bottom: 1px solid var(--line);
}
.services li::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--accent);
  transition: width var(--t-slow) var(--ease);
}
.services li:hover::before { width: 100%; }
.services .num { font-family: var(--font-display); font-size: 14px; color: var(--accent); letter-spacing: .08em; font-variant-numeric: tabular-nums; display: block; margin-bottom: 28px; }
.services h3 { margin-bottom: 14px; }
.services p { color: var(--ink-soft); font-size: 15.5px; margin: 0; max-width: 36ch; }
@media (max-width: 1000px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } .services li { margin-right: 0; padding-right: 0; } }

/* long-form service rows */
.svc-row { display: grid; grid-template-columns: 120px 1fr 1.3fr; gap: clamp(20px, 4vw, 64px); padding-block: 56px; border-top: 1px solid var(--line); position: relative; }
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: var(--accent); transition: width var(--t-slow) var(--ease); }
.svc-row:hover::before { width: 100%; }
.svc-row .num { font-family: var(--font-display); font-weight: 200; font-size: 3rem; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.svc-row h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 300; }
.svc-row ul { margin: 18px 0 0; padding: 0; list-style: none; }
.svc-row ul li { padding: 8px 0 8px 22px; position: relative; color: var(--ink-soft); font-size: 15.5px; }
.svc-row ul li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 1px; background: var(--accent); }
@media (max-width: 900px) { .svc-row { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- case study ---------- */
.case { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 6vw, 112px); align-items: start; }
.case__facts { position: sticky; top: calc(var(--header-h) + 24px); }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 4px; }
.facts dd { margin: 0; font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; color: var(--ink); }
.section--dark .facts, .section--dark .facts div { border-color: var(--line-dark); }
.section--dark .facts dd { color: #fff; }
.case__text h3 { margin-top: 48px; font-size: 13px; font-family: var(--font-body); font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.case__text p { color: var(--ink-soft); max-width: 62ch; }
@media (max-width: 1000px) { .case { grid-template-columns: 1fr; } .case__facts { position: static; } }

.quote {
  font-family: var(--font-display); font-weight: 250; font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.25; letter-spacing: -.015em; max-width: 30ch; margin: 0; text-wrap: balance;
}
.quote::before { content: ""; display: block; width: 40px; height: 1px; background: var(--accent); margin-bottom: 32px; }

/* ---------- references table ---------- */
.ref-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ref-table caption { text-align: left; }
.ref-table th { text-align: left; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute); padding: 0 24px 18px 0; border-bottom: 1px solid var(--ink); }
.ref-table td { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); transition: background-color var(--t-med) var(--ease); }
.ref-table td:first-child { color: var(--ink); font-weight: 500; position: relative; padding-left: 20px; }
.ref-table td:first-child::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: var(--line); transition: background-color var(--t-med) var(--ease); }
.ref-table tbody tr:hover td { background: rgba(11,31,58,.035); }
.ref-table tbody tr:hover td:first-child::before { background: var(--accent); }
.ref-table td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 820px) {
  .ref-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ref-table, .ref-table tbody, .ref-table tr, .ref-table td { display: block; }
  .ref-table tr { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .ref-table td { border: 0; padding: 4px 0 4px 20px; white-space: normal !important; }
  .ref-table td:first-child::before { top: 6px; bottom: auto; height: calc(100% - 12px); }
  .ref-table td[data-label]:not(:first-child)::before { content: attr(data-label) " · "; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); }
}

/* ---------- clients strip ---------- */
.clients { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.clients li { list-style: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 28px; min-height: 140px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; transition: background-color var(--t-med) var(--ease); }
.clients li:hover { background: var(--white); }
.clients b { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; letter-spacing: -.005em; color: var(--ink); line-height: 1.3; }
.clients span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); }
.clients { padding: 0; margin: 0; }
.clients.principals { grid-template-columns: repeat(3, 1fr); }
.clients.principals b { font-size: 1.5rem; font-weight: 300; }
@media (max-width: 900px) { .clients, .clients.principals { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .clients.principals { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .clients { grid-template-columns: 1fr; } }

/* ---------- gallery & lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1.2vw, 16px); }
.gallery button { appearance: none; border: 0; padding: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.gallery .frame { aspect-ratio: 4 / 3; }
.gallery button:hover img, .gallery button:focus-visible img { transform: scale(1.04); filter: saturate(1) brightness(1.03); }
.gallery--wide > :first-child { grid-column: span 2; grid-row: span 2; }
.gallery--wide > :first-child .frame { aspect-ratio: auto; height: 100%; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery--wide > :first-child { grid-column: 1 / -1; grid-row: auto; } .gallery--wide > :first-child .frame { aspect-ratio: 4/3; } }

.lightbox {
  width: min(1200px, 92vw); max-width: none; max-height: 92svh; padding: 0; border: 0; background: transparent; color: #fff; overflow: visible;
}
.lightbox::backdrop { background: rgba(7, 21, 40, .92); overflow: hidden; overscroll-behavior: contain; }
.lightbox:modal { overscroll-behavior: contain; }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 80svh; object-fit: contain; background: #000; transition: opacity 500ms var(--ease); }
.lightbox img.is-fading { opacity: 0; }
.lightbox .lb-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 20px; margin-top: 16px; font-size: 14px; color: #C6CEDA; }
.lightbox__ctrl { position: absolute; top: -56px; right: 0; display: flex; gap: 8px; }
.lightbox__ctrl button { appearance: none; background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; width: 44px; height: 44px; cursor: pointer; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); display: grid; place-items: center; }
.lightbox__ctrl button:hover { border-color: #fff; background: rgba(255,255,255,.08); }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lb-in 600ms var(--ease); }
  .lightbox[open]::backdrop { animation: lb-fade 600ms var(--ease); }
  @keyframes lb-in { from { opacity: 0; transform: translateY(10px); } }
  @keyframes lb-fade { from { opacity: 0; } }
}

/* ---------- equipment ---------- */
.eq-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 22px 0; border-block: 1px solid var(--line); position: sticky; top: 0; z-index: 5; background: var(--paper); transition: top var(--t-med) var(--ease); }
body.header-shown .eq-nav { top: var(--header-h); }
.eq-nav a { font-size: 13px; letter-spacing: .06em; color: var(--ink-soft); white-space: nowrap; }
@media (max-width: 760px) {
  .eq-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 16px 0; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .eq-nav::-webkit-scrollbar { display: none; }
}
.eq-nav a:hover, .eq-nav a.is-active { color: var(--ink); }
.eq-family { padding-top: clamp(64px, 8vw, 120px); }
.eq-family__head { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 6vw, 96px); align-items: end; margin-bottom: 48px; }
.eq-family__head p { color: var(--ink-soft); margin: 0; max-width: 56ch; }
@media (max-width: 900px) { .eq-family__head { grid-template-columns: 1fr; } }
.eq-item .frame { aspect-ratio: 16 / 10; background: #fff; }
.eq-item h3 { font-size: 1.25rem; }
.eq-item p { font-size: 15px; }
.eq-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 40px; }
.eq-list li { break-inside: avoid; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15.5px; display: flex; justify-content: space-between; gap: 16px; }
.eq-list li span { color: var(--ink-mute); font-size: 13px; text-align: right; }
@media (max-width: 640px) { .eq-list { columns: 1; } }

/* ---------- process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; gap: 0; }
.step { padding: 36px 32px 0 0; border-top: 1px solid var(--line-dark); position: relative; }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font-family: var(--font-display); font-size: 14px; color: var(--accent); margin-bottom: 40px; letter-spacing: .08em; }
.step::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.step h3 { font-size: 1.35rem; }
.step p { font-size: 15px; color: #A9B4C4; }
.section:not(.section--dark) .step { border-color: var(--line); }
.section:not(.section--dark) .step p { color: var(--ink-soft); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- coast map ---------- */
.coast-map svg { width: 100%; height: auto; display: block; }
.coast-map .pin circle.pulse { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .coast-map .pin circle.pulse { animation: pulse 3.6s var(--ease) infinite; }
  @keyframes pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
}

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; color: #fff; background: var(--navy-900); }
.cta__media { position: absolute; inset: 0; opacity: .35; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,21,40,.95) 0%, rgba(7,21,40,.6) 60%, rgba(7,21,40,.3) 100%); z-index: 1; }
.cta .wrap { position: relative; z-index: 2; }
.cta h2 { max-width: 18ch; }
.cta .lede { color: rgba(255,255,255,.78); }
.cta__row { display: flex; gap: 48px; flex-wrap: wrap; align-items: end; justify-content: space-between; }
.cta__contact { display: grid; gap: 6px; font-size: 15px; color: rgba(255,255,255,.85); }
.cta__contact > a { font-family: var(--font-display); font-size: 1.5rem; font-weight: 300; color: #fff; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 7vw, 120px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-block { padding: 28px 0; border-top: 1px solid var(--line); }
.contact-block h4 { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 12px; font-family: var(--font-body); }
.contact-block p, .contact-block a { font-family: var(--font-display); font-size: 1.25rem; font-weight: 300; line-height: 1.5; margin: 0; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.form .full { grid-column: 1 / -1; }
.field { position: relative; }
.field label { display: block; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  padding: 10px 0 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0;
  transition: border-color var(--t-med) var(--ease);
  appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--navy-800); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; }
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237C8693'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right 4px center no-repeat; }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: #B4442A; }
.form-note { font-size: 13px; color: var(--ink-mute); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.map { aspect-ratio: 16 / 7; width: 100%; border: 0; filter: grayscale(1) contrast(.95); transition: filter var(--t-slow) var(--ease); display: block; }
.map:hover { filter: grayscale(.2); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #A9B4C4; font-size: 14.5px; padding-top: clamp(72px, 9vw, 128px); }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 72px; }
.footer-top h4 { font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: #fff; margin-bottom: 22px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-brand p { max-width: 32ch; margin-top: 24px; }
.footer-brand .brand { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 28px; border-top: 1px solid var(--line-dark); font-size: 12.5px; letter-spacing: .04em; color: #7D8A9C; }
.site-footer .credit { margin: -12px 0 0; padding-bottom: 24px; text-align: right; font-size: 11px; letter-spacing: .04em; color: #4A5668; }
.site-footer .credit a { color: #5A6679; transition: color var(--t-med) var(--ease), background-size var(--t-med) var(--ease); }
.site-footer .credit a:hover { color: #A9B4C4; }
@media (max-width: 640px) { .site-footer .credit { text-align: left; margin-top: -8px; } }
.iso { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #C6CEDA; border: 1px solid var(--line-dark); padding: 10px 14px; margin-top: 24px; }
.iso::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- misc ---------- */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-l { margin-top: clamp(40px, 5vw, 80px); }
.mt-xl { margin-top: clamp(64px, 8vw, 120px); }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 72px); }
.head-row h2 { margin: 0; max-width: 18ch; }
.tag { display: inline-block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--line); color: var(--ink-soft); }
.section--dark .tag { border-color: var(--line-dark); color: #C6CEDA; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.note { font-size: 13px; color: var(--ink-mute); }

/* =========================================================
   Scroll reveals — run once, progressive enhancement.
   Only hidden when JS is present and motion is allowed.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0; transform: translateY(14px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  /* clip the child, not the observed element: a fully clipped target reads as zero-area to IntersectionObserver */
  .js [data-reveal="mask"] { opacity: 1; transform: none; background: transparent; }
  .js [data-reveal="mask"] img {
    clip-path: inset(0 0 100% 0);
    transform: scale(1.08);
    transition: clip-path 1.4s var(--ease), transform 1.8s var(--ease), filter var(--t-slow) var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-reveal="mask"].is-in img { clip-path: inset(0 0 0 0); transform: none; }
  .js [data-reveal="mask"].frame--product.is-in, .js .frame--product[data-reveal="mask"] { background: #fff; }
  .js .hover-zoom:hover [data-reveal="mask"].is-in img,
  .js [data-reveal="mask"].is-in.hover-zoom:hover img { transform: scale(1.04); transition: transform var(--t-slow) var(--ease), filter var(--t-slow) var(--ease); }
}
