/* Afterframe public site. Isolated from /style.css, which the /application/ pages use. */

@font-face {
  font-family: "Syne";
  src: url("/assets/fonts/syne-latin-wght.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0c0f0e;
  --bg-raised: #161817;
  --paper: #f0eee6;
  --text: #b8beb6;
  --muted: #9ca39b;
  --accent: #bfd0ad;
  --accent-soft: #a5b59e;
  --line: #3a3e37;
  --line-strong: #4a4d45;
  --sage: #c0ccaa;
  --ink: #17201b;
  --display: "Syne", "Arial Black", Arial, sans-serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --max: 1230px;
  --gutter: clamp(22px, 4vw, 48px);
}

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

html { background: var(--bg); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--paper);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  overflow-x: hidden;
}

h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
em { font-style: normal; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono, .meta, .section-top, .study-meta, .hero-bottom, .page-index, .footer-bottom, .colophon dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  line-height: 1.65;
  text-transform: uppercase;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--ink);
  font: 12px/1.4 var(--mono);
}
.skip:focus { top: 16px; }

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -.12em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

/* Header ------------------------------------------------------------- */

.site-header { border-bottom: 1px solid #333630; }
.site-header .wrap {
  height: 96px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  justify-self: start;
  font: 700 12px/1 var(--display);
  letter-spacing: .14em;
  white-space: nowrap;
}
.brand-mark { width: 31px; height: 31px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1; }

.nav { display: flex; align-items: center; gap: 45px; }
.nav a {
  color: #b0b4ae;
  font: 12px/1 var(--mono);
  letter-spacing: .085em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 10px 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav a[aria-current="page"] { border-bottom: 1px solid var(--accent); padding-bottom: 9px; }
.nav sup { font-size: 9px; color: var(--accent); margin-left: 2px; }

.header-note { justify-self: end; color: #979d96; white-space: nowrap; }

.signal {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

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

.hero { overflow: hidden; }
.hero .wrap {
  min-height: calc(100svh - 96px);
  padding-top: 34px;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-meta { display: flex; justify-content: space-between; gap: 20px; color: var(--accent); line-height: 1.8; letter-spacing: .14em; }
.hero-meta .right { text-align: right; color: #939d96; }

.hero-stage {
  position: relative;
  isolation: isolate;
  min-height: 590px;
  display: flex;
  align-items: center;
  padding: 52px 0 68px;
}

.hero-text { position: relative; z-index: 3; width: min(100%, 750px); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 35px;
  color: #abbca7;
  font: 11px/1.5 var(--mono);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; }

.hero-title {
  font: 800 clamp(78px, 10.5vw, 150px)/.87 var(--display);
  letter-spacing: -.083em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-title span { display: block; }
.hero-title span + span { margin-left: .16em; }

.hero-copy {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(170px, .8fr);
  gap: 40px;
  max-width: 645px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid #55594f;
}
.hero-headline { font: 600 clamp(22px, 2.15vw, 31px)/1.19 var(--display); letter-spacing: -.052em; }
.hero-headline em { color: var(--accent); }
.hero-summary { max-width: 245px; color: var(--text); font-size: 14px; line-height: 1.75; }

.sculpture {
  position: absolute;
  z-index: 1;
  top: 47%;
  right: -4%;
  width: min(50vw, 640px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
}
.sculpture::before {
  content: "";
  position: absolute;
  inset: 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, #718b7966 0%, #27362e38 48%, transparent 72%);
}
.sculpture img { width: 100%; filter: drop-shadow(12px 40px 30px #03060580); }
.sculpture figcaption {
  position: absolute;
  top: 84%;
  right: 4%;
  color: #99a99d;
  font: 10px/1.7 var(--mono);
  letter-spacing: .14em;
  text-align: right;
  text-transform: uppercase;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 20px;
  padding-top: 23px;
  border-top: 1px solid #444c43;
  color: var(--muted);
}
.hero-bottom .brand-line { display: flex; align-items: center; gap: 14px; }
.hero-bottom .brand-line .brand-mark { width: 18px; height: 18px; }
.hero-bottom .discover { justify-self: center; color: #e8ece3; white-space: nowrap; }
.hero-bottom .discover .icon { margin-left: 10px; color: var(--accent); font-size: 14px; }
.hero-bottom .index { text-align: right; }

/* Sections --------------------------------------------------------------- */

.section { padding: 100px 0 115px; }
.section.raised { background: var(--bg-raised); }

.section-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  color: #adb0aa;
}

.heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  margin: 78px 0 70px;
}
.heading-row h2, .page-title {
  font: 700 clamp(50px, 5.7vw, 82px)/.93 var(--display);
  letter-spacing: -.06em;
}
.heading-row h2 em, .page-title em, .statement em { font-weight: 500; color: var(--accent-soft); }
.heading-row > p { width: min(100%, 320px); padding-bottom: 8px; color: #bec2b9; font-size: 17px; line-height: 1.6; }

/* Study cards -------------------------------------------------------------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.study { min-width: 0; }
.art { position: relative; aspect-ratio: .89 / 1; overflow: hidden; background: #1a2525; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art-num {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 3px 6px;
  background: #0c0f0eb8;
  color: #f4f4e8;
  font: 10px/1.55 var(--mono);
  letter-spacing: .1em;
}
.study-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin-top: 20px; color: #9ea79c; }
.study h3 { margin-top: 14px; font: 600 clamp(22px, 1.9vw, 29px)/1.15 var(--display); letter-spacing: -.05em; }
.study p { max-width: 360px; margin-top: 11px; color: #b6bdb3; font-size: 14px; line-height: 1.7; }
.study .spec { margin-top: 14px; color: var(--muted); font: 11px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; }

.section-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 70px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  color: #aab1a6;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid #8fa67d;
  color: var(--accent);
  font: 11px/1.65 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.text-link:hover { color: var(--paper); border-color: var(--paper); }

/* Disciplines ------------------------------------------------------------- */

.disciplines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 70px; border-top: 1px solid var(--line); }
.discipline { padding: 34px 34px 10px 0; }
.discipline + .discipline { padding-left: 34px; border-left: 1px solid var(--line); }
.discipline .num { color: var(--accent); }
.discipline h3 { margin-top: 26px; font: 600 clamp(26px, 2.4vw, 36px)/1.05 var(--display); letter-spacing: -.05em; }
.discipline p { margin-top: 16px; color: var(--text); font-size: 15px; line-height: 1.75; }
.discipline ul { margin-top: 22px; color: var(--muted); }
.discipline li { padding: 9px 0; border-top: 1px solid #262a26; }

/* Statement / about blocks ---------------------------------------------- */

.split { display: grid; grid-template-columns: 1.6fr .65fr; gap: 60px; padding-top: 84px; }
.statement { font: 700 clamp(47px, 5.6vw, 84px)/.99 var(--display); letter-spacing: -.058em; }
.statement .accent { color: var(--accent); }
.prose { padding-top: 12px; }
.prose p { color: #b9bdb7; font-size: 16px; line-height: 1.8; }
.prose p + p { margin-top: 22px; }
.prose .text-link { margin-top: 44px; }

/* Inner pages -------------------------------------------------------------- */

.page-hero { padding: 70px 0 90px; }
.page-hero .eyebrow { margin-bottom: 40px; }
.page-title { font-size: clamp(64px, 9vw, 132px); line-height: .9; letter-spacing: -.075em; }
.page-intro {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  align-items: start;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid #55594f;
}
.page-lead { max-width: 640px; font: 600 clamp(22px, 2.2vw, 30px)/1.25 var(--display); letter-spacing: -.045em; }
.page-lead em { color: var(--accent); }
.page-intro .note { color: var(--text); font-size: 14px; line-height: 1.75; max-width: 380px; }

.page-index { display: flex; flex-wrap: wrap; gap: 10px 34px; margin-top: 56px; }
.page-index a { color: #b0b4ae; }
.page-index a:hover { color: var(--paper); }
.page-index span { color: var(--accent); margin-right: 8px; }

.notice {
  margin-top: 40px;
  padding: 16px 20px;
  border-left: 2px solid var(--accent);
  background: #141917;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  max-width: 760px;
}

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 60px; margin-top: 70px; }
.principles li { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 28px 0; border-top: 1px solid var(--line); }
.principles .num { color: var(--accent); padding-top: 6px; }
.principles h3 { font: 600 24px/1.2 var(--display); letter-spacing: -.04em; }
.principles p { margin-top: 10px; color: var(--text); font-size: 15px; line-height: 1.75; }

.colophon { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 60px; border-top: 1px solid var(--line); }
.colophon div { padding: 24px 24px 0 0; }
.colophon div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.colophon dt { color: var(--accent); }
.colophon dd { margin-top: 12px; color: var(--text); font-size: 14px; line-height: 1.7; }

/* Footer ------------------------------------------------------------------ */

.site-footer { background: var(--sage); color: var(--ink); padding: 50px 0 25px; }
.footer-title {
  /* Sized to the container: the word is about 11.3em wide in Syne 800. */
  font: 800 calc(min(100vw - 2 * var(--gutter), var(--max)) / 11.8)/1.1 var(--display);
  letter-spacing: -.072em;
  text-transform: uppercase;
  white-space: nowrap;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 20px;
  padding-top: 16px;
  border-top: 1px solid #515a46;
}
.footer-bottom nav { display: flex; gap: 24px; }
.footer-bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:focus-visible { outline-color: var(--ink); }

/* Responsive --------------------------------------------------------------- */

@media (min-width: 1600px) {
  .hero .wrap { min-height: 790px; }
}

@media (max-width: 1150px) {
  .header-note { display: none; }
  .site-header .wrap { grid-template-columns: 1fr auto; }
  .colophon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .colophon div:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 1000px) {
  .hero-stage { min-height: 545px; }
  .sculpture { width: 56vw; right: -8%; opacity: .85; }
  .sculpture figcaption { display: none; }
  .hero-title { font-size: clamp(75px, 10.4vw, 125px); }
  .hero-copy { max-width: 600px; }
  .grid-3 { gap: 16px; }
  .study h3 { font-size: 21px; }
  .study p { font-size: 13.5px; line-height: 1.65; }
  .art-num { top: 12px; left: 12px; }
  .disciplines { grid-template-columns: 1fr; }
  .discipline, .discipline + .discipline { padding: 30px 0 14px; border-left: 0; border-top: 1px solid var(--line); }
  .discipline:first-child { border-top: 0; }
  .split { grid-template-columns: 1fr; gap: 42px; }
  .prose { max-width: 560px; }
  .principles { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header .wrap { height: 72px; }
  .brand { font-size: 11px; gap: 10px; }
  .brand-mark { width: 27px; height: 27px; }
  .nav { gap: 22px; }
  .nav a { font-size: 11px; }
  .nav .nav-home { display: none; }
  .hero .wrap { min-height: calc(100svh - 72px); padding-top: 26px; padding-bottom: 21px; }
  .hero-meta { font-size: 10px; }
  .hero-meta .right { display: none; }
  .hero-stage { min-height: 560px; align-items: flex-end; padding: 36px 0 43px; }
  .sculpture { width: min(72vw, 440px); top: 21%; right: -14%; opacity: .9; }
  .eyebrow { font-size: 10px; margin-bottom: 20px; }
  .hero-title { font-size: min(102px, calc((100vw - 48px) / 6)); letter-spacing: -.084em; }
  .hero-title span + span { margin-left: 0; }
  .hero-copy { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; padding-top: 18px; max-width: 470px; }
  .hero-headline { font-size: 25px; }
  .hero-summary { max-width: 350px; }
  .hero-bottom { grid-template-columns: 1fr 1fr; font-size: 10px; }
  .hero-bottom .index { display: none; }
  .hero-bottom .discover { justify-self: end; }
  .section { padding: 68px 0 80px; }
  .section-top { font-size: 10px; }
  .heading-row { display: block; margin: 55px 0 38px; }
  .heading-row h2 { font-size: clamp(46px, 11vw, 75px); }
  .heading-row > p { margin-top: 22px; font-size: 15px; }
  .grid-3 { grid-template-columns: 1fr; gap: 44px; }
  .study h3 { font-size: 24px; }
  .study p { font-size: 14px; line-height: 1.7; }
  .art-num { top: 16px; left: 16px; }
  .art { aspect-ratio: 1 / 1.05; }
  .section-bottom { flex-direction: column; align-items: flex-start; font-size: 10px; margin-top: 50px; }
  .split { padding-top: 50px; }
  .statement { font-size: clamp(42px, 9.5vw, 72px); }
  .page-hero { padding: 50px 0 60px; }
  .page-title { font-size: clamp(58px, 16vw, 96px); }
  .page-intro { grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
  .page-index { margin-top: 36px; }
  .principles li { grid-template-columns: 52px 1fr; }
  .colophon { grid-template-columns: 1fr; }
  .colophon div, .colophon div + div { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .colophon div:first-child { border-top: 0; }
  .site-footer { padding: 30px 0 20px; }
  .footer-bottom { font-size: 10px; flex-direction: column; }
}

@media (max-width: 420px) {
  .nav { gap: 16px; }
  .nav a { font-size: 10px; letter-spacing: .06em; }
  .hero-stage { min-height: 510px; }
  .sculpture { width: 80vw; right: -24%; }
  .hero-headline { font-size: 22px; }
  .hero-bottom .discover .icon { margin-left: 4px; }
}

@media print {
  .site-header, .skip, .sculpture { display: none; }
  body { background: #fff; color: #000; }
}
