@font-face {
  font-family: "GT America";
  src: url("assets/fonts/GT-America-Standard-Regular-Trial.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT America";
  src: url("assets/fonts/GT-America-Standard-Bold-Trial.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT America Extended";
  src: url("assets/fonts/GT-America-Extended-Bold-Trial.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT America Extended";
  src: url("assets/fonts/GT-America-Extended-Medium-Trial.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT America Mono";
  src: url("assets/fonts/GT-America-Mono-Medium-Trial.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
:root {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
  --carbon: #0e0e0e;
  --limestone: #f3f0eb;
  --salt: #fbf8f8;
  --orange: #e5561a;
  --reading-orange: #b84316;
  --gutter: clamp(28px, 3.5vw, 64px);
  font-family: "GT America", Arial, sans-serif;
  font-synthesis: none;
  color: var(--carbon);
  background: var(--limestone);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
.viewport-metrics {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 100svh;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  visibility: hidden;
  pointer-events: none;
}
h1, h2, p { margin: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--carbon); background: var(--orange); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 60;
  padding: 14px 20px;
  color: var(--carbon);
  background: var(--salt);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 6px; }
.story:focus { outline: none; }

/* A single quiet sentence and compact CTA sit within the landscape. */
.hero {
  position: relative;
  min-height: 100svh;
  color: var(--salt);
  background: var(--carbon);
  isolation: isolate;
  overflow: clip;
}
.hero-media, .closing-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-image, .hero-film, .closing-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-film { position: absolute; inset: 0; opacity: 0; }
.hero-media.has-video .hero-film { opacity: 1; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(14 14 14 / 46%);
}
.hero-content {
  display: grid;
  place-items: center;
  min-height: inherit;
  width: 100%;
  padding: 100px clamp(28px, 2.7vw, 48px);
}
.hero-logo {
  position: absolute;
  top: clamp(28px, 2vw, 36px);
  left: clamp(28px, 2.7vw, 48px);
  width: clamp(100px, 6.2vw, 112px);
  height: auto;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 600px);
  margin-top: -8svh;
  text-align: center;
}
.hero h1 {
  max-width: 100%;
  font-family: "GT America", Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -.02em;
  text-wrap: balance;
  text-shadow: 0 1px 12px rgb(14 14 14 / 16%);
}
.hero h1 > span { display: block; }
.hero-motion {
  position: absolute;
  right: max(24px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgb(251 248 248 / 30%);
  border-radius: 0;
  background: rgb(14 14 14 / 20%);
  color: var(--salt);
  font-family: "GT America Mono", monospace;
  font-size: 10px;
  cursor: pointer;
}
.hero-motion[hidden] { display: none; }
.hero-motion:hover { background: rgb(14 14 14 / 40%); }
.intro-pending .hero-motion { visibility: hidden; }
.apply-button {
  min-height: 54px;
  padding: 18px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--salt);
  background: var(--orange);
  font-family: "GT America Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.apply-button:disabled { opacity: 1; cursor: default; -webkit-text-fill-color: currentColor; }
.hero-action {
  display: flex;
  align-items: center;
  margin-top: 24px;
}
.hero .apply-button {
  flex-shrink: 0;
  color: var(--carbon);
  background: var(--salt);
}

/* Preserve the approved opening, then let the mark settle into the masthead. */
.intro { display: none; }
.intro-pending .intro {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.intro-logo-wrap {
  width: clamp(220px, 25vw, 340px);
  line-height: 0;
  transform-origin: center;
  clip-path: inset(100% 0 0);
}
.intro-pending .intro::before {
  content: "";
  position: absolute;
  inset: 100svh 0 0;
  z-index: -1;
  background: var(--carbon);
}
.intro-logo { display: block; width: 100%; height: auto; }
.intro-stone { transform-box: fill-box; transform-origin: center; }
.intro-pending .hero-media { clip-path: inset(0 50% 0 50%); }
.intro-pending .hero-logo, .intro-pending .hero-copy { opacity: 0; }

/* Story chapters share the original Limestone reading surface. */
.story { position: relative; background: var(--limestone); }
/* Scroll-linked transforms and chapter resizing already preserve position. */
.story-track { overflow-anchor: none; }
.story-progress { position: absolute; top: 44px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; width: 164px; }
.story-progress-bar { flex: 1; height: 2px; background: #d1c9c1; overflow: hidden; }
.story-progress-bar > span { display: block; height: 100%; background: #68645f; transform: scaleX(0); transform-origin: left; }
.story-panel--three .story-progress-bar:first-child > span,
.story-panel--four .story-progress-bar:not(:last-child) > span { transform: scaleX(1); }

.story-track { position: relative; }
.story-panel { position: relative; display: grid; place-items: center; min-height: 100svh; padding: 132px 6vw 116px; background: var(--limestone); }
.panel-body { position: relative; width: 100%; margin-inline: auto; }
.typewriter-copy { width: min(100%, 640px); margin-inline: auto; text-align: center; font-size: clamp(26px, 2.3vw, 33px); font-weight: 400; line-height: 1.4; letter-spacing: -.025em; text-wrap: pretty; }
.typewriter-copy p + p { margin-top: .82em; }
.type-word { white-space: nowrap; }
.type-char.is-cursor { box-shadow: 1px 0 #68645f; }
.story-track.is-animated { height: calc(var(--stage-height) + var(--travel)); }
.is-animated .story-stage { position: sticky; top: 0; height: var(--stage-height); overflow: clip; }
.is-animated .story-panel { position: absolute; inset: 0; min-height: 0; will-change: transform; }
.is-animated .story-panel { background: transparent; }
.invitation-section { position: relative; display: grid; place-items: center; min-height: 100svh; padding: 104px 24px 120px; }
.invitation-card { position: relative; min-width: 0; width: min(100%, 680px); padding: clamp(52px, 5vw, 72px) clamp(32px, 5vw, 72px); border: 1px solid rgb(14 14 14 / 20%); background: #f7f4ef; text-align: left; }
.invitation-index { position: absolute; right: 24px; top: 24px; color: #77716a; font: 10px "GT America Mono", monospace; letter-spacing: .04em; }
.invitation-card h3 { margin: 0; font-weight: 400; }
.edition-label { display: block; margin-bottom: 32px; font: 11px "GT America Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: #68645f; }
.edition-title { display: block; font-family: "GT America", Arial, sans-serif; font-weight: 400; font-size: clamp(36px, 3.6vw, 48px); line-height: 1.12; letter-spacing: -.025em; }
.edition-location { display: block; margin-top: 12px; font-size: 20px; line-height: 1.45; }
.invitation-rule { display: block; width: 100%; height: 1px; margin: 32px 0; background: rgb(14 14 14 / 18%); }
.invitation-description { max-width: 420px; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.5; text-wrap: pretty; }
.invitation-note { max-width: 360px; margin: 24px 0 36px; font-size: 18px; line-height: 1.55; color: #68645f; text-wrap: pretty; }
.hero-cta-space { flex-shrink: 0; width: 300px; height: 54px; }

/* A narrow Limestone frame keeps the landscape connected to the page. */
.closing-shell { padding: 0 16px 16px; background: var(--limestone); }
.closing {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  height: clamp(560px, 65vw, 1100px);
  overflow: clip;
  color: var(--salt);
  background: var(--carbon);
}
.closing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(14 14 14 / 8%), rgb(14 14 14 / 15%) 50%, rgb(14 14 14 / 24%));
  pointer-events: none;
}
.closing-scene img { object-position: center 62%; }
.closing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  text-align: center;
}
.closing-logo { width: clamp(112px, 10vw, 140px); height: auto; margin-bottom: 24px; }
.closing h2 { font-size: 17px; font-weight: 400; line-height: 1.5; }
.closing-footer {
  position: absolute;
  inset: auto 24px 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--salt);
  font-family: "GT America Mono", monospace;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .04em;
  text-transform: uppercase;
}
@media (max-width: 767px) {
  :root { --gutter: 24px; }
  .hero-content {
    padding-block: max(24px, env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-bottom, 0px));
    padding-left: max(var(--gutter), calc(env(safe-area-inset-left, 0px) + 20px));
    padding-right: max(var(--gutter), calc(env(safe-area-inset-right, 0px) + 20px));
  }
  .hero-logo { top: max(24px, env(safe-area-inset-top, 0px)); left: max(24px, env(safe-area-inset-left, 0px)); width: 100px; }
  .hero-copy { width: min(100%, 360px); }
  .hero h1 { font-size: 20px; line-height: 1.38; }
  .hero-action { margin-top: 24px; }
  .hero-image, .hero-film { object-position: 52% center; }
  .hero-media::after { background: rgb(14 14 14 / 50%); }
  .intro-logo-wrap { width: 232px; }
  .apply-button { min-height: 52px; padding: 17px 22px; font-size: 11px; }
  .story-panel { padding: 88px 24px 108px; }
  .story-progress { top: 32px; width: 140px; gap: 6px; }
  .typewriter-copy { max-width: 480px; font-size: clamp(21px, 5.65vw, 28px); line-height: 1.4; letter-spacing: -.02em; }
  .invitation-section { padding: 64px var(--gutter) calc(64px + env(safe-area-inset-bottom, 0px)); }
  .invitation-card { padding: 48px 24px 30px; }
  .edition-title { font-size: clamp(31px, 8.6vw, 38px); }
  .edition-label { margin-bottom: 20px; }
  .edition-location { font-size: 18px; }
  .invitation-rule { margin-block: 26px; }
  .invitation-description { font-size: 20px; }
  .invitation-note { font-size: 16px; margin: 20px 0 28px; }
  .hero-cta-space { width: 270px; height: 52px; }
  .closing-shell { padding: 0 10px 10px; }
  .closing { height: clamp(380px, 70vw, 480px); }
  .closing-logo { width: 116px; margin-bottom: 22px; }
  .closing h2 { font-size: 16px; }
  .closing-footer { inset: auto 16px 14px; font-size: 9px; }
}
@media (max-width: 359px) {
  .invitation-card { padding-inline: 18px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .typewriter-copy { width: 62%; font-size: clamp(26px, 2.7vw, 32px); }
}
@media (max-width: 767px) {
  .compact-stage .hero-logo { width: 100px; }
  .compact-stage .hero h1 { font-size: 20px; }
  .compact-stage .story-panel { padding: 72px 24px 96px; }
  .compact-stage .typewriter-copy { font-size: clamp(19px, 5.1vw, 21px); line-height: 1.36; }
  .compact-stage .typewriter-copy p + p { margin-top: .72em; }
}
@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
  .hero-media { clip-path: none !important; }
  .hero-logo, .hero-copy { opacity: 1 !important; transform: none !important; }
  .hero-image, .closing-scene { transform: none !important; }
  .story-panel { transform: none !important; opacity: 1 !important; }
  .type-char { visibility: visible !important; }
  .type-char.is-cursor { box-shadow: none; }
}
@media (forced-colors: active) {
  .apply-button, .invitation-card { border-color: ButtonText; }
}

/* Quiet chapter markers and a limestone edge between landscape and reading. */
.story::before { content: ''; position: absolute; top: -18px; left: 0; right: 0; height: 19px; z-index: 1; border-radius: 24px 24px 0 0; background: var(--limestone); pointer-events: none; }
.story-chapter-label { position: absolute; top: 68px; left: 24px; right: 24px; margin: 0; color: #716d67; text-align: center; font: 400 10px/1.5 "GT America Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.story-progress { width: 112px; gap: 8px; }
.typewriter-copy p:first-child { font-weight: 500; }
@media (max-width: 767px) {
  .story-chapter-label { top: 52px; font-size: 8px; letter-spacing: .06em; }
  .story-progress { width: 96px; gap: 7px; }
  .story::before { border-radius: 18px 18px 0 0; top: -14px; height: 15px; }
}
