/* ═══════════════════════════════════════════════════════════
   Farah Gurbanova - professional site
   Identity: bone + red · condensed uppercase display · serif body
   Signature: "The Scorecard" - retail metrics as a mono ledger
   ═══════════════════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  --bone:     #F4F0E6;
  --paper:    #FBF9F4;
  --ink:      #1A1512;
  --red:      #D4232A;
  --red-deep: #A81820;
  --line:     #D8CFBE;
  --muted:    #6E655A;

  --display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --body:    'Newsreader', Georgia, serif;
  --mono:    'IBM Plex Mono', 'Courier New', monospace;

  --nav-h: 68px;
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1220px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ── Base ──────────────────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  background: var(--bone);
  color: var(--ink);
  line-height: 1.62;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: var(--red); color: var(--bone); }

/* skip anchor offset for sticky nav */
:target { scroll-margin-top: calc(var(--nav-h) + 20px); }

/* ── Layout primitives ─────────────────────────────────────── */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.rule { height: 1px; background: var(--line); border: 0; }

/* ── Typography ────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 3px;
  height: 15px;
  background: var(--red);
  flex: none;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: .98; letter-spacing: .002em; }

.display-xl { font-size: clamp(3rem, 8.2vw, 6.4rem); font-weight: 800; letter-spacing: -.005em; }
.display-l  { font-size: clamp(2.1rem, 5.2vw, 3.7rem); }
.display-m  { font-size: clamp(1.5rem, 3vw, 2.15rem); }

.accent { color: var(--red); }

.lead {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 46ch;
}

.prose { max-width: 62ch; }
.prose p { margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose em { font-style: italic; }
.prose strong { font-weight: 600; }

.muted { color: var(--muted); }

/* ── Buttons (two-label system) ────────────────────────────── */
.btn {
  --btn-fg: var(--bone);
  --btn-bg: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.02rem;
  line-height: 1;
  padding: 15px 26px;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-bg);
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .12s var(--ease);
}
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-fg: var(--ink);
  --btn-bg: transparent;
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bone); }

.btn .arrow { transition: transform .18s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* plain outbound text link - the single Denim Code exception */
.textlink {
  font-family: var(--mono);
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--red);
  padding-bottom: 2px;
  transition: color .15s var(--ease);
}
.textlink:hover { color: var(--red); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ── Focus visibility (quality floor) ──────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bone) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(26,21,18,.5); }

.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.16rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark::before { content: ""; width: 5px; height: 22px; background: var(--red); flex: none; }
.wordmark span { font-weight: 400; color: var(--muted); }

.nav__links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav__link {
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  transition: color .15s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .2s var(--ease);
}
.nav__link:hover { color: var(--red); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink); }

.nav__cta { padding: 11px 20px; font-size: .92rem; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line);
  cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after  { transform: translateY(4px); }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: rotate(45deg); }
.nav.is-open .nav__toggle span::after  { transform: rotate(-45deg) translateY(-1px); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero { padding-top: clamp(36px, 6vw, 72px); padding-bottom: 0; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
}
.hero__title { margin: 20px 0 0; }
.hero__title .line { display: block; }
.hero__sub { margin-top: 26px; }

.hero__figure {
  position: relative;
  align-self: end;
  transform-origin: bottom right;
}
@media (min-width: 901px) {
  .hero__figure { transform: scale(1.16); }
}
.hero__figure::after {
  /* red baseline the portrait stands on */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 8px; background: var(--red);
}
.hero__photo {
  position: relative;
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.06) brightness(1.02);
  mix-blend-mode: multiply;
}

/* ── Scorecard (signature) ─────────────────────────────────── */
.scorecard {
  background: var(--ink);
  color: var(--bone);
}
.scorecard__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(32px, 4vw, 52px) var(--gutter);
}
.scorecard__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-bottom: 22px; margin-bottom: 4px;
  border-bottom: 1px solid rgba(244,240,230,.16);
}
.scorecard__head .eyebrow { color: rgba(244,240,230,.7); }
.scorecard__head .eyebrow::before { background: var(--red); }
.scorecard__stamp { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,240,230,.45); }

.scorecard__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 30px clamp(16px, 2.4vw, 34px) 6px; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 26px; bottom: 6px; width: 1px;
  background: rgba(244,240,230,.16);
}
.stat__value {
  font-family: var(--mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.02em;
  display: flex; align-items: baseline; gap: .18em; flex-wrap: wrap;
}
.stat__delta { color: var(--red); }
.stat__unit  { font-size: .42em; letter-spacing: .04em; color: rgba(244,240,230,.65); }
.stat__label {
  margin-top: 16px;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(244,240,230,.72);
  max-width: 30ch;
}

/* ── Inline ledger (Experience / Portfolio results) ────────── */
.ledger { list-style: none; margin-top: 20px; border-top: 1px solid var(--line); }
.ledger li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.ledger .l-label { font-size: 1rem; color: var(--ink); }
.ledger .l-value {
  font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: 1.02rem; letter-spacing: -.01em; white-space: nowrap;
}
.ledger .l-value .up { color: var(--red); }

/* ── Intro / generic content blocks ────────────────────────── */
.block__head { max-width: 60ch; margin-bottom: 40px; }
.block__head .eyebrow { margin-bottom: 18px; }
.block__title { margin-bottom: 22px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.split--rev { grid-template-columns: 1.4fr 1fr; }

/* ── Cards (featured work / portfolio grid) ────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }

.card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -28px rgba(26,21,18,.55); border-color: var(--ink); }
.card__index { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; color: var(--red); }
.card__thumb {
  aspect-ratio: 4 / 3;
  background: var(--ink);
  color: var(--bone);
  display: flex; align-items: flex-end;
  padding: 18px;
  overflow: hidden;
  position: relative;
}
.card__thumb .kicker {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(244,240,230,.75);
}
.card__thumb--red { background: var(--red); }
.card__body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-size: 1.32rem; line-height: 1; }
.card__desc { font-size: .98rem; color: var(--muted); line-height: 1.5; }
.card__more { margin-top: auto; font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }

/* ── Video feature ─────────────────────────────────────────── */
.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 1px solid var(--line);
  overflow: hidden;
}
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  color: var(--bone);
  background:
    repeating-linear-gradient(135deg, rgba(244,240,230,.03) 0 2px, transparent 2px 22px),
    var(--ink);
  cursor: default;
  text-align: center;
  padding: 24px;
}
.video-ph__play {
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--red); display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(212,35,42,.5);
}
.video-ph__play::after {
  content: ""; width: 0; height: 0; margin-left: 5px;
  border-left: 22px solid var(--bone);
  border-top: 13px solid transparent; border-bottom: 13px solid transparent;
}
.video-ph__label { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,240,230,.7); }
.video-ph--play { appearance: none; border: 0; cursor: pointer; font: inherit; width: 100%; }
.video-ph--play .video-ph__play { transition: transform .2s var(--ease); }
.video-ph--play:hover .video-ph__play, .video-ph--play:focus-visible .video-ph__play { transform: scale(1.07); }
.video-ph--play:hover .video-ph__label, .video-ph--play:focus-visible .video-ph__label { color: var(--bone); }
@media (prefers-reduced-motion: no-preference) {
  .video-ph__play { animation: pulse 2.6s var(--ease) infinite; }
}
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(212,35,42,.45);} 50%{ box-shadow: 0 0 0 18px rgba(212,35,42,0);} }

/* ── Experience timeline ───────────────────────────────────── */
.role { padding-block: clamp(34px, 5vw, 56px); border-top: 1px solid var(--line); }
.role:first-of-type { border-top: 0; }
.role__grid { display: grid; grid-template-columns: 180px 1fr; gap: clamp(20px, 4vw, 56px); align-items: start; }
.role__year { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--red); line-height: 1; }
.role__where { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.role__title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }
.role__summary { color: var(--muted); margin-bottom: 4px; max-width: 68ch; }
.role__list { list-style: none; margin-top: 20px; }
.role__list li { padding: 9px 0 9px 26px; position: relative; border-bottom: 1px solid var(--line); }
.role__list li::before { content: ""; position: absolute; left: 0; top: 18px; width: 12px; height: 2px; background: var(--red); }

/* ── Services ──────────────────────────────────────────────── */
.svc { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 40px; }
.svc__item { padding: 30px; background: var(--paper); border: 1px solid var(--line); }
.svc__num { font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; color: var(--red); }
.svc__title { font-size: 1.5rem; margin: 14px 0 12px; }
.svc__desc { color: var(--muted); font-size: 1rem; line-height: 1.55; }

/* ── Portfolio projects ────────────────────────────────────── */
.project { padding-block: clamp(44px, 6vw, 84px); border-top: 1px solid var(--line); }
.project__meta { font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.project__title { margin-bottom: 20px; }
.project__label { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 22px 0 6px; }

/* screenshot pair (portfolio looks) */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 22px); margin-top: 12px; }
.shot { border: 1px solid var(--line); background: var(--paper); }
.shot img { width: 100%; height: auto; }
.shot__cap { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-top: 1px solid var(--line); }

/* ── Certificates (About) ──────────────────────────────────── */
.certs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(24px, 3vw, 36px); }
.cert { display: flex; flex-direction: column; }
.cert__frame {
  display: grid; place-items: center;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  text-decoration: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.cert__frame:hover, .cert__frame:focus-visible { border-color: var(--ink); box-shadow: 0 18px 40px -28px rgba(26,21,18,.55); transform: translateY(-3px); }
.cert__frame img { width: 100%; height: 100%; object-fit: contain; padding: 12px; filter: grayscale(1) contrast(1.02); transition: filter .3s var(--ease); }
.cert__frame:hover img, .cert__frame:focus-visible img { filter: none; }
.cert__frame--doc { background: var(--ink); }
.cert__doc {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px;
  height: 100%; width: 100%; padding: 24px; text-align: center;
  background: repeating-linear-gradient(135deg, rgba(244,240,230,.03) 0 2px, transparent 2px 22px);
}
.cert__dockicker { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.cert__doctitle { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1; color: var(--bone); }
.cert__docview { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(244,240,230,.7); transition: color .2s var(--ease); }
.cert__frame--doc:hover .cert__docview, .cert__frame--doc:focus-visible .cert__docview { color: var(--bone); }
.cert__cap { padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.cert__name { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.05rem; line-height: 1.05; letter-spacing: .01em; }
.cert__meta { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted); }

/* ── CTA band ──────────────────────────────────────────────── */
.cta-band { background: var(--red); color: var(--bone); }
.cta-band__inner { max-width: var(--maxw); margin-inline: auto; padding: clamp(56px, 8vw, 104px) var(--gutter); text-align: center; }
.cta-band .eyebrow { color: rgba(244,240,230,.8); justify-content: center; }
.cta-band .eyebrow::before { background: var(--bone); }
.cta-band__title { color: var(--bone); margin: 18px 0 12px; }
.cta-band__sub { color: rgba(244,240,230,.9); max-width: 48ch; margin-inline: auto; }
.cta-band .btn { --btn-bg: var(--bone); --btn-fg: var(--ink); border-color: var(--bone); margin-top: 32px; }
.cta-band .btn:hover { --btn-bg: var(--ink); --btn-fg: var(--bone); border-color: var(--ink); }

/* ── Contact form ──────────────────────────────────────────── */
.form { display: grid; gap: 20px; max-width: 560px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1.02rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 0;
  padding: 13px 15px; width: 100%;
  transition: border-color .15s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.form__status { font-family: var(--mono); font-size: .82rem; letter-spacing: .04em; min-height: 1.2em; }
.form__status[data-state="ok"] { color: var(--red); }
.form__status[data-state="err"] { color: var(--red-deep); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ── Contact details list ──────────────────────────────────── */
.details { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.details li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.details dt, .details .k { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.details a { color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--red); padding-bottom: 1px; }
.details a:hover { color: var(--red); }

/* ── Footer ────────────────────────────────────────────────── */
.footer { background: var(--ink); color: var(--bone); padding-block: clamp(48px, 6vw, 80px); }
.footer__inner { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(244,240,230,.16); }
.footer__mark { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 1.5rem; }
.footer__mark::before { content: ""; width: 5px; height: 26px; background: var(--red); }
.footer__tag { margin-top: 16px; color: rgba(244,240,230,.7); max-width: 34ch; font-size: 1rem; }
.footer__col h4 { font-family: var(--mono); font-weight: 500; font-size: .74rem; letter-spacing: .14em; color: rgba(244,240,230,.5); margin-bottom: 16px; text-transform: uppercase; }
.footer__col a, .footer__col p { display: block; color: rgba(244,240,230,.85); text-decoration: none; font-size: .98rem; margin-bottom: 10px; line-height: 1.4; }
.footer__col a:hover { color: var(--bone); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 28px; }
.footer__bottom .textlink { color: rgba(244,240,230,.9); }
.footer__bottom .textlink:hover { color: var(--bone); }
.footer__copy { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; color: rgba(244,240,230,.5); }

/* ── Page header (interior pages) ──────────────────────────── */
.pagehead { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(28px, 4vw, 48px); }
.pagehead .eyebrow { margin-bottom: 20px; }
.pagehead__title { margin-bottom: 22px; }

/* ── Motion: scroll reveal ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
[data-reveal-stagger] > * { transition-delay: calc(var(--i, 0) * 80ms); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__title .line { opacity: 1 !important; transform: none !important; }
}

/* hero load animation */
@media (prefers-reduced-motion: no-preference) {
  .hero__title .line { opacity: 0; transform: translateY(28px); animation: rise .8s var(--ease) forwards; }
  .hero__title .line:nth-child(1) { animation-delay: .05s; }
  .hero__title .line:nth-child(2) { animation-delay: .18s; }
  .hero__title .line:nth-child(3) { animation-delay: .31s; }
  .hero__sub, .hero .cta-row { opacity: 0; animation: rise .8s var(--ease) .46s forwards; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { max-width: 420px; margin-inline: auto; margin-top: 12px; }
  .two-col, .split, .split--rev { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .role__grid { grid-template-columns: 1fr; gap: 14px; }
  .role__year { font-size: 2rem; }
}

@media (max-width: 680px) {
  body { font-size: 17px; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bone); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-120%); transition: transform .28s var(--ease);
    box-shadow: 0 20px 30px -24px rgba(26,21,18,.5);
  }
  .nav.is-open .nav__links { transform: none; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 14px; justify-content: center; }
  .nav__toggle { display: inline-flex; }
  .scorecard__grid { grid-template-columns: 1fr; }
  .stat { padding: 22px 0; border-top: 1px solid rgba(244,240,230,.16); }
  .stat:first-child { border-top: 0; }
  .stat + .stat::before { display: none; }
  .cards { grid-template-columns: 1fr; }
  .certs, .shots { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .form__row { grid-template-columns: 1fr; }
  .details li { grid-template-columns: 1fr; gap: 3px; }
  .cta-row { gap: 12px; }
  .cta-row .btn { width: 100%; justify-content: center; }
}
