@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/bodoni-moda.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/hanken-grotesk.woff2") format("woff2"); }

/* Direction: the casting office. Paper, charcoal ink, height charts, contact sheets, comp cards.
   Signature: measurement ticks, on the hero portrait and the comp card only. */
:root {
  --paper: #f7f4ee;
  --card: #fdfbf7;
  --raised: #efe9df;
  --frame: #e6e0d5;
  --ink: #1f1b16;
  --ink-2: #5e554a;
  --ink-3: #6b6256;   /* darkened so 12px labels pass WCAG AA (4.5:1) on every background */
  --line: rgba(31, 27, 22, 0.12);
  --line-soft: rgba(31, 27, 22, 0.08);
  --mark: #9b2c1f;            /* the casting pencil: used for the 185 mark and nothing else */

  --night: #161513;
  --night-2: #aaa398;
  --night-line: rgba(239, 233, 222, 0.10);

  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --mono: var(--sans);  /* figures and labels share the text face, with tabular digits */

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 32px;
  --max: 1200px;
  --r-control: 6px;
  --r-card: 10px;
  --r-frame: 4px;
}
@media (max-width: 720px) { :root { --gutter: 16px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 244, 238, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font: 500 16px/1 var(--sans); text-decoration: none; white-space: nowrap; }
.nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav ul a { font-size: 14px; text-decoration: none; color: var(--ink-2); transition: color 150ms var(--ease); }
.nav ul a:hover { color: var(--ink); }
.menu-btn {
  display: none; height: 36px; padding: 0 12px; margin-right: -12px;
  background: none; border: 0; border-radius: var(--r-control);
  font: 500 14px var(--sans); color: var(--ink); cursor: pointer;
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav ul {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 0;
    background: var(--paper); border-bottom: 1px solid var(--line-soft);
    opacity: 0; transform: translateY(-4px); pointer-events: none;
    transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  }
  .nav.open ul { opacity: 1; transform: none; pointer-events: auto; }
  .nav ul a { display: block; padding: 12px var(--gutter); font-size: 16px; color: var(--ink); }
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; height: 48px; padding: 0 20px;
  font: 500 15px/1 var(--sans); text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--r-control);
  background: var(--card); color: var(--ink);
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), transform 120ms var(--ease);
}
.btn:hover { background: var(--raised); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.primary:hover { background: #000; }

/* ---------- Hero ---------- */
.hero { min-height: calc(100svh - 64px); display: flex; align-items: center; padding: 64px 0; }
.hero .wrap { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-text { animation: rise 480ms var(--ease) both; }
.hero h1 {
  font: 400 clamp(48px, 7.2vw, 96px)/1.02 var(--serif);
  letter-spacing: -0.01em; margin: 0 0 24px;
}
.roles { font-size: 18px; font-weight: 500; margin: 0 0 12px; }
.roles .nw { white-space: nowrap; }
.roles .sep { color: var(--ink-3); padding: 0 8px; font-weight: 400; }
.hero-sub { font-size: 18px; line-height: 28px; color: var(--ink-2); margin: 0 0 40px; max-width: 34rem; }

/* Height chart: the portrait stands against a 120–200 cm scale, 185 marked in pencil */
.chart { display: grid; grid-template-columns: 48px 1fr; gap: 12px; height: min(72svh, 680px); animation: rise 480ms 60ms var(--ease) both; }
.ruler { position: relative; border-right: 1px solid var(--ink); }
.ruler i {
  position: absolute; right: 0; height: 1px; width: 8px; background: var(--ink-3);
  top: calc((200 - var(--v)) / 80 * 100%);
}
.ruler i.major { width: 16px; background: var(--ink); }
.ruler i.major::before {
  content: attr(data-v); position: absolute; right: 22px; top: -8px;
  font: 400 12px/16px var(--mono); color: var(--ink-3);
}
.ruler i.mark { width: calc(100% + 36px); right: -36px; height: 1px; background: var(--mark); z-index: 2; }
.ruler i.mark::before {
  content: "185"; position: absolute; left: 0; top: -20px;
  font: 500 12px/16px var(--mono); color: var(--mark);
}

/* Photo frames: a contact-sheet slot until the real image is dropped into images/ */
.frame {
  position: relative; margin: 0; overflow: hidden; height: 100%;
  background: var(--frame); border-radius: var(--r-frame);
}
.frame img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.chart .frame img { object-position: 50% 15%; }
.frame .slot {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  display: flex; justify-content: space-between;
  font: 400 12px/16px var(--mono); color: var(--ink-3);
}

@media (max-width: 820px) {
  .hero { min-height: 0; padding: 48px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: 44px; }
  .roles, .hero-sub { font-size: 16px; line-height: 24px; }
  .hero-sub { margin-bottom: 32px; }
  .chart { height: 480px; grid-template-columns: 40px 1fr; }
}

/* ---------- Sections ---------- */
section.block { padding: 96px 0; border-top: 1px solid var(--line-soft); }
@media (max-width: 820px) { section.block { padding: 64px 0; } }
.label { font: 400 12px/16px var(--mono); color: var(--ink-3); margin: 0 0 12px; }
h2 { font: 400 clamp(36px, 4.4vw, 56px)/1.06 var(--serif); letter-spacing: -0.01em; margin: 0 0 48px; }
@media (max-width: 820px) { h2 { margin-bottom: 32px; } }

/* About */
/* Photo left, text right: the photo stretches to the height of the text so both columns end together */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: stretch; }
.about .frame { height: 100%; min-height: 480px; }
.about-text { align-self: center; }
.about h2 { margin: 0 0 32px; max-width: 16ch; }
.about-body p { margin: 0 0 16px; max-width: 60ch; color: var(--ink-2); }
.about-body p:first-child { font-size: 20px; line-height: 32px; color: var(--ink); }
.about-body p:last-child { margin: 0; }
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about .frame { height: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .about h2 { margin-bottom: 24px; }
  .about-body p:first-child { font-size: 18px; line-height: 28px; }
}

/* Portfolio: a contact sheet */
#portfolio { background: var(--raised); }
.sheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sheet figure { margin: 0; }
.sheet .frame { aspect-ratio: 2 / 3; height: auto; background: var(--frame); }
.sheet figcaption {
  display: flex; gap: 12px; padding-top: 8px;
  font: 400 12px/16px var(--mono); color: var(--ink-3);
}
.sheet figcaption span:last-child { color: var(--ink-2); font-family: var(--sans); font-size: 13px; }
@media (max-width: 820px) {
  .sheet { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* Experience */
.exp { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.exp h2 { margin-bottom: 24px; }
.exp-note { margin: 0; color: var(--ink-2); max-width: 44ch; }
.areas { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.areas li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  font: 400 clamp(22px, 2.4vw, 28px)/1.2 var(--serif);
}
.areas li span { font: 400 12px/16px var(--mono); color: var(--ink-3); white-space: nowrap; }
@media (max-width: 820px) { .exp { grid-template-columns: 1fr; gap: 32px; } }

/* Casting profile: a comp card */
#profile { background: var(--raised); }
.comp {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-card);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.06);
  overflow: hidden;
}
.comp-ticks {
  height: 12px; border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(to right, var(--ink-3) 0 1px, transparent 1px 40px) bottom / 100% 12px no-repeat,
    repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 8px) bottom / 100% 6px no-repeat;
}
.comp-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: 24px 32px; border-bottom: 1px solid var(--line-soft);
}
.comp-head strong { font: 400 32px/1.1 var(--serif); letter-spacing: -0.01em; }
.comp-head span { font: 400 12px/16px var(--mono); color: var(--ink-3); }
.comp-body { display: grid; grid-template-columns: 7fr 5fr; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-right: 1px solid var(--line-soft); }
.stat { padding: 24px 32px; }
.stat.r1 { border-bottom: 1px solid var(--line-soft); }
.stat dt { font: 400 12px/16px var(--mono); color: var(--ink-3); margin-bottom: 8px; }
.stat dd { margin: 0; font: 500 24px/1.1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.stat dd small { display: block; margin-top: 4px; font: 400 13px/20px var(--mono); color: var(--ink-3); letter-spacing: 0; }
.stat.wide { grid-column: span 2; }
.stat.text dd { font: 500 18px/1.3 var(--sans); letter-spacing: 0; }
.langs { padding: 24px 32px; }
.langs h3 { font: 400 12px/16px var(--mono); color: var(--ink-3); margin: 0 0 8px; }
.langs ul { list-style: none; margin: 0; padding: 0; }
.langs li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.langs li:last-child { border-bottom: 0; }
.langs li span:first-child { font-weight: 500; }
.langs li span:last-child { color: var(--ink-2); font-size: 14px; text-align: right; }
@media (max-width: 960px) {
  .comp-body { grid-template-columns: 1fr; }
  .stats { border-right: 0; border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 16px; }
  .stat { border-bottom: 1px solid var(--line-soft); }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .stat dd { font-size: 20px; }
  .comp-head, .langs { padding: 20px 16px; }
  .comp-head strong { font-size: 28px; }
}

/* Contact */
.contact { background: var(--night); color: #efe9de; border-top: 0; }
.contact .label { color: var(--night-2); }
.contact h2 { max-width: 16ch; margin-bottom: 24px; }
.contact p { max-width: 48ch; color: var(--night-2); margin: 0; font-size: 18px; line-height: 28px; }
.contact .actions { margin-top: 40px; }
.btn.on-dark { background: transparent; color: #efe9de; border-color: rgba(239, 233, 222, 0.24); }
.btn.on-dark:hover { background: rgba(239, 233, 222, 0.08); }
.btn.on-dark.primary { background: #efe9de; color: var(--night); border-color: #efe9de; }
.btn.on-dark.primary:hover { background: #fff; }
.contact dl { display: flex; flex-wrap: wrap; gap: 24px 48px; margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--night-line); }
.contact dd a { text-decoration: none; border-bottom: 1px solid rgba(239, 233, 222, 0.3); transition: border-color 150ms var(--ease); }
.contact dd a:hover { border-color: #efe9de; }
.contact dt { font: 400 12px/16px var(--mono); color: var(--night-2); margin-bottom: 4px; }
.contact dd { margin: 0; font-weight: 500; }
footer { background: var(--night); color: #8a847a; font: 400 12px/16px var(--mono); padding: 24px 0 32px; border-top: 1px solid var(--night-line); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.contact :focus-visible { outline-color: #efe9de; }

/* Justified paragraphs, with hyphenation so the word spacing stays even */
.hero-sub, .about-body p, .exp-note, .contact p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-text, .chart { animation: none; } }

/* ---------- Footer ---------- */
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer nav { display: flex; gap: 24px; }
footer a { color: #aaa398; text-decoration: none; }
footer a:hover { color: #efe9de; }

/* ---------- Legal pages and 404 ---------- */
.page-nav ul { display: flex; }
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font: 400 clamp(40px, 5vw, 56px)/1.06 var(--serif); letter-spacing: -0.01em; margin: 0 0 12px; }
.legal .updated { font-size: 14px; color: var(--ink-3); margin: 0 0 48px; }
.legal h2 { font: 600 18px/28px var(--sans); letter-spacing: 0; margin: 40px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p { margin: 0 0 16px; }
.legal ul { padding-left: 20px; margin: 0 0 16px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--ink); }
.notfound { min-height: calc(100svh - 64px - 73px); display: flex; align-items: center; padding: 64px 0; }
.notfound .num { font: 400 clamp(96px, 18vw, 200px)/1 var(--serif); margin: 0 0 8px; color: var(--ink); }
.notfound p { color: var(--ink-2); max-width: 40ch; margin: 0 0 32px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
