/* Data Outfitters - site styles. Tokens first, then base, then sections in page order. */

@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('/fonts/mulish-latin-wght.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #151922;
  --ink-2: #1c212b;
  --apricot: #ffcf70;
  --apricot-hover: #f5bd4c;
  --ivory: #f7f5e9;
  --white: #ffffff;
  --muted-on-ink: #a9aeb8;
  --muted-on-light: #5b6170;
  --hairline: #dedacb;
  --line-dark: rgba(255, 255, 255, 0.12);
  --font-heading: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Mulish', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 68px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); cursor: pointer; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

/* Focus: ink on light, apricot on dark */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dark :focus-visible, .site-header :focus-visible { outline-color: var(--apricot); }
.dropdown :focus-visible { outline-color: var(--ink); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--apricot); color: var(--ink); font-weight: 700;
  padding: 12px 20px; border-radius: 12px;
}
.skip-link:focus { top: 12px; }

/* content-box on purpose: the prototype's 1280px column excludes the 56px side padding */
.wrap { box-sizing: content-box; max-width: 1280px; margin: 0 auto; padding-left: 56px; padding-right: 56px; }

/* Buttons */
.btn {
  display: inline-block; background: var(--apricot); color: var(--ink);
  border-radius: 12px; font-weight: 700; border: 0;
  padding: 20px 40px; font-size: 20px;
  transition: background 0.15s;
}
.btn:hover { background: var(--apricot-hover); }
.btn--md { padding: 18px 36px; font-size: 19px; }
.btn--nav { padding: 12px 26px; font-size: 16px; }
.btn--nowrap { white-space: nowrap; }

/* Section label */
.label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding-top: 12px; align-self: start;
  color: var(--muted-on-light); border-top: 1px solid var(--hairline);
}
.dark .label { color: var(--muted-on-ink); border-top-color: var(--line-dark); }

.label-grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; }

/* NAV */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 25, 34, 0.97); border-bottom: 1px solid var(--line-dark);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; padding-bottom: 20px;
}
.logo-link { display: flex; align-items: center; }
.logo-link img { height: 28px; width: auto; }
.nav-desktop { display: flex; align-items: center; gap: 40px; }
.nav-link { color: var(--muted-on-ink); font-size: 15px; }
.nav-link:hover { color: var(--white); }
.dropdown-wrap { position: relative; }
.dropdown-toggle {
  background: none; border: none; font-size: 15px; padding: 8px 0;
  display: flex; align-items: center; gap: 8px;
}
.dropdown-toggle svg { transition: none; }
.dropdown {
  position: absolute; top: 100%; right: -40px; margin-top: 16px; width: 380px;
  background: var(--white); border-radius: 12px; overflow: hidden; padding: 10px 0;
  box-shadow: 0 24px 56px rgba(20, 24, 30, 0.3);
}
.dropdown-item { display: block; padding: 14px 24px; }
.dropdown-item:hover { background: var(--ivory); }
.dropdown-item strong {
  display: block; font-family: var(--font-heading); font-weight: 500; font-size: 15px;
  color: var(--ink); margin-bottom: 3px;
}
.dropdown-item span { display: block; font-size: 13px; color: var(--muted-on-light); }
.dropdown hr { height: 1px; border: 0; background: var(--hairline); margin: 8px 24px; }
.dropdown-item--last { font-size: 14px; color: var(--ink); }
.dropdown-item--last b { font-weight: 700; border-bottom: 2px solid var(--apricot); }

.hamburger {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; border: none; padding: 0;
}
.mobile-menu {
  background: var(--ink); border-top: 1px solid var(--line-dark); padding: 8px 24px 24px;
}
.mobile-menu .nav-link { display: block; padding: 13px 0; }
.mobile-menu .btn { display: block; margin-top: 12px; padding: 15px 20px; font-size: 18px; text-align: center; }

/* HERO */
.hero { position: relative; overflow: hidden; background: var(--ink); height: 800px; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img { object-fit: cover; object-position: 75% center; }
/* Overlay: dark on the text side, fading to nothing so the right ~40% of the photo is untouched.
   --text-edge is the right edge of the text column (56px padding + 580px copy, plus the centring offset above 1392px). */
.hero { --text-edge: calc(max(0px, (100vw - 1392px) / 2) + 636px); }
.hero-tint { display: none; position: absolute; inset: 0; background: rgba(21, 25, 34, 0.55); }
.hero-fade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(21,25,34,0.9) 0,
    rgba(21,25,34,0.72) var(--text-edge),
    rgba(21,25,34,0) max(60%, calc(var(--text-edge) + 140px)));
}
.hero-inner { box-sizing: border-box; position: relative; z-index: 1; height: 100%; display: flex; align-items: center; }
.hero-copy { max-width: 580px; }
.hero h1 {
  font-family: var(--font-heading); font-weight: 600; font-size: 80px; line-height: 1.0;
  letter-spacing: -0.025em; color: var(--white); margin-bottom: 32px;
}
.hero p { font-size: 20px; line-height: 1.55; color: #d5d9de; margin-bottom: 40px; max-width: 470px; }

/* 01 THE PRACTICE */
.practice { background: var(--ink-2); }
.practice .label-grid { padding-top: 100px; padding-bottom: 100px; }
.practice-body { max-width: 820px; }
.big-lead {
  font-family: var(--font-heading); font-weight: 400; font-size: 32px; line-height: 1.4;
  color: var(--white); margin-bottom: 32px;
}
.practice-body p:last-child { font-size: 18px; line-height: 1.75; color: var(--muted-on-ink); max-width: 700px; }

/* STATEMENT */
.statement-band { background: var(--ivory); }
.statement-band .wrap { padding-top: 180px; padding-bottom: 180px; }
.statement {
  font-family: var(--font-heading); font-weight: 500; font-size: 64px; line-height: 1.15;
  letter-spacing: -0.02em; max-width: 1100px; color: var(--ink);
}
.statement .soft { color: #9a9c9f; }

/* 02 WHAT WE DO */
.services { background: var(--white); }
.services .wrap { padding-top: 120px; padding-bottom: 110px; }
.services .label-grid { margin-bottom: 56px; }
h2.section-title {
  font-family: var(--font-heading); font-weight: 600; font-size: 52px; letter-spacing: -0.015em;
  color: var(--ink);
}
.service-row {
  display: grid; grid-template-columns: 240px 1fr 1.25fr; gap: 48px;
  padding: 44px 0; border-top: 1px solid var(--hairline);
}
.service-row:last-child { border-bottom: 1px solid var(--hairline); }
.service-head { grid-column: 2; }
.service-body { grid-column: 3; }
.service-head h3 {
  font-family: var(--font-heading); font-weight: 500; font-size: 25px; line-height: 1.2;
  color: var(--ink); margin-bottom: 12px;
}
.service-head p { font-size: 16px; line-height: 1.5; color: var(--muted-on-light); }
.service-body p { font-size: 16px; line-height: 1.7; color: var(--ink); margin-bottom: 14px; }
.service-body p:last-child { margin-bottom: 0; }

/* 03 DATA SHRINK */
.shrink { background: var(--ink); }
.shrink .label-grid { padding-top: 88px; padding-bottom: 88px; }
.shrink-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.shrink-text { max-width: 660px; }
.shrink h2 {
  font-family: var(--font-heading); font-weight: 600; font-size: 42px; line-height: 1.15;
  letter-spacing: -0.01em; color: var(--white); margin-bottom: 20px;
}
.shrink-text p { font-size: 18px; line-height: 1.7; color: var(--muted-on-ink); }
.shrink-text b { color: var(--apricot); font-weight: 700; }

/* 04 WHO WE ARE */
.who { background: var(--ivory); }
.who .wrap { padding-top: 130px; padding-bottom: 130px; }
.who-grid { display: grid; grid-template-columns: 240px 1fr 260px; gap: 56px; align-items: start; }
.who-text { max-width: 640px; }
.who-text h2 { margin-bottom: 36px; }
.who-text p { font-size: 18px; line-height: 1.75; margin-bottom: 22px; }
.who-text p.closing {
  font-family: var(--font-heading); font-weight: 400; font-size: 23px; line-height: 1.45; margin-bottom: 40px;
}
.who-photo {
  width: 100%; max-width: 260px; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 14px; margin-bottom: 20px;
}
.who-caption { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; max-width: 260px; }
.who-name { font-family: var(--font-heading); font-weight: 500; font-size: 18px; margin-bottom: 4px; }
.who-role { font-size: 14px; line-height: 1.4; color: var(--muted-on-light); }
.icon-link { flex-shrink: 0; display: block; line-height: 0; }
.icon-link img { width: 28px; height: 28px; }

/* 05 TESTIMONIALS */
.voices { background: var(--white); }
.voices .wrap { padding-top: 110px; padding-bottom: 120px; }
.voices .label-grid { margin-bottom: 48px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 80px; align-items: stretch; }
.testi { display: flex; flex-direction: column; }
.testi blockquote p {
  font-family: var(--font-heading); font-weight: 300; font-size: 17px; line-height: 1.5;
  color: var(--ink); margin-bottom: 24px;
}
.testi figcaption { margin-top: auto; }
.testi-name { font-size: 15px; font-weight: 700; }
.testi-role { font-size: 14px; line-height: 1.45; color: var(--muted-on-light); }

/* 06 LET'S TALK */
.contact { background: var(--ink); }
.contact .label-grid { padding-top: 140px; padding-bottom: 140px; }
.contact h2 {
  font-family: var(--font-heading); font-weight: 600; font-size: 76px; line-height: 1.0;
  letter-spacing: -0.025em; color: var(--white); margin-bottom: 40px;
}
.contact-line {
  font-family: var(--font-heading); font-weight: 300; font-size: 34px; line-height: 1.45;
  color: var(--muted-on-ink); margin-bottom: 48px; max-width: 900px;
}
.link-dark { color: var(--white); border-bottom: 1px solid var(--apricot); padding-bottom: 2px; overflow-wrap: anywhere; }
.link-dark:hover { color: var(--muted-on-ink); }

/* FOOTER */
.site-footer { background: var(--ink-2); }
.site-footer .wrap { padding-top: 64px; padding-bottom: 36px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-logo { height: 22px; width: auto; margin-bottom: 16px; }
.footer-tag { font-size: 15px; color: var(--muted-on-ink); }
.footer-link { display: block; font-size: 14px; color: var(--muted-on-ink); margin-bottom: 12px; overflow-wrap: anywhere; }
.footer-link:hover { color: var(--white); }
.footer-grid ul li:last-child .footer-link { margin-bottom: 0; }
.footer-icon { display: inline-block; line-height: 0; }
.footer-icon img { width: 22px; height: 22px; }
.footer-base { border-top: 1px solid var(--line-dark); padding-top: 22px; }
.footer-base p { font-size: 13px; color: var(--muted-on-ink); }

/* Below 960px */
@media (max-width: 960px) {
  html { scroll-padding-top: 84px; }
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .label-grid, .who-grid, .testi-grid, .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  /* The prototype keeps an empty 240px label cell in each row, which adds 32px of grid gap above the heading when stacked. Reproduced as padding. */
  .testi-grid { gap: 56px; }
  .service-row { grid-template-columns: 1fr; gap: 32px; padding-top: 76px; }
  .service-head, .service-body { grid-column: 1; }
  .hero h1 { font-size: 48px; }
  .statement { font-size: 36px; }
  .big-lead { font-size: 24px; }
  .contact-line { font-size: 30px; }
  .wrap { padding-left: 24px; padding-right: 24px; }
  .who-photo { max-width: 240px; }
  .hero { height: 640px; }
  .hero-tint { display: block; }
  .hero-fade { background: linear-gradient(90deg, rgba(21,25,34,0.9) 0%, rgba(21,25,34,0.7) 30%, rgba(21,25,34,0.15) 58%, rgba(21,25,34,0) 75%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
