/* Jaylan Scott — styles
   Palette and rhythm borrow from the reference (warm light gray, deep green-black, sage on black);
   type is Bricolage Grotesque (display), Instrument Sans (body), Instrument Serif italic (the one odd glyph). */

*, *::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: "Bricolage Grotesque", "Arial Black", Impact, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-accent: "Instrument Serif", 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: 17px;
  line-height: 1.5;
  -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: 800;
  font-stretch: 92%;
  font-optical-sizing: auto;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: .9;
  font-size: clamp(44px, 7.4vw, 124px);
  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; }
.char--alt {
  font-family: var(--font-accent);
  font-weight: 400;
  font-style: italic;
  text-transform: lowercase;
  font-size: 1.14em;
  line-height: .65;
  letter-spacing: 0;
  margin: 0 -.03em 0 -.01em;
}
.lede {
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.45;
  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: 800;
  font-stretch: 92%;
  font-optical-sizing: auto;
  font-size: clamp(66px, 17.4vw, 320px);
  line-height: .84;
  letter-spacing: -.03em;
  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(200px, 22vw, 280px);
  gap: clamp(32px, 4.5vw, 72px);
  align-items: start;
}
.about .lede { font-size: clamp(17px, 1.4vw, 20px); }
.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); }
.about__photo {
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  overflow: hidden;
  background: var(--rule);
  will-change: clip-path;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.about__end {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: clamp(28px, 3.5vw, 48px);
  border-top: 1px solid var(--rule);
}
.about__quote { margin: 0; max-width: 30ch; }
.about__quote p {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 2.7vw, 42px);
  line-height: 1.14;
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: pretty;
}
.about__quote cite {
  display: block;
  margin-top: 14px;
  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; }

/* ---------- 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(62%, 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; }
