:root {
  --ink: #131e1f;
  --deep: #0a1718;
  --teal: #0e2a2b;
  --teal-mid: #4e7b7a;
  --teal-soft: #819b91;
  --paper: #fbf9f5;
  --stone: #f4efea;
  --line: rgba(19, 30, 31, 0.16);
  --muted: #5f726c;
  --accent: #e07a5f;
  --accent-light: #f2a68d;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Arial, Helvetica, sans-serif;
  --mono: "Courier New", Courier, monospace;
  --gutter: clamp(24px, 5.55vw, 80px);
  --section-space: clamp(84px, 8.33vw, 120px);
  --content-max: 1350px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: auto;
}

body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4 { margin-top: 0; }
img, svg, iframe { max-width: 100%; }
p, li, h1, h2, h3, h4 { overflow-wrap: break-word; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgba(19, 30, 31, 0.08);
  background: rgba(251, 249, 245, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}
.site-header.is-scrolled { border-color: rgba(19,30,31,.13); background: rgba(251,249,245,.86); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 8px 30px rgba(14,42,43,.07); }

.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand__mark { font-family: var(--display); font-size: 28px; color: var(--teal); }
.brand__logo {
  width: 54px;
  height: 36px;
  flex: none;
  background: url("logo.png") -8px -4px / 160px auto no-repeat;
}
.brand__name { position: relative; font-family: var(--display); font-size: 21px; font-weight: 500; }
.brand__name::before { content: ""; position: absolute; left: calc(100% + 12px); top: 50%; width: 34px; height: 1px; background: linear-gradient(90deg, var(--teal-soft), rgba(129,155,145,.12)); }
.brand__name::after { content: ""; position: absolute; left: calc(100% + 23px); top: calc(50% - 3px); width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 14px 0 0 var(--teal-soft); }

.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.3vw, 34px); }
.site-nav a, .eyebrow, .tag, .button, .text-link, .vertical-label {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.site-nav a { color: var(--teal-mid); }
.site-nav a:not(.button) { position: relative; padding: 8px 0; font-weight: 700; }
.site-nav a:not(.button)::before { content: ""; position: absolute; top: 50%; left: -10px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0; transform: translateY(-50%) scale(.65); transition: opacity 180ms ease, transform 180ms ease; }
.site-nav a:not(.button)::after { content: ""; position: absolute; right: 0; bottom: 2px; left: 0; height: 1px; background: var(--teal-mid); transform: scaleX(0); transform-origin: left; transition: transform 180ms ease, background-color 180ms ease; }
.site-nav a:not(.button):hover::after, .site-nav a:not(.button):focus-visible::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a[aria-current="page"]::before { opacity: 1; transform: translateY(-50%) scale(1); }
.site-nav a[aria-current="page"]::after { background: var(--accent); transform: scaleX(1); }
.site-nav .button--outline { color: var(--teal); }

.section { width: min(100%, var(--content-max)); margin-inline: auto; padding: var(--section-space) var(--gutter); }
.section--paper { background: var(--paper); }
.section--stone { background: var(--stone); }
.section--dark { background: var(--deep); color: var(--paper); }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2, .display {
  margin-bottom: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.section-heading h2 { font-size: clamp(50px, 4vw, 58px); }
.display--large { font-size: clamp(52px, 5vw, 72px); }
.display--hero { font-size: clamp(64px, 7vw, 100px); max-width: 900px; }
.italic { font-style: italic; }
.accent { color: var(--accent); }
.accent-light { color: var(--accent-light); }
.body-copy { max-width: 620px; font-size: 16px; line-height: 1.65; }
.placeholder-copy { color: #3a4a47; }

.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }
.button { display: inline-flex; max-width: 100%; min-height: 44px; align-items: center; justify-content: center; padding: 14px 22px; font-weight: 700; text-align: center; }
.button--accent { border: 1px solid var(--accent); background: #e07a5f; color: var(--paper); }
.button--outline { border: 1px solid var(--teal); background: transparent; color: var(--teal); }
.text-link { margin-left: 6px; padding: 13px 0 6px; border-bottom: 1px solid var(--teal-soft); color: var(--teal-mid); }
.tag { display: inline-block; padding: 6px 11px; border: 1px solid rgba(78,123,122,.28); border-radius: 999px; background: rgba(78,123,122,.07); color: var(--teal-mid); }
.tag-row { display: flex; max-width: 100%; flex-wrap: wrap; gap: 8px; }
.tag-row .tag { max-width: 100%; overflow-wrap: anywhere; }
.project-subheading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 26px 0 14px;
  color: var(--teal);
  font: 700 11px/1.4 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.project-subheading::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--accent); }
.project-subheading::after { content: ""; width: 34px; height: 1px; flex: none; background: rgba(224,122,95,.58); }
.role-list, .explore-list { margin: 0; padding-left: 19px; color: #344643; }
.role-list li, .explore-list li { margin-bottom: 8px; padding-left: 4px; }
.role-list li::marker, .explore-list li::marker { color: var(--accent); }

.media-placeholder {
  min-height: 230px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(19, 30, 31, 0.25);
  background: repeating-linear-gradient(45deg, rgba(14, 42, 43, 0.055) 0 8px, transparent 8px 16px), #eae2d8;
  color: var(--teal-mid);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

/* 01 — Hero */
.hero { min-height: max(900px, calc(100svh - 84px)); display: grid; grid-template-columns: 1.08fr 0.92fr; padding: 0; overflow: clip; }
.hero__content { display: flex; flex-direction: column; padding: clamp(76px, 7vw, 108px) 34px clamp(54px, 5vw, 74px) var(--gutter); }
.identity-block { margin-bottom: 10px; }
.pixel-mark { width: 58px; height: 39px; display: grid; grid-template-columns: repeat(3, 17px); gap: 4px; margin-bottom: 14px; }
.pixel-mark i { display: block; border-radius: 4px; background: var(--stone); }
.pixel-mark i:nth-child(2), .pixel-mark i:nth-child(4) { background: var(--teal-soft); }
.pixel-mark i:nth-child(3) { background: var(--accent); }
.pixel-mark i:nth-child(5) { background: var(--teal); }
.hero__title { width: min-content; margin: 0 0 clamp(28px, 3vw, 40px); font-family: var(--display); font-size: clamp(88px, 8vw, 126px); font-weight: 400; line-height: 0.82; letter-spacing: -0.055em; }
.hero__title span { display: inline; }
.hero__title span:nth-of-type(2), .hero__title span:nth-of-type(3) { display: block; margin-left: 105px; }
.hero__title sup { margin-left: 12px; font: 10px/1 var(--mono); letter-spacing: 0.18em; color: var(--teal-mid); vertical-align: middle; }
.hero__intro { max-width: 540px; margin: 0 0 26px; font-size: 16px; line-height: 1.65; }
.hero .button-row { min-height: 46px; align-items: center; gap: 14px; }
.hero .text-link { display: inline-flex; min-height: 44px; align-items: center; margin-left: 8px; padding: 12px 0 5px; }
.hero__services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(44px, 5vw, 68px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero__services > div { position: relative; min-height: 118px; padding: 25px 20px 22px 0; border-right: 1px solid var(--line); }
.hero__services > div + div { padding-left: 20px; }
.hero__services > div:last-child { border-right: 0; }
.hero__services > div:not(:last-child)::after { content: ""; position: absolute; top: 25px; right: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-soft); box-shadow: 0 0 0 5px var(--paper); }
.hero__services > div:nth-child(2)::after { background: var(--accent); }
.hero__services strong { display: block; margin: 9px 0 0; font-family: var(--display); font-size: 26px; font-weight: 400; line-height: 1.1; }
.hero__services small { color: var(--muted); }
.hero__visual { position: relative; display: grid; place-items: end center; overflow: hidden; background-color: #07191a; background-image: radial-gradient(circle at 50% 82%, #708982 0, #214345 38%, #07191a 72%); }
.hero__grid-layer { position: absolute; inset: -18px; background-image: linear-gradient(rgba(129,155,145,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(129,155,145,.13) 1px, transparent 1px); background-size: 58px 58px; }
.hero__letter { position: absolute; top: -80px; left: 22px; font-family: var(--display); font-size: 500px; line-height: 1; color: rgba(251,249,245,.07); }
.hero__node-path { position: absolute; z-index: 1; inset: 110px 24px 18px 24px; width: calc(100% - 48px); height: calc(100% - 128px); overflow: visible; }
.hero__node-path path { fill: none; stroke: rgba(242,166,141,.72); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.hero__node-path circle { fill: var(--accent-light); }
.hero__visual .vertical-label { position: absolute; z-index: 2; top: 120px; right: 28px; color: var(--teal-soft); writing-mode: vertical-rl; }
.media-placeholder--dark { z-index: 1; width: 72%; min-height: 610px; margin-bottom: 0; border-color: rgba(251,249,245,.2); background: rgba(251,249,245,.025); color: rgba(251,249,245,.45); }
.character-frame {
  background-image: url("character.png");
  background-repeat: no-repeat;
}
.character-frame--hero {
  z-index: 1;
  width: min(86%, 590px);
  aspect-ratio: 0.83;
  align-self: end;
  background-size: 248% auto;
  background-position: 91% 0;
  mix-blend-mode: multiply;
  filter: brightness(1.52) contrast(1.12) saturate(1.06);
}

/* 02 — About */
.about { min-height: 790px; display: grid; grid-template-columns: 42% 58%; gap: 54px; align-items: center; }
.about__visual { position: relative; min-height: 520px; }
.media-placeholder--portrait { height: 520px; border: 0; background: transparent; }
.character-frame--about {
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1.03;
  background-size: 196% auto;
  background-position: 0 0;
}
.vertical-label--left { position: absolute; left: -24px; top: 44%; color: var(--teal-mid); writing-mode: vertical-rl; }
.about__content { padding-right: 6%; }
.about__content .display { margin-bottom: 36px; }
.principle-list { margin-top: 32px; border-top: 1px solid var(--line); }
.principle-list > div { display: grid; grid-template-columns: 56px 210px 1fr; gap: 28px; align-items: center; min-height: 70px; border-bottom: 1px solid var(--line); }
.principle-list span { font: 10px var(--mono); color: var(--teal-mid); }
.principle-list strong { font: 400 28px var(--display); }
.principle-list p { margin: 0; color: var(--muted); font-size: 13px; }

/* 03 — Capabilities */
.capability-list article { display: grid; grid-template-columns: 105px minmax(280px, 1.45fr) minmax(260px, 1fr) 20px; gap: 28px; align-items: center; min-height: 132px; border-bottom: 1px solid var(--line); }
.display-number { font: 400 58px var(--display); color: #eae2d8; }
.capability-list h3, .timeline h3, .award-list h3, .project-list h3 { margin: 0; font: 400 38px/1.12 var(--display); }
.capability-list p { margin: 0; color: var(--muted); font-size: 13px; }

/* 04 — Experience */
.timeline article { position: relative; display: grid; grid-template-columns: 2fr 1.1fr 1fr; gap: 52px; min-height: 130px; align-items: center; padding-left: 70px; border-bottom: 1px solid var(--line); }
.timeline article i { position: absolute; left: -2px; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); }
.timeline article:nth-child(2) i { background: var(--teal-mid); }
.timeline article:nth-child(3) i { background: var(--teal-soft); }
.timeline article:not(:last-child)::after { content: ""; position: absolute; left: 4px; top: 65%; width: 1px; height: 80px; background: var(--line); }
.timeline p { margin: 6px 0 0; }
.timeline article > div:not(:first-of-type) p { color: var(--accent); font-family: var(--mono); font-size: 12px; }

/* 05 — Awards */
.award-list article { display: grid; grid-template-columns: 180px 1fr auto; gap: 36px; align-items: center; min-height: 137px; border-bottom: 1px solid var(--line); }
.award-rank { font: 400 94px/.8 var(--display); color: var(--teal); }
.award-list article:nth-child(2) .award-rank { color: var(--teal-mid); }
.award-list article:nth-child(3) .award-rank { color: var(--teal-soft); }
.award-rank--accent { color: var(--accent) !important; font-style: italic; font-size: 70px; }
.award-list p { margin: 2px 0 0; }

/* 06 — Featured work */
.featured-work { padding-inline: 0; }
.featured-work > .section-heading, .flagship, .project-list { padding-inline: var(--gutter); }
.flagship { padding-top: 68px; }
.case-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 8vw, 130px); align-items: start; padding: 58px 0; border-top: 1px solid var(--line); }
.case-grid h4 { margin: 0 0 24px; font: 400 43px/1.08 var(--display); }
.case-grid--reverse { grid-template-columns: 1fr 0.55fr; }
.project-skills { max-width: 920px; padding-bottom: 34px; }
.flagship__actions { padding: 0 0 64px; }
.dashboard-case { position: relative; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); padding-top: 72px; }
.dashboard-case > div { min-width: 0; }
.dashboard-bridge { position: absolute; top: -48px; right: 8%; width: 260px; height: 82px; pointer-events: none; }
.dashboard-bridge path, .dashboard-visual__path path { fill: none; stroke: rgba(78,123,122,.7); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.dashboard-bridge circle, .dashboard-visual__path circle { fill: var(--accent); }
.media-placeholder--wide { min-height: 390px; }
.project-list { margin-top: 54px; }
.project-list article { display: grid; grid-template-columns: 72px minmax(0, .95fr) minmax(360px, 1.05fr); gap: clamp(32px, 5vw, 70px); align-items: start; min-height: 218px; padding: 64px 0; border-top: 1px solid var(--line); }
.project-list article:last-child { border-bottom: 1px solid var(--line); }
.project-list .media-placeholder { min-height: 140px; }
.project-primary, .project-support { min-width: 0; }
.project-primary > .eyebrow { margin: 10px 0 24px; }
.project-primary > .button { margin-top: 16px; }
.project-support .project-subheading:first-child { margin-top: 0; }
.project-logo { display: block; width: auto; object-fit: contain; object-position: left center; margin-bottom: 24px; }
.project-logo--assistant { height: 72px; margin: 18px 0 22px; }
.project-logo--dashboard { height: 96px; margin-bottom: 20px; }
.project-logo--lasen { height: 76px; max-width: 160px; }
.project-logo--jannah { height: 82px; max-width: 150px; }
.project-logo--rafd { height: 90px; max-width: 118px; }
.dashboard-preview {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  margin: 26px 0;
  border: 1px solid var(--line);
  background: var(--deep);
}
.dashboard-visual { display: grid; grid-template-columns: minmax(0, 1fr) clamp(140px, 24%, 210px); gap: clamp(16px, 2vw, 28px); align-items: stretch; overflow: hidden; margin: 26px 0; padding: clamp(14px, 1.6vw, 22px); border: 1px solid var(--line); background: var(--deep); }
.dashboard-visual .dashboard-preview { grid-column: 1; grid-row: 1; align-self: center; margin: 0; border: 0; }
.dashboard-character { grid-column: 2; grid-row: 1; align-self: end; width: 100%; aspect-ratio: .9; background: url("character.png") 9% 100% / 212.5% auto no-repeat; mix-blend-mode: multiply; filter: brightness(1.2) contrast(1.08) drop-shadow(0 18px 22px rgba(0,0,0,.28)); }
.dashboard-visual__path { grid-column: 2; grid-row: 1; align-self: stretch; width: 100%; height: 100%; pointer-events: none; }
.metric-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0 22px; border-block: 1px solid var(--line); }
.metric-strip span { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; color: var(--teal-mid); font: 10px/1.4 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.metric-strip span + span { border-left: 1px solid var(--line); }
.metric-strip strong { color: var(--teal); font: 400 34px/1 var(--display); letter-spacing: 0; }
.dashboard-disclaimer { max-width: 680px; margin: -10px 0 22px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.data-flow { margin-top: 26px; color: var(--teal-mid); font-family: var(--mono); font-size: 11px; line-height: 1.8; }

/* 07 — Video theatre */
.video-theatre { position: relative; overflow: hidden; }
.video-theatre__letter { position: absolute; top: -80px; right: -40px; font: 400 420px/.8 var(--display); color: rgba(251,249,245,.05); }
.section-heading--dark { position: relative; align-items: start; border-color: rgba(251,249,245,.14); }
.section-heading--dark h2 { margin: 8px 0 24px; font-size: clamp(64px, 6vw, 82px); }
.section-heading--dark .body-copy { color: rgba(251,249,245,.68); }
.section-heading--dark > .eyebrow { color: rgba(251,249,245,.48); }
.video-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.media-placeholder--video {
  position: relative;
  height: 420px;
  overflow: hidden;
  border: 1px solid rgba(242,166,141,.24);
  background-color: #101f22;
  background-image: linear-gradient(180deg, rgba(10,23,24,.2), rgba(10,23,24,.88)), radial-gradient(circle at 68% 24%, rgba(224,122,95,.22), transparent 42%), url("dashboard-logo.png");
  background-repeat: no-repeat;
  background-position: center, center, 50% 43%;
  background-size: cover, cover, 56% auto;
  box-shadow: inset 0 0 0 1px rgba(251,249,245,.035);
}
.video-grid article:nth-child(2) .media-placeholder--video { background-position: center, 25% 65%, 50% 43%; }
.video-grid article:nth-child(3) .media-placeholder--video { background-position: center, 80% 72%, 50% 43%; }
.play-marker { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--paper); background: rgba(224,122,95,.9); transform: translate(-50%, -50%); font-size: 16px; }
.watch-label { position: absolute; left: 22px; bottom: 22px; color: var(--accent-light); font: 700 10px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.video-grid article > .eyebrow { margin: 18px 0 9px; }
.video-grid h3 { margin-bottom: 10px; font: 400 30px/1.15 var(--display); }
.video-grid article > p:last-child { color: rgba(251,249,245,.58); font-size: 13px; }

/* 08 — Process */
.process-path { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 48px; }
.process-path::before { content: none; }
.process-path__svg { position: absolute; top: 0; left: 0; width: 100%; height: 30px; overflow: visible; pointer-events: none; }
.process-path__svg path { fill: none; stroke: #d8cec2; stroke-width: 2; vector-effect: non-scaling-stroke; }
.process-path article { position: relative; }
.process-path i { position: relative; z-index: 1; display: block; width: 15px; height: 15px; margin: 0 0 18px 12px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 6px var(--paper); }
.process-path article:nth-child(2) i, .process-path article:nth-child(3) i { background: var(--teal-mid); }
.process-path article:nth-child(4) i { background: var(--teal-soft); }
.process-path article:nth-child(5) i { background: var(--accent-light); }
.process-path article:nth-child(6) i { background: var(--accent); }
.process-path h3 { margin: 7px 0; font: 400 28px var(--display); }
.process-path p { margin: 0; color: var(--muted); font-size: 12px; }

/* 09 — Contact / 10 — Footer */
.contact { min-height: 760px; display: grid; grid-template-columns: 1fr .78fr; gap: 56px; padding-bottom: 0; }
.contact__content { padding-top: 12px; }
.contact__content h2 { margin: 18px 0 34px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(160px, 1fr)); gap: 18px 42px; max-width: 620px; padding-top: 22px; border-top: 1px solid var(--line); }
.contact-grid p { margin: 4px 0; font-size: 13px; }
.contact .button-row { margin-top: 24px; }
.media-placeholder--contact { min-height: 560px; border: 0; background: transparent; }
.character-frame--contact {
  width: min(100%, 410px);
  aspect-ratio: .602;
  align-self: end;
  justify-self: center;
  background-size: 313.5% auto;
  background-position: 89% 100%;
}
.site-footer { width: min(100%, var(--content-max)); min-height: 92px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 24px var(--gutter); border-top: 1px solid var(--line); background: var(--stone); }
.site-footer p { margin: 0; color: var(--teal-mid); }

/* Interaction and motion system */
.hero__title span:first-of-type, .hero__title sup[data-hero-item] { display: inline-block; }
.motion-enabled [data-hero-item] { opacity: 0; transform: translateY(18px) scale(.99); transition: opacity 680ms cubic-bezier(.2,.72,.2,1), transform 760ms cubic-bezier(.2,.72,.2,1), filter 900ms cubic-bezier(.2,.72,.2,1); }
.motion-enabled [data-hero-step="1"] { transition-delay: 60ms; }
.motion-enabled [data-hero-step="2"] { transition-delay: 120ms; }
.motion-enabled [data-hero-step="3"] { transition-delay: 190ms; }
.motion-enabled [data-hero-step="4"] { transition-delay: 260ms; }
.motion-enabled [data-hero-step="5"] { transition-delay: 330ms; }
.motion-enabled [data-hero-step="6"] { transition-delay: 410ms; }
.motion-enabled [data-hero-step="7"] { transition-delay: 480ms; }
.motion-enabled [data-hero-step="8"] { transition-delay: 550ms; }
.motion-enabled [data-hero-step="9"] { transition-delay: 630ms; }
.motion-enabled [data-hero-step="10"] { transition-delay: 710ms; }
.motion-enabled .character-frame--hero { transform: translateY(20px) scale(.98); filter: brightness(.9) contrast(1.04) saturate(.96); }
.motion-enabled .hero__grid-layer, .motion-enabled .hero__letter { opacity: 0; transition: opacity 800ms ease 650ms, transform 160ms ease-out; }
.motion-enabled .hero-entered [data-hero-item] { opacity: 1; transform: translateY(0) scale(1); }
.motion-enabled .hero-entered .character-frame--hero { opacity: 1; transform: translate3d(var(--character-x, 0), var(--character-y, 0), 0) scale(1); filter: brightness(1.52) contrast(1.12) saturate(1.06); }
.motion-enabled .hero-entered .hero__grid-layer { opacity: 1; transform: translate3d(var(--grid-x, 0), var(--grid-y, 0), 0); }
.motion-enabled .hero-entered .hero__letter { opacity: 1; transform: translate3d(var(--letter-x, 0), var(--letter-y, 0), 0); }
.motion-enabled .hero-entered .hero__node-path { opacity: 1; transform: translate3d(var(--nodes-x, 0), var(--nodes-y, 0), 0); }

.motion-enabled .reveal-item { opacity: 0; transform: translateY(24px) scale(.99); transition: opacity 620ms cubic-bezier(.2,.72,.2,1), transform 700ms cubic-bezier(.2,.72,.2,1); transition-delay: var(--reveal-delay, 0ms); }
.motion-enabled .reveal-item.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.motion-enabled .reveal-item.reveal-character { transform: translateY(18px) scale(.985); }
.motion-enabled .reveal-item.reveal-character.is-visible { transform: translateY(0) scale(1); }
.motion-enabled .reveal-item.reveal-logo { opacity: 0; transform: translate3d(0, 6px, 0) scale(.96); }
.motion-enabled .reveal-item.reveal-logo.is-visible { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }

[data-draw-path] { stroke-dasharray: 1; stroke-dashoffset: 0; }
.motion-enabled [data-draw-path] { stroke-dashoffset: 1; transition: stroke-dashoffset 1050ms cubic-bezier(.2,.72,.2,1) var(--path-delay, 180ms); }
.motion-enabled [data-path-node] { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.55); transition: opacity 320ms ease var(--node-delay, 520ms), transform 380ms cubic-bezier(.2,.72,.2,1) var(--node-delay, 520ms); }
.motion-enabled .hero-entered .hero__node-path [data-draw-path], .motion-enabled [data-draw-path].is-drawn { stroke-dashoffset: 0; }
.motion-enabled .hero-entered .hero__node-path [data-path-node], .motion-enabled [data-path-node].is-visible-node { opacity: 1; transform: scale(1); }

.button, .text-link, .project-list article, .project-list h3, .project-logo, .dashboard-preview, .media-placeholder--video, .play-marker, .watch-label, .cta-arrow { transition: transform 180ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease, filter 180ms ease; }
.cta-arrow { display: inline-block; margin-left: 4px; }
.text-link { border-bottom: 0; background-image: linear-gradient(var(--teal-soft), var(--teal-soft)); background-repeat: no-repeat; background-position: left bottom; background-size: 34% 1px; transition: color 180ms ease, background-size 220ms ease, transform 180ms ease; }
.media-placeholder--video::after { content: ""; position: absolute; z-index: 1; inset: 0; background: rgba(7,25,26,.22); opacity: .72; pointer-events: none; transition: opacity 220ms ease; }
.media-placeholder--video .play-marker, .media-placeholder--video .watch-label { z-index: 2; }
.media-placeholder--video.is-playing { transform: none !important; background: #000; }
.media-placeholder--video.is-playing::after { display: none; }
.media-placeholder--video iframe { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; border: 0; }

@media (hover: hover) and (pointer: fine) {
  .button--accent:hover, .button--accent:focus-visible { transform: translateY(-2px); background: #c96850; box-shadow: 0 8px 20px rgba(224,122,95,.2); }
  .button--outline:hover, .button--outline:focus-visible { transform: translateY(-1px); border-color: var(--accent); color: var(--accent); }
  .button:hover .cta-arrow, .button:focus-visible .cta-arrow, .text-link:hover .cta-arrow, .text-link:focus-visible .cta-arrow { transform: translateX(5px); }
  .text-link:hover, .text-link:focus-visible { color: var(--teal); background-size: 100% 1px; }
  .project-list article:hover { border-color: rgba(224,122,95,.5); box-shadow: inset 3px 0 0 rgba(224,122,95,.65); }
  .project-list article:hover h3 { transform: translateX(4px); }
  .project-list article:hover .project-logo { transform: scale(1.025); filter: saturate(1.08); }
  .dashboard-case:hover .dashboard-preview { transform: scale(1.02); }
  .media-placeholder--video:hover, .media-placeholder--video:focus-visible { transform: scale(1.02); border-color: rgba(242,166,141,.62); box-shadow: 0 18px 42px rgba(0,0,0,.22); }
  .media-placeholder--video:hover::after, .media-placeholder--video:focus-visible::after { opacity: .35; }
  .media-placeholder--video:hover .play-marker, .media-placeholder--video:focus-visible .play-marker { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 0 8px rgba(224,122,95,.12); }
  .media-placeholder--video:hover .watch-label, .media-placeholder--video:focus-visible .watch-label { color: var(--paper); transform: translateX(4px); }
}

@media (max-width: 1040px) {
  .site-nav a:nth-child(3), .site-nav a:nth-child(5), .site-nav a:nth-child(6) { display: none; }
  .brand__name::before, .brand__name::after { display: none; }
  .hero { grid-template-columns: 1fr .72fr; }
  .hero__title { font-size: clamp(76px, 10vw, 104px); }
  .character-frame--hero { width: 90%; }
  .about { grid-template-columns: .8fr 1.2fr; }
  .project-list article { grid-template-columns: 62px 1fr 1fr; }
  .project-list .media-placeholder { display: none; }
}

@media (max-width: 820px) {
  :root { --gutter: 24px; --section-space: 76px; }
  .site-header { height: 72px; gap: 16px; }
  .site-nav { gap: 0; }
  .site-nav a { display: none; }
  .site-nav a.button { display: inline-flex; padding: 10px 12px; }
  .hero { min-height: 0; grid-template-columns: 1fr; }
  .hero__content { min-height: 0; padding: 68px var(--gutter) 56px; }
  .hero__title { font-size: clamp(66px, 18vw, 94px); }
  .hero__title span:nth-of-type(2), .hero__title span:nth-of-type(3) { margin-left: 45px; }
  .hero .button-row { align-items: stretch; }
  .hero .text-link { margin-left: 0; }
  .hero__services { grid-template-columns: 1fr; margin-top: 46px; border-bottom: 0; }
  .hero__services > div { min-height: 96px; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero__services > div + div { padding-left: 0; }
  .hero__services > div:not(:last-child)::after { display: none; }
  .hero__visual { min-height: clamp(520px, 108vw, 720px); background-image: radial-gradient(circle at 50% 72%, #829991 0, #294e4d 42%, #07191a 78%); }
  .character-frame--hero { width: min(82%, 560px); filter: brightness(1.68) contrast(1.1) saturate(1.08); }
  .motion-enabled .character-frame--hero { opacity: .68; transform: translate3d(0, 20px, 0) scale(.98); filter: brightness(1.68) contrast(1.1) saturate(1.08); transition: opacity 850ms cubic-bezier(.2,.72,.2,1), transform 900ms cubic-bezier(.2,.72,.2,1); }
  .motion-enabled .hero-entered .character-frame--hero { opacity: 1; filter: brightness(1.68) contrast(1.1) saturate(1.08); }
  .about, .contact { grid-template-columns: 1fr; }
  .about__visual { order: 2; }
  .section-heading { align-items: start; flex-direction: column; }
  .principle-list > div { grid-template-columns: 36px 1fr; padding: 16px 0; }
  .principle-list p { grid-column: 2; }
  .capability-list article { grid-template-columns: 55px 1fr 18px; padding: 28px 0; }
  .capability-list article p { grid-column: 2; }
  .timeline article { grid-template-columns: 1fr; gap: 14px; padding: 28px 0 28px 36px; }
  .timeline article::after { display: none; }
  .award-list article { grid-template-columns: 86px 1fr; padding: 26px 0; }
  .award-rank { font-size: 62px; }
  .award-list .tag { grid-column: 2; justify-self: start; }
  .case-grid, .case-grid--reverse { grid-template-columns: 1fr; gap: 34px; }
  .project-list article { grid-template-columns: 1fr; gap: 20px; padding: 42px 0; }
  .project-list .display-number { line-height: .8; }
  .project-list .project-support { grid-column: 1; padding-top: 8px; }
  .metric-strip span { padding-inline: 10px; }
  .motion-enabled .reveal-item, .motion-enabled .reveal-item.reveal-character { transform: translate3d(0, 18px, 0) scale(.995); transition-duration: 600ms, 680ms; }
  .motion-enabled .reveal-item.reveal-logo { transform: translate3d(0, 6px, 0) scale(.96); transition: opacity 540ms cubic-bezier(.2,.72,.2,1), transform 560ms cubic-bezier(.2,.72,.2,1); transition-delay: 0ms; }
  .dashboard-bridge { display: none; }
  .dashboard-visual { grid-template-columns: 1fr; gap: 18px; }
  .dashboard-visual .dashboard-preview { grid-column: 1; grid-row: 1; }
  .dashboard-character { grid-column: 1; grid-row: 2; justify-self: center; width: min(260px, 72%); }
  .dashboard-visual__path { grid-column: 1; grid-row: 2; justify-self: center; width: min(300px, 88%); min-height: 260px; }
  .media-placeholder--video { height: 360px; }
  .video-grid { grid-template-columns: 1fr; gap: 46px; }
  .process-path { grid-template-columns: repeat(2, 1fr); row-gap: 42px; }
  .process-path::before { display: none; }
  .process-path__svg { display: none; }
  .character-frame--contact { width: min(76%, 410px); }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 820px) and (hover: none) {
  .button, .text-link, .media-placeholder--video, .site-nav a { touch-action: manipulation; }
  .hero [data-parallax-layer] { will-change: auto; }
}

@media (max-width: 480px) {
  .site-header { height: 68px; padding-inline: 16px; }
  .brand { gap: 8px; }
  .brand__logo { width: 48px; }
  .brand__name { font-size: 19px; }
  .site-nav .button { min-height: 44px; padding: 9px 10px; font-size: 9px; letter-spacing: .12em; }
  .hero__content { padding: 58px 20px 50px; }
  .hero__title { font-size: clamp(58px, 18.5vw, 78px); }
  .hero__title span:nth-of-type(2), .hero__title span:nth-of-type(3) { margin-left: 32px; }
  .hero__title sup { margin-left: 6px; }
  .hero .button-row { gap: 10px; }
  .hero .button { padding-inline: 14px; }
  .hero__visual { min-height: clamp(470px, 132vw, 620px); }
  .character-frame--hero { width: min(92%, 460px); }
  .section-heading h2, .display--large { font-size: clamp(42px, 13vw, 58px); }
  .display--hero { font-size: clamp(46px, 13.5vw, 64px); }
  .case-grid h4 { font-size: clamp(36px, 10.5vw, 43px); }
  .capability-list h3, .timeline h3, .award-list h3, .project-list h3 { font-size: clamp(30px, 9vw, 38px); }
  .button-row { align-items: stretch; }
  .button-row .button { width: 100%; padding-inline: 16px; }
  .tag { white-space: normal; }
  .contact-grid { grid-template-columns: 1fr; }
  .metric-strip { grid-template-columns: 1fr; }
  .metric-strip span + span { border-left: 0; border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .motion-enabled [data-hero-item],
  .motion-enabled .hero__grid-layer,
  .motion-enabled .hero__letter,
  .motion-enabled .reveal-item,
  .motion-enabled .reveal-item.reveal-character,
  .motion-enabled [data-path-node] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    transition-delay: 0ms !important;
  }
  .motion-enabled .character-frame--hero { filter: brightness(1.52) contrast(1.12) saturate(1.06) !important; }
  .motion-enabled [data-draw-path] { stroke-dashoffset: 0 !important; transition: none !important; }
  .button, .text-link, .project-list article, .project-list h3, .project-logo, .dashboard-preview, .media-placeholder--video, .play-marker, .watch-label, .cta-arrow { transition: none !important; }
  .button:hover, .button:focus-visible, .text-link:hover, .text-link:focus-visible, .project-list article:hover, .project-list article:hover h3, .project-list article:hover .project-logo, .dashboard-case:hover .dashboard-preview, .media-placeholder--video:hover, .media-placeholder--video:focus-visible, .media-placeholder--video:hover .play-marker, .media-placeholder--video:focus-visible .play-marker, .media-placeholder--video:hover .watch-label, .media-placeholder--video:focus-visible .watch-label { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 820px) {
  .motion-enabled .character-frame--hero { filter: brightness(1.68) contrast(1.1) saturate(1.08) !important; }
}
