/* dubem.dev — site styles */

:root {
  --bg: #0B0B0D;
  --surface: #141417;
  --surface-2: #1B1B1F;
  --text: #F4F3EF;
  --muted: rgba(244, 243, 239, 0.62);
  --text-2: rgba(244, 243, 239, 0.78);
  --border: rgba(244, 243, 239, 0.10);
  --border-strong: rgba(244, 243, 239, 0.22);
  --accent: #C8102E;
  --accent-hover: #E01B3B;

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* 8px spacing scale */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px;
  --s8: 64px; --s10: 80px; --s12: 96px; --s16: 128px;

  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 4px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  animation: page-in .7s var(--ease) both;
}
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; border-radius: 2px; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.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; }
.skip { position: absolute; left: var(--s2); top: -100px; z-index: 100; background: var(--text); color: var(--bg); padding: var(--s1) var(--s2); border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.skip:focus { top: var(--s2); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Shared type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 500 12px/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); flex: none; }
.section { padding: clamp(var(--s10), 10vw, var(--s16)) 0; border-top: 1px solid var(--border); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4) var(--s8); align-items: end; margin-bottom: clamp(var(--s6), 6vw, var(--s10)); }
.section-head h2 { font-size: clamp(34px, 4.6vw, 64px); margin-top: var(--s2); }
.section-head p { color: var(--muted); font-size: clamp(17px, 1.3vw, 19px); max-width: 52ch; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 var(--s4); border-radius: 999px; border: 1px solid var(--border-strong); font: 500 15px/1 var(--font-body); text-decoration: none; cursor: pointer; background: transparent; transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), color .25s; }
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost:hover { border-color: var(--text); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, backdrop-filter .3s; }
.nav.is-scrolled { background: rgba(11, 11, 13, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--border); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: var(--s4); }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 600 15px/1 var(--font-display); letter-spacing: -.01em; }
.nav-brand img { width: 40px; height: 40px; object-fit: contain; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: var(--s4); }
.nav-links a { position: relative; display: block; padding: var(--s1) 0; font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-cta { min-height: 42px; padding: 0 var(--s3); font-size: 14px; }
.menu-btn { display: none; width: 48px; height: 48px; margin-right: -12px; background: none; border: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.menu-btn span + span { margin-top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + var(--s8)) 0 var(--s10); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 85% 30%; animation: hero-img 1.6s var(--ease) both; }
@keyframes hero-img { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 30%, rgba(11,11,13,.75) 50%, rgba(11,11,13,.1) 80%), linear-gradient(0deg, var(--bg) 0%, transparent 25%); }
.hero-content { max-width: 700px; }
.hero h1 { font-size: clamp(48px, 7vw, 104px); margin: var(--s3) 0 var(--s3); letter-spacing: -0.035em; }
.hero-headline { font: 500 clamp(22px, 2.3vw, 32px)/1.25 var(--font-display); letter-spacing: -.015em; max-width: 24ch; }
.hero-copy { color: var(--text-2); font-size: clamp(18px, 1.35vw, 20px); line-height: 1.6; max-width: 50ch; margin-top: var(--s3); }
.roles { margin-top: var(--s4); display: flex; align-items: center; gap: var(--s2); padding: var(--s2) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); max-width: 560px; }
.roles-label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); flex: none; }
.roles-track { position: relative; height: 26px; overflow: hidden; flex: 1; }
.roles-track span { position: absolute; inset: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; line-height: 26px; opacity: 0; transform: translateY(100%); transition: transform .6s var(--ease), opacity .6s var(--ease); }
.roles-track span.is-current { opacity: 1; transform: none; }
.roles-track span.is-leaving { opacity: 0; transform: translateY(-100%); }
.roles-track b { color: var(--text); font-weight: 600; }
.roles-track em { font-style: normal; color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.hero-ctas .btn-primary { min-height: 56px; padding: 0 var(--s5); font-size: 16px; box-shadow: 0 10px 30px rgba(200, 16, 46, .28); }
.hero-ctas .btn-ghost { min-height: 56px; color: var(--text-2); }
.hero-social { display: flex; gap: var(--s1); margin-top: var(--s5); }
.icon-link { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.icon-link:hover { color: var(--text); border-color: var(--accent); background: rgba(200, 16, 46, .1); }

/* ---------- Stats ---------- */
.stats { border-top: 1px solid var(--border); }
.stats ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: var(--s6) var(--s4); border-left: 1px solid var(--border); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats b { display: block; font: 600 clamp(44px, 5vw, 72px)/1 var(--font-display); letter-spacing: -.04em; }
.stats b sup { font-size: .45em; color: var(--accent); vertical-align: top; position: relative; top: .2em; margin-left: 2px; }
.stats span { display: block; margin-top: var(--s2); color: var(--text-2); font-size: 15px; max-width: 22ch; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(var(--s5), 7vw, var(--s16)); align-items: center; }
.about-figure { position: relative; margin: 0; }
.about-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 30%; border-radius: var(--radius); filter: grayscale(1) contrast(1.05); transition: filter .8s var(--ease); }
.about-figure:hover img { filter: grayscale(.2) contrast(1.02); }
.about-copy h2 { font-size: clamp(32px, 3.8vw, 52px); margin: var(--s2) 0 var(--s4); max-width: 18ch; }
.about-copy p { color: var(--text-2); font-size: clamp(17px, 1.25vw, 19px); line-height: 1.7; max-width: 58ch; }
.about-link { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s5); color: var(--text); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--accent); padding-bottom: 4px; }
.about-link .icon { width: 18px; height: 18px; color: var(--accent-hover); transition: transform .25s var(--ease); }
.about-link:hover .icon { transform: translateY(2px); }
.about-copy p + p { margin-top: var(--s3); }

/* ---------- What I Do ---------- */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); }
.cap { position: relative; padding: var(--s5) var(--s4) var(--s6); border-bottom: 1px solid var(--border); border-left: 1px solid var(--border); transition: background .3s var(--ease); }
.cap:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
.cap::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width .5s var(--ease); }
.cap:nth-child(3n + 1)::before { left: 0; }
.cap:hover::before { width: 100%; }
.cap-num { font: 500 13px/1 var(--font-display); color: var(--muted); letter-spacing: .1em; }
.cap h3 { font-size: clamp(22px, 1.8vw, 26px); margin: var(--s3) 0 var(--s2); max-width: 16ch; }
.cap p { color: var(--text-2); font-size: 17px; line-height: 1.65; max-width: 40ch; }

/* ---------- Companies ---------- */

.co-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s3); }
.co { position: relative; grid-column: span 2; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.co:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.co[hidden] { display: none; }
.co--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.co--half { grid-column: span 3; }

.co-mark { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.co-mark > * { transition: transform .6s var(--ease); }
.co:hover .co-mark > * { transform: scale(1.04); }
.co-body { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s4); flex: 1; }
.co-role { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text); display: flex; align-items: center; gap: 10px; }
.co-role::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.co h3 { font-size: clamp(22px, 1.9vw, 28px); margin: var(--s1) 0; }
.co h3 a { text-decoration: none; }
.co h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.co-desc { color: var(--text-2); font-size: 16px; line-height: 1.65; }
.co-desc + .co-desc { margin-top: var(--s1); }
.co-url { margin-top: auto; padding-top: var(--s3); display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text); align-self: flex-start; border-bottom: 1px solid var(--border-strong); padding-bottom: 4px; }
.co-url .icon { width: 16px; height: 16px; color: var(--accent); transition: transform .25s var(--ease); }
.co:hover .co-url .icon { transform: translate(2px, -2px); }

/* Featured: Cr8r */
.co--featured .co-mark { aspect-ratio: auto; min-height: 380px; border-bottom: 0; border-right: 1px solid var(--border);
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(80% 90% at 30% 70%, rgba(200, 16, 46, .22), transparent 70%),
    var(--surface-2); }
.co--featured .co-body { padding: clamp(var(--s4), 4vw, var(--s8)); justify-content: center; }
.co--featured h3 { font-size: clamp(30px, 3.2vw, 44px); }
.co--featured .co-desc { font-size: 17px; }
/* Company logos (off-white, transparent; see img/logos) */
.co-logo { position: absolute; inset: 24% 20%; display: flex; align-items: center; justify-content: center; }
.co-logo img { width: 100%; height: 100%; object-fit: contain; }
.co-logo--cryptofy, .co-logo--cherokee { inset: 20% 30%; }
.co--featured .co-logo { inset: 30% 14%; }

/* ---------- Experience ---------- */
.stages { border-top: 1px solid var(--border); }
.stages li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s3); padding: var(--s4) 0; border-bottom: 1px solid var(--border); }
.stage-num { font: 500 13px/1.9 var(--font-display); color: var(--accent-hover); letter-spacing: .1em; }
.stages h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: var(--s1); }
.stage-meta { font-size: 13px; letter-spacing: .06em; color: var(--muted); margin-bottom: var(--s1); }
.stages p:not(.stage-meta) { color: var(--text-2); max-width: 60ch; line-height: 1.65; }
.stack-title { font: 500 12px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: var(--s8) 0 var(--s2); }
.stack { margin: 0; border-top: 1px solid var(--border); }
.stack div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s3); padding: var(--s2) 0; border-bottom: 1px solid var(--border); }
.stack dt { font-size: 14px; color: var(--muted); }
.stack dd { margin: 0; font-size: 16px; }
.journey { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(var(--s5), 6vw, var(--s12)); }
.journey-intro { position: sticky; top: calc(var(--nav-h) + var(--s4)); align-self: start; }
.journey-intro h2 { font-size: clamp(34px, 4.2vw, 60px); margin-top: var(--s2); }
.journey-intro p { color: var(--muted); margin-top: var(--s3); max-width: 40ch; }

/* ---------- Insights ---------- */
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.post { position: relative; display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .3s; }
.post:hover { border-color: var(--border-strong); }
.post-meta { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.post h3 { font-size: 22px; }
.post h3 a { text-decoration: none; }
.post h3 a::after { content: ""; position: absolute; inset: 0; }
.post p { color: var(--muted); font-size: 15px; }
.section-cta { margin-top: var(--s5); }

/* ---------- Videos ---------- */
.video-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--s3); }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .4s, transform .6s var(--ease); }
.video-play:hover img { opacity: 1; transform: scale(1.02); }
.video-play .play { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.video-play:hover .play { transform: scale(1.08); background: var(--accent-hover); }
.video-play .play svg { width: 28px; height: 28px; fill: #fff; stroke: none; margin-left: 4px; }
.video-caption { margin-top: var(--s3); }
.video-caption h3 { font-size: clamp(18px, 1.5vw, 22px); }
.video-caption p { color: var(--text-2); font-size: 16px; margin-top: var(--s1); max-width: 64ch; }
.video-caption .video-meta { color: var(--muted); font-size: 13px; letter-spacing: .08em; }
.channel-card { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s4); padding: var(--s5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; transition: border-color .3s; }
.channel-card:hover { border-color: var(--accent); }
.channel-card .icon { width: 40px; height: 40px; color: var(--accent); }
.channel-card h3 { font-size: clamp(24px, 2vw, 30px); }
.channel-card p { color: var(--muted); margin-top: var(--s1); }
.channel-card span { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s3); }
.quote { margin: 0; padding: var(--s5); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.quote blockquote { margin: 0; font: 400 clamp(18px, 1.5vw, 21px)/1.5 var(--font-display); }
.quote figcaption { margin-top: var(--s3); color: var(--muted); font-size: 14px; }
.quote figcaption b { color: var(--text); font-weight: 600; display: block; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(var(--s5), 7vw, var(--s16)); }
.contact-intro h2 { font-size: clamp(36px, 4.8vw, 68px); margin-top: var(--s2); }
.contact-intro > p { color: var(--text-2); margin-top: var(--s3); font-size: clamp(17px, 1.3vw, 19px); max-width: 44ch; }
.contact-intro .btn { margin-top: var(--s4); }
.contact-list { margin-top: var(--s6); border-top: 1px solid var(--border); }
.contact-list a { display: flex; align-items: center; gap: var(--s2); padding: var(--s3) 0; border-bottom: 1px solid var(--border); text-decoration: none; transition: color .2s, padding .3s var(--ease); }
.contact-list a:hover { color: var(--text); padding-left: var(--s1); }
.contact-list .icon { color: var(--accent); }
.contact-list small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-list strong { font-weight: 500; font-size: 17px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); align-content: start; padding: clamp(var(--s3), 4vw, var(--s6)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.field { display: flex; flex-direction: column; gap: var(--s1); }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 14px var(--s2); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font: 400 16px/1.4 var(--font-body); transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: var(--s5); }
.field select option { background: var(--surface); }
.field textarea { min-height: 168px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(244, 243, 239, .08); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--accent-hover); }
.field-error { min-height: 18px; font-size: 13px; color: #ff6b7f; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: var(--s3); }
.form-status { font-size: 15px; }
.form-status.is-ok { color: #8fd19e; }
.form-status.is-error { color: #ff6b7f; }
.form-status a { color: inherit; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.is-loading .spinner { display: block; }
.is-loading .icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: var(--s10) 0 var(--s5); }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: var(--s6); padding-bottom: var(--s8); }
.footer-brand img { width: 56px; height: 56px; object-fit: contain; }
.footer-brand h2 { font-size: 24px; margin-top: var(--s3); }
.footer-brand p { color: var(--muted); margin-top: var(--s1); max-width: 40ch; font-size: 15px; }
.footer h3 { font: 500 12px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3); }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px var(--s3); }
.footer-nav a, .footer-mail { text-decoration: none; color: rgba(244, 243, 239, .82); font-size: 15px; transition: color .2s; }
.footer-nav a:hover, .footer-mail:hover { color: var(--accent-hover); }
.footer-social { display: flex; gap: var(--s1); margin-top: var(--s3); }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; padding-top: var(--s4); border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, .hero-media img { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (min-width: 1680px) {
  :root { --wrap: 1520px; }
  body { font-size: 18px; }
}

@media (max-width: 1180px) {
  .menu-btn { display: flex; }
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: var(--s2) var(--gutter) var(--s4); background: var(--bg); border-bottom: 1px solid var(--border); max-height: calc(100svh - var(--nav-h)); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
  .nav-links a { padding: var(--s2) 0; font-size: 20px; font-family: var(--font-display); color: var(--text); border-bottom: 1px solid var(--border); }
  .nav-links a::after { display: none; }
  .nav-links a.is-active { color: var(--accent-hover); }
  .nav-cta { margin-left: auto; }
  .nav.is-open { background: var(--bg); border-color: var(--border); }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav.is-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .hero { flex-direction: column; align-items: stretch; justify-content: flex-end; padding-top: 50svh; }
  .hero-media { bottom: auto; height: 68svh; }
  .hero-media img { object-position: 78% 20%; }
  .hero-media::after { background: linear-gradient(0deg, var(--bg) 4%, rgba(11,11,13,.55) 45%, rgba(11,11,13,.15) 100%); }
}

@media (max-width: 1024px) {
  .section-head { grid-template-columns: 1fr; }
  .caps { grid-template-columns: repeat(2, 1fr); }
  .cap:nth-child(3n + 1) { border-left: 1px solid var(--border); padding-left: var(--s4); }
  .cap:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
  .co--featured { grid-template-columns: 1fr; }
  .co--featured .co-mark { min-height: 280px; border-right: 0; border-bottom: 1px solid var(--border); }
  .co-grid > .co:not(.co--featured) { grid-column: span 3; }
  .journey { grid-template-columns: 1fr; }
  .journey-intro { position: static; }
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
  .video-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats li:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-figure { max-width: 480px; margin-left: var(--s3); }
}

@media (max-width: 640px) {
  .stages li { grid-template-columns: 40px minmax(0, 1fr); gap: var(--s2); }
  .stack div { grid-template-columns: 1fr; gap: 4px; }
  body { font-size: 16px; }
  .nav-cta { display: none; }
  .menu-btn { margin-left: auto; }
  .hero { padding-top: 46svh; padding-bottom: var(--s8); }
  .hero-media { height: 58svh; }
  .roles { flex-direction: column; align-items: flex-start; gap: 6px; }
  .roles-track { width: 100%; height: 48px; }
  .roles-track span { white-space: normal; line-height: 24px; }
  .roles-track em { display: block; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .stats li { padding: var(--s4) var(--s2); }
  .stats li:nth-child(odd) { padding-left: 0; }
  .caps { grid-template-columns: 1fr; }
  .cap, .cap:nth-child(3n + 1) { border-left: 0; padding: var(--s4) 0; }
  .co-grid { grid-template-columns: 1fr; }
  .co-grid > .co:not(.co--featured), .co--featured { grid-column: 1 / -1; }
  .co--featured .co-mark { min-height: 200px; }
  .co-mark { aspect-ratio: 2 / 1; }
  .co h3 { font-size: 24px; }
  .co-body { padding: var(--s3); }
  .insights-grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .form-foot .btn { flex: 1 1 100%; }
  .footer-top { grid-template-columns: 1fr; }
  .about-figure { margin-left: var(--s2); }
}
