/* Kataya Group — site stylesheet
   Direction D (Corporate Benchmark) with A's photography-led treatment.
   Layout concept: a disciplined 12-column corporate frame; photography carries the warmth. */

:root {
  /* Color */
  --ink: #1E2A2D;          /* Kataya charcoal: text, primary buttons */
  --deep: #0F1A1C;         /* utility bar, footer */
  --paper: #FFFFFF;        /* main ground */
  --mist: #F2F4F4;         /* cool section ground */
  --linen: #F5F3EF;        /* warm section ground for photography */
  --rule: #D5DBDC;         /* hairlines */
  --muted: #475457;        /* secondary text (7:1 on white) */
  --soft: #5B6668;         /* captions (5.6:1 on white) */
  --accent: #2E6F73;       /* teal, used sparingly */
  --accent-on-dark: #8FC3C6;
  --on-dark: #FFFFFF;
  --on-dark-muted: #C9D3D4;
  --warn-bg: #FFF4E0; --warn-ink: #7A4A00; --warn-rule: #E8C98A;

  /* Type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Scale */
  --t-hero: clamp(3rem, 6.6vw, 6.5rem);
  --t-h1: clamp(2.5rem, 4.6vw, 4.5rem);
  --t-h2: clamp(2rem, 3.4vw, 3.25rem);
  --t-h3: clamp(1.4rem, 1.8vw, 1.7rem);
  --t-lead: clamp(1.1rem, 1.3vw, 1.25rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  --t-label: 0.78rem;

  --max: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--on-dark); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

/* Frame */
.wrap {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.bg-mist { background: var(--mist); }
.bg-linen { background: var(--linen); }
.bg-ink { background: var(--ink); color: var(--on-dark); }

/* Type helpers */
.eyebrow { font-size: var(--t-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0; }
.bg-ink .eyebrow { color: var(--accent-on-dark); }
.serif { font-family: var(--serif); }
.h1 { font-family: var(--serif); font-weight: 500; font-size: var(--t-h1); line-height: 1.04; letter-spacing: -0.02em; margin: 0; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: var(--t-h2); line-height: 1.08; letter-spacing: -0.015em; margin: 0; }
.h3 { font-family: var(--serif); font-weight: 500; font-size: var(--t-h3); line-height: 1.2; margin: 0; }
.lead { font-size: var(--t-lead); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.bg-ink .lead { color: var(--on-dark-muted); }
.prose { display: grid; gap: 1.1em; max-width: 66ch; color: #2B383B; }
.prose strong { color: var(--ink); font-weight: 600; }
.label { font-size: var(--t-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.section-head { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head > * { flex: 1 1 380px; min-width: 0; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px;
  font: 500 0.95rem/1 var(--sans); text-decoration: none; border: 1px solid var(--ink);
  background: var(--ink); color: var(--on-dark); transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-dark); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr, .link-arrow:hover .arr { transform: translateX(4px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; padding: 12px 0; font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow .arr { display: inline-block; transition: transform .25s var(--ease); }

/* Utility bar + header */
.utility { background: var(--deep); color: var(--on-dark-muted); font-size: 13px; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.utility a { color: var(--on-dark-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; }
.utility a:hover { color: var(--on-dark); }
.utility img { height: 11px; width: auto; }

.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--rule); transition: box-shadow .3s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15,26,28,.07); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; transition: min-height .3s var(--ease); }
.site-header.is-scrolled .wrap { min-height: 64px; }
.brand { display: flex; align-items: center; }
.brand img { height: 42px; width: auto; transition: height .3s var(--ease); }
.site-header.is-scrolled .brand img { height: 34px; }
.nav { display: flex; gap: 4px; }
.nav a { position: relative; text-decoration: none; font-weight: 500; font-size: 15px; padding: 12px 16px; }
.nav a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.menu-btn { display: none; width: 48px; height: 48px; border: 1px solid var(--rule); background: var(--paper); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .3s var(--ease), background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 16px max(var(--gutter), env(safe-area-inset-left, 0px)); box-shadow: 0 16px 32px rgba(15,26,28,.08); }
  .nav[data-open="false"] { display: none; }
  .nav a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--mist); }
  .nav a::after { left: 0; right: auto; width: 32px; bottom: 8px; }
  .utility .hide-sm { display: none; }
}

/* Page header (inner pages) */
.page-head { background: var(--mist); }
.page-head .wrap { padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; }
.page-head .wrap > * { flex: 1 1 420px; min-width: 0; }
.crumbs { font-size: var(--t-small); color: var(--soft); margin-bottom: 18px; }
.crumbs a { color: var(--soft); text-decoration: none; }

/* Images */
.ph { position: relative; overflow: hidden; background: var(--mist); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
a:hover .ph img, .ph.zoom:hover img { transform: scale(1.04); }
.ph-tag { position: absolute; left: 12px; bottom: 12px; font: 600 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(15,26,28,.62); padding: 6px 8px; pointer-events: none; }
.ph-tag--real { background: rgba(46,111,115,.85); }
/* For launch: add class "hide-placeholder-tags" to <body> once real photography replaces placeholders. */
.hide-placeholder-tags .ph-tag { display: none; }

/* Home hero */
.hero { background: var(--mist); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 4vw, 64px); align-items: center; padding-block: clamp(48px, 6vw, 88px) clamp(120px, 12vw, 160px); }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: var(--t-hero); line-height: .98; letter-spacing: -0.025em; margin: 18px 0 28px; }
.flowline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: var(--t-small); color: var(--muted); margin: 0; padding: 0; list-style: none; }
.flowline li { display: flex; align-items: center; gap: 14px; }
.flowline li + li::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.hero-mosaic { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: clamp(360px, 42vw, 580px); }
.hero-mosaic .ph:first-child { grid-row: span 2; }
.hero-mosaic .dryp-mark { position: absolute; top: 20px; left: 20px; height: 20px; width: auto; z-index: 1; filter: drop-shadow(0 1px 6px rgba(0,0,0,.45)); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-bottom: 120px; }
  .hero-mosaic { height: 420px; }
}
@media (max-width: 520px) { .hero-mosaic { height: 340px; grid-template-columns: 1.2fr 1fr; } }

/* At a glance */
.glance { position: relative; margin-top: -88px; }
.glance-card { background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 16px 40px rgba(15,26,28,.08); }
.glance-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 20px 28px; border-bottom: 1px solid var(--rule); }
.glance-top h2 { margin: 0; font-size: var(--t-label); letter-spacing: .12em; text-transform: uppercase; }
.glance-top span { font-size: 12px; color: var(--soft); }
.metrics { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.metric { flex: 1 1 150px; padding: 24px 24px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.metric:last-child { border-right: 0; }
.metric--wide { flex: 1.6 1 230px; }
.metric b { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 1.95vw, 1.8rem); line-height: 1.12; }
.metric--mid { flex: 1.3 1 200px; }
.metric span { font-size: var(--t-small); color: var(--muted); }
@media (max-width: 900px) {
  .metric { border-bottom: 1px solid var(--rule); }
  .metric--wide { flex-basis: 100%; border-right: 0; }
  .metric:last-child { border-bottom: 0; }
}

/* Ownership structure */
.structure { background: var(--mist); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; align-items: center; margin-bottom: clamp(48px, 6vw, 72px); }
.structure .node { background: var(--paper); border: 1px solid var(--rule); padding: 16px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.structure .node--top { background: var(--ink); border-color: var(--ink); color: var(--on-dark-muted); padding: 18px 32px; }
.structure .node--top img { height: 40px; width: auto; }
.structure .node--dryp { border-color: var(--ink); }
.structure .node--dryp img { height: 24px; width: auto; }
.structure .node small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.structure .node--top small { color: var(--on-dark-muted); }
.structure .node strong { font-weight: 500; font-size: 15px; }
.v-line { width: 1px; height: 28px; background: var(--accent); transform-origin: top; }
.h-line { width: min(560px, 74%); height: 1px; background: var(--accent); transform-origin: center; }
.branches { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 48px; width: min(780px, 100%); }
.branches > div { flex: 1 1 260px; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.branches .node { width: 100%; }
@media (max-width: 640px) { .h-line { display: none; } .branches { gap: 12px; } }

/* Two-brand columns */
.brands { display: flex; flex-wrap: wrap; gap: 48px 56px; }
.brand-col { flex: 1 1 420px; min-width: 0; border-top: 3px solid var(--ink); padding-top: 32px; display: flex; flex-direction: column; gap: 22px; }
.brand-col .logo { height: 40px; width: auto; align-self: flex-start; }
.brand-col .logo--k { height: 48px; margin-top: -4px; }
.brand-col .prose { font-size: 1.05rem; }
.shared-line { margin-top: clamp(56px, 6vw, 80px); padding-block: 36px; border-block: 1px solid var(--rule); text-align: center; font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.3; }

/* Value chain rows (home) */
.chain { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); counter-reset: none; }
.chain li { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.25fr) 260px; gap: 24px 40px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--rule); position: relative; }
.chain .num { font-family: var(--serif); font-size: 2.6rem; color: var(--accent); line-height: 1; }
.chain h3 { margin: 0 0 6px; font-size: var(--t-label); letter-spacing: .12em; font-weight: 600; }
.chain .sub { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; }
.chain p { color: #2B383B; }
.chain .ph { height: 170px; }
@media (max-width: 1000px) { .chain li { grid-template-columns: 56px minmax(0, 1fr); } .chain li > p, .chain li > .ph { grid-column: 2; } .chain .ph { height: 220px; } }

/* Statement band */
.statement .wrap { display: flex; flex-wrap: wrap; gap: 32px 80px; align-items: center; padding-block: clamp(80px, 9vw, 112px); }
.statement p:first-child { flex: 1.3 1 460px; min-width: 0; font-family: var(--serif); font-size: clamp(2.25rem, 4.4vw, 4rem); line-height: 1.05; letter-spacing: -0.015em; }
.statement p:last-child { flex: 1 1 320px; min-width: 0; font-size: var(--t-lead); line-height: 1.6; color: var(--on-dark-muted); border-left: 2px solid var(--accent-on-dark); padding-left: 28px; }

/* Split media + text */
.split { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split > .ph { flex: 1 1 420px; min-height: 520px; align-self: stretch; }
.split > .text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.pull { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.45; }
.triad { font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 500; padding-block: 18px; border-block: 1px solid var(--rule); }
@media (max-width: 640px) { .split > .ph { min-height: 320px; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.card { text-decoration: none; display: flex; flex-direction: column; border: 1px solid var(--rule); background: var(--paper); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { border-color: var(--ink); box-shadow: 0 14px 32px rgba(15,26,28,.08); color: inherit; }
.card .ph { aspect-ratio: 4 / 3; }
.card .body { padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 10px; }
.card .cat { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.card .title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.card p { font-size: 15.5px; color: #2B383B; }
.more-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 32px; font-size: 15px; color: #2B383B; }

/* Careers banner */
.banner { display: flex; flex-wrap: wrap; background: var(--mist); }
.banner .ph { flex: 1 1 400px; min-height: 380px; }
.banner .text { flex: 1.2 1 460px; min-width: 0; padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }

/* Footer */
.site-footer { background: var(--deep); color: #A9B6B8; }
.site-footer .wrap { padding-block: 72px 32px; display: flex; flex-direction: column; gap: 56px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.foot-cols > * { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.foot-cols .logos { flex: 1.4 1 260px; gap: 20px; }
.foot-cols .logos img:first-child { height: 52px; width: auto; align-self: flex-start; }
.foot-cols .logos img:last-child { height: 22px; width: auto; align-self: flex-start; }
.foot-cols h2 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.foot-cols a { color: var(--on-dark-muted); text-decoration: none; padding: 6px 0; font-size: 14px; }
.foot-cols a:hover { color: #fff; }
.foot-base { border-top: 1px solid #2A3A3D; padding-top: 24px; font-size: 13px; }

/* About: sticky section tabs */
.subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 64px); z-index: 40; background: var(--paper); border-bottom: 1px solid var(--rule); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { white-space: nowrap; text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--muted); padding: 16px 14px 14px; border-bottom: 2px solid transparent; transition: color .2s, border-color .3s var(--ease); }
.subnav a.is-active { color: var(--ink); border-color: var(--accent); }
[id] { scroll-margin-top: 140px; }

/* About: intro + video */
.intro-grid { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.intro-grid > .text { flex: 1.2 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.video-card { flex: 1 1 380px; min-width: 0; display: block; text-decoration: none; position: relative; aspect-ratio: 16 / 10; max-width: 100%; background: var(--ink); overflow: hidden; color: var(--on-dark); }
.video-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform 1.2s var(--ease), opacity .4s; }
.video-card:hover img { transform: scale(1.04); opacity: .45; }
.video-card .play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(255,255,255,.95); display: flex; align-items: center; justify-content: center; transition: transform .3s var(--ease); }
.video-card:hover .play { transform: scale(1.08); }
.video-card .play::after { content: ""; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--ink); margin-left: 5px; }
.video-card .cap { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.video-card .cap img { position: static; width: auto; height: 26px; opacity: 1; }
.logo-video { flex: 1 1 380px; min-width: 0; margin: 0; aspect-ratio: 16 / 10; background: #221D1F; overflow: hidden; }
.logo-video video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* About: timeline */
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 44px; }
.timeline .track, .timeline .fill { position: absolute; top: 10px; left: 0; right: 0; height: 2px; background: var(--rule); }
.timeline .fill { background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 1)); }
.tl-item { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tl-item::before { content: ""; position: absolute; top: -40px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); transition: background .4s; }
.tl-item.is-on::before { background: var(--accent); }
.tl-year { font-family: var(--serif); font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1; color: var(--accent); }
.tl-item h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.4rem; }
.tl-item p { color: #2B383B; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; padding-top: 0; padding-left: 36px; gap: 40px; }
  .timeline .track, .timeline .fill { top: 0; bottom: 0; left: 6px; right: auto; width: 2px; height: auto; }
  .timeline .fill { transform-origin: top; transform: scaleY(var(--p, 1)); }
  .tl-item::before { top: 6px; left: -36px; }
}

/* About: operating model */
.model { position: relative; display: flex; flex-direction: column; }
.model-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 32px 64px; padding-block: 48px; border-top: 1px solid var(--rule); position: relative; }
.model-row:last-child { border-bottom: 1px solid var(--rule); }
.model-row .side { display: flex; flex-direction: column; gap: 14px; }
.model-row .step { display: flex; align-items: center; gap: 14px; font-size: var(--t-label); font-weight: 600; letter-spacing: .12em; color: var(--accent); }
.model-row .step i { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--accent); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-family: var(--serif); font-size: 1rem; letter-spacing: 0; }
.model-row h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.05; letter-spacing: .02em; }
.model-row .subt { font-size: 1.05rem; color: var(--muted); }
.model-row .ph { height: 220px; margin-top: 10px; }
.caps { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.caps li { font-size: 13.5px; padding: 7px 12px; background: var(--mist); }
.caps-label { font-size: var(--t-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin-top: 6px; }
.model-link { position: absolute; left: 17px; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--accent), var(--accent)) 0 0 / 1px var(--lp, 100%) no-repeat; pointer-events: none; display: none; }
@media (max-width: 860px) { .model-row { grid-template-columns: 1fr; } }

/* Green figures callout */
.figure-note { background: var(--paper); border-left: 3px solid var(--accent); padding: 22px 24px; display: grid; gap: 14px; }
.figure-note .nums { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.figure-note .nums div { display: flex; flex-direction: column; }
.figure-note .nums b { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; line-height: 1.1; }
.figure-note .nums span { font-size: 13px; color: var(--muted); }
.source { font-size: 13px; color: var(--soft); }

/* DRYP showcase */
.dryp-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; }
.dryp-grid .ph:nth-child(1) { grid-column: span 7; aspect-ratio: 4 / 3; }
.dryp-grid .ph:nth-child(2) { grid-column: span 5; aspect-ratio: auto; }
.dryp-grid .ph:nth-child(3) { grid-column: span 4; aspect-ratio: 3 / 4; }
.dryp-grid .ph:nth-child(4) { grid-column: span 8; aspect-ratio: auto; }
@media (max-width: 760px) { .dryp-grid .ph { grid-column: span 12 !important; aspect-ratio: 4 / 3 !important; } }
.dryp-body { display: flex; flex-wrap: wrap; gap: 32px 64px; margin-top: clamp(40px, 5vw, 64px); }
.dryp-body > div:first-child { flex: .8 1 300px; display: flex; flex-direction: column; gap: 18px; }
.dryp-body > .prose { flex: 1.2 1 440px; min-width: 0; }
.dryp-body .logo { height: 54px; width: auto; align-self: flex-start; }
.sign-off { font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.2; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--rule); }

/* Footprint */
.regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.region { padding: 32px 32px 36px 0; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--rule); }
.region + .region { padding-left: 32px; border-left: 1px solid var(--rule); }
.region .role { display: inline-flex; align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; }
.role--ops { background: var(--ink); color: #fff; }
.role--src { background: var(--accent); color: #fff; }
.role--exp { border: 1px solid var(--ink); }
.region h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.75rem; }
@media (max-width: 860px) { .region + .region { padding-left: 0; border-left: 0; } }

/* Projects */
.p-index { overflow-x: auto; border-top: 2px solid var(--ink); }
.p-index table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.p-index th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); padding: 14px 16px; }
.p-index th:first-child, .p-index td:first-child { padding-left: 0; width: 48px; }
.p-index td { padding: 18px 16px; border-top: 1px solid var(--rule); vertical-align: top; }
.p-index td a { text-decoration: none; font-weight: 500; }
.p-index tr { transition: background .2s; }
.p-index tbody tr:hover { background: var(--mist); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-rule); font-size: 13px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #B7791F; }

.project { padding-block: var(--section); border-top: 1px solid var(--rule); }
.project-head { display: flex; flex-wrap: wrap; gap: 20px 64px; align-items: flex-end; margin-bottom: clamp(32px, 4vw, 48px); }
.project-head > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.project-head .deck { font-family: var(--serif); font-style: italic; font-size: 1.5rem; }
.p-num { font-family: var(--serif); font-size: 1rem; color: var(--soft); }
.project-body { display: flex; flex-wrap: wrap; gap: 40px 64px; margin-top: clamp(32px, 4vw, 48px); }
.project-body > .prose, .project-body > .narrative { flex: 1.4 1 480px; min-width: 0; }
.project-body > aside { flex: 1 1 280px; min-width: 0; align-self: flex-start; border-top: 2px solid var(--ink); }
.facts > div { padding: 16px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.facts dd { margin: 0; font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 6px 10px; background: var(--mist); font-size: 13.5px; }
.narrative { display: grid; gap: 28px; }
.narrative section { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 32px; }
.narrative h3 { margin: 4px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 640px) { .narrative section { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: clamp(420px, 46vw, 640px); }
.gallery .ph:first-child { grid-row: span 2; }
.gallery--three { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr; height: clamp(260px, 30vw, 420px); }
.gallery--three .ph:first-child { grid-row: auto; }
@media (max-width: 700px) { .gallery, .gallery--three { grid-template-columns: 1fr; grid-template-rows: none; height: auto; } .gallery .ph { aspect-ratio: 4 / 3; grid-row: auto !important; } }
.wide-ph { aspect-ratio: 21 / 9; max-width: 100%; }
@media (max-width: 700px) { .wide-ph { aspect-ratio: 4 / 3; } }
.figure-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--soft); margin-top: 12px; }

/* Flow diagrams */
.flow { background: var(--mist); padding: clamp(20px, 3vw, 32px); }
.flow-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--soft); margin-bottom: 18px; }
.flow-head b { font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.flow-row { display: flex; flex-wrap: wrap; align-items: stretch; }
.flow-row .arrow { flex: 0 0 36px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 18px; }
.flow-col { flex: 1 1 170px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fnode { flex: 1; background: var(--paper); border: 1px solid var(--rule); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; transition: border-color .4s var(--ease), background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease); }
.fnode b { font-weight: 600; font-size: 15px; }
.fnode span { font-size: 13px; color: var(--muted); }
.fnode--core { background: var(--ink); border-color: var(--ink); color: #fff; }
.fnode--core span { color: var(--on-dark-muted); }
.fnode--path { border-style: dashed; justify-content: center; }
.fnode.is-lit { border-color: var(--accent); background: #E4F0F0; color: var(--ink); transform: translateY(-2px); }
.fnode--core.is-lit { background: var(--accent); border-color: var(--accent); color: #fff; }
.fnode--core.is-lit span { color: #E4F0F0; }
.flow-ctrl { margin-top: 14px; display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--soft); }
.flow-ctrl button { min-height: 36px; padding: 0 14px; border: 1px solid var(--rule); background: var(--paper); font: 500 13px var(--sans); color: var(--ink); cursor: pointer; }
@media (max-width: 760px) { .flow-row { flex-direction: column; } .flow-row .arrow { flex-basis: 28px; transform: rotate(90deg); } }
.bof { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--soft); margin-top: 12px; }
.bof i { flex: 1; height: 1px; background: var(--accent); }

/* Careers */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
@media (max-width: 760px) { .areas { grid-template-columns: 1fr; } }
.area { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; transition: background .3s var(--ease); }
.area h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1.25; }
.area p { font-size: 15.5px; color: #2B383B; }
.note-small { font-size: 13.5px; color: var(--soft); }
.apply { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: center; }
.apply > div { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.mailbox { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mailbox code { font-family: var(--sans); font-size: 1.05rem; font-weight: 500; padding: 12px 16px; background: var(--paper); border: 1px solid var(--rule); user-select: all; }
.copy-btn { min-height: 48px; padding: 0 16px; border: 1px solid var(--rule); background: var(--paper); font: 500 14px var(--sans); color: var(--ink); cursor: pointer; }

/* Motion helpers (JS adds animations; content is visible at rest) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
[data-parallax] img { transition: none; transform: scale(1.08); }

.model-row .step-title { display: flex; align-items: center; gap: 16px; }
.model-row .step-title i { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-family: var(--serif); font-size: 1.1rem; }
.dryp-grid .ph img { position: absolute; inset: 0; }
.project-body > aside .ph { max-width: 560px; }

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.apply-form { margin-top: clamp(24px, 3vw, 40px); border: 1px solid var(--rule); background: var(--paper); scroll-margin-top: 96px; }
.apply-form iframe { display: block; width: 100%; height: min(1100px, 88vh); min-height: 640px; border: 0; }
.apply-form--page { margin-top: 0; }
.apply-form--page iframe { height: max(1400px, 92vh); }
.banner--apply .ph { min-height: 300px; }
.banner--apply .ph img { position: absolute; inset: 0; object-position: 40% 55%; }
.banner--apply .text > div { flex: 0 0 auto; }
