/* ==========================================================================
   Fusionex Ivan Teh Philanthropist
   Design system: "The Register"

   An institutional record of giving rather than a marketing page. Structure
   comes from a spine rule and hanging margin marks, borrowed from printed
   foundation reports. One bold element only: the arch portal in the hero.
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */
:root {
  --ink:        #10201b;
  --pine:       #1d4438;
  --pine-lift:  #275446;
  --pine-deep:  #16342a;
  --brass:      #c08a3e;
  --brass-soft: #d9b678;
  --paper:      #faf7f0;
  --linen:      #efe9dc;
  --slate:      #4b5d56;
  --slate-soft: #7d8c86;
  --rule:       #ddd4c2;
  --rule-dark:  rgba(217, 182, 120, .28);

  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --measure: 64ch;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --shell: 1240px;
  --spine-pad: clamp(9.5rem, 13vw, 14rem);
  --spine-gap: clamp(5.5rem, 7vw, 7.25rem);

  --step-xl: clamp(2.75rem, 6.6vw, 5.25rem);
  --step-lg: clamp(1.95rem, 3.7vw, 2.95rem);
  --step-md: clamp(1.3rem, 2.1vw, 1.65rem);
  --step-sm: clamp(1.08rem, 1.35vw, 1.22rem);
  --lead:    clamp(1.1rem, 1.45vw, 1.32rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 380;
  line-height: 1.72;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg { max-width: 100%; display: block; }
figure { margin: 0; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 350;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }

::selection { background: var(--brass); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100%;
  z-index: 200; background: var(--pine); color: var(--paper);
  padding: .7rem 1.1rem; font-family: var(--sans); font-size: .9rem;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ------------------------------------------------------------------ layout */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

/* The spine: a hairline running beside the content with section marks
   hanging into the left margin. It encodes "this is a record". */
.register { position: relative; }

@media (min-width: 62rem) {
  .register > .shell { position: relative; padding-left: var(--spine-pad); }
  .register > .shell::before {
    content: "";
    position: absolute;
    left: calc(var(--spine-pad) - var(--spine-gap));
    top: .3rem; bottom: .3rem;
    width: 1px;
    background: var(--rule);
  }
  .register--dark > .shell::before { background: var(--rule-dark); }
  .has-mark { position: relative; }
  .mark {
    position: absolute;
    left: calc(-1 * var(--spine-gap) + .9rem);
    top: 0;
    width: calc(var(--spine-gap) - 1.4rem);
    margin-bottom: 0;
    padding-top: .55rem;
  }
}

.band { padding-block: clamp(4rem, 9vw, 7.5rem); }
.band--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.band--linen { background: var(--linen); }
.band--pine { background: var(--pine); color: var(--paper); }
.band--pine p { color: #cfdad4; }

/* Section mark: a small brass numeral or glyph that hangs in the margin. */
.mark {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: .9rem;
}
.section-title {
  font-size: var(--step-lg);
  line-height: 1.1;
  letter-spacing: -.015em;
  max-width: 22ch;
}
.section-title + .section-lead { margin-top: 1.4rem; }

.section-lead {
  font-size: var(--lead);
  line-height: 1.62;
  font-weight: 300;
  color: var(--slate);
  max-width: 58ch;
}
.band--pine .section-lead { color: #c3d1cb; }

.hairline {
  height: 1px; border: 0; margin: 2.6rem 0;
  background: var(--rule);
}
.band--pine .hairline { background: var(--rule-dark); }

.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: var(--step-lg); line-height: 1.14; letter-spacing: -.014em; margin-top: 2.6em; max-width: 24ch; }
.prose h3 { font-size: var(--step-md); line-height: 1.28; font-weight: 500; margin-top: 2.1em; max-width: 30ch; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose a { color: var(--pine); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: .18em; text-decoration-thickness: 1px; }
.prose a:hover { background: rgba(192, 138, 62, .13); }

/* ------------------------------------------------------------------ header */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 240, .93);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.wordmark { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; }
.wordmark__seal { width: 38px; height: 44px; flex: none; }
.wordmark__text { display: flex; flex-direction: column; line-height: 1; }
.wordmark__name {
  font-family: var(--serif); font-size: 1.32rem; font-weight: 400;
  letter-spacing: -.012em;
}
.wordmark__role {
  font-family: var(--sans); font-size: .615rem; font-weight: 600;
  letter-spacing: .225em; color: var(--brass); margin-top: .34rem;
  text-transform: uppercase;
}

.nav { display: none; }
@media (min-width: 62rem) {
  .nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
}
.nav a {
  font-family: var(--sans); font-size: .865rem; font-weight: 500;
  text-decoration: none; color: inherit; padding-block: .4rem;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav a:hover { border-bottom-color: var(--brass); }
.nav a[aria-current="page"] { border-bottom-color: var(--brass); color: var(--brass); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 9px;
  background: none; border: 1px solid var(--rule); border-radius: 2px;
  cursor: pointer; color: inherit;
}
.nav-toggle span { display: block; height: 1px; background: currentColor; transition: transform .28s var(--ease), opacity .18s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 62rem) { .nav-toggle { display: none; } }

.drawer {
  display: none;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.drawer[data-open="true"] { display: block; }
.drawer ul { list-style: none; padding: .5rem 0 1.4rem; }
.drawer li + li { border-top: 1px solid var(--rule); }
.drawer a {
  display: block; padding: .95rem 0;
  font-family: var(--sans); font-size: 1rem; font-weight: 500;
  text-decoration: none;
}
.drawer a[aria-current="page"] { color: var(--brass); }
@media (min-width: 62rem) { .drawer { display: none !important; } }

/* -------------------------------------------------------------------- hero */
.hero {
  background: var(--pine);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 78% 12%, rgba(192,138,62,.16), transparent 62%);
  pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
  padding-block: clamp(3.25rem, 7vw, 6rem) clamp(3.5rem, 7vw, 6.5rem);
  align-items: center;
}
@media (min-width: 56rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .82fr); }
}

.hero__eyebrow {
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; color: var(--brass-soft);
  display: flex; align-items: center; gap: .85rem; margin-bottom: 1.6rem;
}
.hero__eyebrow::before { content: ""; width: 2.4rem; height: 1px; background: var(--brass); }

.hero h1 {
  font-size: var(--step-xl);
  line-height: 1.015;
  letter-spacing: -.026em;
  font-weight: 300;
  max-width: 13ch;
}
.hero h1 em { font-style: italic; font-weight: 300; }

.hero__lead {
  font-size: var(--lead); line-height: 1.6; font-weight: 300;
  color: #c9d6d0; margin-top: 1.85rem; max-width: 48ch;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; }

/* The arch portal. The one bold element on the site. */
.portal { position: relative; }
.portal__plate { position: relative; padding: 15px; }
.portal picture {
  width: 100%;
  border-radius: 50% 50% 2px 2px / 38% 38% 1% 1%;
  overflow: hidden;
  background: var(--pine-deep);
  /* The ring is an offset outline rather than a second box, so it stays
     exactly parallel to the arch at every viewport width. */
  outline: 1px solid rgba(192, 138, 62, .62);
  outline-offset: 13px;
}
.portal img { width: 100%; height: auto; }
.portal__caption {
  font-family: var(--sans); font-size: .72rem; font-weight: 500;
  letter-spacing: .09em; color: var(--slate-soft);
  margin-top: 1.1rem; text-align: center;
}
.hero .portal__caption { color: #94a89f; }

/* Page header for interior pages */
.pagehead { background: var(--pine); color: var(--paper); }
.pagehead__inner { padding-block: clamp(3rem, 6vw, 5.25rem) clamp(2.5rem, 5vw, 4rem); }
.pagehead h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.15rem);
  line-height: 1.03; letter-spacing: -.024em; font-weight: 300;
  max-width: 16ch;
}
.pagehead__lead {
  font-size: var(--lead); line-height: 1.6; font-weight: 300;
  color: #c9d6d0; margin-top: 1.5rem; max-width: 56ch;
}

/* ---------------------------------------------------------------- controls */
.btn {
  display: inline-flex; align-items: center;
  font-family: var(--sans); font-size: .88rem; font-weight: 600;
  letter-spacing: .01em; text-decoration: none;
  padding: .92rem 1.7rem; border-radius: 2px;
  border: 1px solid transparent;
  transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.btn--brass { background: var(--brass); color: var(--ink); }
.btn--brass:hover { background: var(--brass-soft); }
.btn--ghost { border-color: rgba(217,182,120,.5); color: var(--paper); }
.btn--ghost:hover { border-color: var(--brass); background: rgba(192,138,62,.14); }
.btn--pine { background: var(--pine); color: var(--paper); }
.btn--pine:hover { background: var(--pine-lift); }
.btn--outline { border-color: var(--pine); color: var(--pine); }
.btn--outline:hover { background: var(--pine); color: var(--paper); }

/* ------------------------------------------------------------ breadcrumbs */
.crumbs {
  font-family: var(--sans); font-size: .78rem; color: #b6c6bf;
  padding-block: 1.35rem 0;
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem; }
.crumbs li + li::before { content: "/"; margin-right: .55rem; color: rgba(217,182,120,.55); }
.crumbs a { text-decoration: none; border-bottom: 1px solid transparent; }
.crumbs a:hover { border-bottom-color: var(--brass); }
.crumbs [aria-current] { color: var(--brass-soft); }

/* --------------------------------------------------------------- timeline */
/* A real sequence, so numbering is warranted. */
.timeline { list-style: none; counter-reset: step; margin-top: 2.75rem; }
.timeline li {
  counter-increment: step;
  display: grid; gap: .35rem 1.6rem;
  grid-template-columns: 2.6rem 1fr;
  padding: 1.6rem 0;
  border-top: 1px solid var(--rule-dark);
}
.timeline li:last-child { border-bottom: 1px solid var(--rule-dark); }
.timeline li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .08em; color: var(--brass);
  padding-top: .55rem; font-variant-numeric: tabular-nums;
}
.timeline h3 { font-size: var(--step-md); font-weight: 400; letter-spacing: -.008em; }
.timeline p { grid-column: 2; color: #b9c8c1; font-size: .985rem; margin: 0; max-width: 56ch; }

/* ------------------------------------------------------------------ ledger */
/* Hanging record list used for awards, press, projects. Not a card kit. */
.ledger { list-style: none; }
.ledger > li {
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
  display: grid; gap: .55rem;
}
.ledger > li:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 48rem) {
  .ledger > li { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: .55rem 2.75rem; }
}
.ledger__term {
  font-family: var(--serif); font-size: var(--step-sm); font-weight: 500;
  line-height: 1.35; letter-spacing: -.008em;
}
.ledger__body { color: var(--slate); }
.ledger__body p { margin-bottom: .6em; }
.ledger__source {
  display: block; font-family: var(--sans); font-size: .78rem;
  font-weight: 500; color: var(--brass); margin-top: .45rem;
  letter-spacing: .02em;
}
.ledger__year {
  font-family: var(--sans); font-size: .76rem; font-weight: 600;
  color: var(--slate-soft); font-variant-numeric: tabular-nums;
  display: block; margin-top: .3rem;
}

/* Nested detail list inside a ledger entry */
.sublist { list-style: none; margin-top: .7rem; display: grid; gap: .4rem; }
.sublist li { padding-left: 1.15rem; position: relative; color: var(--slate); }
.sublist li::before {
  content: ""; position: absolute; left: 0; top: .78em;
  width: .48rem; height: 1px; background: var(--brass);
}

/* -------------------------------------------------------------- two column */
.split {
  display: grid; gap: clamp(2.25rem, 5vw, 4.5rem); align-items: start;
}
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(280px, .68fr); }
  .split--flip > :first-child { order: 2; }
}
.split > * { min-width: 0; }
.split__figure picture {
  width: 100%;
  overflow: hidden;
  border-radius: 2px;
}
.split__figure img { width: 100%; height: auto; }
.split__figure--arch picture { border-radius: 50% 50% 2px 2px / 34% 34% 1% 1%; }
.fig-note {
  font-family: var(--sans); font-size: .765rem; color: var(--slate-soft);
  margin: .95rem 0 0; line-height: 1.55; max-width: 34ch;
}

/* ---------------------------------------------------------------- masthead
   "As featured on" strip: a plain list of outlets, set as type, not logos. */
.outlets { list-style: none; display: flex; flex-wrap: wrap; gap: .65rem 2.4rem; margin-top: 2rem; }
.outlets li {
  font-family: var(--serif); font-size: clamp(1.05rem, 1.7vw, 1.42rem);
  font-weight: 400; letter-spacing: -.01em; color: var(--slate);
}
.band--pine .outlets li { color: #b7c7c0; }

/* --------------------------------------------------------------- quotation */
.quotes { display: grid; gap: clamp(2rem, 4vw, 3.25rem); margin-top: 2.75rem; }
@media (min-width: 52rem) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote { border-left: 2px solid var(--brass); padding-left: clamp(1.25rem, 2.4vw, 2rem); }
.quote blockquote { margin: 0; font-size: var(--step-sm); line-height: 1.62; font-weight: 300; font-style: italic; }
.quote figcaption { margin-top: 1.25rem; font-family: var(--sans); font-size: .82rem; }
.quote .who { display: block; font-weight: 600; }
.quote .what { display: block; color: var(--slate-soft); margin-top: .18rem; }

/* ------------------------------------------------------------------ index */
/* Journal index. Rules, not cards. */
.index { list-style: none; margin-top: 2.5rem; }
.index > li { border-top: 1px solid var(--rule); }
.index > li:last-child { border-bottom: 1px solid var(--rule); }
.index__link {
  display: grid; gap: .7rem 2.75rem; padding: 2rem 0;
  text-decoration: none; color: inherit;
  transition: background-color .2s var(--ease);
}
@media (min-width: 48rem) {
  .index__link { grid-template-columns: minmax(0, 1fr) minmax(0, 13rem); align-items: start; }
}
.index__link:hover { background: rgba(192,138,62,.07); }
.index__title { font-size: var(--step-md); font-weight: 400; line-height: 1.24; letter-spacing: -.01em; max-width: 30ch; }
.index__link:hover .index__title { color: var(--pine); }
.index__excerpt { color: var(--slate); font-size: .99rem; margin-top: .6rem; max-width: 62ch; }
.index__meta { font-family: var(--sans); font-size: .78rem; color: var(--slate-soft); }
.index__cta { font-family: var(--sans); font-size: .82rem; font-weight: 600; color: var(--brass); display: block; margin-top: .45rem; }

/* ------------------------------------------------------- programme notes */
/* Not a card kit: each entry is a hanging record under a shared rule. */
.notes {
  list-style: none; display: grid; margin-top: 2.5rem;
  gap: 2rem clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
}
.notes > li { border-top: 1px solid var(--rule); padding-top: 1.15rem; }
.notes h3 { font-size: var(--step-sm); font-weight: 500; line-height: 1.35; }
.notes p { margin: .55rem 0 0; color: var(--slate); font-size: .95rem; }

/* ---------------------------------------------------------------- faq */
.faq { margin-top: 2.5rem; border-top: 1px solid var(--rule); }
.faq > div { border-bottom: 1px solid var(--rule); padding: 1.65rem 0; }
.faq h3 { font-size: var(--step-sm); font-weight: 500; line-height: 1.4; max-width: 46ch; }
.faq p { margin-top: .65rem; color: var(--slate); max-width: 68ch; }
.band--pine .faq { border-top-color: var(--rule-dark); }
.band--pine .faq > div { border-bottom-color: var(--rule-dark); }

/* ------------------------------------------------------------------ forms */
.form { display: grid; gap: 1.35rem; max-width: 34rem; margin-top: 2.25rem; }
.field { display: grid; gap: .45rem; }
.field label { font-family: var(--sans); font-size: .82rem; font-weight: 600; }
.field input, .field textarea, .field select {
  font-family: var(--serif); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 2px;
  padding: .82rem .95rem; width: 100%;
  transition: border-color .18s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brass); }
.field textarea { min-height: 8.5rem; resize: vertical; }
.field__hint { font-family: var(--sans); font-size: .76rem; color: var(--slate-soft); }
.form__note { font-family: var(--sans); font-size: .8rem; color: var(--slate); max-width: 34rem; }

.contact-card { display: grid; gap: 1.5rem; }
.contact-card dt { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--brass); }
.contact-card dd { margin: .4rem 0 0; font-size: var(--step-sm); font-weight: 400; line-height: 1.5; }
.contact-card a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.contact-card a:hover { border-bottom-color: var(--brass); }

/* ------------------------------------------------------------------ cites */
.cites { list-style: none; display: grid; gap: .7rem; margin-top: 1.6rem; }
.cites li { display: grid; gap: .15rem; }
.cites a { font-family: var(--sans); font-size: .89rem; font-weight: 500; color: var(--pine); text-decoration: none; border-bottom: 1px solid var(--rule); width: fit-content; }
.band--pine .cites a { color: var(--brass-soft); border-bottom-color: var(--rule-dark); }
.cites a:hover { border-bottom-color: var(--brass); }
.cites span { font-family: var(--sans); font-size: .78rem; color: var(--slate-soft); }

/* ----------------------------------------------------------------- footer */
.colophon { background: var(--ink); color: #b8c7c0; padding-block: clamp(3.25rem, 6vw, 5rem) 2.25rem; }
.colophon a { color: inherit; text-decoration: none; }
.colophon a:hover { color: var(--brass-soft); }
.colophon__grid { display: grid; gap: 2.75rem; }
@media (min-width: 52rem) { .colophon__grid { grid-template-columns: 1.4fr 1fr; gap: clamp(3rem, 8vw, 7rem); } }
.colophon h2 { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .05em; color: var(--brass); margin-bottom: 1.15rem; }
.colophon ul { list-style: none; display: grid; gap: .62rem; font-family: var(--sans); font-size: .92rem; }
.colophon p { font-size: .99rem; color: #9fb1a9; max-width: 42ch; }
.colophon__legal {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(184,199,192,.16);
  font-family: var(--sans); font-size: .78rem; color: #7c8f87;
  display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; justify-content: space-between;
}

/* -------------------------------------------------------------- page load */
@media (prefers-reduced-motion: no-preference) {
  .reveal > * { opacity: 0; transform: translateY(14px); animation: rise .78s var(--ease) forwards; }
  .reveal > *:nth-child(1) { animation-delay: .06s; }
  .reveal > *:nth-child(2) { animation-delay: .16s; }
  .reveal > *:nth-child(3) { animation-delay: .26s; }
  .reveal > *:nth-child(4) { animation-delay: .36s; }
  .portal__plate { opacity: 0; animation: settle 1s var(--ease) .22s forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes settle { to { opacity: 1; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ------------------------------------------------------------------ print */
@media print {
  .masthead, .drawer, .nav-toggle, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .pagehead, .band--pine, .colophon { background: #fff !important; color: #000 !important; }
}
