/* Jaylan Scott — styles
   Palette and rhythm borrow from the reference (warm light gray, deep green-black, sage on black);
   type is Anthropic Serif Display (display + the verse), Instrument Sans (body).
   The serif is served from assets/fonts as Latin-subset woff2, ~14 KB per weight. */

@font-face {
  font-family: "Anthropic Serif Display";
  src: url("assets/fonts/AnthropicSerif-Display-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Anthropic Serif Display";
  src: url("assets/fonts/AnthropicSerif-Display-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Anthropic Serif Display";
  src: url("assets/fonts/AnthropicSerif-Display-RegularItalic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Anthropic Serif Text";
  src: url("assets/fonts/AnthropicSerif-Text-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Anthropic Serif Text";
  src: url("assets/fonts/AnthropicSerif-Text-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Anthropic Serif Text";
  src: url("assets/fonts/AnthropicSerif-Text-RegularItalic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #E6E4DE;
  --ink: #1B2620;
  --ink-2: #33423A;
  --muted: #6F7872;
  --rule: rgba(27, 38, 32, .18);
  --dark: #0B0D0C;
  --light: #E6E4DE;
  --sage: #ABB7AA;
  --sage-dim: rgba(171, 183, 170, .35);
  --pad: clamp(20px, 3.6vw, 48px);
  --nav-h: 76px;
  --radius: 28px;
  --font-display: "Anthropic Serif Display", "Iowan Old Style", Georgia, serif;
  --font-body: "Anthropic Serif Text", Georgia, "Times New Roman", serif;
  --font-accent: "Anthropic Serif Display", Georgia, "Times New Roman", serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--dark);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
p, h1, h2 { margin: 0; }

.container { padding-inline: var(--pad); max-width: 1680px; margin-inline: auto; width: 100%; }

/* Hidden until the script has split the text; the no-motion path shows everything at once. */
.js [data-split], .js .hero__name { visibility: hidden; }
.motion-off [data-split], .motion-off .hero__name { visibility: visible; }

/* ---------- type ---------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: .95;
  font-size: clamp(42px, 6.6vw, 110px);
  text-wrap: balance;
}
.word { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .08em .04em .14em; margin: -.08em -.04em -.14em; }
.word > span { display: inline-block; }
.char { display: inline-block; }
.lede {
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -.005em;
  text-wrap: pretty;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: calc(var(--pad) * .55) var(--pad) auto;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  pointer-events: none;
}
.nav__group { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  padding: .62em 1.05em;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .005em;
  background: var(--pill-bg);
  color: var(--pill-fg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), transform .35s var(--ease-out);
}
.pill:hover, .pill.is-active { background: var(--pill-bg-hover); color: var(--pill-fg-hover); }
.pill:active { transform: scale(.96); }
html[data-nav="dark"]  { --pill-bg: rgba(24, 26, 25, .72); --pill-fg: var(--light); --pill-bg-hover: var(--light); --pill-fg-hover: var(--dark); }
html[data-nav="light"] { --pill-bg: var(--ink); --pill-fg: var(--light); --pill-bg-hover: #fff; --pill-fg-hover: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: fixed;
  inset: 0;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  color: var(--light);
  z-index: 0;
  background: var(--dark);
}
.hero.is-covered { visibility: hidden; }
.hero-spacer { height: 100svh; min-height: 520px; }
.hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 50% 20%;
  transform-origin: 50% 40%;
  will-change: transform;
}
.hero__media picture, .hero__img { width: 100%; height: 100%; }
.hero__img { object-fit: cover; object-position: 50% 30%; transform-origin: 50% 35%; }
@media (orientation: portrait) { .hero__img { object-position: 50% 20%; } }
.hero__shade {
  position: absolute;
  inset: 0;
  opacity: .78;
  background:
    linear-gradient(160deg, rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, .72) 92%),
    linear-gradient(0deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, 0) 46%);
}
.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: calc(var(--pad) * .9);
  will-change: transform;
}
.hero__name, .footer__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(52px, 13.4vw, 250px);
  line-height: .86;
  letter-spacing: .005em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.name-line { display: block; overflow: hidden; padding: .1em .04em .05em; margin: -.1em -.04em -.05em; white-space: nowrap; }
.name-line--end { align-self: flex-end; }
.hero__scroll {
  position: absolute;
  left: var(--pad);
  bottom: calc(var(--pad) * .9);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: opacity .5s;
}
.hero.is-scrolled .hero__scroll { opacity: 0 !important; }
.hero__scroll i { display: block; width: 44px; height: 1px; background: currentColor; animation: scrollhint 2.2s var(--ease-out) infinite; }
@keyframes scrollhint {
  0%   { transform: scaleX(0); transform-origin: left; }
  45%  { transform: scaleX(1); transform-origin: left; }
  55%  { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* ---------- page body slides over the hero ---------- */
.after-hero {
  position: relative;
  z-index: 2;
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -24px 80px rgba(0, 0, 0, .35);
}
.section { padding-block: clamp(88px, 12vw, 180px); }

/* ---------- about ----------
   Full-width heading, then the bio in two text columns with the headshot as a third column beside them;
   the verse and its gloss sit side by side underneath. */
.about.section { padding-block: clamp(64px, 8vw, 120px) clamp(72px, 9vw, 140px); }
.about .h-display { max-width: none; }
.about__body { margin-top: clamp(32px, 4vw, 56px); }
.about__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(210px, 23vw, 300px);
  gap: clamp(32px, 4.5vw, 72px);
  align-items: start;
}
.about .lede { font-size: clamp(17.5px, 1.45vw, 21px); line-height: 1.5; }
.about__bio { columns: 2; column-gap: clamp(28px, 3.5vw, 56px); }
.about__bio p { break-inside: avoid; margin-bottom: 1em; }
.about__bio p:last-child { margin-bottom: 0; }
.about__bio a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-color: var(--sage);
  transition: text-decoration-color .3s var(--ease-out);
}
.about__bio a:hover { text-decoration-color: var(--ink); }
/* The photo is not a card: its edges dissolve into the page, and its own wall colour has been
   tone-matched to the page background so the blend reads as one surface. */
.about__photo {
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  will-change: clip-path;
  -webkit-mask-image: radial-gradient(118% 108% at 58% 38%, #000 44%, rgba(0, 0, 0, .6) 74%, transparent 100%);
  mask-image: radial-gradient(118% 108% at 58% 38%, #000 44%, rgba(0, 0, 0, .6) 74%, transparent 100%);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }

.about__end {
  display: grid;
  gap: clamp(28px, 3.5vw, 52px);
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: clamp(28px, 3.5vw, 48px);
  border-top: 1px solid var(--rule);
}
/* The verse runs the full measure as a statement, then the gloss answers it from the right. */
.about__quote { margin: 0; }
.about__quote p {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(27px, 3.9vw, 66px);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: pretty;
}
.about__quote cite {
  display: block;
  margin-top: clamp(14px, 1.4vw, 20px);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.about__close { max-width: 58ch; margin-left: auto; }

/* ---------- contact / footer ---------- */
.contact {
  position: relative;
  z-index: 5;
  background: var(--dark);
  color: var(--light);
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: calc(var(--radius) * -1);
  padding-block: clamp(88px, 12vw, 180px) var(--pad);
}
.contact__grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.contact__email {
  display: inline-block;
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 40px);
  letter-spacing: -.02em;
  margin-top: clamp(24px, 3vw, 40px);
  position: relative;
  padding-bottom: 4px;
}
.contact__email::after, .contact__socials a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--sage); transform-origin: right; transition: transform .6s var(--ease-out);
}
.contact__email:hover::after, .contact__socials a:hover::after { transform: scaleX(0); transform-origin: left; }
.contact__socials { display: flex; gap: 24px; align-items: baseline; font-size: 15px; color: var(--sage); }
.contact__socials b { font-weight: 500; color: var(--light); margin-right: 8px; }
.contact__socials a { position: relative; padding-bottom: 2px; color: var(--light); }
.footer__name { margin-top: clamp(72px, 12vw, 180px); color: var(--light); overflow: hidden; }
.footer__meta {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(24px, 3vw, 40px); padding-top: 20px;
  border-top: 1px solid rgba(171, 183, 170, .25);
  font-size: 12px; color: var(--sage); letter-spacing: .08em; text-transform: uppercase;
}
.footer__meta a:hover { color: var(--light); }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .pill { font-size: 13px; padding: .58em .9em; }
  .hero__scroll { display: none; }
  .about__row { grid-template-columns: 1fr; }
  .about__photo { width: min(64%, 300px); order: -1; }
  .about__bio { columns: 1; }
  .about__end { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll i { animation: none; }
}

/* Touch devices: no backdrop blur over a moving fixed layer (a known iOS stutter), solid pills instead. */
html.is-touch .pill { backdrop-filter: none; -webkit-backdrop-filter: none; }
html.is-touch[data-nav="dark"] { --pill-bg: rgba(24, 26, 25, .88); }
html.is-touch .hero__content, html.is-touch .about__photo, html.is-touch .about__photo img { will-change: auto; }

/* ---------- in the news (news.html) ----------
   A secondary page, so no fixed portrait: a dark title band takes the hero's place and the light
   panel below slides up over it with the same rounded lip. Coverage is typographic rather than
   card-and-thumbnail — the outlet's name is the image, and no one else's photo is rehosted here. */
.pagehead {
  position: relative;
  z-index: 1;
  background: var(--dark);
  color: var(--light);
  min-height: min(54svh, 560px);
  display: flex;
  align-items: flex-end;
  padding-block: calc(var(--nav-h) + clamp(40px, 8vw, 104px)) clamp(56px, 8vw, 112px);
}
.pagehead .h-display { color: var(--light); }
.kicker {
  display: block;
  margin-bottom: clamp(16px, 2vw, 26px);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage);
}
.pagehead__lede {
  max-width: 60ch;
  margin-top: clamp(22px, 2.8vw, 38px);
  font-size: clamp(17.5px, 1.45vw, 22px);
  line-height: 1.5;
  color: var(--sage);
  text-wrap: pretty;
}
.pagehead__lede a {
  color: var(--light);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-color: var(--sage-dim);
  transition: text-decoration-color .3s var(--ease-out);
}
.pagehead__lede a:hover { text-decoration-color: var(--light); }

.press.section { padding-block: clamp(56px, 7vw, 104px) clamp(72px, 9vw, 140px); }
.press__list { border-top: 1px solid var(--rule); }
.press__item {
  display: grid;
  grid-template-columns: clamp(150px, 16vw, 240px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: start;
  padding-block: clamp(36px, 4.6vw, 68px);
  border-bottom: 1px solid var(--rule);
}
.press__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.press__outlet {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1;
  letter-spacing: .005em;
  color: var(--ink);
  margin-bottom: 4px;
}
.press__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(25px, 2.9vw, 44px);
  line-height: 1.08;
  letter-spacing: -.005em;
  text-wrap: balance;
}
/* The rule under a headline draws in on hover instead of sitting there permanently. */
.press__title a {
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .55s var(--ease-out);
  padding-bottom: .04em;
}
.press__item:hover .press__title a, .press__title a:focus-visible { background-size: 100% 1px; }
.press__dek {
  margin-top: clamp(16px, 1.8vw, 24px);
  max-width: 68ch;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}
.press__quote {
  margin: clamp(20px, 2.4vw, 32px) 0 0;
  padding-left: clamp(16px, 1.8vw, 26px);
  border-left: 2px solid var(--sage);
  max-width: 60ch;
}
.press__quote p {
  font-family: var(--font-accent);
  font-style: italic;
  font-synthesis: none;
  font-size: clamp(19px, 1.9vw, 27px);
  line-height: 1.28;
  color: var(--ink);
  text-wrap: pretty;
}
.press__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(20px, 2.4vw, 30px);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s var(--ease-out);
}
.press__cta i { font-style: normal; transition: transform .45s var(--ease-out); }
.press__item:hover .press__cta { color: var(--ink); }
.press__item:hover .press__cta i { transform: translate(3px, -3px); }
.press__note {
  margin-top: clamp(32px, 4vw, 56px);
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--muted);
}
.press__note a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-color: var(--sage);
  transition: text-decoration-color .3s var(--ease-out);
}
.press__note a:hover { text-decoration-color: var(--ink); }

@media (max-width: 760px) {
  .pagehead { min-height: 0; padding-block: calc(var(--nav-h) + 56px) 56px; }
  .press__item { grid-template-columns: 1fr; gap: 14px; }
  .press__meta { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
  .press__outlet { margin-bottom: 0; }
}

/* --- TEMP hero-name comparison, driven by ?hero= ; delete once a treatment is chosen --- */
html[data-hero] .hero__name, html[data-hero] .footer__name { font-family: "Instrument Sans", system-ui, sans-serif; }
html[data-hero="sansreg"]  .hero__name, html[data-hero="sansreg"]  .footer__name { font-weight: 400; font-size: clamp(56px, 15.8vw, 296px); letter-spacing: -.01em; }
html[data-hero="sansmed"]  .hero__name, html[data-hero="sansmed"]  .footer__name { font-weight: 500; font-size: clamp(56px, 15.4vw, 288px); letter-spacing: -.015em; }
html[data-hero="sanssemi"] .hero__name, html[data-hero="sanssemi"] .footer__name { font-weight: 600; font-size: clamp(56px, 15.2vw, 284px); letter-spacing: -.02em; }
html[data-hero="sansbold"] .hero__name, html[data-hero="sansbold"] .footer__name { font-weight: 700; font-size: clamp(56px, 15vw, 280px); letter-spacing: -.025em; }
html[data-hero="sanstitle"] .hero__name, html[data-hero="sanstitle"] .footer__name { font-weight: 600; text-transform: none; font-size: clamp(64px, 17.6vw, 328px); letter-spacing: -.03em; }
html[data-hero="bricolage"] .hero__name, html[data-hero="bricolage"] .footer__name { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-stretch: 92%; font-size: clamp(66px, 17.4vw, 320px); letter-spacing: -.03em; }

/* --- TEMP hero "lift" studies, driven by ?lift= ; delete once one is chosen --- */
/* 1 soft: a wide, low-opacity shadow so the type floats off the brushwork */
html[data-lift="soft"] .hero__name { text-shadow: 0 2px 28px rgba(0, 0, 0, .38); }
/* 2 deep: a tighter cast shadow under a wide one, more physical */
html[data-lift="deep"] .hero__name { text-shadow: 0 10px 44px rgba(0, 0, 0, .5), 0 2px 4px rgba(0, 0, 0, .38); }
/* 3 raised: same type, sitting higher in the frame */
html[data-lift="raised"] .hero__content { padding-bottom: clamp(64px, 11vh, 132px); }
html[data-lift="raised"] .hero__name { text-shadow: 0 2px 24px rgba(0, 0, 0, .32); }
/* 4 sheen: light falls off down the letterform, so it reads as a lit surface */
html[data-lift="sheen"] .hero__name { filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .42)); }
html[data-lift="sheen"] .hero__name .char {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1EFE9 44%, #B9B7AE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* 5 stagger: the two words step apart in depth as well as position */
html[data-lift="stagger"] .hero__name .name-line:first-child { text-shadow: 0 3px 22px rgba(0, 0, 0, .3); opacity: .92; }
html[data-lift="stagger"] .hero__name .name-line--end { text-shadow: 0 12px 46px rgba(0, 0, 0, .55), 0 2px 4px rgba(0, 0, 0, .4); }

/* --- TEMP name-animation studies, driven by ?anim= ; delete once one is chosen --- */
/* The sheen stays per letter (a line-level background-clip:text renders nothing here), and the
   travelling highlight comes from staggering each letter's animation-delay by its index. */
@keyframes charSheen {
  0%   { background-position: 100% 0, 0 0; }
  34%  { background-position: 0% 0, 0 0; }
  100% { background-position: 0% 0, 0 0; }
}
html[data-anim="sweep"] .hero__name .char,
html[data-anim="pointer"] .hero__name .char,
html[data-anim="combo"] .hero__name .char {
  background-image:
    linear-gradient(100deg, rgba(255, 255, 255, 0) 43%, #FFFFFF 50%, rgba(255, 255, 255, 0) 57%),
    linear-gradient(180deg, #FFFFFF 0%, #F1EFE9 44%, #B9B7AE 100%);
  background-size: 900% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: 100% 0, 0 0;
}
@media (prefers-reduced-motion: no-preference) {
  html[data-anim="sweep"] .hero__name .char,
  html[data-anim="combo"] .hero__name .char {
    animation: charSheen 8s cubic-bezier(.45, 0, .3, 1) infinite;
    animation-delay: calc(var(--i, 0) * .055s);
  }
}
