/* ==========================================================================
   Zilly Studio: tokens and component styles
   Plain CSS with custom properties. Fonts are loaded from the page head.
   ========================================================================== */

:root {
  --cream: #faf5ec;
  --surface: #fdfaf3;
  --paper: #f3ebdd;
  --sand: #e7dbc7;
  --sand-deep: #d8c7ac;
  --ink: #211c16;
  --ink-2: #3a322a;
  --brown: #574c40;
  --brown-line: #74685a;
  --muted: #7a6c5b;
  --clay: #bb4d30;
  --clay-deep: #963a22;
  --clay-tint: #fbede6;
  --pink: #d79984;

  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Hanken Grotesk', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--clay); }
a:hover { color: var(--clay-deep); }
em { font-style: italic; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 2px; }
.eyebrow { font-size: 16px; color: var(--clay); margin-bottom: 16px; }
.lede { font-size: 20px; line-height: 1.45; max-width: 640px; margin-top: 20px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-size: 18px; font-weight: 600; text-decoration: none; padding: 14px 26px; border-radius: 12px; border: 2px solid transparent; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { color: var(--cream); background: var(--ink-2); }
.btn-clay { background: var(--clay); color: var(--surface); padding: 16px 30px; font-size: 19px; }
.btn-clay:hover { color: var(--surface); background: var(--clay-deep); }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--sand); padding: 14px 28px; font-size: 19px; }
.btn-light:hover { color: var(--ink); border-color: var(--sand-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Nav ---------- */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 40px; height: auto; display: block; }
.brand-name { font-family: var(--serif); font-size: 26px; color: var(--ink); letter-spacing: -0.5px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.nav-link { font-size: 18px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.nav-link:hover { color: var(--clay); }
.nav-link.is-active { color: var(--clay); font-weight: 600; }

/* ---------- Bands (top and bottom of the home page) ---------- */
.band { background: var(--brown); color: var(--sand); }
.band .brand-name, .band .nav-link { color: var(--cream); }
.band .nav-link:hover { color: var(--pink); }
.band .btn-ink { background: var(--cream); color: var(--ink); }
.band .btn-ink:hover { background: var(--sand); color: var(--ink); }
.band h1, .band h2, .band h3 { color: var(--cream); }
.band h2 em { color: var(--clay-tint); }
.band .eyebrow { color: var(--sand-deep); }
.band-bottom { margin-top: 56px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; width: 100%; }
.hero-flight {
  --h: clamp(240px, 29vw, 390px);
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  height: var(--h); width: calc(var(--h) * 5.5714); max-width: none; display: block;
}
.hero-text {
  position: relative; z-index: 1;
  min-height: 560px; padding-top: 56px; padding-bottom: 72px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 16px;
}
.hero-text h1, .hero-right {
  margin: 0; flex: 0 1 auto;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 5.4vw, 72px); line-height: 1.06; letter-spacing: -1.5px;
  color: var(--cream);
}
.hero-text h1 { align-self: flex-start; text-align: left; }
.hero-right { align-self: flex-end; text-align: right; }
.hero-text em { color: var(--pink); }
.hero-gap { flex: 1 1 220px; min-width: 0; min-height: 80px; }

/* ---------- Services ---------- */
.services-head { padding-top: 72px; padding-bottom: 24px; }
.services-head h2 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; letter-spacing: -1.5px; }
.services-head em, .how h2 em, .team-home h2 em, .profile-hero h1 em, .page-head h1 em, .exp h2 em, .speaking h2 em { color: var(--clay); }
.band .how h2 em, .band .team-home h2 em { color: var(--clay-tint); }

.svc { padding-top: 28px; padding-bottom: 20px; }
.svc-card { background: var(--paper); border: 1px solid var(--sand); border-radius: 24px; padding: 40px; display: flex; flex-wrap: wrap; gap: 40px; }
.svc-left { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.svc-num { width: 68px; height: 68px; border-radius: 14px; background: var(--svc); color: var(--cream); font-family: var(--serif); font-size: 46px; display: flex; align-items: center; justify-content: center; }
.svc-left h3 { font-size: clamp(38px, 5vw, 60px); line-height: 1.05; letter-spacing: -1px; }
.pains { display: flex; flex-direction: column; gap: 12px; }
.pains li { display: flex; align-items: center; gap: 12px; font-size: 20px; color: var(--ink-2); }
.pains .box { width: 16px; height: 16px; border-radius: 4px; flex: none; border: 2px solid var(--svc); }
.measure { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 16px 22px; background: var(--ink); border-radius: 12px; }
.measure .mono { font-size: 13px; color: #cd6a4c; }
.measure ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.measure li { font-family: var(--serif); font-size: 24px; color: var(--cream); }
.measure li + li { border-left: 1px solid #9c8e7b; padding-left: 24px; }

.svc-right { flex: 1 1 420px; min-width: 0; background: var(--surface); border: 1px solid var(--sand); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.svc-top { display: flex; align-items: center; justify-content: space-between; }
.counter { font-size: 14px; color: var(--clay-deep); }
.dots { display: flex; gap: 10px; }
.dot { width: 44px; height: 44px; border: 0; background: transparent; padding: 0; display: flex; align-items: center; justify-content: center; }
.dot span { display: block; height: 12px; width: 12px; border-radius: 9999px; background: var(--sand-deep); transition: width .2s; }
.dot.is-active span { width: 32px; background: var(--svc); }

.step-art { background: var(--paper); border-radius: 14px; padding: 16px; display: flex; justify-content: center; margin-bottom: 20px; }
.step-art img { width: 100%; max-width: 420px; height: auto; display: block; }
.step h4 { font-size: 38px; line-height: 1.1; }
.step p { margin-top: 10px; font-size: 21px; line-height: 1.4; }
.steps { min-height: 96px; }
/* Without JS every step is shown. With JS, one at a time. */
.js .step { display: none; }
.js .step.is-active { display: block; }
.step + .step { margin-top: 28px; }
.js .step + .step { margin-top: 0; }
.arrows, .dots, .counter { }
html:not(.js) .arrows, html:not(.js) .dots, html:not(.js) .counter { display: none; }
.arrows { display: flex; gap: 12px; }
.arrow { width: 56px; height: 56px; border-radius: 9999px; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; padding: 0; }
.arrow:hover { background: var(--paper); }
.arrow-solid { background: var(--ink); color: var(--cream); }
.arrow-solid:hover { background: var(--ink-2); }

/* ---------- How we work ---------- */
.how { padding-top: 72px; padding-bottom: 24px; }
.how h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.1; letter-spacing: -1px; }
.how-cards { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; }
.card { flex: 1 1 280px; min-width: 0; background: var(--surface); border: 1px solid var(--sand); border-radius: 16px; padding: 28px; color: var(--brown); }
.how .card .mono, .stat + .stat { }
.card .mono { font-size: 14px; color: var(--clay); margin-bottom: 12px; }
.how .card p:last-child { font-size: 20px; line-height: 1.45; color: var(--ink-2); }

/* ---------- Team (home) ---------- */
.team-home { padding-top: 72px; padding-bottom: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.team-copy { flex: 1 1 360px; min-width: 0; }
.team-home h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.08; letter-spacing: -1px; }
.team-home .lede { font-size: 21px; line-height: 1.5; margin-top: 24px; color: var(--sand); max-width: none; }
.team-photo { flex: 1 1 420px; min-width: 0; margin: 0; }
.team-photo img { width: 100%; height: 520px; object-fit: cover; object-position: 50% 15%; border-radius: 20px; display: block; }
.team-photo figcaption { margin-top: 14px; font-family: var(--serif); font-size: 24px; color: var(--cream); }

/* ---------- CTA + closing ---------- */
.cta-wrap { padding-top: 56px; padding-bottom: 24px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; text-decoration: none; background: var(--clay-tint); border: 2px dashed var(--clay); border-radius: 16px; padding: 36px 24px; text-align: center; }
.cta .plus { width: 40px; height: 40px; border-radius: 9999px; background: var(--clay); color: var(--surface); font-size: 30px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.cta-text { font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); color: var(--ink); }
.cta-text em { color: var(--clay); }
.closing { padding-top: 24px; padding-bottom: 56px; text-align: right; }
.closing p { font-family: var(--serif); font-size: clamp(34px, 5vw, 64px); line-height: 1.1; letter-spacing: -1px; color: var(--cream); }
.closing em { color: var(--clay-tint); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--sand); }
.band .footer { border-top-color: var(--brown-line); }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 44px; height: auto; display: block; }
.footer .mono { font-size: 14px; color: var(--muted); }
.footer p { font-size: 16px; color: var(--muted); }
.band .footer .mono, .band .footer p { color: var(--sand); }

/* ---------- Team and profile pages ---------- */
.page-head { padding-top: 56px; padding-bottom: 24px; }
.page-head h1 { font-size: clamp(46px, 7vw, 88px); line-height: 1.04; letter-spacing: -2px; }
.page-head .lede { font-size: 22px; line-height: 1.45; max-width: 620px; margin-top: 24px; }
.members { padding-top: 40px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 24px; }
.member { flex: 0 1 360px; min-width: 0; text-decoration: none; background: var(--surface); border: 1px solid var(--sand); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.member img { width: 100%; height: 400px; object-fit: cover; object-position: 50% 15%; border-radius: 14px; display: block; }
.member h2 { font-size: 36px; line-height: 1.1; }
.member p { margin-top: 8px; font-size: 19px; line-height: 1.4; color: var(--brown); }
.member .view { font-size: 14px; color: var(--clay-deep); }
.member:hover { border-color: var(--sand-deep); }

.back { padding-top: 8px; }
.back a { font-size: 14px; color: var(--clay-deep); text-decoration: none; }
.profile-hero { padding-top: 32px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.profile-copy { flex: 1 1 480px; min-width: 0; }
.profile-hero h1 { font-size: clamp(46px, 7vw, 88px); line-height: 1.04; letter-spacing: -2px; }
.profile-copy .role { margin-top: 20px; font-size: 24px; line-height: 1.4; color: var(--ink-2); }
.profile-copy .lede { font-size: 21px; line-height: 1.5; max-width: 560px; }
.profile-photo { flex: 1 1 320px; min-width: 0; width: 100%; height: 520px; object-fit: cover; object-position: 50% 15%; border-radius: 20px; display: block; }

.stats { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 16px; }
.stats .card { flex: 1 1 240px; }
.stat-v { font-family: var(--serif); font-size: 60px; line-height: 1.05; color: var(--ink); }
.stat p:last-child { margin-top: 8px; font-size: 19px; line-height: 1.35; }

.exp { padding-top: 64px; padding-bottom: 24px; }
.exp h2, .speaking h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.1; letter-spacing: -1px; }
.exp h2 { margin-bottom: 32px; }
.job { background: var(--paper); border: 1px solid var(--sand); border-radius: 20px; padding: 36px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.job .meta { font-size: 14px; color: var(--clay-deep); }
.job h3 { margin-top: 10px; font-size: 34px; line-height: 1.15; }
.job .company { font-size: 20px; }
.job ul { margin-top: 14px; padding-left: 22px; list-style: disc; display: flex; flex-direction: column; gap: 12px; font-size: 19px; line-height: 1.5; color: var(--ink-2); }

.edu { padding-top: 48px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 16px; }
.edu .card { flex: 1 1 320px; }
.edu-title { font-family: var(--serif); font-size: 28px; line-height: 1.2; color: var(--ink); }
.edu .card p:last-child { margin-top: 6px; font-size: 19px; }

.speaking { padding-top: 48px; padding-bottom: 24px; }
.talks { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px; }
.talks .card { flex: 1 1 250px; padding: 24px; }
.talks .card p:last-child { font-size: 19px; line-height: 1.45; color: var(--ink-2); }
.plain .cta-wrap { padding-top: 72px; padding-bottom: 96px; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .svc-card { padding: 24px; }
  .svc-right { padding: 20px; }
  .hero-text { min-height: 480px; }
  .nav-links { gap: 18px; }
  .nav .btn { padding: 10px 18px; font-size: 16px; }
  .step h4 { font-size: 32px; }
  .job { padding: 24px; }
}

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