/* Whitford Group site styles */

:root {
  --bg: #0A0B0D;
  --bg-2: #0E1013;
  --panel: #12141A;
  --ivory: #F2EDE3;
  --muted: #9AA0A8;
  --faint: #6B7078;
  --gold: #C3A366;
  --gold-bright: #D8BB80;
  --hairline: rgba(242, 237, 227, 0.09);
  --hairline-strong: rgba(242, 237, 227, 0.16);
  --serif: 'Marcellus', 'Times New Roman', serif;
  --sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --max: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: #0A0B0D; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ---------- Typography ---------- */

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: 0.01em; }

.kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}

.lead { font-size: 20px; color: var(--muted); max-width: 640px; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 26px 0;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(10,11,13,0.6) 0%, rgba(10,11,13,0) 100%);
}

.nav.scrolled {
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 14px 0;
  border-bottom-color: var(--hairline);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo img { height: 30px; width: auto; }
.nav-logo .nav-name {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.nav-logo .nav-name span { color: var(--gold); font-size: 12px; letter-spacing: 0.42em; display: block; line-height: 1.1; }

.nav-links { display: flex; align-items: center; gap: 38px; list-style: none; white-space: nowrap; }
.nav-links a {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a.nav-cta {
  color: var(--gold);
  border: 1px solid rgba(195, 163, 102, 0.45);
  padding: 10px 22px;
  border-radius: 2px;
  transition: all 0.25s ease;
}
.nav-links a.nav-cta:hover { background: var(--gold); color: #0A0B0D; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; z-index: 110; }
.nav-toggle span {
  display: block; width: 26px; height: 2px; background: var(--ivory);
  margin: 6px 0; transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background: url('../assets/media/hero-poster.jpg') center / cover no-repeat;
  animation: heroZoom 16s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero-bg video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-bg video.ready { opacity: 1; }

.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,11,13,0.78) 0%, rgba(10,11,13,0.25) 34%, rgba(10,11,13,0.16) 52%, rgba(10,11,13,0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 160px 0 10vh;
}

.hero h1 {
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 1.05;
  max-width: 15ch;
  margin-bottom: 30px;
  text-wrap: balance;
}

.hero h1 em { font-style: normal; color: var(--gold-bright); }

.hero .lead { margin-bottom: 44px; }

.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 17px 36px;
  border-radius: 2px;
  transition: all 0.28s ease;
  position: relative;
  overflow: hidden;
}
.btn-gold { background: var(--gold); color: #0A0B0D; }
.btn-gold::after {
  content: '';
  position: absolute; top: 0; bottom: 0; left: -80%;
  width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
}
.btn-gold:hover::after { left: 130%; }
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--hairline-strong); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

.scroll-cue {
  position: absolute;
  bottom: 34px; right: 44px;
  z-index: 2;
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--faint);
  writing-mode: vertical-rl;
}
.scroll-cue::after {
  content: '';
  width: 1px; height: 62px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { 0%,100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ---------- Sections ---------- */

section { position: relative; }
.section { padding: 130px 0; }
.section-tight { padding: 96px 0; }

.section-head { max-width: 780px; margin-bottom: 72px; }
.section-head h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.12; margin-bottom: 22px; }
.section-head p { color: var(--muted); font-size: 18.5px; }

.hairline-top { border-top: 1px solid var(--hairline); }

/* Statement band */

.statement { background: var(--bg); text-align: center; position: relative; overflow: hidden; }
.statement::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../assets/whitford-wordmark-on-dark.svg') center 54% / min(88%, 900px) no-repeat;
  opacity: 0.045;
  pointer-events: none;
}
.statement .wrap { position: relative; }
.statement p {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.32;
  max-width: 21ch;
  margin: 0 auto;
}
.statement p em { font-style: normal; color: var(--gold); }

.fact-strip {
  display: flex;
  justify-content: center;
  gap: clamp(40px, 8vw, 120px);
  margin-top: 76px;
  flex-wrap: wrap;
}
.fact { text-align: center; }
.fact .fact-num {
  font-family: var(--serif);
  font-size: 42px;
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.fact .fact-label {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--faint);
}

/* ---------- AI feature band ---------- */

.ai-band { background: var(--bg-2); overflow: hidden; }

.ai-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 90px;
  align-items: center;
}

.ai-copy h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.1; margin-bottom: 26px; }
.ai-copy h2 em { font-style: normal; color: var(--gold-bright); }
.ai-copy p { color: var(--muted); margin-bottom: 20px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 40px; }
.chip {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--ivory);
  border: 1px solid var(--hairline-strong);
  padding: 9px 18px;
  border-radius: 999px;
}
.chip.gold { color: var(--gold-bright); border-color: rgba(195,163,102,0.4); }

.ai-visual { position: relative; aspect-ratio: 4 / 4.6; }
.ai-visual .frame {
  position: absolute; inset: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  background:
    radial-gradient(120% 90% at 80% 100%, rgba(195,163,102,0.16) 0%, transparent 55%),
    radial-gradient(100% 80% at 15% 5%, rgba(70,84,110,0.22) 0%, transparent 60%),
    var(--panel);
  overflow: hidden;
}
.ai-visual .frame::after {
  content: '';
  position: absolute; inset: 0;
  background: url('../assets/monogram-on-dark.svg') center 42% / 46% no-repeat;
  opacity: 0.9;
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.ai-visual .frame-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 30px;
  border-top: 1px solid var(--hairline);
  font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--faint);
  display: flex; justify-content: space-between;
  background: rgba(10,11,13,0.5);
  backdrop-filter: blur(8px);
}
.ai-visual .frame-caption b { color: var(--gold); font-weight: 600; }

/* ---------- Capabilities ---------- */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.cap {
  background: var(--bg);
  padding: 46px 38px 50px;
  transition: background 0.35s ease;
  position: relative;
}
.cap:hover { background: var(--bg-2); }
.cap::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.4s ease;
}
.cap:hover::before { width: 100%; }

.cap .cap-num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 26px;
}
.cap h3 { font-size: 24px; margin-bottom: 14px; }
.cap p { font-size: 15.5px; color: var(--muted); }

/* ---------- Portfolio ---------- */

.portfolio { background: var(--bg-2); }

.port-group { margin-bottom: 70px; }
.port-group:last-child { margin-bottom: 0; }

.port-group-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 30px;
  display: flex; align-items: center; gap: 22px;
}
.port-group-label::after { content: ''; flex: 1; height: 1px; background: var(--hairline); }

.port-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }

.port-card {
  background: var(--bg-2);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
  transition: background 0.35s ease;
}
.port-card:hover { background: #14161C; }
.port-card img { height: 26px; width: auto; max-width: 82%; object-fit: contain; object-position: left; opacity: 0.92; }
.port-card .port-meta { margin-top: 26px; }
.port-card .port-role {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.port-card p { font-size: 15px; color: var(--muted); }
.port-card .port-name {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
  color: var(--ivory);
  margin: 2px 0 0;
}
.port-card .port-desc { margin-top: 22px; }
.port-card .port-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  border-bottom: 1px solid rgba(195, 163, 102, 0.35);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.port-card .port-link:hover { color: var(--ivory); border-color: var(--ivory); }

.port-badge {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid rgba(195, 163, 102, 0.45);
  background: rgba(195, 163, 102, 0.08);
  padding: 7px 14px;
  border-radius: 999px;
}

/* Mid-page CTA */

.mid-cta {
  margin-top: 64px;
  border: 1px solid var(--hairline-strong);
  border-left: 3px solid var(--gold);
  background: var(--bg-2);
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.mid-cta p {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.45;
  max-width: 58ch;
  margin: 0;
}
.mid-cta .btn { flex-shrink: 0; }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
  align-items: center;
}

.about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 70% 100%, rgba(195,163,102,0.14) 0%, transparent 55%),
    var(--panel);
}
.about-photo::before {
  content: '';
  position: absolute;
  inset: -14px 14px 14px -14px;
  border: 1px solid rgba(195, 163, 102, 0.35);
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; filter: saturate(0.82); transition: transform 6s ease, filter 0.6s ease; }
.about-photo:hover img { transform: scale(1.03); filter: saturate(0.95); }
.about-photo.placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background: url('../assets/monogram-on-dark.svg') center 40% / 38% no-repeat;
  opacity: 0.5;
}
.about-photo .photo-tag {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 26px;
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  background: rgba(10,11,13,0.55);
  backdrop-filter: blur(8px);
}

.about-copy h2 { font-size: clamp(32px, 4vw, 50px); margin-bottom: 26px; line-height: 1.12; }
.about-copy p { color: var(--muted); margin-bottom: 18px; }
.about-copy p strong { color: var(--ivory); font-weight: 600; }

/* ---------- Contact ---------- */

.contact { background: var(--bg-2); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }

.contact-info h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.08; margin-bottom: 28px; }
.contact-info h2 em { font-style: normal; color: var(--gold-bright); }
.contact-info p { color: var(--muted); margin-bottom: 34px; max-width: 46ch; }

.contact-line { display: block; margin-bottom: 16px; font-size: 15px; color: var(--muted); }
.contact-line b {
  display: block;
  font-size: 11.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px; font-weight: 700;
}
.contact-line a { color: var(--ivory); border-bottom: 1px solid var(--hairline-strong); transition: border-color 0.25s; }
.contact-line a:hover { border-color: var(--gold); }

form .field { margin-bottom: 22px; }
form label {
  display: block;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 9px;
}
form input, form textarea, form select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  padding: 15px 16px;
  transition: border-color 0.25s ease;
}
form input:focus, form textarea:focus, form select:focus { outline: none; border-color: var(--gold); }
form textarea { min-height: 130px; resize: vertical; }
.hidden { display: none; }

/* ---------- Footer ---------- */

footer { padding: 70px 0 46px; border-top: 1px solid var(--hairline); }

.footer-grid {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; flex-wrap: wrap;
  margin-bottom: 54px;
}
.footer-brand img { height: 56px; margin-bottom: 18px; }
.footer-brand p { font-size: 13.5px; color: var(--faint); max-width: 40ch; }

.footer-links { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-links h4 {
  font-size: 11.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
  margin-bottom: 18px; font-family: var(--sans);
}
.footer-links a { display: block; font-size: 14.5px; color: var(--muted); margin-bottom: 11px; transition: color 0.25s; }
.footer-links a:hover { color: var(--ivory); }

.footer-legal {
  border-top: 1px solid var(--hairline);
  padding-top: 28px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--faint);
}

/* ---------- AI page ---------- */

.subhero {
  position: relative;
  min-height: 72svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.subhero .hero-content { padding-bottom: 9vh; }
.subhero h1 { font-size: clamp(40px, 6vw, 84px); line-height: 1.06; max-width: 16ch; margin-bottom: 26px; }
.subhero h1 em { font-style: normal; color: var(--gold-bright); }

.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.value-cell { background: var(--bg); padding: 48px 42px; }
.value-cell:hover { background: var(--bg-2); }
.value-cell h3 { font-size: 23px; margin-bottom: 14px; }
.value-cell h3 span { color: var(--gold); margin-right: 14px; font-size: 17px; }
.value-cell p { font-size: 15.5px; color: var(--muted); }

.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 120px 1fr 1.2fr;
  gap: 44px;
  padding: 44px 0;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
}
.step:last-child { border-bottom: 1px solid var(--hairline); }
.step .step-num { font-family: var(--serif); font-size: 46px; color: var(--gold); line-height: 1; }
.step h3 { font-size: 25px; }
.step p { color: var(--muted); font-size: 16px; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.principle { border-top: 2px solid var(--gold); padding-top: 24px; }
.principle h3 { font-size: 20px; margin-bottom: 12px; }
.principle p { font-size: 15px; color: var(--muted); }

.cta-band { text-align: center; background: var(--bg-2); }
.cta-band h2 { font-size: clamp(34px, 4.6vw, 60px); max-width: 18ch; margin: 0 auto 24px; line-height: 1.1; }
.cta-band h2 em { font-style: normal; color: var(--gold-bright); }
.cta-band p { color: var(--muted); max-width: 54ch; margin: 0 auto 44px; }

/* ---------- Reveal animations ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .ai-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-visual { max-width: 520px; }
  .step { grid-template-columns: 80px 1fr; }
  .step p { grid-column: 2; }
  .principles { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; inset: 0;
    background: rgba(10, 11, 13, 0.97);
    flex-direction: column; justify-content: center;
    gap: 30px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 17px; }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 760px) {
  .section { padding: 90px 0; }
  .cap-grid, .port-grid, .value-grid { grid-template-columns: 1fr; }
  .mid-cta { padding: 30px 26px; }
  .mid-cta p { font-size: 18px; }
  .mid-cta .btn { width: 100%; text-align: center; }
  .fact-strip { gap: 34px 44px; }
  .fact .fact-num { font-size: 34px; }
  .hero .lead { font-size: 17.5px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .port-card { min-height: 0; padding: 34px 26px; }
  .port-card .port-name { font-size: 19px; }
  .contact-grid { gap: 48px; }
  .scroll-cue { display: none; }
  .hero-bg { background-image: url('../assets/media/hero-poster-mobile.jpg'); }
  .hero-content { padding-top: 130px; }
}
