/* Marketing UI kit styles — extends colors_and_type.css from the design system root */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');
@import url('colors_and_type.css');

* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--grid-max-width);
  margin: 0 auto;
  padding: 0 var(--grid-gutter-x);
}

/* ---------------- Header / Nav ---------------- */
.tkb-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-divider-dark);
}
.tkb-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
.tkb-nav__logo { height: 22px; }
.tkb-nav__items { display: flex; gap: 36px; }
.tkb-nav__items a {
  font-family: var(--font-body);
  font-weight: 500; font-size: 13px; letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  position: relative; padding-bottom: 4px;
  transition: color 200ms ease;
}
.tkb-nav__items a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--color-accent);
  transition: width 200ms ease;
}
.tkb-nav__items a:hover, .tkb-nav__items a.is-active { color: var(--color-accent); }
.tkb-nav__items a:hover::after,
.tkb-nav__items a.is-active::after { width: 100%; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 13px; letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 0; border: none;
  white-space: nowrap;
  transition: background 200ms ease, color 200ms ease, transform 150ms ease, border-color 200ms ease;
}
.btn--primary { background: var(--color-accent); color: var(--color-text-dark); }
.btn--primary:hover { background: var(--color-accent-hover); transform: translateY(-2px); }
.btn--primary:active { background: var(--color-accent-active); transform: translateY(0); }
.btn--secondary {
  background: transparent; color: var(--color-accent);
  border: 2px solid var(--color-accent);
  padding: 12px 34px;
}
.btn--secondary:hover { background: var(--color-accent); color: var(--color-text-dark); }
.btn--compact { padding: 10px 24px; }
.btn-text {
  font-family: var(--font-display);
  font-weight: 700; font-size: 13px; letter-spacing: 0.10em;
  text-transform: uppercase;
  background: transparent; border: none;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  padding: 0 0 4px 0;
  transition: color 200ms ease, border-color 200ms ease;
  cursor: pointer;
}
.btn-text:hover { color: var(--color-accent-hover); border-bottom-color: var(--color-accent-hover); }

/* ---------------- HERO — kinetic typography ---------------- */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 60px 0 40px 0;
  overflow: hidden;
  background-color: #ffe234;
  background-image: url('assets/hero-bg.png');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  color: var(--color-text-dark);
}
.hero__plus { display: none; }

/* Text on the yellow image bg flips to near-black for legibility. */
.hero .hero__line { color: var(--color-text-dark); }
.hero .hero__line.is-yellow {
  color: #ffffff;
}
.hero .tkb-mark { color: #ffffff; }

.hero .hero__lede { color: rgba(30, 30, 30, 0.75); }
.hero .hero__stats .num { color: var(--color-text-dark); }
.hero .hero__stats .lbl { color: rgba(30, 30, 30, 0.6); }

/* Slide rail on yellow */
.hero .hero-slides__rail { color: rgba(30, 30, 30, 0.5); }
.hero .hero-slides__dot { color: rgba(30, 30, 30, 0.5); }
.hero .hero-slides__dot.is-on { color: var(--color-text-dark); }
.hero .hero-slides__dot:hover { color: var(--color-text-dark); }
.hero .hero-slides__count { color: rgba(30, 30, 30, 0.4); }

/* Buttons in the hero: primary becomes dark-on-yellow (since yellow button
   would disappear against the yellow bg). */
.hero .btn--primary { background: var(--color-text-dark); color: var(--color-accent); }
.hero .btn--primary:hover { background: #000; color: var(--color-accent); }
.hero .btn--secondary { color: var(--color-text-dark); border-color: var(--color-text-dark); }
.hero .btn--secondary:hover { background: var(--color-text-dark); color: var(--color-accent); }
.hero__plus {
  position: absolute; right: -80px; top: -120px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 720px; line-height: 0.8;
  color: var(--color-accent); opacity: 0.06;
  user-select: none; pointer-events: none;
}
.hero__top { position: relative; z-index: 1; display: flex; justify-content: flex-start; align-items: flex-start; }
.hero__eyebrow {
  display: flex; gap: 16px; align-items: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text-secondary);
}
.hero__eyebrow .dot { width: 6px; height: 6px; background: var(--color-accent); display: inline-block; }
.hero__meta {
  font-family: var(--font-mono); font-size: 12px; color: var(--color-text-secondary);
  letter-spacing: 0.04em; text-align: right; line-height: 1.6;
}
.hero__meta .num { color: var(--color-accent); }

/* Kinetic tagline — auto-rotating slides */
.hero__tagline {
  position: relative; z-index: 1;
  margin: 60px 0 32px 0;
}
.hero-slides {
  position: relative;
  min-height: 360px;
}
.hero-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease-in-out;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}
.hero-slide .hero__line {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-slide.is-active .hero__line {
  opacity: 1;
  transform: translateY(0);
}
.hero__line.is-yellow { color: var(--color-accent); }

/* Brand-mark: reversed "3" in THINK3RBOLD */
.r3 {
  display: inline-block;
  transform: scaleX(-1);
}

/* THINK3RBOLD wordmark — matches the lockup type in the logo. */
.wordmark {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

/* Stats row — left-aligned, sits between the slides and the rail */
.hero__stats {
  display: flex; gap: 56px;
  margin-top: 28px;
}
.hero__stats > div { display: flex; flex-direction: column; gap: 6px; }
.hero__stats .num {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 22px; line-height: 1; color: var(--color-text-primary);
}
.hero__stats .lbl {
  font-family: var(--font-display); font-weight: 700;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-text-secondary);
}

/* Slide indicator rail */
.hero-slides__rail {
  display: flex; align-items: center; gap: 14px;
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-secondary);
  letter-spacing: 0.04em;
}
.hero-slides__dot {
  background: transparent; border: none; padding: 0;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  color: var(--color-text-secondary);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em;
  transition: color 200ms ease;
}
.hero-slides__dot .bar {
  display: block; width: 32px; height: 1px; background: currentColor;
  transition: width 250ms cubic-bezier(0.16,1,0.3,1), background 200ms ease;
}
.hero-slides__dot.is-on { color: var(--color-accent); }
.hero-slides__dot.is-on .bar { width: 80px; }
.hero-slides__dot:hover { color: var(--color-text-primary); }
.hero-slides__count {
  margin-left: 8px; color: var(--color-text-secondary);
}
.hero__line {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(48px, 7.2vw, 104px);
  line-height: 0.94; text-transform: uppercase;
  letter-spacing: -0.01em;
  display: block;
  white-space: nowrap;
}

.hero__bottom { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.hero__lede {
  font-size: 18px; line-height: 1.65;
  color: var(--color-text-secondary);
  max-width: 48ch; margin: 0;
}
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* (legacy swap-stack animation removed — replaced by hero-slides) */

/* ---------------- BENTO SHOWREEL ---------------- */
.bento {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: repeat(3, 220px);
  gap: 1px;
  background: var(--color-divider-dark);
  border: 1px solid var(--color-divider-dark);
}
.bento__tile {
  position: relative; background: var(--color-bg-primary);
  padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; cursor: pointer;
  transition: background 200ms ease;
}
.bento__tile:hover { background: var(--color-bg-secondary); }
.bento__tile:hover .bento__title { color: var(--color-accent); }
.bento__tile:hover .bento__media { transform: scale(1.04); }
.bento__media {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.55;
  transition: transform 600ms cubic-bezier(0.16,1,0.3,1), opacity 200ms ease;
}
.bento__media img { width: 100%; height: 100%; object-fit: cover; }
.bento__tile:hover .bento__media { opacity: 0.75; }

/* Every tile (incl. the lead one) now uses a photo + dark-bottom gradient
   so the title and subtitle stay legible on any image. */
.bento__tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,30,30,0) 30%, rgba(30,30,30,0.85) 100%);
  z-index: 0;
  pointer-events: none;
}
.bento__tile--lead .bento__media { opacity: 0.55; }
.bento__tile--lead:hover .bento__media { opacity: 0.7; }
.bento__num {
  display: none;
}
.bento__head {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.bento__foot {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 6px;
}
.bento__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: 32px; line-height: 1.0; text-transform: uppercase;
  transition: color 200ms ease;
}
.bento__sub {
  font-size: 13px; color: var(--color-text-secondary); line-height: 1.5;
  max-width: 32ch;
}
.bento__arrow {
  font-family: var(--font-mono); font-size: 22px; color: var(--color-accent);
}
.bento__tag {
  font-family: var(--font-display); font-weight: 700;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-text-secondary);
}
/* tile spans */
.bento__tile--lead { grid-column: 1; grid-row: 1 / -1; }
.bento__tile--lead .bento__title { font-size: 52px; }
.bento__tile--wide { }

/* ---------------- Logo Cloud (marquee) ---------------- */
.logocloud {
  border-top: 1px solid var(--color-divider-dark);
  border-bottom: 1px solid var(--color-divider-dark);
  padding: 28px 0;
  overflow: hidden;
  background: var(--color-bg-primary);
}
.logocloud__track {
  display: flex; gap: 56px; align-items: center;
  animation: scroll-x 40s linear infinite;
  white-space: nowrap; width: max-content;
}
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.logocloud__item {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-text-secondary); opacity: 0.75;
  transition: color 200ms ease, opacity 200ms ease;
}
.logocloud__item:hover { color: var(--color-accent); opacity: 1; }
.logocloud__sep { color: var(--color-accent); }

/* ---------------- Section utilities ---------------- */
.section { padding: 120px 0; }
.section--light { background: var(--color-surface-light); color: var(--color-text-dark); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 64px; gap: 32px; }
.section__index {
  display: none;
}
.section__index .now { color: var(--color-accent); }
.section__index .total { color: var(--color-text-secondary); }
.section--light .section__index .total { color: #777; }
.section__title-block { max-width: 760px; }
.section__eyebrow {
  font-family: var(--font-display); font-weight: 700;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 18px;
}
.section--light .section__eyebrow { color: var(--color-text-dark); }
.section__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.0; text-transform: uppercase;
  margin: 0;
}
.section__divider {
  border: none; border-top: 2px solid var(--color-accent);
  width: 48px; margin: 18px 0 28px 0;
}

/* ---------------- About: Manifesto + Philosophy ---------------- */
.about-section {
  position: relative;
  overflow: hidden;
}
.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/about-bg.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.about-section > .container {
  position: relative;
  z-index: 1;
}
.about {
  display: grid; grid-template-columns: 5fr 7fr; gap: 80px;
  align-items: flex-start;
}
.about__col h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-accent); margin: 0 0 20px 0;
}
.about__col p.lead {
  font-family: var(--font-display); font-weight: 600;
  font-size: 32px; line-height: 1.15; text-transform: uppercase;
  margin: 0; letter-spacing: -0.005em;
}
.about__col p.body {
  font-size: 17px; line-height: 1.7; color: var(--color-text-secondary);
  margin: 0; max-width: 62ch;
}
.about__col .body strong { color: var(--color-text-primary); font-weight: 500; }
.about__metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  margin-top: 64px;
  border-top: 1px solid var(--color-divider-dark);
  padding-top: 32px;
}
.about__metric .n { font-family: var(--font-mono); font-weight: 500; font-size: 44px; line-height: 1; }
.about__metric .l { font-size: 12px; color: var(--color-text-secondary); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 12px; }

/* ---------------- Solutions: architectural grid (color-coded) ---------------- */
.solutions {
  border: 1px solid var(--color-divider-light);
}

/* Per-row tone tokens — heads carry the category color, items get a
   subtle wash + a matching icon disc. */
.solution-row--yellow { --tone: #ffe234; --tone-wash: rgba(255,226,52,0.10); --tone-ink: #1f1f1f; --tone-ink-soft: #2b2b2b; }
.solution-row--amber  { --tone: #ffc700; --tone-wash: rgba(255,199,0,0.10);  --tone-ink: #1f1f1f; --tone-ink-soft: #2b2b2b; }
.solution-row--orange { --tone: #ff8a00; --tone-wash: rgba(255,138,0,0.10);  --tone-ink: #1f1f1f; --tone-ink-soft: #2b2b2b; }
.solution-row--ink    { --tone: #1f1f1f; --tone-wash: rgba(31,31,31,0.04);   --tone-ink: #ffffff; --tone-ink-soft: rgba(255,255,255,0.78); }

.solution-row {
  display: grid; grid-template-columns: 320px 1fr;
  border-bottom: 1px solid var(--color-divider-light);
  background: var(--tone-wash);
}
.solution-row:last-child { border-bottom: none; }
.solution-row__head {
  padding: 40px 32px;
  background: var(--tone);
  color: var(--tone-ink);
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
}
.solution-row__head::before {
  content: '';
  position: absolute; left: 32px; top: 32px;
  width: 28px; height: 2px;
  background: var(--tone-ink);
  opacity: 0.9;
}
.solution-row__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: 36px; line-height: 0.95; text-transform: uppercase;
  margin: 0;
  color: var(--tone-ink);
}
.solution-row__items {
  display: grid; grid-template-columns: 1fr 1fr;
}
.solution-row__items--three { grid-template-columns: 1fr 1fr 1fr; }
.solution-row__items--four { grid-template-columns: repeat(4, 1fr); }
.solution {
  padding: 32px 28px;
  border-right: 1px solid var(--color-divider-light);
  border-bottom: 1px solid var(--color-divider-light);
  background: transparent;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 220px;
  transition: background 200ms ease;
  position: relative;
}
.solution:hover { background: rgba(255,255,255,0.55); }
.solution-row--ink .solution:hover { background: rgba(31,31,31,0.06); }
.solution:nth-last-child(-n+1) { border-right: none; }

/* Round icon chip — white stroke on the tone fill */
.solution__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--tone);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 48px;
}
.solution-row--ink .solution__icon { color: var(--tkb-yellow); }

.solution__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 20px; text-transform: uppercase; line-height: 1.1;
  color: #1f1f1f;
}
.solution__desc {
  font-size: 14px; line-height: 1.55; color: #333;
  max-width: 36ch; margin: 0;
}

/* Bottom-row fill: clear bottom border on last children */
.solution-row__items > .solution:nth-last-child(-n+2) { border-bottom: none; }
.solution-row__items--three > .solution:nth-last-child(-n+3) { border-bottom: none; }
.solution-row__items--four > .solution:nth-last-child(-n+4) { border-bottom: none; }

/* ---------------- Works: case study stream ---------------- */
.works { display: flex; flex-direction: column; }
.work-case {
  display: grid; grid-template-columns: 80px 280px 1fr 90px;
  gap: 40px; align-items: stretch;
  border-top: 1px solid var(--color-divider-dark);
  padding: 32px 0;
  transition: padding 250ms cubic-bezier(0.16,1,0.3,1), background 200ms ease;
  cursor: pointer;
  position: relative;
}
.work-case:last-child { border-bottom: 1px solid var(--color-divider-dark); }
.work-case:hover { padding-left: 16px; padding-right: 16px; }
.work-case:hover .work-case__arrow { color: var(--color-accent); transform: translateX(8px); }
.work-case:hover .work-case__media .accent { transform: translate(4px, 4px); }
.work-case__idx {
  font-family: var(--font-mono); font-weight: 500; font-size: 16px;
  color: var(--color-accent); letter-spacing: 0.04em;
  padding-top: 4px;
}
.work-case__media {
  position: relative;
  aspect-ratio: 4/3;
  align-self: start;
}
.work-case__media .accent {
  position: absolute; right: -10px; bottom: -10px;
  width: 60%; height: 60%; background: var(--color-accent); z-index: 0;
  transition: transform 200ms ease;
}
.work-case__media .frame {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  background: var(--color-bg-secondary);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.work-case__media svg { width: 75%; }
.work-case__body { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.work-case__client {
  font-family: var(--font-display); font-weight: 700;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-text-secondary);
}
.work-case__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: 28px; line-height: 1.05; text-transform: uppercase;
  margin: 0;
}
.work-case__split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  margin-top: 8px;
}
.work-case__split-col h5 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0 0 6px 0;
}
.work-case__split-col.friction h5 { color: var(--color-text-secondary); }
.work-case__split-col.exec h5 { color: var(--color-accent); }
.work-case__split-col p { font-size: 14px; line-height: 1.55; color: var(--color-text-secondary); margin: 0; }
.work-case__meta {
  margin-top: 4px;
  display: flex; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--color-text-secondary); letter-spacing: 0.04em;
}
.work-case__meta .tag { color: var(--color-text-primary); }
.work-case__meta .metric { color: var(--color-accent); }
.work-case__arrow {
  font-family: var(--font-mono); font-size: 32px;
  color: var(--color-text-secondary);
  align-self: center; justify-self: end;
  transition: color 200ms ease, transform 200ms ease;
}

/* ---------------- Contact ---------------- */
.contact-block {
  border-top: 1px solid var(--color-divider-dark);
  border-bottom: 1px solid var(--color-divider-dark);
  padding: 80px 0;
}
.contact-block__giant {
  font-family: var(--font-display); font-weight: 800;
  font-size: 24px;
  line-height: 1.2; text-transform: uppercase;
  margin: 0 0 40px 0;
}
.contact-block__giant a {
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
  transition: color 200ms ease;
}
.contact-block__giant a:hover { color: var(--color-accent); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px;
  margin-top: 32px;
}
.contact-cell h4 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-text-secondary); margin: 0 0 12px 0;
}
.contact-cell p { font-size: 15px; line-height: 1.6; margin: 0; max-width: 32ch; }
.contact-cell .mono { font-family: var(--font-mono); font-size: 13px; color: var(--color-accent); letter-spacing: 0.04em; margin-top: 8px; }

/* ---------------- Footer ---------------- */
.footer {
  padding: 48px 0 24px 0;
  border-top: 1px solid var(--color-divider-dark);
}
.footer__row {
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  flex-wrap: wrap;
}
.footer__col h4 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-text-secondary); margin: 0 0 8px 0;
}
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--color-divider-dark);
  margin-top: 48px; padding-top: 20px;
  font-family: var(--font-mono); font-size: 11px; color: var(--color-text-secondary);
  letter-spacing: 0.04em;
}

/* ---------------- Scroll-in ---------------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 600ms cubic-bezier(0.16,1,0.3,1), transform 600ms cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Hamburger toggle — hidden on desktop */
.tkb-nav__toggle {
  display: none;
  background: transparent; border: none; padding: 8px;
  cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.tkb-nav__toggle .bar {
  display: block; width: 22px; height: 2px;
  background: var(--color-text-primary);
  transition: transform 200ms ease, opacity 200ms ease;
}
.tkb-nav.is-menu-open .tkb-nav__toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tkb-nav.is-menu-open .tkb-nav__toggle .bar:nth-child(2) { opacity: 0; }
.tkb-nav.is-menu-open .tkb-nav__toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.tkb-nav__drawer {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-divider-dark);
  padding: 24px var(--grid-gutter-x);
  flex-direction: column; gap: 18px;
  z-index: 60;
}
.tkb-nav__drawer a {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  text-transform: uppercase;
}
.tkb-nav__drawer a.is-active,
.tkb-nav__drawer a:hover { color: var(--color-accent); }
.tkb-nav__drawer .btn { align-self: flex-start; margin-top: 8px; }

/* -------- ≤ 1024px (tablet) -------- */
@media (max-width: 1024px) {
  :root {
    --grid-gutter-x: 40px;
  }
  .section { padding: 96px 0; }

  /* Hero meta and stats tighten */
  .hero__stats { gap: 32px; }
  .hero-slides { min-height: 280px; }

  /* Bento: stack lead on top, then 3 cards in single column below */
  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: 280px repeat(3, 200px);
  }
  .bento__tile--lead { grid-column: 1; grid-row: 1; }
  .bento__tile--lead .bento__title { font-size: 42px; }

  /* About: stack 2 columns into one */
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__metrics { gap: 24px; }

  /* Solutions: each row stacks head over items */
  .solution-row { grid-template-columns: 1fr; }
  .solution-row__head {
    border-right: none;
    border-bottom: 1px solid var(--color-divider-light);
  }
  .solution-row__items { grid-template-columns: 1fr 1fr !important; }

  /* Works case: collapse to media + body, drop the leading idx column */
  .work-case {
    grid-template-columns: 240px 1fr 60px;
    gap: 24px;
  }
  .work-case__idx { display: none; }

  /* Contact: 3 → 2 col, then giant CTA scales */
  .contact-grid { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer__row { gap: 24px; }
}

/* -------- ≤ 768px (mobile) -------- */
@media (max-width: 768px) {
  :root {
    --grid-gutter-x: 20px;
  }
  .section { padding: 72px 0; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 40px; }
  .section__title-block { max-width: 100%; }

  /* Nav: show hamburger, hide desktop items + CTA, center logo */
  .tkb-nav__items { display: none; }
  .tkb-nav__cta { display: none; }
  .tkb-nav__toggle { display: flex; position: absolute; right: var(--grid-gutter-x); top: 50%; transform: translateY(-50%); }
  .tkb-nav.is-menu-open .tkb-nav__drawer { display: flex; }
  .tkb-nav__inner { padding: 16px 0; position: relative; justify-content: center; }
  .tkb-nav__logo { height: 18px; }

  /* Hero: swap to the portrait T+B image at narrow widths, keep brand yellow. */
  .hero {
    min-height: auto;
    padding: 40px 0 56px 0;
    background-image: url('assets/hero-bg-mobile.png');
    background-color: var(--tkb-yellow);
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
  }
  .hero__tagline { margin: 24px 0; }
  .hero-slides { min-height: 240px; }
  .hero__stats { gap: 20px; flex-wrap: wrap; margin-top: 20px; }
  .hero__stats .num { font-size: 18px; }
  .hero__stats .lbl { font-size: 10px; }
  .hero-slides__rail { font-size: 12px; margin-top: 24px; }
  .hero-slides__dot .bar { width: 24px; }
  .hero-slides__dot.is-on .bar { width: 56px; }
  .hero__lede { font-size: 16px; }
  .hero__ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__ctas .btn { width: 100%; justify-content: center; padding: 14px 24px; }

  /* Bento: single column, all 220px tiles */
  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 200px);
  }
  .bento__tile { padding: 20px; }
  .bento__title { font-size: 26px !important; }
  .bento__tile--lead .bento__title { font-size: 36px !important; }

  /* Logo cloud: smaller type, faster scroll */
  .logocloud { padding: 18px 0; }
  .logocloud__track { gap: 32px; animation-duration: 30s; }
  .logocloud__item { font-size: 16px; }

  /* About: tighter */
  .about__col p.lead { font-size: 24px; }
  .about__col p.body { font-size: 15px; }
  .about__metrics { grid-template-columns: 1fr; padding-top: 24px; margin-top: 40px; }
  .about__metric .n { font-size: 32px; }

  /* Solutions: row items go single column on mobile */
  .solution-row__head { padding: 24px 20px; }
  .solution-row__title { font-size: 28px; }
  .solution-row__items { grid-template-columns: 1fr !important; }
  .solution { padding: 24px 20px; min-height: auto; }
  .solution { border-right: none !important; }
  .solution__title { font-size: 18px; }

  /* Works case studies: full stack */
  .work-case {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0;
  }
  .work-case:hover { padding-left: 0; padding-right: 0; }
  .work-case__media { max-width: 100%; }
  .work-case__title { font-size: 22px; }
  .work-case__split { grid-template-columns: 1fr; gap: 16px; }
  .work-case__arrow { justify-self: start; font-size: 24px; }

  /* Contact */
  .contact-block { padding: 56px 0; }
  .contact-block__giant { font-size: 22px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Footer: stack */
  .footer { padding: 40px 0 20px; }
  .footer__row { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 12px; align-items: flex-start; text-align: left; margin-top: 32px; }
}

/* -------- ≤ 480px (small phones) — final tightening -------- */
@media (max-width: 480px) {
  .hero__line { letter-spacing: 0; }
}

