:root {
  --black: #070707;
  --black-soft: #10100f;
  --cream: #f0ece2;
  --cream-dark: #d2ccc0;
  --muted: #89857d;
  --red: #e30a17;
  --red-dark: #8b0710;
  --line: rgba(240, 236, 226, 0.16);
  --line-dark: rgba(7, 7, 7, 0.16);
  --display: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(1.25rem, 4.2vw, 4.75rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-color: var(--red) var(--black);
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--black);
  color: var(--cream);
  font-family: var(--sans);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.045;
}

body.lightbox-open {
  overflow: hidden;
}

::selection {
  background: var(--red);
  color: white;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--cream);
  color: var(--black);
  font: 700 0.7rem/1 var(--mono);
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 150;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left;
}

.corner-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100vw;
  max-width: 100vw;
  min-height: 5rem;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 7, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.back-link,
.corner-name {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  justify-self: start;
  font: 600 0.61rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.back-link {
  color: var(--muted);
  transition: color 180ms ease;
}

.back-link:hover {
  color: var(--cream);
}

.corner-name {
  position: relative;
  gap: 0.8rem;
  justify-self: center;
  padding: 0.65rem 1rem;
  overflow: hidden;
}

.corner-name::after {
  position: absolute;
  right: 1rem;
  bottom: 0.35rem;
  width: 3.65rem;
  height: 1px;
  background: var(--red);
  content: "";
  transform: scaleX(0.3);
  transform-origin: right;
  transition: transform 320ms ease;
}

.corner-name:hover::after,
.corner-name:focus-visible::after {
  transform: scaleX(1);
}

.corner-thought {
  display: grid;
  gap: 0.2rem;
  color: var(--muted);
  font: 600 0.68rem/1.05 var(--mono);
  letter-spacing: 0.11em;
  text-align: left;
}

.corner-thought strong {
  margin-left: 1.35rem;
  color: var(--cream);
  font-weight: 700;
}

.corner-crescent {
  position: relative;
  width: 0.95rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
}

.corner-crescent::after {
  position: absolute;
  top: 42%;
  left: 62%;
  width: 0.72rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--black);
  content: "";
  transform: translate(-50%, -50%);
}

.corner-years {
  justify-self: end;
  color: var(--muted);
  font: 600 0.59rem/1 var(--mono);
  letter-spacing: 0.12em;
}

.corner-years span {
  margin-inline: 0.45rem;
  color: var(--red);
}

.history-ribbon {
  position: absolute;
  top: 5rem;
  left: 0;
  z-index: 8;
  width: 100%;
  height: 7.25rem;
  border-top: 1px solid rgba(227, 10, 23, 0.65);
  border-bottom: 1px solid rgba(7, 7, 7, 0.28);
  background:
    linear-gradient(90deg, rgba(227, 10, 23, 0.05), transparent 15%, transparent 85%, rgba(227, 10, 23, 0.05)),
    #aaa59c;
  color: var(--black);
  overflow: hidden;
}

.history-track,
.history-sequence {
  display: flex;
  width: max-content;
  height: 100%;
}

.history-track {
  will-change: transform;
  animation: history-ribbon 108s linear infinite;
}

.history-item {
  display: grid;
  grid-template-columns: auto 5.4rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  width: clamp(18rem, 21vw, 21rem);
  height: 100%;
  margin: 0;
  padding: 0.8rem 1.15rem;
  border-right: 1px solid var(--line-dark);
}

.history-number {
  align-self: start;
  padding-top: 0.2rem;
  color: var(--red);
  font: 700 0.52rem/1 var(--mono);
  letter-spacing: 0.12em;
}

.history-item img {
  display: block;
  width: 5.4rem;
  height: 4.15rem;
  padding: 0.22rem;
  border: 1px solid rgba(7, 7, 7, 0.18);
  background: #d1ccc1;
  object-fit: contain;
  box-shadow: 0.35rem 0.35rem 0 rgba(227, 10, 23, 0.1);
}

.history-copy {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  text-align: left;
}

.history-copy strong {
  font: 700 clamp(0.58rem, 0.8vw, 0.7rem)/1.35 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-copy small {
  color: #68645d;
  font: italic 400 0.76rem/1 var(--display);
}

.ataturk-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(24rem, 0.9fr);
  align-items: center;
  min-height: 100svh;
  padding: 14.5rem var(--gutter) 5rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.ataturk-hero,
.republic,
.archive,
.ataturk-closing-page {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 7rem 7rem;
  opacity: 0.18;
  -webkit-mask-image: linear-gradient(to right, transparent, black 75%);
  mask-image: linear-gradient(to right, transparent, black 75%);
}

.hero-red-line {
  position: absolute;
  top: 50%;
  left: -6%;
  width: 112%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red) 35%, transparent 85%);
  transform: rotate(-7deg);
  transform-origin: center;
  opacity: 0.65;
  animation: red-line 6s ease-in-out infinite;
}

.hero-copy {
  position: relative;
  z-index: 4;
  align-self: center;
}

.hero-kicker,
.section-label {
  margin: 0;
  color: var(--red);
  font: 700 0.66rem/1.3 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-kicker span {
  margin-inline: 0.5rem;
  color: var(--muted);
}

.hero-copy h1 {
  position: relative;
  z-index: 3;
  width: max-content;
  margin: 2rem 0 1.7rem;
  font-family: var(--display);
  font-size: clamp(5rem, 10.5vw, 11.5rem);
  font-weight: 400;
  line-height: 0.68;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 span:nth-child(2) {
  margin-left: 0.72em;
  font-style: italic;
}

.hero-copy h1 .title-outline {
  margin-top: 0.08em;
  margin-left: 0.12em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 236, 226, 0.82);
}

.hero-statement {
  display: flex;
  gap: 0.4em;
  align-items: baseline;
  max-width: 31rem;
  margin: 0 0 0 auto;
  color: var(--cream-dark);
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-style: italic;
}

.hero-statement strong {
  position: relative;
  color: var(--cream);
  font-weight: 400;
  white-space: nowrap;
}

.hero-statement strong::after {
  position: absolute;
  right: 0;
  bottom: -0.25em;
  width: 72%;
  height: 1px;
  background: var(--red);
  content: "";
}

.hero-portrait {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: end;
  width: min(42vw, 37rem, calc((100svh - 21rem) / 1.05));
  margin: 0;
  transform: translate3d(calc(var(--portrait-x, 0) * 1px), calc(var(--portrait-y, 0) * 1px), 0);
  transition: transform 140ms ease-out;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border: 1px solid rgba(240, 236, 226, 0.3);
  background: #161616;
  overflow: hidden;
}

.portrait-frame::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(227, 10, 23, 0.26), transparent 22%),
    linear-gradient(to top, rgba(7, 7, 7, 0.52), transparent 40%);
  content: "";
  mix-blend-mode: multiply;
}

.portrait-frame::after {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 3;
  width: 2.8rem;
  aspect-ratio: 1;
  border-top: 1px solid var(--red);
  border-right: 1px solid var(--red);
  content: "";
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.08);
  transform: scale(1.035);
}

.hero-portrait figcaption {
  display: flex;
  justify-content: space-between;
  padding-top: 0.9rem;
  color: var(--muted);
  font: 600 0.55rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-coordinate {
  position: absolute;
  color: rgba(240, 236, 226, 0.25);
  font: 500 0.5rem/1 var(--mono);
  letter-spacing: 0.14em;
}

.coordinate-one {
  top: 25%;
  right: 2.5%;
  writing-mode: vertical-rl;
}

.coordinate-two {
  right: 17%;
  bottom: 6%;
}

.hero-scroll {
  position: absolute;
  bottom: 2.3rem;
  left: var(--gutter);
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--muted);
  font: 600 0.55rem/1 var(--mono);
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-scroll-line {
  position: relative;
  width: 5rem;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}

.hero-scroll-line::after {
  position: absolute;
  inset: 0;
  background: var(--red);
  content: "";
  animation: scroll-scan 2.8s ease-in-out infinite;
  transform: translateX(-100%);
}

.republic {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
  min-height: 100svh;
  padding: clamp(7rem, 11vw, 10rem) var(--gutter);
  background: var(--cream);
  color: var(--black);
  overflow: hidden;
}

.republic-orbit {
  position: absolute;
  top: 50%;
  right: -13rem;
  width: min(55vw, 48rem);
  aspect-ratio: 1;
  border: 1px solid rgba(227, 10, 23, 0.32);
  border-radius: 50%;
  box-shadow:
    0 0 0 5rem rgba(227, 10, 23, 0.035),
    0 0 0 10rem rgba(227, 10, 23, 0.025);
  transform: translateY(-50%);
  animation: republic-orbit 16s ease-in-out infinite;
}

.republic-year {
  position: absolute;
  right: -0.05em;
  bottom: -0.18em;
  color: transparent;
  font: 700 clamp(9rem, 24vw, 24rem)/1 var(--sans);
  letter-spacing: -0.09em;
  -webkit-text-stroke: 1px rgba(7, 7, 7, 0.1);
}

.republic-copy {
  position: relative;
  z-index: 2;
}

.republic .section-label {
  color: var(--red);
}

.republic-copy h2 {
  max-width: 52rem;
  margin: 2rem 0 2.4rem;
  font-family: var(--display);
  font-size: clamp(3.2rem, 5.8vw, 6.4rem);
  font-weight: 400;
  line-height: 0.91;
  letter-spacing: -0.06em;
}

.republic-copy h2 span,
.republic-copy h2 em {
  display: block;
}

.archive-heading h2 {
  margin: 2rem 0 2.4rem;
  font-family: var(--display);
  font-size: clamp(4rem, 7.5vw, 8rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.06em;
}

.republic-copy h2 em,
.archive-heading h2 em {
  color: var(--red);
  font-weight: 400;
}

.republic blockquote {
  max-width: 41rem;
  margin: 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--red);
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  font-style: italic;
  line-height: 1.55;
}

.republic-gif {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: min(27rem, 100%);
  margin: 0;
}

.gif-frame {
  position: relative;
  padding: clamp(1rem, 2vw, 1.8rem);
  border: 1px solid var(--line-dark);
  background: white;
  box-shadow: 2rem 2rem 0 var(--red);
  transform: rotate(1.5deg);
  transition: transform 280ms ease;
}

.gif-frame:hover {
  transform: rotate(0deg) translate(-0.35rem, -0.35rem);
}

.gif-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.peace-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  padding: 1.3rem 0;
  background: var(--red);
  color: white;
  overflow: hidden;
  transform: rotate(-1deg) scale(1.02);
  transform-origin: center;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.marquee-track span {
  padding-right: 3rem;
  font: 700 clamp(1rem, 1.7vw, 1.5rem)/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-track span::after {
  margin-left: 3rem;
  content: "✦";
}

.archive {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100svh;
  min-height: 100svh;
  padding: clamp(7rem, 11vh, 10rem) 0 clamp(4rem, 8vh, 7rem);
  background:
    linear-gradient(90deg, transparent calc(25% - 1px), rgba(240, 236, 226, 0.045) 25%, transparent calc(25% + 1px)),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(240, 236, 226, 0.045) 50%, transparent calc(50% + 1px)),
    linear-gradient(90deg, transparent calc(75% - 1px), rgba(240, 236, 226, 0.045) 75%, transparent calc(75% + 1px)),
    var(--black);
}

.archive-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: end;
  width: 100%;
  margin-bottom: clamp(2.5rem, 5vh, 4.5rem);
  padding-inline: var(--gutter);
}

.archive-heading h2 {
  margin-bottom: 0;
}

.archive-intro {
  display: grid;
  justify-items: start;
  max-width: 40rem;
  margin: 0 0 0.6rem auto;
  color: var(--muted);
}

.archive-route {
  font: 700 clamp(0.62rem, 0.8vw, 0.76rem)/1.65 var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.archive-constant {
  margin-top: 0.55rem;
  color: var(--cream-dark);
  font: italic 400 clamp(1.2rem, 1.8vw, 1.75rem)/1 var(--display);
}

.archive-intro strong {
  margin-top: 0.08em;
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(2.6rem, 4vw, 4.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.archive-ribbon {
  --archive-gap: clamp(0.8rem, 1.25vw, 1.4rem);
  width: 100%;
  height: clamp(17rem, 46svh, 31rem);
  min-height: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.archive-track,
.archive-sequence {
  display: flex;
  gap: var(--archive-gap);
  width: max-content;
  height: 100%;
}

.archive-track {
  will-change: transform;
  animation: archive-ribbon 78s linear infinite;
}

.archive-ribbon:focus-within .archive-track,
.lightbox-open .archive-track {
  animation-play-state: paused;
}

.archive-card {
  position: relative;
  display: block;
  flex: none;
  width: auto;
  height: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: #191918;
  color: var(--cream);
  cursor: zoom-in;
  overflow: hidden;
}

.archive-card-wide {
  aspect-ratio: 1.5;
}

.archive-card-medium {
  aspect-ratio: 1.12;
}

.archive-card-large {
  aspect-ratio: 1.45;
}

.archive-card-portrait {
  aspect-ratio: 0.72;
}

.archive-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.08) brightness(0.83);
  transform: scale(1.02);
  transition: filter 500ms ease, transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.archive-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 7, 7, 0.82), transparent 45%);
  content: "";
  transition: opacity 350ms ease;
}

.archive-card:hover img {
  filter: saturate(1.05) contrast(1.03) brightness(1);
  transform: scale(1.075);
}

.archive-card:hover::after {
  opacity: 0.65;
}

.archive-number,
.archive-caption {
  position: absolute;
  bottom: 1.25rem;
  z-index: 2;
  font-family: var(--mono);
  text-transform: uppercase;
}

.archive-number {
  left: 1.25rem;
  color: var(--red);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
}

.archive-caption {
  right: 1.25rem;
  font-size: 0.6rem;
  letter-spacing: 0.11em;
}

.closing {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 85svh;
  padding: 7rem var(--gutter);
  background:
    radial-gradient(circle at 50% 54%, rgba(227, 10, 23, 0.2), transparent 32%),
    radial-gradient(circle at 50% 115%, rgba(227, 10, 23, 0.14), transparent 45%),
    linear-gradient(180deg, #090909 0%, #11100f 58%, #060606 100%);
  color: white;
  text-align: center;
  overflow: hidden;
}

.closing-ceremony {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.pennant-curtain {
  position: absolute;
  top: 5rem;
  right: clamp(2rem, 8vw, 9rem);
  left: clamp(2rem, 8vw, 9rem);
  display: flex;
  gap: clamp(0.45rem, 1.7vw, 1.7rem);
  align-items: flex-start;
  justify-content: center;
  height: 12rem;
  z-index: 2;
}

.pennant-curtain::before {
  position: absolute;
  top: 0;
  right: -2vw;
  left: -2vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 236, 226, 0.5) 12%, rgba(240, 236, 226, 0.5) 88%, transparent);
  content: "";
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 500ms ease 100ms, transform 900ms ease 100ms;
}

.closing.is-active .pennant-curtain::before {
  opacity: 1;
  transform: scaleX(1);
}

.ceremony-pennant {
  position: relative;
  flex: none;
  width: calc(var(--drop) * 0.48rem);
  height: calc(var(--drop) * 1rem);
  filter: drop-shadow(0 0.75rem 0.6rem rgba(0, 0, 0, 0.35));
  opacity: 0;
  transform: translateY(calc(-100% - 7rem)) rotate(var(--tilt)) scaleY(0.25);
  transform-origin: top;
  transition:
    opacity 280ms ease var(--delay),
    transform 1100ms cubic-bezier(0.16, 0.75, 0.2, 1) var(--delay);
}

.closing.is-active .ceremony-pennant {
  opacity: 0.92;
  transform: translateY(0) rotate(var(--tilt)) scaleY(1);
}

.ceremony-pennant img {
  display: block;
  width: 100%;
  height: 100%;
}

.standard-field {
  position: absolute;
  bottom: -2rem;
  z-index: 1;
  width: 50%;
  height: 82%;
}

.standard-field-left {
  left: 0;
}

.standard-field-right {
  right: 0;
}

.battle-standard {
  position: absolute;
  bottom: 0;
  left: var(--x);
  width: 2px;
  height: var(--pole);
  opacity: 0;
  transform: translateY(115%) rotate(var(--scene-angle, var(--angle))) scale(0.92);
  transform-origin: bottom;
  transition:
    opacity 380ms ease var(--delay),
    transform 1400ms cubic-bezier(0.12, 0.72, 0.2, 1) var(--delay);
}

.standard-field-right .battle-standard {
  right: var(--x);
  left: auto;
}

.closing.is-active .battle-standard {
  opacity: 0.88;
  transform: translateY(0) rotate(var(--scene-angle, var(--angle))) scale(1);
}

.standard-pole {
  position: absolute;
  inset: 0;
  width: 3px;
  background: linear-gradient(90deg, #4b402e, #d9cfaa 48%, #51432e);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 1rem rgba(0, 0, 0, 0.4);
}

.standard-pole::before {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  width: 0.72rem;
  aspect-ratio: 1;
  border: 1px solid #d9cfaa;
  background: #15130f;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.standard-flag {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  width: calc(clamp(5.2rem, 8.5vw, 9rem) * var(--flag-scale));
  aspect-ratio: 1.5;
  background: var(--red);
  box-shadow: 0 0.8rem 1.2rem rgba(0, 0, 0, 0.42);
  clip-path: polygon(0 0, 96% 2%, 100% 11%, 96% 24%, 100% 39%, 97% 53%, 100% 68%, 96% 84%, 100% 100%, 0 100%);
  transform-origin: left center;
  animation: standard-wave 3s ease-in-out var(--wave-delay) infinite;
}

.standard-flag::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.14), transparent 24%, rgba(0, 0, 0, 0.1));
  content: "";
  pointer-events: none;
}

.standard-flag img {
  display: block;
  width: 100%;
  height: 100%;
}

.standard-field-right .standard-flag {
  right: 50%;
  left: auto;
  transform-origin: right center;
  animation-name: standard-wave-right;
}

.ataturk-closing-page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.ataturk-closing-page .closing {
  flex: 1;
}

.closing::before,
.closing::after {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(227, 10, 23, 0.34);
  border-radius: 50%;
  content: "";
}

.closing::before {
  top: 50%;
  left: 50%;
  width: min(65vw, 56rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.closing::after {
  top: 50%;
  left: 50%;
  width: min(38vw, 31rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.closing-years,
.closing-thought,
.closing-pillars,
.closing h2,
.closing-star {
  position: relative;
  z-index: 3;
}

.closing-years {
  display: flex;
  justify-content: space-between;
  width: min(88vw, 82rem);
  margin-bottom: -1rem;
  font: 700 clamp(0.75rem, 1.4vw, 1.1rem)/1 var(--mono);
  letter-spacing: 0.2em;
}

.closing h2 {
  margin: 0;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(5rem, 15vw, 15rem);
  font-weight: 400;
  letter-spacing: -0.07em;
  text-shadow: 0 0.08em 0.3em rgba(0, 0, 0, 0.85);
  text-transform: uppercase;
}

.closing-thought {
  display: flex;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin: -0.6rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  font-style: italic;
}

.closing-thought strong {
  color: var(--cream);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.closing-pillars {
  display: flex;
  gap: clamp(1rem, 4vw, 4rem);
  margin-top: clamp(3rem, 6vh, 5rem);
  font: 700 0.62rem/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.closing-pillars span + span::before {
  margin-right: clamp(1rem, 4vw, 4rem);
  content: "✦";
  opacity: 0.55;
}

.closing-star {
  position: absolute;
  top: 13%;
  left: 50%;
  color: var(--red);
  font-size: 2rem;
  transform: translateX(-50%);
  animation: star-pulse 2.5s ease-in-out infinite;
}

.ataturk-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  padding: 2.5rem var(--gutter);
  background: var(--black);
  color: var(--muted);
  font: 600 0.55rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ataturk-footer a {
  justify-self: start;
  text-decoration: none;
}

.ataturk-footer span:nth-child(2) {
  justify-self: center;
}

.ataturk-footer span:last-child {
  justify-self: end;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  margin: 0;
  padding: 2rem;
  border: 0;
  background: rgba(7, 7, 7, 0.97);
  color: var(--cream);
  overflow: hidden;
}

.lightbox[open] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.lightbox::backdrop {
  background: rgba(7, 7, 7, 0.96);
}

.lightbox figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1rem;
  justify-items: center;
  height: calc(100svh - 4rem);
  margin: 0;
}

.lightbox figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox figcaption {
  display: flex;
  gap: 1rem;
  align-items: center;
  font: 600 0.62rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lightbox figcaption span {
  color: var(--red);
}

.lightbox button {
  border: 1px solid var(--line);
  background: var(--black-soft);
  color: var(--cream);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  width: 3rem;
  aspect-ratio: 1;
  font-size: 1.6rem;
}

.lightbox-nav {
  width: 3.25rem;
  aspect-ratio: 1;
  margin: 1rem;
  font-size: 1.2rem;
  transition: border-color 180ms ease, background 180ms ease;
}

.lightbox-nav:hover,
.lightbox-close:hover {
  border-color: var(--red);
  background: var(--red);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(2.5rem);
  transition:
    opacity 850ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 850ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes red-line {
  50% {
    opacity: 1;
    transform: rotate(-5deg) scaleX(1.08);
  }
}

@keyframes scroll-scan {
  55%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes republic-orbit {
  50% {
    transform: translateY(-50%) rotate(12deg) scale(1.05);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes archive-ribbon {
  to {
    transform: translateX(calc(-50% - (var(--archive-gap) / 2)));
  }
}

@keyframes history-ribbon {
  to {
    transform: translateX(-50%);
  }
}

@keyframes standard-wave {
  0%,
  100% {
    transform: perspective(16rem) rotateY(0deg) skewY(-0.8deg);
  }

  50% {
    transform: perspective(16rem) rotateY(-14deg) skewY(1.8deg) scaleX(0.97);
  }
}

@keyframes standard-wave-right {
  0%,
  100% {
    transform: perspective(16rem) rotateY(0deg) skewY(0.8deg);
  }

  50% {
    transform: perspective(16rem) rotateY(14deg) skewY(-1.8deg) scaleX(0.97);
  }
}

@keyframes star-pulse {
  50% {
    opacity: 0.45;
    transform: translateX(-50%) rotate(45deg) scale(1.35);
  }
}

@media (min-width: 1800px) {
  :root {
    --wide-gutter: max(var(--gutter), calc((100vw - 140rem) / 2));
  }

  .corner-header {
    min-height: 6rem;
    padding-inline: var(--wide-gutter);
  }

  .history-ribbon {
    top: 6rem;
    height: 8rem;
  }

  .history-item {
    grid-template-columns: auto 6rem minmax(0, 1fr);
    width: 23rem;
  }

  .history-item img {
    width: 6rem;
    height: 4.6rem;
  }

  .ceremony-pennant {
    width: calc(var(--drop) * 0.58rem);
    height: calc(var(--drop) * 1.2rem);
  }

  .back-link {
    font-size: 0.7rem;
  }

  .corner-thought {
    font-size: 0.8rem;
  }

  .corner-crescent {
    width: 1.15rem;
  }

  .corner-crescent::after {
    width: 0.87rem;
  }

  .corner-years {
    font-size: 0.68rem;
  }

  .ataturk-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(5rem, 5vw, 8rem);
    padding-inline: var(--wide-gutter);
  }

  .hero-kicker,
  .section-label {
    font-size: 0.78rem;
  }

  .hero-copy h1 {
    font-size: clamp(11.5rem, 9.4vw, 15rem);
  }

  .hero-statement {
    max-width: 38rem;
    font-size: clamp(1.45rem, 1.2vw, 1.85rem);
  }

  .hero-portrait {
    width: min(34vw, 56rem);
  }

  .hero-scroll {
    left: var(--wide-gutter);
    font-size: 0.64rem;
  }

  .republic {
    gap: clamp(7rem, 7vw, 11rem);
    padding-inline: var(--wide-gutter);
  }

  .republic-copy h2 {
    max-width: 64rem;
    font-size: clamp(6.4rem, 5vw, 8rem);
  }

  .republic blockquote {
    max-width: 49rem;
    font-size: clamp(1.55rem, 1.25vw, 1.9rem);
  }

  .republic-gif {
    width: min(34rem, 100%);
  }

  .archive-heading {
    padding-inline: var(--wide-gutter);
  }

  .archive-heading h2 {
    font-size: clamp(8rem, 6.5vw, 10rem);
  }

  .archive-intro {
    max-width: 50rem;
  }

  .archive-route {
    font-size: 0.82rem;
  }

  .archive-constant {
    font-size: 2rem;
  }

  .archive-intro strong {
    font-size: 5rem;
  }

  .archive-ribbon {
    height: clamp(31rem, 45svh, 46rem);
  }

  .closing::before {
    width: min(65vw, 70rem);
  }

  .closing::after {
    width: min(38vw, 42rem);
  }

  .closing-years {
    width: min(88vw, 108rem);
    font-size: 1.3rem;
  }

  .closing h2 {
    font-size: clamp(15rem, 12vw, 22rem);
  }

  .closing-thought {
    font-size: clamp(2.6rem, 2.2vw, 3.5rem);
  }

  .closing-pillars {
    font-size: 0.76rem;
  }

  .ataturk-footer {
    padding-inline: var(--wide-gutter);
    font-size: 0.64rem;
  }
}

@media (max-width: 980px) {
  .corner-header {
    grid-template-columns: 1fr auto 1fr;
  }

  .ataturk-hero {
    grid-template-columns: 1fr;
    align-items: end;
    padding-top: 14.5rem;
  }

  .hero-copy {
    align-self: start;
  }

  .hero-copy h1 {
    font-size: clamp(4.7rem, 16vw, 8rem);
  }

  .hero-portrait {
    position: absolute;
    right: var(--gutter);
    bottom: 5.5rem;
    width: min(55vw, 31rem);
    opacity: 0.72;
  }

  .hero-statement {
    position: relative;
    z-index: 3;
    max-width: 24rem;
    margin: 2.25rem 0 0;
  }

  .republic {
    gap: 3rem;
  }

  .archive-heading {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .archive-heading > p {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .corner-header {
    min-height: 4.8rem;
  }

  .history-ribbon {
    top: 4.8rem;
    height: 6.2rem;
  }

  .history-item {
    grid-template-columns: auto 4.25rem minmax(0, 1fr);
    gap: 0.65rem;
    width: 17rem;
    padding: 0.65rem 0.8rem;
  }

  .history-item img {
    width: 4.25rem;
    height: 3.35rem;
  }

  .history-copy {
    gap: 0.35rem;
  }

  .history-copy strong {
    font-size: 0.55rem;
  }

  .history-copy small {
    font-size: 0.68rem;
  }

  .back-link > span:last-child {
    display: none;
  }

  .corner-name {
    gap: 0.55rem;
    padding-inline: 0.35rem;
  }

  .corner-name::after {
    right: 0.35rem;
    width: 2.8rem;
  }

  .corner-crescent {
    width: 0.72rem;
  }

  .corner-thought {
    font-size: 0.54rem;
    letter-spacing: 0.07em;
  }

  .corner-thought strong {
    margin-left: 0.75rem;
  }

  .corner-years {
    font-size: 0.47rem;
    letter-spacing: 0.08em;
  }

  .corner-years span {
    margin-inline: 0.22rem;
  }

  .ataturk-hero {
    display: block;
    min-height: 61rem;
    padding-top: 13rem;
  }

  .hero-copy h1 {
    width: auto;
    font-size: clamp(4rem, 21vw, 6.2rem);
    line-height: 0.74;
  }

  .hero-copy h1 span:nth-child(2) {
    margin-left: 0.3em;
  }

  .hero-portrait {
    right: -4rem;
    bottom: 4.5rem;
    width: 24rem;
    opacity: 0.56;
  }

  .hero-portrait figcaption,
  .hero-coordinate {
    display: none;
  }

  .hero-statement {
    display: grid;
    gap: 0.2rem;
    max-width: 17rem;
    font-size: 1.05rem;
  }

  .hero-scroll {
    bottom: 1.6rem;
  }

  .republic {
    grid-template-columns: 1fr;
    padding-block: 6.5rem;
  }

  .republic-copy h2,
  .archive-heading h2 {
    font-size: clamp(3.15rem, 14.5vw, 5rem);
  }

  .republic-gif {
    width: min(20rem, calc(100% - 2rem));
  }

  .gif-frame {
    box-shadow: 1.1rem 1.1rem 0 var(--red);
  }

  .closing {
    padding-inline: 1.25rem;
  }

  .pennant-curtain {
    right: 1.5rem;
    left: 1.5rem;
    gap: 0.25rem;
  }

  .ceremony-pennant {
    width: calc(var(--drop) * 0.2rem);
    height: calc(var(--drop) * 0.42rem);
  }

  .ceremony-pennant:nth-child(2),
  .ceremony-pennant:nth-child(5),
  .ceremony-pennant:nth-child(9),
  .ceremony-pennant:nth-child(12) {
    display: none;
  }

  .battle-standard {
    height: calc(var(--pole) * 0.72);
  }

  .closing.is-active .battle-standard {
    opacity: 0.62;
  }

  .standard-flag {
    width: calc(3.8rem * var(--flag-scale));
  }

  .standard-field-left .battle-standard:nth-child(1) { --scene-angle: 28deg; }
  .standard-field-left .battle-standard:nth-child(2) { --scene-angle: 25deg; }
  .standard-field-left .battle-standard:nth-child(3) { --scene-angle: 22deg; }
  .standard-field-left .battle-standard:nth-child(4) { --scene-angle: 20deg; }
  .standard-field-left .battle-standard:nth-child(5) { --scene-angle: 18deg; }
  .standard-field-left .battle-standard:nth-child(6) { --scene-angle: 16deg; }
  .standard-field-left .battle-standard:nth-child(7) { --scene-angle: 14deg; }
  .standard-field-left .battle-standard:nth-child(8) { --scene-angle: 12deg; }
  .standard-field-right .battle-standard:nth-child(1) { --scene-angle: -28deg; }
  .standard-field-right .battle-standard:nth-child(2) { --scene-angle: -25deg; }
  .standard-field-right .battle-standard:nth-child(3) { --scene-angle: -22deg; }
  .standard-field-right .battle-standard:nth-child(4) { --scene-angle: -20deg; }
  .standard-field-right .battle-standard:nth-child(5) { --scene-angle: -18deg; }
  .standard-field-right .battle-standard:nth-child(6) { --scene-angle: -16deg; }
  .standard-field-right .battle-standard:nth-child(7) { --scene-angle: -14deg; }
  .standard-field-right .battle-standard:nth-child(8) { --scene-angle: -12deg; }

  .closing h2 {
    font-size: clamp(4.5rem, 22vw, 7rem);
  }

  .closing-years {
    width: 100%;
    margin-bottom: 1rem;
  }

  .closing-thought {
    display: grid;
    gap: 0.35rem;
    margin-top: 1rem;
    text-align: center;
  }

  .closing-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 2rem;
    text-align: left;
  }

  .closing-pillars span + span::before {
    margin-right: 0.7rem;
  }

  .ataturk-footer {
    grid-template-columns: 1fr auto;
  }

  .ataturk-footer span:nth-child(2) {
    display: none;
  }

  .lightbox {
    padding: 4.5rem 1rem 1rem;
  }

  .lightbox[open] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .lightbox figure {
    grid-column: 1 / -1;
    grid-row: 1;
    height: auto;
    min-height: 0;
  }

  .lightbox-nav {
    grid-row: 2;
    width: 100%;
    margin: 0;
    aspect-ratio: auto;
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .history-ribbon {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .history-track {
    animation: none !important;
    transform: none;
  }

  .history-sequence[aria-hidden="true"] {
    display: none;
  }
}
