/* BY IRIS. Editorial rebuild.
   Three typographic voices, one forest palette, generous space.
   styles.css is left untouched because capstone.html still loads it. */

:root {
  --depth:     #1E3A2D;
  --pine: #0F2921;   /* chapter bands, the darkest step */
  --forest:    #1E3A2D;
  --moss:      #264A3B;
  --sage:      #657565;
  --bone:      #E8E4D8;
  --highlight: #B7C4AD;
  --accent:       #DD8F86;   /* coral, the accent on the dark ground */
  --accent-hover: #E8B3A9;
  --accent-paper: #9E5A52;   /* coral deepened until it clears AA on paper (4.5:1) */
  --accent-paper-hover: #B96A61;

  --paper:     #F2EFE6;
  --paper-ink: #14201A;

  --serif: "Instrument Serif", "Fraunces", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --measure: 34em;
  --rule: rgba(101, 117, 101, .28);
  --rule-paper: rgba(20, 32, 26, .16);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--depth);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- shared type ---------- */

.mono {
  font-family: var(--mono);
  font-weight: 400;
  font-size: .72rem;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
/* The serif at four steps and no others. */
:root {
  --serif-1: clamp(2.6rem, 6.4vw, 5.4rem);
  --serif-2: clamp(1.9rem, 3.5vw, 3rem);
  --serif-3: clamp(1.25rem, 1.9vw, 1.6rem);
  --serif-4: 1.1rem;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.015em;
  margin: 0;
}

.section-title { margin: 0; color: inherit; }

.nobr { white-space: nowrap; }

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

.shell { padding-inline: var(--gutter); }
.wide  { max-width: 1560px; margin-inline: auto; }

/* Skip link, visible only on focus. */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--bone); color: var(--depth);
  padding: .75rem 1.25rem; font-family: var(--mono); font-size: .7rem;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- masthead ---------- */

.masthead {
  position: fixed; isolation: isolate; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  padding: 1.6rem var(--gutter);
  transition: background .5s ease, backdrop-filter .5s ease, border-color .5s ease;
  border-bottom: 1px solid transparent;
}
.masthead::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(30, 58, 45, .92), rgba(30, 58, 45, 0));
  pointer-events: none;
}
/* Settled, the bar keeps its gradient and gains a blur; both fade out toward
   the bottom so there is no hard edge over the paper below. */
.masthead.is-settled { border-bottom-color: transparent; }
.masthead.is-settled::before {
  background: linear-gradient(to bottom, rgba(30, 58, 45, .94) 0%, rgba(30, 58, 45, .7) 60%, rgba(30, 58, 45, 0) 100%);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
}
.wordmark { text-decoration: none; color: var(--bone); letter-spacing: .22em; }
.masthead nav { display: flex; gap: clamp(1.1rem, 2.6vw, 2.6rem); }
.masthead nav a {
  text-decoration: none; color: var(--highlight);
  opacity: .9; transition: opacity .3s ease;
  padding-block: .25rem;
}
.masthead nav a:hover, .masthead nav a:focus-visible { opacity: 1; }
/* Marks the section currently in view. */
.masthead nav a { position: relative; }
.masthead nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.15rem;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
.masthead nav a.is-current { opacity: 1; }
.masthead nav a.is-current::after { transform: scaleX(1); background: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .masthead nav a::after { transition: none; }
}

@media (max-width: 40rem) {
  .nobr { white-space: normal; }
  .masthead { padding: 1.1rem var(--gutter); }
  .masthead nav { gap: .95rem; }
  .masthead nav a { font-size: .58rem; letter-spacing: .1em; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: clamp(26rem, 68svh, 40rem);
  display: grid;
  align-content: end;
  padding: 7rem var(--gutter) clamp(2.5rem, 6vh, 4rem);
  overflow: hidden;
  isolation: isolate;
}
.hero-art {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .92;
}
/* Keeps the headline legible over the artwork without flattening it. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, var(--depth) 0%, rgba(30, 58, 45,.86) 34%, rgba(30, 58, 45,.15) 70%, rgba(30, 58, 45,.45) 100%),
    linear-gradient(to top, var(--depth) 2%, transparent 42%);
}
.hero-inner { max-width: 1560px; margin-inline: auto; width: 100%; }
.hero h1 {
  font-size: var(--serif-1);
  max-width: 20ch;
  margin-bottom: clamp(1.75rem, 4vh, 3rem);
}
.hero-kicker { color: var(--highlight); line-height: 2; opacity: .85; }
/* Her own hand under the headline, well below the headline's weight: the serif
   says what the site is, the handwriting says who is behind it. The last two
   words are coral in the scan itself, the accent's first appearance. */
.hero-hand { width: min(25rem, 58%); height: auto; margin-top: clamp(1.25rem, 3vh, 2rem); opacity: .92; }
@media (max-width: 40rem) { .hero-hand { width: 84%; } }
.hero-kicker span { display: block; }

.scroll-cue {
  position: absolute; right: var(--gutter); bottom: clamp(2.5rem, 6vh, 4rem);
  color: var(--accent); opacity: .85;
  transition: opacity .6s ease, transform .6s ease;
}
.scroll-cue.is-gone { opacity: 0; transform: translateY(8px); pointer-events: none; }
.scroll-cue svg { display: block; animation: cue-drift 2.8s ease-in-out infinite; }
@keyframes cue-drift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue svg { animation: none; }
  .scroll-cue { transition: none; }
}
@media (max-width: 60rem) { .scroll-cue { display: none; } }

/* The two featured pieces sit on paper, the studio's mats. The opener is the
   first sliver of it, under the hero. */
.opener { padding-block: 1.25rem 0; background: var(--paper); }
/* Openers are chapter bands: one step lighter than the ground, bleeding to the
   edges of the shell, with a hairline above and below. */
.section-opener {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem 2rem; flex-wrap: wrap;
  padding: 1.05rem 0 .95rem;
  position: relative; isolation: isolate;
}
/* The colour runs the full width of the viewport; the text stays on the column. */
.section-opener::before {
  content: ""; position: absolute; z-index: -1;
  top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw);
  background: var(--pine);
  border-top: 1px solid rgba(232, 228, 216, .08);
  border-bottom: 1px solid rgba(232, 228, 216, .08);
}
.research .section-opener { margin-bottom: clamp(1.5rem, 4vh, 2.5rem); }
.about .section-opener { margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.opener-label {
  font-family: var(--serif); font-weight: 400; font-size: var(--serif-3);
  letter-spacing: 0; text-transform: none;
  line-height: 1; margin: 0; color: var(--bone);
}
.opener-note { color: var(--highlight); opacity: .8; }

/* ---------- spotlight, editorial composition ---------- */

.spotlight { padding-block: clamp(1.5rem, 3.5vh, 2.5rem); }
/* The whole strip goes to the project. The visible link stays for keyboards and
   screen readers; the strip is a convenience on top of it. */
.spotlight[data-href] { cursor: pointer; }
.spotlight[data-href] .spotlight-art img { transition: transform 1.1s cubic-bezier(.22,.61,.36,1), filter .6s ease; }
.spotlight[data-href]:hover .spotlight-art img { transform: scale(1.02); filter: saturate(1) brightness(1) contrast(1.06); }
.spotlight[data-href]:hover .readmore { border-bottom-color: var(--accent-paper-hover); gap: 1.5rem; color: var(--accent-paper-hover); }
.spotlight[data-href]:hover { background: #ECE8DD; }
.spotlight h2 { transition: color .4s ease; }
.spotlight-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 2rem; flex-wrap: wrap;
  color: var(--highlight);
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(1.25rem, 2.5vh, 2rem);
}
.spotlight-head .cat { color: var(--highlight); }
.spotlight-head .mono { color: var(--accent); }
.spotlight { background: var(--paper); color: var(--paper-ink); transition: background .5s ease; }
.spotlight .spotlight-head { color: rgba(20, 32, 26, .62); border-bottom-color: var(--rule-paper); }
.spotlight .spotlight-head .mono { color: var(--accent-paper); }
/* The card row's eyebrow quotes numbers in a sentence; only the spotlight counters carry the accent. */
.selected .spotlight-head .mono { color: inherit; }

.spotlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 52fr) minmax(0, 36fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
/* 01 puts the photo on the left, 02 on the right, so the pair reads as a
   spread. Outer edges sit on the column, level with the card row below. */
.spotlight-grid.reverse { grid-template-columns: minmax(0, 36fr) minmax(0, 52fr); }
.spotlight-grid.reverse .spotlight-copy { order: 2; }
.spotlight-grid.reverse .spotlight-art  { order: 1; }

/* The headline sits on the photo, uppercase and letterspaced, inside a coral
   hairline that hugs it. The box sizes to the longest word so nothing bleeds. */
.spotlight-art h2 {
  position: absolute; z-index: 2;
  left: clamp(1.5rem, 4vw, 4rem); bottom: 14%;
  margin: 0; padding: 1.3rem 1.6rem 1.1rem calc(1.6rem);
  padding-right: calc(1.6rem - .1em);
  color: var(--bone);
  font-size: clamp(1.3rem, 2.1vw, 1.9rem); line-height: 1.2;
  letter-spacing: .1em; text-transform: uppercase;
  box-sizing: content-box; width: min-content; min-width: 15.5ch;
  max-width: calc(100% - 2 * clamp(1.5rem, 4vw, 4rem) - 3.2rem);
  overflow-wrap: normal;
  border: 1px solid var(--accent-paper);
}
.spotlight-grid:not(.reverse) .spotlight-art h2 { left: auto; right: clamp(1.5rem, 4vw, 4rem); text-align: right; }
.spotlight-sub { color: rgba(20, 32, 26, .62); margin: 0 0 1.4rem; }
.spotlight-copy p {
  max-width: var(--measure);
  color: rgba(20, 32, 26, .8);
  font-size: 1rem;
  margin: 0 0 2.4rem;
}
.spotlight-copy { padding-bottom: 0; }
.spotlight-art { position: relative; overflow: hidden; }
.spotlight-art img, .spotlight-art svg {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover;
}

.readmore {
  display: inline-flex; align-items: center; gap: .85rem;
  text-decoration: none; color: var(--accent-paper);
  padding-bottom: .45rem;
  border-bottom: 1px solid color-mix(in srgb, var(--accent-paper) 45%, transparent);
  transition: border-color .35s ease, gap .35s ease, color .35s ease;
}
.readmore:hover, .readmore:focus-visible {
  border-bottom-color: var(--accent-paper-hover); gap: 1.5rem; color: var(--accent-paper-hover);
}
.readmore .arrow { width: 2.6rem; height: 1px; background: currentColor; position: relative; }
.readmore .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

@media (max-width: 62rem) {
  .spotlight-grid,
  .spotlight-grid.reverse { grid-template-columns: 1fr; gap: 2rem; }
  .spotlight-grid .spotlight-copy { order: 2; }
  .spotlight-grid .spotlight-art, .spotlight-grid.reverse .spotlight-art { order: 1; }
  .spotlight-art h2 { bottom: 10%; }
}

/* ---------- research, on paper ---------- */

/* ---------- publications: paper rows with the spotlights' bones ----------
   Each publication is laid out like a spotlight (eyebrow row, serif title,
   label subheader, figure at right) on a sheet of paper. Same skeleton as
   the work above, different material. */
.research { background: var(--paper); color: var(--paper-ink); padding-block: 0 clamp(3rem, 7vh, 5rem); margin-top: clamp(2rem, 5vh, 3.5rem); }

.entry { padding-block: 2rem 2.4rem; border-top: 1px solid var(--rule-paper); }
.entry:first-of-type { border-top: 0; padding-top: 1rem; }
.entry .spotlight-head { color: rgba(20, 32, 26, .72); border-bottom-color: var(--rule-paper); padding-bottom: 1.1rem; margin-bottom: 1.4rem; }
.entry .spotlight-head .mono { color: var(--accent-paper); }
.entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}
.entry h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.1;
  margin: 0 0 .9rem; max-width: 28ch;
}
.entry h3 a { text-decoration: none; border-bottom: 1px solid transparent; }
.entry h3 a:hover { color: var(--accent-paper); border-bottom-color: var(--accent-paper); }
.entry .sub { color: var(--paper-ink); margin: 0 0 1.1rem; }
.entry .authors { color: rgba(20, 32, 26, .68); margin: 0 0 1rem; }
.entry .authors .me { color: var(--paper-ink); }
.entry .note { color: rgba(20, 32, 26, .82); margin: 0; font-size: .9rem; max-width: 64ch; }
.press { color: rgba(20, 32, 26, .68); margin: 1.2rem 0 0; font-size: .8rem; letter-spacing: .01em; }
.press a { color: var(--accent-paper); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent-paper) 45%, transparent); }
.press a:hover { color: var(--accent-paper-hover); border-bottom-color: var(--accent-paper-hover); }

.clip { margin: 0; width: 100%; }
.clip img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 3 / 2; object-fit: cover; background: #fff;
  border: 1px solid var(--rule-paper);
  filter: saturate(.3) contrast(.95);
  transition: filter .7s ease;
}
.entry:hover .clip img { filter: none; }
.clip.cover img { object-position: 50% 42%; }
.clip figcaption { margin-top: .6rem; color: rgba(20, 32, 26, .68); text-align: right; }
@media (prefers-reduced-motion: reduce) { .clip img { transition: none; } }

@media (max-width: 62rem) {
  .entry-grid { grid-template-columns: 1fr; }
  .clip { display: none; }
}

/* ---------- selected projects ---------- */

.selected { padding-block: clamp(1.5rem, 3.5vh, 2.5rem) clamp(3rem, 7vh, 5rem); }
.project-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.4vw, 2.25rem);
}
.project {
  display: grid; grid-template-rows: auto auto auto 1fr auto auto;
  text-decoration: none; color: inherit;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  transition: border-color .4s ease;
}
.project:hover, .project:focus-visible { border-top-color: var(--highlight); }
.project .num { color: var(--accent); margin-bottom: 1.6rem; }
.project .frame { overflow: hidden; margin-bottom: 1.4rem; background: var(--forest); }
.project .frame-empty { background: none; aspect-ratio: 16 / 10; }
.project .frame svg, .project .frame img {
  width: 100%; height: auto;
  aspect-ratio: 16 / 10; object-fit: cover;
  transition: transform 1.1s cubic-bezier(.22,.61,.36,1), opacity .6s ease;
  opacity: .92;
}
.project:hover .frame svg, .project:hover .frame img { transform: scale(1.035); opacity: 1; }
.project h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: var(--serif-3); line-height: 1.15;
  margin: 0 0 .7rem;
}
.project p { color: var(--highlight); opacity: .72; font-size: .875rem; margin: 0 0 1.4rem; max-width: 34ch; }
.project .tag { color: var(--accent); line-height: 1.75; transition: color .3s ease; }
/* Institutions sit above the tag in the quiet voice, so the tag stays one coral line like its neighbours. */
.project .tag-note { color: var(--highlight); opacity: .62; line-height: 1.75; margin-bottom: .9rem; }
.project:hover .tag { color: var(--accent-hover); }

/* The sixth slot is an invitation, not a project. */
.project.invite { grid-template-rows: auto auto auto 1fr; }
.project.invite .tag { align-self: end; }
.project.invite .tag { color: var(--accent); }
.project.invite:hover .tag { color: var(--accent-hover); }
.project.invite h3 { font-size: var(--serif-3); }

/* The row of four holds as one row; it shrinks rather than wraps, until a phone. */
@media (max-width: 74rem) {
  .project-row { gap: clamp(.9rem, 1.8vw, 1.5rem); }
  .project h3 { font-size: clamp(.95rem, 1.5vw, 1.25rem); }
  .project p { font-size: clamp(.72rem, 1.05vw, .86rem); }
  .project .tag, .project .num { font-size: clamp(.52rem, .8vw, .66rem); }
}
@media (max-width: 40rem) { .project-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1rem; } }

/* ---------- about ---------- */

.about {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(6rem, 16vh, 12rem);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}
.about .display { font-size: var(--serif-2); max-width: 16ch; margin: 0; }
.about-kicker {
  color: var(--highlight); opacity: .75;
  margin: 0;
}
.about p {
  color: var(--highlight); opacity: .82;
  max-width: var(--measure); font-size: 1.02rem; margin: 0 0 1.5rem;
}
.about .fields { margin-top: 2.6rem; color: var(--highlight); display: grid; gap: .55rem; }
@media (max-width: 62rem) { .about-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ---------- contact ---------- */

.contact {
  padding: clamp(3.5rem, 9vh, 6rem) var(--gutter) clamp(2.5rem, 6vh, 4rem);
}
.contact-inner { max-width: 1560px; margin-inline: auto; }
.site-footer {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1.5rem 2.5rem; flex-wrap: wrap;
  color: var(--highlight);
  padding-top: 2rem; border-top: 1px solid var(--rule);
}
.site-footer a { text-decoration: none; transition: color .3s ease; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--accent); }

/* ---------- motion, kept almost invisible ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 1.1s cubic-bezier(.22,.61,.36,1), transform 1.1s cubic-bezier(.22,.61,.36,1);
}
.js .reveal.d1.is-in { transition-delay: .1s; }
.js .reveal.d2.is-in { transition-delay: .2s; }
.js .reveal.d3.is-in { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .project .frame svg, .project .frame img { transition: none; }
  .hero-art { transform: none !important; }
  .spotlight[data-href] .spotlight-art img { transition: none; transform: none; }
}

:focus-visible { outline: 1px solid var(--highlight); outline-offset: 4px; }

/* The invitation fills the second row rather than leaving a hole beside it. */

.project.invite h3 { max-width: 16ch; }

