:root {
  --black: #080808;
  --white: #ffffff;
  --soft: #f4f4f2;
  --line: #d9d9d5;
  --muted: #74777d;
  --max: 1440px;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--black);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 0 var(--pad);
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, min-height 180ms ease;
}

.site-header.scrolled { min-height: 70px; border-color: var(--line); }

.brand {
  display: inline-flex;
  align-items: baseline;
}
.brand img { width: 132px; height: auto; }

.site-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.7rem); }
.site-nav a { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.site-nav a:not(.nav-cta) { position: relative; }
.site-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { padding: 0.85rem 1.1rem; color: var(--white); background: var(--black); }
.menu-button { display: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.58fr);
  min-height: 100svh;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(8.5rem, 14vh, 11rem) var(--pad) clamp(4rem, 8vh, 7rem);
  overflow: hidden;
}

.hero-copy { align-self: center; }
.eyebrow {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.19em;
}

.hero h1, .section h2, .contact h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.86;
  text-transform: uppercase;
}

.hero h1 { font-size: clamp(4.25rem, 7vw, 7rem); }
.hero h1 span { display: inline-block; margin-left: 0.02em; }
.hero-lead {
  max-width: 690px;
  margin: clamp(2rem, 4vw, 3.5rem) 0 0;
  color: #555960;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.35;
}

.hero-actions { display: flex; align-items: center; gap: 1.8rem; margin-top: 2.5rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-width: 220px;
  padding: 1rem 1.15rem;
  border: 1px solid var(--black);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-3px); }
.button-dark { color: var(--white); background: var(--black); }
.text-link { padding: 0.7rem 0; border-bottom: 1px solid var(--black); font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.focus-visual { display: grid; place-items: center; min-height: 520px; }
.focus-frame { position: relative; width: min(100%, 430px); aspect-ratio: 1; }
.focus-ring { position: absolute; inset: 12%; border: 1px solid var(--line); border-radius: 50%; }
.ring-two { inset: 31%; border-color: #bcbdb8; }
.focus-dot { position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--black); transform: translate(-50%, -50%); }
.focus-frame::before, .focus-frame::after { content: ''; position: absolute; background: var(--line); }
.focus-frame::before { top: 50%; left: 0; right: 0; height: 1px; }
.focus-frame::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.focus-corner { position: absolute; width: 46px; height: 46px; z-index: 1; }
.corner-a { top: 0; left: 0; border-top: 3px solid; border-left: 3px solid; }
.corner-b { top: 0; right: 0; border-top: 3px solid; border-right: 3px solid; }
.corner-c { bottom: 0; left: 0; border-bottom: 3px solid; border-left: 3px solid; }
.corner-d { right: 0; bottom: 0; border-right: 3px solid; border-bottom: 3px solid; }
.focus-frame p { position: absolute; right: 0; bottom: 11%; z-index: 2; margin: 0; padding: 0.75rem 0 0.75rem 1rem; background: var(--white); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em; text-align: right; }

.marquee { overflow: hidden; border-top: 1px solid var(--black); border-bottom: 1px solid var(--black); }
.marquee-track { display: flex; align-items: center; width: max-content; padding: 1rem 0; animation: marquee 28s linear infinite; }
.marquee span { padding: 0 2rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.18em; }
.marquee i { width: 5px; height: 5px; border-radius: 50%; background: var(--black); }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { max-width: var(--max); margin: 0 auto; padding: clamp(6rem, 11vw, 10rem) var(--pad); }
.section-intro { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4rem; align-items: end; margin-bottom: clamp(4rem, 7vw, 7rem); }
.section-intro .eyebrow { grid-column: 1 / -1; }
.section h2, .contact h2 { font-size: clamp(3.15rem, 7vw, 7.5rem); }
.section-intro > p:last-child { max-width: 540px; margin: 0 0 0.25rem; color: var(--muted); font-size: 1.15rem; }

.service-list { border-top: 1px solid var(--black); }
.service-card {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: start;
  padding: 2.7rem 0;
  border-bottom: 1px solid var(--line);
}
.service-number { color: var(--muted); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; }
.service-card h3 { margin: 0; font-size: clamp(1.7rem, 3.2vw, 3.4rem); letter-spacing: -0.05em; line-height: 1; }
.service-card p { max-width: 620px; margin: 1rem 0 0; color: var(--muted); font-size: 1.05rem; }
.service-mark { font-size: 1.75rem; }

.method { max-width: none; color: var(--white); background: var(--black); }
.method-head, .steps { width: calc(100% - var(--pad) - var(--pad)); max-width: calc(var(--max) - var(--pad) - var(--pad)); margin-inline: auto; }
.method-head { display: grid; grid-template-columns: 1.3fr 0.7fr; align-items: end; gap: 4rem; }
.method-head .eyebrow { grid-column: 1 / -1; }
.method-head > p:last-child { max-width: 480px; margin: 0 0 0.5rem; color: #b8bac0; font-size: 1.15rem; }
.eyebrow-light { color: #a6a8ae; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(5rem, 8vw, 8rem); padding: 0; border-top: 1px solid #444; list-style: none; }
.steps li { min-height: 270px; padding: 1.5rem 1.5rem 2rem 0; border-right: 1px solid #444; }
.steps li + li { padding-left: 1.5rem; }
.steps li:last-child { border-right: 0; }
.steps span { color: #8f9197; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.15em; }
.steps h3 { margin: 3.5rem 0 1rem; font-size: 1.65rem; letter-spacing: -0.04em; }
.steps p { max-width: 230px; margin: 0; color: #aeb0b5; }

.case-heading { display: grid; grid-template-columns: 1.4fr 0.6fr; align-items: end; gap: 4rem; margin-bottom: clamp(4rem, 8vw, 7rem); }
.case-heading > p { max-width: 490px; margin: 0 0 0.5rem; color: var(--muted); font-size: 1.15rem; }
.case-grid { display: grid; gap: clamp(3.5rem, 7vw, 6.5rem); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--black); border-bottom: 1px solid var(--black); }
.metric { min-width: 0; padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1rem, 2.5vw, 2.5rem); }
.metric:first-child { padding-left: 0; }
.metric:last-of-type { padding-right: 0; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric-main { padding-top: clamp(1.5rem, 3vw, 2.4rem); }
.metric p { margin: 0 0 1rem; color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.metric strong { display: block; font-size: clamp(3.2rem, 6.3vw, 6.4rem); letter-spacing: -0.075em; line-height: 0.9; white-space: nowrap; }
.metric-main strong { font-size: clamp(3.2rem, 6.3vw, 6.4rem); }
.metric span { display: block; margin-top: 1.15rem; font-size: 0.88rem; font-weight: 800; }
.metric-note { grid-column: 1 / -1; margin: 0; padding: 1rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; }
.proof { margin: 0; }
.proof-media { display: block; padding: clamp(0.35rem, 0.8vw, 0.75rem); border: 1px solid var(--line); background: var(--soft); overflow: hidden; transition: border-color 180ms ease, transform 180ms ease; }
.proof-media:hover, .proof-media:focus-visible { border-color: var(--black); transform: translateY(-3px); }
.proof img { width: 100%; height: auto; background: var(--white); }
.proof figcaption { display: flex; justify-content: space-between; gap: 2rem; margin-top: 1rem; color: var(--muted); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.proof-link { flex: 0 0 auto; color: var(--black); border-bottom: 1px solid currentColor; }
.proof-swipe-hint { display: none; }

.about { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(3rem, 9vw, 9rem); border-top: 1px solid var(--line); }
.about-copy { align-self: end; padding-bottom: 0.5rem; }
.about-copy p { color: var(--muted); font-size: 1.08rem; }
.about-copy .about-lead { color: var(--black); font-size: clamp(1.4rem, 2.3vw, 2rem); line-height: 1.25; letter-spacing: -0.03em; }

.contact { padding: clamp(6rem, 10vw, 10rem) var(--pad) 2rem; color: var(--white); background: var(--black); }
.contact-inner { max-width: var(--max); margin: 0 auto; }
.contact h2 { max-width: 1100px; }
.contact-inner > p:not(.eyebrow) { max-width: 620px; margin: 2.5rem 0; color: #b8bac0; font-size: 1.15rem; }
.contact-actions { display: flex; align-items: center; gap: 1.8rem; }
.button-light { color: var(--black); border-color: var(--white); background: var(--white); }
.contact-secondary { padding: 0.7rem 0; border-bottom: 1px solid #696969; color: #d2d3d6; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-secondary:hover, .contact-secondary:focus-visible { color: var(--white); border-color: var(--white); }
.contact-handle { display: block; max-width: var(--max); margin: clamp(5rem, 10vw, 9rem) auto 0; padding-top: 1.5rem; border-top: 1px solid #414141; color: #b8bac0; font-size: clamp(1.1rem, 2.5vw, 2rem); }
.contact-handle:hover, .contact-handle:focus-visible { color: var(--white); }

.site-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 3rem; padding: 2rem var(--pad); color: var(--white); background: var(--black); }
.site-footer p { margin: 0; color: #8f9197; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-brand img { width: 190px; filter: invert(1); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  html { scroll-padding-top: 72px; }
  .site-header { min-height: 72px; }
  .menu-button { display: inline-flex; align-items: center; gap: 0.8rem; border: 0; color: var(--black); background: transparent; cursor: pointer; }
  .menu-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
  .menu-lines { display: grid; gap: 5px; width: 25px; }
  .menu-lines i { display: block; height: 2px; background: currentColor; transition: transform 180ms ease; }
  .menu-button[aria-expanded='true'] .menu-lines i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-button[aria-expanded='true'] .menu-lines i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 72px 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 2.5rem var(--pad); background: var(--white); overflow-y: auto; transform: translateX(100%); transition: transform 260ms ease; }
  .site-nav.open { transform: translateX(0); }
  .site-nav a { width: 100%; padding: 1.2rem 0; border-bottom: 1px solid var(--line); font-size: 1.3rem; }
  .site-nav .nav-cta { margin-top: 1.5rem; padding: 1rem; color: var(--white); border: 0; background: var(--black); }
  .hero { grid-template-columns: 1fr; padding-top: 9rem; }
  .focus-visual { min-height: auto; margin-top: 5rem; }
  .focus-frame { width: min(82vw, 430px); }
  .section-intro, .method-head, .case-heading, .about { grid-template-columns: 1fr; }
  .section-intro > p:last-child, .method-head > p:last-child, .case-heading > p { margin-top: 2rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2) { border-right: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid #444; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 68px; }
  body { overflow-x: hidden; }
  .site-header { min-height: 68px; padding-inline: 1.1rem; }
  .site-header.scrolled { min-height: 68px; }
  .brand img { width: 116px; }
  .menu-button { min-width: 44px; min-height: 44px; justify-content: flex-end; }
  .menu-label { font-size: 0.68rem; }
  .site-nav { inset: 68px 0 0; padding: 1.5rem 1.25rem 2rem; }
  .site-nav a { padding: 1.05rem 0; font-size: 1.12rem; }
  .site-nav .nav-cta { margin-top: 1.25rem; padding: 1rem; }

  .hero { min-height: auto; padding-top: 7.5rem; padding-bottom: 4.5rem; }
  .eyebrow { margin-bottom: 1.25rem; font-size: 0.69rem; line-height: 1.5; }
  .hero h1 { max-width: 100%; font-size: clamp(2.5rem, 11vw, 3.5rem); line-height: 0.92; letter-spacing: -0.065em; }
  .hero-lead { margin-top: 1.75rem; font-size: 1.08rem; line-height: 1.45; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 1rem; margin-top: 1.75rem; }
  .contact-actions { align-items: stretch; flex-direction: column; gap: 1rem; }
  .button { width: 100%; min-width: 0; min-height: 52px; }
  .text-link { align-self: flex-start; }
  .focus-visual { margin-top: 3rem; }
  .focus-frame { width: min(76vw, 300px); }
  .focus-corner { width: 34px; height: 34px; }
  .focus-frame p { bottom: 8%; max-width: 78%; font-size: 0.56rem; line-height: 1.45; }

  .section { padding-top: 4.75rem; padding-bottom: 4.75rem; }
  .section h2, .contact h2 { font-size: clamp(2.35rem, 10.8vw, 3.6rem); line-height: 0.94; letter-spacing: -0.065em; }
  .section-intro { margin-bottom: 3rem; }
  .section-intro > p:last-child, .method-head > p:last-child, .case-heading > p { margin-top: 1.5rem; font-size: 1.02rem; line-height: 1.5; }
  .service-card { grid-template-columns: 34px minmax(0, 1fr); gap: 0.75rem; padding: 1.75rem 0; }
  .service-mark { display: none; }
  .service-card h3 { font-size: 1.5rem; line-height: 1.08; }
  .service-card p { margin-top: 0.75rem; font-size: 1rem; line-height: 1.5; }

  .method-head { gap: 0; }
  .steps { grid-template-columns: 1fr; margin-top: 3.5rem; }
  .steps li, .steps li + li { min-height: 0; padding: 1.5rem 0 2rem; border-right: 0; border-top: 1px solid #444; }
  .steps h3 { margin: 1.5rem 0 0.6rem; }

  .case-heading { gap: 0; margin-bottom: 3rem; }
  .case-grid { gap: 3rem; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric, .metric:first-child { padding: 1.35rem 0; }
  .metric-main { grid-column: 1 / -1; }
  .metric:nth-of-type(2), .metric:nth-of-type(3) { padding-top: 1.35rem; border-top: 1px solid var(--line); }
  .metric:nth-of-type(2) { padding-right: 1rem; }
  .metric:nth-of-type(3) { padding-left: 1rem; border-left: 1px solid var(--line); }
  .metric p { min-height: 2.4em; margin-bottom: 0.65rem; font-size: 0.65rem; line-height: 1.35; }
  .metric-main p { min-height: 0; }
  .metric strong { font-size: clamp(2.55rem, 12vw, 3.25rem); }
  .metric-main strong { font-size: clamp(3.75rem, 18vw, 4.75rem); }
  .metric span { margin-top: 0.7rem; font-size: 0.78rem; }
  .metric-note { grid-column: 1 / -1; padding: 0.85rem 0; font-size: 0.7rem; line-height: 1.45; }
  .proof-media { overflow-x: auto; padding: 0.35rem; scroll-snap-type: x proximity; touch-action: pan-x; -webkit-overflow-scrolling: touch; }
  .proof img { width: 720px; max-width: none; scroll-snap-align: start; }
  .proof figcaption { align-items: flex-start; flex-direction: column; gap: 0.75rem; }
  .proof figcaption > span { line-height: 1.5; }
  .proof-swipe-hint { display: block; color: var(--black); }

  .about { gap: 2.5rem; }
  .about-copy p { font-size: 1rem; line-height: 1.55; }
  .about-copy .about-lead { font-size: 1.35rem; line-height: 1.35; }

  .contact { padding-top: 4.75rem; }
  .contact-inner > p:not(.eyebrow) { margin: 1.75rem 0; font-size: 1.05rem; line-height: 1.5; }
  .contact-secondary { align-self: flex-start; line-height: 1.5; }
  .contact-handle { margin-top: 4rem; }
  .site-footer { grid-template-columns: 1fr; gap: 1rem; }
  .site-footer p { line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}
