/* ============================================================
   TDC — Creative Firm
   Editorial · white + near-black · Gros Ventre / Inter
   Palette:  White #FFFFFF   Dark #1A1C1C
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Gros Ventre';
  src: url('fonts/GrosVentre-Thin.woff2') format('woff2');
  font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gros Ventre';
  src: url('fonts/GrosVentre-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gros Ventre';
  src: url('fonts/GrosVentre-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gros Ventre';
  src: url('fonts/GrosVentre-Semibold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gros Ventre';
  src: url('fonts/GrosVentre-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- Design tokens (editable via dashboard) ---------- */
:root {
  --white:      #ffffff;
  --ink:        #1a1c1c;   /* dominant dark grey */
  --bg:         #ffffff;   /* page background */
  --dark:       #1a1c1c;   /* dark sections */
  --dark-2:     #232525;   /* raised surface on dark */
  --muted:      #5f6160;   /* body text on light */
  --muted-2:    #9a9d9c;   /* faint text on light */
  --muted-dark: #a6a9a8;   /* body text on dark */
  --line:       #e7e7e4;   /* hairline on light */
  --line-dark:  rgba(255,255,255,.14);
  --panel:      #f4f4f2;   /* light grey panel */

  --font-display: 'Gros Ventre', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --maxw: 1280px;
  --pad: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(.22,.61,.24,1);
  --radius: 6px;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 9vw, 130px); }
.center { text-align: center; }
.muted { color: var(--muted); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow.is-centered { justify-content: center; }

/* ---------- Type scale ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -.005em;
}
h1.display { font-size: clamp(42px, 6.4vw, 90px); }
h2.display { font-size: clamp(34px, 5.4vw, 76px); }
h3.display { font-size: clamp(26px, 3.4vw, 46px); }

.lead {
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 400; color: var(--muted); max-width: 60ch;
}

/* Heavy uppercase banner (CREATIVE DIRECTION) */
.banner {
  font-family: var(--font-body);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -.02em; line-height: .92;
  font-size: clamp(48px, 12.5vw, 190px);
}

/* Uppercase section label (ARCHITECTURAL IDENTITY / STRUCTURED CHAOS) */
.utitle {
  font-family: var(--font-body);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: -.01em; line-height: 1.02;
  font-size: clamp(28px, 4.4vw, 62px);
}

.subhead {
  font-family: var(--font-body);
  font-weight: 600; font-size: clamp(19px, 1.7vw, 24px);
  letter-spacing: -.01em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 15px 28px; border-radius: var(--radius);
  border: 1px solid var(--ink); background: var(--ink); color: var(--white);
  cursor: pointer; transition: all .3s var(--ease);
}
.btn .arw { transition: transform .3s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn:hover { background: #000; border-color: #000; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.textlink .arw { transition: transform .3s var(--ease); }
.textlink:hover .arw { transform: translateX(4px); }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.nav__left { justify-self: start; }
.nav__right { justify-self: end; }
.logo { justify-self: center; display: inline-flex; align-items: center; line-height: 0; }
.brand-mark {
  display: inline-block; vertical-align: middle;
  height: 24px; aspect-ratio: 2699.8 / 1369.7;
  background: currentColor;
  -webkit-mask: url('tdc-logo.svg') center / contain no-repeat;
  mask: url('tdc-logo.svg') center / contain no-repeat;
}
.menu-overlay__top .brand-mark { height: 30px; }
.brand-mark--xl { display: block; height: clamp(54px, 12vw, 150px); }
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 0; cursor: pointer; padding: 6px 0;
  font-weight: 600; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
}
.menu-btn__bars { display: inline-flex; flex-direction: column; gap: 4px; }
.menu-btn__bars span { width: 22px; height: 2px; background: var(--ink); transition: .3s var(--ease); }
.nav__cta { padding: 12px 22px; }

/* Fullscreen menu overlay */
.menu-overlay {
  position: fixed; inset: 0; z-index: 70;
  background: var(--ink); color: var(--white);
  display: flex; flex-direction: column;
  padding: clamp(24px,5vw,64px);
  transform: translateY(-100%); transition: transform .5s var(--ease);
  visibility: hidden;
}
.menu-overlay.open { transform: none; visibility: visible; }
.menu-overlay__top { display: flex; justify-content: space-between; align-items: center; }
.menu-overlay__top .logo { color: var(--white); justify-self: auto; }
.menu-close { background: none; border: 0; color: var(--white); font-size: 30px; cursor: pointer; line-height: 1; }
.menu-links { margin: auto 0; display: flex; flex-direction: column; gap: clamp(6px, 1.4vw, 16px); }
.menu-links a {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(38px, 7vw, 92px); line-height: 1.05; color: var(--white);
  transition: color .3s var(--ease), padding-left .3s var(--ease); width: max-content;
}
.menu-links a:hover { color: var(--muted-dark); padding-left: 16px; }
.menu-foot { display: flex; gap: 26px; flex-wrap: wrap; color: var(--muted-dark); font-size: 13px; letter-spacing: .04em; }
.menu-foot a { color: var(--muted-dark); }
.menu-foot a:hover { color: var(--white); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 110px); padding-bottom: clamp(20px,3vw,40px); }
.hero__head { max-width: 880px; margin: 0 auto; }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 { margin-bottom: 28px; }
.hero__sub { max-width: 58ch; margin: 0 auto 34px; }
.hero__figure { margin-top: clamp(40px, 6vw, 80px); }

/* two-up intro rows */
.introrow {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px); align-items: center;
}
.introrow + .introrow { margin-top: clamp(40px, 6vw, 90px); }
.introrow__text .subhead { margin-bottom: 18px; }

/* ---------- Media / images ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--panel); }
.media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.media:hover > img { transform: scale(1.04); }
.media > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media__tag {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.9);
}
.ar-portrait { aspect-ratio: 4/5; }
.ar-wide { aspect-ratio: 16/9; }
.ar-square { aspect-ratio: 1/1; }
.ar-tall { aspect-ratio: 3/4; }

/* ---------- Marquee (moving services text) ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: clamp(16px,2vw,26px); }
.marquee__track { display: inline-flex; align-items: center; white-space: nowrap; will-change: transform; animation: marquee 30s linear infinite; }
.marquee__track > span { font-family: var(--font-display); font-size: clamp(24px,3.2vw,46px); display: inline-flex; align-items: center; color: var(--ink); }
.marquee .sep { display: inline-block; margin: 0 clamp(22px,3vw,46px); font-size: .5em; vertical-align: middle; opacity: .55; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.dark .marquee { border-color: var(--line-dark); }
.dark .marquee__track > span { color: var(--white); }

/* ---------- Clients ---------- */
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.client { display: flex; align-items: center; justify-content: center; text-align: center; min-height: clamp(96px,11vw,140px); padding: 20px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: clamp(17px,1.7vw,24px); color: var(--muted); transition: color .3s var(--ease), background .3s var(--ease); }
.client:hover { color: var(--ink); background: var(--panel); }

/* ---------- Big banner ---------- */
.bannerbar { padding-block: clamp(48px, 8vw, 120px); text-align: center; }
.bannerbar .eyebrow { margin-bottom: 26px; }

/* ---------- Dark sections ---------- */
.dark { background: var(--dark); color: var(--white); }
.dark .muted { color: var(--muted-dark); }
.dark .eyebrow { color: var(--muted-dark); }

.feature {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.feature__body .eyebrow { margin-bottom: 22px; }
.feature__body .utitle { margin-bottom: 22px; }
.feature__body .lead { color: var(--muted-dark); margin-bottom: 30px; }

/* two cards */
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 30px); margin-top: clamp(40px,5vw,64px); }

/* ---------- Structured chaos: accordion ---------- */
.chaos { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.chaos__intro .utitle { margin-bottom: 24px; }
.chaos__intro .lead { color: var(--muted-dark); }
.acc { border-top: 1px solid var(--line-dark); }
.acc__item { border-bottom: 1px solid var(--line-dark); }
.acc__head {
  width: 100%; background: none; border: 0; color: var(--white); cursor: pointer;
  display: grid; grid-template-columns: 64px 1fr 32px; align-items: center; gap: 16px;
  padding: clamp(20px,2.4vw,30px) 0; text-align: left;
}
.acc__no { font-family: var(--font-display); font-size: 20px; color: var(--muted-dark); }
.acc__title { font-family: var(--font-body); font-weight: 600; font-size: clamp(18px,1.7vw,23px); letter-spacing: -.01em; }
.acc__icon { position: relative; width: 18px; height: 18px; justify-self: end; }
.acc__icon::before, .acc__icon::after { content:""; position:absolute; background: var(--white); transition: transform .3s var(--ease); }
.acc__icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.acc__icon::after { left: 8px; top: 0; width: 2px; height: 18px; }
.acc__item.open .acc__icon::after { transform: scaleY(0); }
.acc__panel { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.acc__panel-inner { padding: 0 0 26px 80px; color: var(--muted-dark); max-width: 52ch; }
.acc__item.open .acc__panel { max-height: 240px; }

/* ---------- Works grid ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(30px,4vw,52px); }
.grid { display: grid; gap: clamp(18px, 2.6vw, 34px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.work { display: block; }
.work__media { margin-bottom: 16px; }
.work__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.work__title { font-family: var(--font-display); font-size: clamp(20px,1.9vw,26px); }
.work__meta { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.work:hover .work__title { opacity: .55; }

/* ---------- List rows (services / recent) ---------- */
.rowlist { border-top: 1px solid var(--line); }
.rowitem {
  display: grid; grid-template-columns: 220px 1fr; gap: clamp(20px, 4vw, 60px);
  align-items: center; padding-block: clamp(22px, 2.6vw, 34px);
  border-bottom: 1px solid var(--line); transition: padding-left .35s var(--ease);
}
.rowitem:hover { padding-left: 10px; }
.rowitem__media { aspect-ratio: 16/10; }
.rowitem__text .subhead { margin-bottom: 10px; }
.rowitem__text p { color: var(--muted); max-width: 60ch; }

/* ---------- Footer / final CTA ---------- */
.footer { background: var(--dark); color: var(--white); }
.footer__cta { text-align: center; padding-block: clamp(72px, 11vw, 160px); }
.footer__cta .display { margin: 0 auto 40px; max-width: 16ch; }
.footer__cta .display em { font-style: normal; }
.footer__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.footer__cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  padding-block: 56px; border-top: 1px solid var(--line-dark);
}
.footer h5 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 18px; }
.footer__cols p { color: var(--muted-dark); max-width: 34ch; }
.footer__cols a { color: var(--white); font-size: 15px; display: block; padding: 6px 0; transition: opacity .3s var(--ease); }
.footer__cols a:hover { opacity: .6; }
.footer__big { font-family: var(--font-display); font-weight: 600; font-size: clamp(64px, 16vw, 220px); line-height: .9; letter-spacing: -.02em; padding-block: clamp(20px,3vw,40px); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px; border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--muted-dark); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px,6vw,80px); align-items: start; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ink);
  padding: 12px 2px; font-family: var(--font-body); font-size: 16px; color: var(--ink); outline: none;
  transition: border-color .3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--muted); }
.field textarea { resize: vertical; min-height: 110px; }
.contact-detail { border-top: 1px solid var(--line); padding-block: 18px; display: flex; justify-content: space-between; gap: 16px; }
.contact-detail .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-detail .v { font-family: var(--font-display); font-size: clamp(16px,1.6vw,20px); }

.tag { font-size: 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); display: inline-block; }

/* ---------- Disciplines list ---------- */
.disc { border-top: 1px solid var(--line); }
.disc__item { padding-block: clamp(28px,4vw,52px); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 90px 1fr 1fr; gap: clamp(16px,3vw,48px); align-items: start; }
.disc__no { font-family: var(--font-display); font-size: 18px; color: var(--muted); padding-top: 6px; }
.disc__h { font-family: var(--font-display); font-size: clamp(26px,3.2vw,44px); line-height: 1.04; }
.disc__body p { color: var(--muted); margin-bottom: 18px; max-width: 48ch; }
.disc__tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 40px; }
.dark .stats { border-color: var(--line-dark); }
.stat .n { font-family: var(--font-display); font-size: clamp(40px,5vw,72px); line-height: 1; }
.stat .l { margin-top: 10px; font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.dark .stat .l { color: var(--muted-dark); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(14px,2vw,26px); }
.member .media { margin-bottom: 12px; }
.member h4 { font-family: var(--font-display); font-weight: 400; font-size: 20px; }
.member p { font-size: 13px; color: var(--muted); }

/* ---------- Filter row ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters .tag { cursor: pointer; transition: all .3s var(--ease); }
.filters .tag.is-active, .filters .tag:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Journal ---------- */
.post { display: grid; grid-template-columns: 120px 1fr auto; gap: clamp(16px,3vw,40px); align-items: center; padding-block: 26px; border-bottom: 1px solid var(--line); transition: padding-left .35s var(--ease); }
.post:first-child { border-top: 1px solid var(--line); }
.post:hover { padding-left: 12px; }
.post__media { width: 120px; aspect-ratio: 1/1; }
.post__date { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.post__title { font-family: var(--font-display); font-size: clamp(20px,2.1vw,30px); line-height: 1.08; }
.post__cat { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.post__excerpt { font-size: 14px; color: var(--muted); margin-top: 8px; max-width: 60ch; }

/* ---------- Journal post page (journal-[slug].astro) ---------- */
.journal-post__body p { color: var(--muted); margin-bottom: 20px; }
.journal-post__body p:last-child { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .introrow, .feature, .chaos, .cards2, .contact-grid { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2,1fr); }
  .team { grid-template-columns: repeat(2,1fr); }
  .clients-grid { grid-template-columns: repeat(3,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); row-gap: 32px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .disc__item { grid-template-columns: 50px 1fr; }
  .disc__body { grid-column: 2 / -1; }
  .chaos__intro { margin-bottom: 8px; }
}
@media (max-width: 640px) {
  .nav__cta span.label { display: none; }
  .clients-grid { grid-template-columns: repeat(2,1fr); }
  .rowitem { grid-template-columns: 1fr; }
  .rowitem__media { max-width: 260px; }
  .footer__cols { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; gap: 6px; }
  .post__media { width: 100%; max-width: 200px; aspect-ratio: 16/9; }
  .sec-head { align-items: flex-start; }
  .acc__panel-inner { padding-left: 0; }
}

/* ============================================================
   HOME REVAMP — new header / menu overlay (site-wide) and the
   home page's new hero + capabilities-intro section.
   Old .nav / .menu-overlay / .logo / .brand-mark rules above are
   left in place (Footer still uses .brand-mark) but are otherwise
   unused now that Header.astro / MenuOverlay.astro replace them.
   ============================================================ */

@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --rv-ink:     #000000;
  --rv-white:   #ffffff;
  --rv-copy:    #3a3a3a;
  --rv-hero-bg: #d9d9d9;
  --rv-pad:     clamp(22px, 4.3vw, 62px);
  --font-space:   'Space Grotesk', var(--font-body);
  --font-manrope: 'Manrope', var(--font-body);
}

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: var(--rv-white);
}
.hdr__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 20px var(--rv-pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.hdr__menu {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 0; cursor: pointer; padding: 0;
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--rv-ink);
}
.hdr__menu-bars { display: inline-flex; flex-direction: column; gap: 5px; }
.hdr__menu-bars span { width: 26px; height: 2px; background: var(--rv-ink); transition: .3s var(--ease); }
.hdr__logo { justify-self: center; display: inline-flex; align-items: center; line-height: 0; }
.hdr__logo-mark {
  display: inline-block; height: 22px; aspect-ratio: 2699.8 / 1369.7;
  background: var(--rv-ink);
  -webkit-mask: url('tdc-logo.svg') center / contain no-repeat;
  mask: url('tdc-logo.svg') center / contain no-repeat;
}
.hdr__cta {
  justify-self: end;
  display: inline-flex; align-items: center; white-space: nowrap;
  background: var(--rv-ink); color: var(--rv-white);
  font-family: var(--font-display); font-weight: 700;
  font-size: 12px; letter-spacing: .42em; text-transform: uppercase;
  padding: 20px 34px; border-radius: 0;
}
@media (max-width: 640px) {
  .hdr__cta { display: none; }
}

/* ---------- Fullscreen menu overlay (redesign) ---------- */
.menuov {
  position: fixed; inset: 0; z-index: 80;
  background: var(--rv-white); color: var(--rv-ink);
  display: flex; flex-direction: column;
  padding: 20px var(--rv-pad);
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
  visibility: hidden;
}
.menuov.open { transform: none; visibility: visible; }
.menuov__close {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 0; cursor: pointer; padding: 0;
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--rv-ink);
}
.menuov__close-x { font-size: 15px; line-height: 1; }
.menuov__links {
  margin: auto 0;
  display: flex; flex-direction: column; gap: clamp(4px, 1vw, 10px);
}
.menuov__link {
  font-family: var(--font-space); font-weight: 700;
  font-size: clamp(38px, 8vw, 116px); line-height: 1.05;
  letter-spacing: -.02em; text-transform: uppercase; color: var(--rv-ink);
  width: max-content;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
@media (hover: hover) {
  .menuov__links:hover .menuov__link:not(:hover) { opacity: .35; }
  .menuov__link:hover { transform: translateX(18px); }
}
@media (prefers-reduced-motion: reduce) {
  .menuov, .menuov__link { transition: none; }
}

/* ---------- Hero (home page) ---------- */
.hero-rv {
  width: 100%;
  height: clamp(340px, 52vw, 772px);
  background: var(--rv-hero-bg);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-rv__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

/* ---------- Capabilities intro (home page) ---------- */
.cap-intro { padding-block: clamp(64px, 8vw, 124px) 0; }
.cap-intro__inner { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--rv-pad); }
.cap-intro__eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--rv-ink);
  text-align: left;
}
.cap-intro__headline {
  font-family: var(--font-space); font-weight: 700;
  font-size: clamp(46px, 8.3vw, 120px); line-height: .9; letter-spacing: -.04em;
  text-align: center; max-width: 1120px; margin: 28px auto 0; color: var(--rv-ink);
}
.cap-intro__lede {
  font-family: var(--font-body); font-weight: 400;
  font-size: clamp(16px, 1.25vw, 18px); line-height: 1.62;
  text-align: center; max-width: 720px; margin: 28px auto 0; color: var(--rv-copy);
}

/* ---------- Methodology section (home page) ---------- */
.method { padding-top: clamp(64px, 8vw, 124px); }
.method-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  aspect-ratio: 1700 / 693;
  background: #1a1a1a;
  overflow: hidden;
  position: relative;
}
.method-band img { width: 100%; height: 100%; object-fit: cover; display: block; }
.method-band__placeholder {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.35);
  font-family: var(--font-body); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}
.method__blocks {
  max-width: var(--maxw); margin: 0 auto;
  padding-block: clamp(64px, 8vw, 124px);
  display: flex; flex-direction: column;
  gap: clamp(96px, 12vw, 200px);
}
.method__block { padding-left: clamp(24px, 17vw, 249px); max-width: 620px; }
.method__heading {
  font-family: var(--font-body); font-weight: 700; font-size: 30px;
  line-height: 1; color: var(--rv-ink);
}
.method__body {
  font-family: var(--font-body); font-weight: 400; font-size: 18px;
  line-height: 1.63; color: var(--rv-copy); margin-top: 20px;
}
@media (max-width: 768px) {
  .method__block { padding-left: var(--rv-pad); max-width: none; }
}

/* ---------- Creative Direction marquee (home page) ---------- */
.cd-marquee { background: #000; overflow: hidden; padding-block: clamp(24px, 4vw, 48px); }
.cd-marquee__track {
  display: inline-flex; white-space: nowrap; will-change: transform;
  animation: cd-marquee-scroll 26s linear infinite;
}
.cd-marquee__half { display: inline-flex; align-items: center; }
.cd-marquee__word {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(48px, 8.3vw, 120px); line-height: 1; color: var(--rv-white);
}
.cd-marquee__sep {
  display: inline-block; margin: 0 clamp(24px, 3vw, 48px);
  font-size: clamp(24px, 4vw, 60px); color: var(--rv-white); opacity: .5;
}
@keyframes cd-marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .cd-marquee__track { animation: none; }
}

/* ---------- Expertise feature cards (home page) ---------- */
.expertise__card { position: relative; width: 100%; aspect-ratio: 1442 / 800; background: #1a1a1a; overflow: hidden; }
.expertise__media, .expertise__media img, .expertise__placeholder {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.expertise__placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--rv-hero-bg); color: rgba(0,0,0,.35);
  font-family: var(--font-body); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}
.expertise__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0) 55%);
}
.expertise__copy { position: absolute; left: var(--rv-pad); right: var(--rv-pad); bottom: clamp(28px, 4vw, 56px); }
.expertise__title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(32px, 4.2vw, 60px); line-height: 1; color: var(--rv-white);
}
.expertise__caption {
  font-family: var(--font-body); font-weight: 400; font-size: 18px; line-height: 1.45;
  color: var(--rv-white); max-width: 560px; margin-top: 12px;
}

/* ---------- Clients (home page) ---------- */
.clients-rv { background: var(--rv-white); padding-block: clamp(64px, 8vw, 124px); }
.clients-rv__grid {
  max-width: 1280px; margin: 0 auto; padding-inline: clamp(24px, 5.5vw, 80px);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 48px;
}
.clients-rv__left { grid-column: 1 / 9; }
.clients-rv__right { grid-column: 9 / 13; align-self: start; }
.clients-rv__eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--rv-ink);
}
.clients-rv__headline {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(30px, 3.3vw, 48px); line-height: 1.02; color: var(--rv-ink);
  margin-top: 18px;
}
.clients-rv__logos { margin-top: clamp(32px, 4vw, 56px); display: flex; flex-wrap: wrap; gap: 10px; }
.client-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
}
.client-chip__logo { height: 24px; max-width: 100px; object-fit: contain; display: block; }
.client-chip__name {
  font-family: var(--font-body); font-weight: 500; font-size: 14px;
  color: var(--rv-copy); white-space: nowrap;
}
.clients-rv__body {
  font-family: var(--font-body); font-weight: 400; font-size: 18px;
  line-height: 1.5; color: var(--rv-copy);
}
@media (max-width: 768px) {
  .clients-rv__grid { grid-template-columns: 1fr; }
  .clients-rv__left, .clients-rv__right { grid-column: 1 / -1; }
  .clients-rv__right { margin-top: 32px; }
}

/* ---------- Structured Chaos revamp (home page) ---------- */
.chaos-rv { position: relative; background: #0a0a0a; overflow: hidden; }
.chaos-rv::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.chaos-rv::after {
  content: ""; position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 120%; height: 60%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.08), transparent 70%);
}
.chaos-rv__inner {
  position: relative; z-index: 1;
  max-width: 1268px; margin: 0 auto;
  padding: clamp(56px, 7vw, 86px) var(--rv-pad);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: 64px; align-items: start;
}
.chaos-rv__left { min-width: 0; }
.chaos-rv__eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase; color: #b8b8b8;
}
.chaos-rv__heading {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(40px, 5vw, 60px); line-height: .95; color: var(--rv-white); margin-top: 18px;
  max-width: 100%; overflow-wrap: anywhere;
}
.chaos-rv__lede {
  font-family: var(--font-body); font-weight: 400; font-size: 18px; line-height: 1.6;
  color: #b8b8b8; max-width: 420px; margin-top: 24px;
}
.chaos-rv__steps { display: flex; flex-direction: column; gap: 16px; }
.chaos-rv__step {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
  padding: 32px;
  background: rgba(255,255,255,.06);
  border-radius: 0;
  border-top: 1px solid rgba(255,255,255,.1);
  outline: 1px solid transparent;
  outline-offset: -1px;
}
/* Static highlight for now (card 01 via the `active` flag in StructuredChaos.astro's
   `steps` array) — not interactive unless the user asks for hover/click behavior. */
.chaos-rv__step--active {
  background: rgba(255,255,255,.12);
  outline-color: rgba(255,255,255,.4);
}
.chaos-rv__num {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3vw, 40px);
  color: var(--rv-white); line-height: 1;
}
.chaos-rv__step-title { font-family: var(--font-manrope); font-weight: 700; font-size: 20px; color: var(--rv-white); }
.chaos-rv__step-body {
  font-family: var(--font-manrope); font-weight: 400; font-size: 14px; line-height: 1.5;
  color: rgba(255,255,255,.6); margin-top: 8px;
}
@media (max-width: 900px) {
  .chaos-rv__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Our Works (home page) ---------- */
.works { background: var(--rv-white); padding-block: clamp(64px, 8vw, 128px); }
.works__inner { max-width: 1280px; margin: 0 auto; padding-inline: clamp(24px, 5.5vw, 80px); }
.works__eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--rv-ink);
}
.works__header {
  display: grid; grid-template-columns: 1fr 384px; gap: 40px; align-items: start;
  margin-top: 18px;
}
.works__headline {
  font-family: var(--font-space); font-weight: 700; text-transform: uppercase;
  font-size: clamp(30px, 3.3vw, 48px); line-height: 1.02; letter-spacing: -.04em;
  color: var(--ink);
}
.works__body {
  font-family: var(--font-body); font-weight: 400; font-size: 16px;
  line-height: 1.5; color: var(--rv-copy);
}
.works__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  margin-top: clamp(48px, 6vw, 80px);
}
.works__card {
  display: block; overflow: hidden; background: #1a1a1a; position: relative;
}
.works__card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.works__placeholder {
  width: 100%; height: 100%; background: var(--rv-hero-bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(0,0,0,.35);
}
@media (hover: hover) {
  .works__card:hover img { transform: scale(1.02); opacity: .92; }
}
.works__card--embassy { grid-column: 1; grid-row: 1 / 3; aspect-ratio: 620 / 882; }
.works__card--verde { grid-column: 2; grid-row: 1; aspect-ratio: 620 / 421; }
.works__card--nxg { grid-column: 2; grid-row: 2; aspect-ratio: 620 / 421; }
.works__card--vireya { grid-column: 1 / -1; aspect-ratio: 1280 / 594; }
.works__explore { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }
.works__explore a {
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  letter-spacing: .15em; text-transform: uppercase; color: var(--rv-ink);
  text-decoration: underline; text-underline-offset: 4px;
}
@media (max-width: 768px) {
  .works__header { grid-template-columns: 1fr; gap: 24px; }
  .works__grid { grid-template-columns: 1fr; }
  .works__card--embassy, .works__card--verde, .works__card--nxg, .works__card--vireya {
    grid-column: 1; grid-row: auto;
  }
}

/* ---------- Journal / Latest from us (home page) ---------- */
.journal-rv { background: var(--rv-white); padding-block: clamp(64px, 8vw, 128px); }
.journal-rv__inner { max-width: 1280px; margin: 0 auto; padding-inline: clamp(24px, 5.5vw, 80px); }
.journal-rv__eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--rv-ink);
}
.journal-rv__heading {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(28px, 3vw, 40px); color: var(--rv-ink); margin-top: 16px;
}
.journal-rv__list { margin-top: clamp(48px, 6vw, 80px); }
.journal-rv__entry {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.journal-rv__media { aspect-ratio: 620 / 462; background: var(--rv-hero-bg); overflow: hidden; }
.journal-rv__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.journal-rv__placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(0,0,0,.35);
}
.journal-rv__text { max-width: 549px; }
.journal-rv__title {
  font-family: var(--font-body); font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px); color: var(--rv-ink);
}
.journal-rv__body {
  font-family: var(--font-body); font-weight: 400; font-size: 18px;
  line-height: 1.63; color: var(--rv-copy); margin-top: 16px;
}
.journal-rv__divider { height: 1px; background: rgba(0,0,0,.15); margin-block: 48px; }
@media (max-width: 768px) {
  .journal-rv__entry { grid-template-columns: 1fr; gap: 24px; }
  .journal-rv__text { max-width: none; }
}

/* ---------- CTA band (home page only) ---------- */
.cta-rv {
  position: relative; width: 100%;
  min-height: clamp(420px, 45vw, 696px); aspect-ratio: 1440 / 696;
  background: #0a0a0a; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.cta-rv__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-rv__glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 120%; height: 60%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.08), transparent 70%);
}
.cta-rv__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.45); pointer-events: none; }
.cta-rv__content { position: relative; z-index: 1; padding-inline: var(--rv-pad); }
.cta-rv__heading {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(40px, 6vw, 88px); line-height: 1; color: var(--rv-white);
}
.cta-rv__actions {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 24px; margin-top: clamp(32px, 4vw, 48px);
}
.cta-rv__btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: .3em; text-transform: uppercase;
  padding: 24px 40px; border-radius: 0; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), opacity .3s var(--ease);
}
.cta-rv__btn--primary { background: #0a0a0a; color: var(--rv-white); border: 1px solid #0a0a0a; }
.cta-rv__btn--secondary { background: transparent; color: var(--rv-white); border: 1px solid rgba(255,255,255,.6); }
@media (hover: hover) {
  .cta-rv__btn--primary:hover { opacity: .8; }
  .cta-rv__btn--secondary:hover { background: var(--rv-white); color: #0a0a0a; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-rv__btn { transition: none; }
}

/* ---------- CMS image upload slots (home page) ----------
   Each swappable image renders a real <img data-edit="..."> even before an
   editor uploads anything, so content.js always has an element to populate.
   In the empty state that <img> ships with the [hidden] attribute and a
   placeholder box sits next to it; content.js reveals the image and hides
   the placeholder once a real src is applied. The sections above already
   give these <img> elements their own explicit `display` value (e.g.
   `.method-band img { display: block }`), which — being an author-origin
   rule — outranks the browser's default `[hidden] { display: none }` UA
   rule, so hidden would silently do nothing without this override. */
[data-edit][hidden], [data-cms-placeholder][hidden] { display: none !important; }

/* ---------- Revamped footer (home page only) ---------- */
.footer-rv { background: #000; padding-block: clamp(48px, 6vw, 80px); }
.footer-rv__inner {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--rv-pad);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: clamp(24px, 3vw, 40px);
}
.footer-rv__logo { display: inline-block; width: 180px; }
.footer-rv__logo-mark {
  display: block; width: 100%; aspect-ratio: 2699.8 / 1369.7;
  background: var(--rv-white);
  -webkit-mask: url('tdc-logo.svg') center / contain no-repeat;
  mask: url('tdc-logo.svg') center / contain no-repeat;
}
.footer-rv__nav {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(24px, 3vw, 48px);
}
.footer-rv__nav a {
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8);
  transition: color .3s var(--ease);
}
@media (hover: hover) {
  .footer-rv__nav a:hover { color: var(--rv-white); text-decoration: underline; text-underline-offset: 4px; }
}
.footer-rv__copy {
  font-family: var(--font-body); font-weight: 400; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4);
}
@media (max-width: 640px) {
  .footer-rv__nav { gap: 16px 24px; }
}
