/* Frisson Writing. Beige scale, Lora and Inter. */
@font-face { font-family: "Lora"; src: url("fonts/lora.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/lora-italic.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }

:root {
  --linen: #F3EDE2;
  --paper: #FAF6EF;
  --oat: #E8DECD;
  --sand: #D5C4A8;
  --camel: #A88C66;
  --bark: #6A5540;
  --espresso: #2B2118;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--linen); color: var(--espresso); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
:focus-visible { outline: 2px solid var(--espresso); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--espresso); color: var(--linen); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* Type */
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; }
h3 { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; line-height: 1.3; }
.lede { font-size: clamp(1.06rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--bark); max-width: 36em; }
.muted { color: var(--bark); }
.intro { margin-top: 18px; color: var(--bark); max-width: 34em; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--linen) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--sand); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand-text { display: inline-flex; align-items: baseline; gap: 9px; text-decoration: none; }
.brand-text .bf { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.65rem; line-height: 1; }
.brand-text .bw { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--bark); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); font-size: 0.94rem; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a.pill { padding: 9px 18px; }
.nav a:not(.pill):hover { color: var(--bark); }
.nav a[aria-current="page"]:not(.pill) { text-decoration: underline; text-decoration-color: var(--camel); }
.pill { display: inline-block; padding: 9px 18px; border-radius: 999px; background: var(--espresso); color: var(--paper); font-weight: 500; text-decoration: none; transition: background .2s; }
.pill:hover { background: var(--bark); }
.menu-btn { display: none; font: inherit; font-size: 0.94rem; background: none; border: 1px solid var(--camel); color: inherit; border-radius: 999px; padding: 7px 16px; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 0.96rem; font-weight: 500; text-decoration: none; padding: 13px 24px; border-radius: 999px; border: 1px solid var(--espresso); transition: background .2s, color .2s, border-color .2s; }
.btn.solid { background: var(--espresso); color: var(--paper); }
.btn.solid:hover { background: var(--bark); border-color: var(--bark); }
.btn.ghost:hover { background: var(--espresso); color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.more { font-weight: 500; font-size: 0.95rem; white-space: nowrap; }

/* Sections */
section { padding: clamp(64px, 9vw, 120px) 0; }
.sec-paper { background: var(--paper); }
.sec-oat { background: var(--oat); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero .lede { margin-top: 24px; }
.fan { position: relative; aspect-ratio: 1 / 1; }
.fan .frame { position: absolute; width: 58%; box-shadow: 0 24px 50px -24px rgba(43,33,24,.55); }
.fan .frame:nth-child(1) { left: 0; top: 14%; transform: rotate(-6deg); }
.fan .frame:nth-child(2) { left: 21%; top: 4%; z-index: 2; }
.fan .frame:nth-child(3) { right: 0; top: 16%; transform: rotate(6deg); }
@media (prefers-reduced-motion: no-preference) {
  .fan .frame { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
  .fan:hover .frame:nth-child(1) { transform: rotate(-9deg) translateX(-10px); }
  .fan:hover .frame:nth-child(3) { transform: rotate(9deg) translateX(10px); }
}

/* Recognition strip */
.recog { padding: 28px 0; border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); }
.recog .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; }
.recog p { font-size: 0.9rem; color: var(--bark); }
.recog ul { display: flex; flex-wrap: wrap; gap: 10px 32px; }
.recog li { font-family: var(--serif); font-size: 1.02rem; }
.recog li span { font-family: var(--sans); font-size: 0.84rem; color: var(--bark); margin-left: 6px; }

/* Covers */
.frame { aspect-ratio: 3 / 4; background: var(--sand); border-radius: 6px; overflow: hidden; display: grid; place-items: center; }
.frame.has-img { background: var(--oat); padding: 0; }
.frame.has-img > img { width: 100%; height: 100%; object-fit: cover; }
.frame { position: relative; }
.slot { aspect-ratio: 3 / 4; display: flex; align-items: flex-end; }
.slot .frame.wide { width: 100%; }
.card.is-wide { grid-column: span 2; }
.card.is-wide .slot { aspect-ratio: 3 / 2; }
.ph { width: 100%; height: 100%; padding: 12% 11%; display: flex; flex-direction: column; justify-content: space-between; background: var(--c, var(--sand)); color: var(--espresso); container-type: inline-size; }
.ph.dark { color: var(--paper); }
.ph b { font-family: var(--serif); font-weight: 400; font-size: 10cqw; line-height: 1.15; }
.ph small { display: block; font-size: 5.4cqw; margin-top: 3cqw; opacity: .8; }
.ph i { font-family: var(--serif); font-size: 18cqw; line-height: 1; opacity: .85; }

/* Rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 24vw, 280px); gap: clamp(18px, 2.4vw, 32px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 4px var(--gutter) 24px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: thin; scrollbar-color: var(--camel) transparent; }
.rail > * { scroll-snap-align: start; }

/* Project card */
.card { display: block; position: relative; text-decoration: none; }
.card .frame, .card .slot .frame { transition: transform .3s ease, box-shadow .3s ease; box-shadow: 0 1px 0 rgba(43,33,24,.06); }
a.card:hover .frame { transform: translateY(-4px); box-shadow: 0 20px 34px -20px rgba(43,33,24,.5); }
.card h3 { margin-top: 16px; font-size: 1.08rem; }
.card .sub { font-size: 0.88rem; color: var(--bark); margin-top: 2px; line-height: 1.5; }
.card .role { font-size: 0.86rem; margin-top: 8px; line-height: 1.5; }
.card .link { display: inline-block; font-size: 0.86rem; font-weight: 500; margin-top: 8px; text-decoration: underline; text-decoration-color: var(--camel); }
.awards { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.award { display: inline-flex; align-self: flex-start; align-items: center; gap: 7px; font-size: 0.78rem; line-height: 1.3; padding: 5px 11px 5px 9px; border-radius: 999px; background: var(--espresso); color: var(--paper); }
.award::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sand); flex: none; }
.award.short { background: transparent; color: var(--espresso); border: 1px solid var(--camel); }
.award.short::before { background: var(--camel); }

/* Grid */
.grid { grid-auto-flow: dense; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: clamp(32px, 4vw, 52px) clamp(20px, 2.6vw, 36px); }
.grid article[hidden] { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button { font: inherit; font-size: 0.9rem; color: inherit; background: var(--paper); padding: 8px 18px; border: 1px solid var(--sand); border-radius: 999px; cursor: pointer; }
.filters button:hover { border-color: var(--camel); }
.filters button[aria-pressed="true"] { background: var(--espresso); border-color: var(--espresso); color: var(--paper); }
.disclaimer { margin-top: 64px; font-size: 0.88rem; color: var(--bark); max-width: 46em; }

/* Split with sticky heading */
.split { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split > .stick { position: sticky; top: 112px; }

/* Accordion */
.acc { border-top: 1px solid var(--sand); }
.acc details { border-bottom: 1px solid var(--sand); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; flex: none; width: 13px; height: 13px; background: linear-gradient(var(--espresso), var(--espresso)) center/100% 1.5px no-repeat, linear-gradient(var(--espresso), var(--espresso)) center/1.5px 100% no-repeat; transition: transform .25s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc summary .tag { margin-left: auto; font-family: var(--sans); font-size: 0.8rem; color: var(--bark); }
.acc .body { padding: 0 0 24px; color: var(--bark); max-width: 40em; }
.acc .body p + p { margin-top: 10px; }

/* Plain list */
.list { border-top: 1px solid var(--sand); }
.list li { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr; gap: 8px 32px; padding: 20px 0; border-bottom: 1px solid var(--sand); }
.list li h3 { font-size: 1.08rem; }
.list li p { color: var(--bark); font-size: 0.96rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tags li { font-size: 0.84rem; padding: 6px 13px; border: 1px solid var(--camel); border-radius: 999px; }

/* Timeline */
.timeline { position: relative; counter-reset: s; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 1px; background: var(--camel); }
.timeline li { position: relative; padding: 0 0 36px 60px; counter-increment: s; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 31px; height: 31px; border-radius: 50%; background: var(--linen); border: 1px solid var(--camel); display: grid; place-items: center; font-size: 0.8rem; font-weight: 500; }
.sec-paper .timeline li::before { background: var(--paper); }
.timeline h3 { margin-bottom: 4px; }
.timeline p { color: var(--bark); font-size: 0.97rem; max-width: 36em; }

/* Examples */
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.examples li { background: var(--paper); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.examples .when { align-self: flex-start; font-size: 0.8rem; font-weight: 500; padding: 4px 11px; border-radius: 999px; background: var(--oat); }
.examples p { color: var(--bark); font-size: 0.95rem; }

/* Founder */
.founder, .hero .wrap.founder { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.portrait { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; background: var(--sand); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait + figcaption { font-size: 0.84rem; color: var(--bark); margin-top: 10px; }
.bio p { font-size: 1.05rem; max-width: 34em; }
.bio p + p { margin-top: 14px; }
.bio h2 { margin-bottom: 22px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-top: 32px; }
.facts div { padding: 14px 0; border-top: 1px solid var(--sand); }
.facts dt { font-weight: 500; font-size: 0.96rem; }
.facts dd { color: var(--bark); font-size: 0.9rem; }

/* CTA */
.cta { background: var(--espresso); color: var(--paper); }
.cta .wrap { display: flex; justify-content: space-between; align-items: end; gap: 28px 48px; flex-wrap: wrap; }
.cta p { color: var(--sand); margin-top: 14px; max-width: 30em; }
.cta .btn { border-color: var(--paper); color: var(--paper); }
.cta .btn:hover { background: var(--paper); color: var(--espresso); }
.mail { font-family: var(--serif); font-size: clamp(1.4rem, 4vw, 3rem); line-height: 1.2; overflow-wrap: anywhere; text-decoration-color: var(--camel); }

/* Contact */
.contact-list { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 40px; }
.contact-list div { border-top: 1px solid var(--sand); padding-top: 16px; }
.contact-list dt { font-weight: 500; }
.contact-list dd { color: var(--bark); font-size: 0.95rem; margin-top: 4px; }

/* Footer */
.site-foot { background: var(--espresso); color: var(--sand); font-size: 0.88rem; padding: 0 0 40px; }
.site-foot .wrap { border-top: 1px solid var(--bark); padding-top: 32px; display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: space-between; align-items: center; }
.site-foot img { height: 50px; width: auto; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a { color: var(--paper); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .hero .wrap, .split, .founder, .hero .wrap.founder { grid-template-columns: 1fr; }
  .split > .stick { position: static; }
  .fan { max-width: 440px; width: 100%; margin: 0 auto; }
  .examples, .contact-list { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .portrait { max-width: 360px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--linen); flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--sand); }
  .nav.open { display: flex; }
  .nav .pill { margin-top: 8px; }
  .list li { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
