:root {
  --paper: #f3eee4;
  --paper-deep: #e4d7c5;
  --ink: #151412;
  --muted: #5d574d;
  --line: #24211d;
  --oxide: #9f3f25;
  --blue: #23556f;
  --green: #566a44;
  --steel: #8b9088;
  --white: #fffaf0;
  --max: 1180px;
  --slide-width: 410px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(90deg, rgba(21, 20, 18, 0.04) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(0deg, rgba(21, 20, 18, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  align-items: center;
  background: rgba(243, 238, 228, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  left: 0;
  min-height: 68px;
  padding: 0 clamp(18px, 4vw, 52px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand-mark {
  align-items: center;
  display: inline-flex;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-icon {
  display: block;
  height: 28px;
  width: 28px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: clamp(18px, 3vw, 34px);
}

.nav-links a {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.section-grid {
  display: grid;
  gap: clamp(28px, 5vw, 76px);
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(68px, 10vw, 130px) clamp(18px, 4vw, 42px);
}

.hero {
  align-items: center;
  min-height: calc(100vh - 68px);
  padding-bottom: clamp(34px, 6vw, 72px);
  padding-top: clamp(56px, 7vw, 96px);
}

.eyebrow {
  color: var(--oxide);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(58px, 9.2vw, 136px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.86;
  margin-bottom: 24px;
  max-width: 760px;
}

h2 {
  font-size: clamp(38px, 5.2vw, 82px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.92;
  margin-bottom: 0;
}

h3 {
  font-size: 18px;
  letter-spacing: 0;
  line-height: 1.08;
  margin-bottom: 10px;
}

.hero-lede {
  color: var(--muted);
  font-size: clamp(20px, 2.2vw, 29px);
  font-weight: 700;
  line-height: 1.17;
  margin-bottom: 34px;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  align-items: center;
  border: 1px solid var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0;
  min-height: 48px;
  padding: 13px 18px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.hero-visual {
  align-items: center;
  align-self: stretch;
  display: flex;
  justify-content: center;
  min-height: 430px;
  position: relative;
}

.hero-visual::before {
  background: transparent;
  border: 1px solid var(--line);
  content: "";
  inset: 7% 3% 3% 7%;
  position: absolute;
}

.hero-media {
  background: #0f0d0d;
  filter: drop-shadow(0 22px 22px rgba(21, 20, 18, 0.14));
  max-height: 660px;
  object-fit: contain;
  position: relative;
  width: min(100%, 660px);
}

.ticker-band {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 18px 0;
}

.ticker-track {
  animation: ticker 28s linear infinite;
  display: flex;
  gap: 42px;
  min-width: max-content;
  padding-left: 100%;
}

.ticker-track span {
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes ticker {
  to {
    transform: translateX(-100%);
  }
}

.intro {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.body-copy {
  color: var(--muted);
  font-size: clamp(19px, 2.1vw, 26px);
  font-weight: 700;
  line-height: 1.24;
}

.body-copy p:last-child {
  margin-bottom: 0;
}

.slide-section {
  padding: clamp(68px, 10vw, 132px) 0 0;
}

#thesis,
#work,
#contact {
  scroll-margin-top: 88px;
}

.section-heading {
  margin: 0 auto 36px;
  max-width: var(--max);
  padding: 0 clamp(18px, 4vw, 42px);
}

.section-heading h2 {
  max-width: 940px;
}

.slider-shell {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.slider-window {
  cursor: grab;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}

.slider-window.is-dragging {
  cursor: grabbing;
}

.slide-track {
  backface-visibility: hidden;
  display: flex;
  transform: translate3d(0, 0, 0);
  transition: transform 600ms ease-in-out;
  will-change: transform;
}

.slider-window.is-dragging .slide-track {
  transition: none;
}

.slide {
  --slide-copy-min: 148px;
  --slide-height: 630px;
  --slide-motion-height: 400px;
  --slide-motion-offset: 32px;

  background: var(--paper);
  border-right: 1px solid var(--line);
  display: grid;
  flex: 0 0 var(--slide-width);
  grid-template-rows: calc(var(--slide-motion-height) + var(--slide-motion-offset)) minmax(var(--slide-copy-min), 1fr);
  height: var(--slide-height);
  max-height: 900px;
  min-width: var(--slide-width);
  padding: 0 0 50px;
  position: relative;
  width: var(--slide-width);
}

.slide-number {
  color: var(--steel);
  font-size: clamp(88px, 10vw, 148px);
  font-weight: 300;
  line-height: 0.78;
  left: 20px;
  position: absolute;
  top: 25px;
  z-index: 2;
}

.media-wrap {
  align-items: center;
  background: #050705;
  display: flex;
  grid-row: 1;
  height: var(--slide-motion-height);
  justify-content: center;
  margin-top: var(--slide-motion-offset);
  overflow: hidden;
  pointer-events: none;
  position: relative;
  width: 100%;
  z-index: 1;
}

.slide-media {
  background: #0f0d0d;
  border: 0;
  display: block;
  height: 100%;
  max-height: none;
  max-width: none;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

video.slide-media {
  filter: brightness(1.16) contrast(1.08);
}

.slide-media-frame {
  aspect-ratio: auto;
}

.slide-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: flex-start;
  min-height: var(--slide-copy-min);
  padding: 18px 20px 0;
  position: relative;
  z-index: 2;
}

.slide-copy h3 {
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.slide-copy p {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 0;
  overflow-wrap: break-word;
}

.slider-controls {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  min-height: 66px;
}

.icon-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-family: "Courier New", Courier, monospace;
  height: 66px;
  justify-content: center;
  min-width: 70px;
  padding: 20px;
}

.icon-button:first-child {
  border-left: 1px solid var(--line);
}

.icon-button:disabled {
  color: var(--steel);
  cursor: default;
  opacity: 0.55;
}

.icon-button svg {
  display: block;
  height: 24px;
  width: 25px;
}

.proof {
  border-bottom: 1px solid var(--line);
}

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

.proof-item {
  border: 1px solid var(--line);
  min-height: 208px;
  padding: 20px;
}

.proof-item span {
  color: var(--blue);
  display: block;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 56px;
}

.proof-item p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.26;
  margin-bottom: 0;
}

.contact-section {
  background: var(--ink);
  color: var(--paper);
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  padding: clamp(66px, 10vw, 124px) max(clamp(18px, 4vw, 42px), calc((100vw - var(--max)) / 2 + 42px));
}

.contact-copy p:not(.eyebrow) {
  color: #d0c7b8;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 700;
  line-height: 1.24;
  max-width: 560px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  gap: 8px;
}

label {
  color: #d0c7b8;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

input,
textarea {
  background: #25221d;
  border: 1px solid #706859;
  color: var(--paper);
  font: inherit;
  font-size: 16px;
  min-height: 48px;
  padding: 12px;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus,
.button:focus-visible,
.icon-button:focus-visible,
.slider-window:focus-visible,
a:focus-visible {
  outline: 2px solid var(--oxide);
  outline-offset: 3px;
}

.honey-field {
  height: 0;
  left: -10000px;
  opacity: 0;
  position: absolute;
  width: 0;
}

.turnstile-slot:empty {
  display: none;
}

.form-status {
  color: #d0c7b8;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  min-height: 18px;
}

.form-status.is-success {
  color: #9fc17f;
}

.form-status.is-error {
  color: #e29b84;
}

.site-footer {
  align-items: flex-end;
  background: #0f0e0c;
  border-top: 1px solid #484139;
  color: var(--paper);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 146px;
  padding: 28px clamp(18px, 4vw, 52px);
}

.site-footer p {
  color: #b9afa0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin: 12px 0 0;
  max-width: 440px;
}

.site-footer a {
  color: var(--paper);
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-meta {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: right;
}

.footer-meta a {
  text-transform: lowercase;
}

.footer-meta span {
  color: #8f877a;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

@media (min-width: 1180px) {
  .slide:first-child {
    margin-left: var(--slide-width);
  }
}

@media (min-width: 1024px) {
  .slide {
    --slide-height: 800px;
    --slide-motion-height: 520px;
    --slide-motion-offset: 72px;
  }

  .slide-copy p {
    font-size: 21px;
    line-height: 1.2;
  }

  .slide-media {
    max-height: none;
  }
}

@media (max-width: 860px) {
  .slide {
    --slide-copy-min: 190px;
    --slide-height: 620px;
    --slide-motion-height: 340px;
    --slide-motion-offset: 30px;
  }

  #thesis,
  #work,
  #contact {
    scroll-margin-top: 62px;
  }

  .site-header {
    min-height: 62px;
  }

  .nav-links {
    gap: 14px;
  }

  .section-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 320px;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 26px;
  }

  .footer-meta {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  :root {
    --slide-width: min(410px, 100vw);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 14px;
    padding-top: 14px;
    position: static;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  #thesis,
  #work,
  #contact {
    scroll-margin-top: 0;
  }

  .slide-section {
    padding-top: 60px;
  }

  .slide-section .section-heading {
    margin-bottom: 26px;
  }

  .slide {
    --slide-copy-min: 218px;
    --slide-height: calc(var(--slide-motion-height) + 292px);
    --slide-motion-height: clamp(292px, 72vw, 326px);
    --slide-motion-offset: 32px;
    padding-bottom: 42px;
  }

  .slide-number {
    top: 24px;
  }

  .slide-copy {
    gap: 18px;
    min-height: var(--slide-copy-min);
  }

  .slide-copy p {
    font-size: clamp(18px, 5.2vw, 21px);
    line-height: 1.17;
  }
}

@media (max-width: 360px) {
  .slide {
    --slide-copy-min: 244px;
    --slide-height: 610px;
    --slide-motion-height: 292px;
  }

  .slide-copy {
    min-height: var(--slide-copy-min);
    padding-left: 18px;
    padding-right: 18px;
  }

  .slide-copy p {
    font-size: 18px;
  }
}

@media (max-width: 560px) and (max-height: 680px) {
  .slide-section {
    padding-top: 52px;
  }

  .slide-section .section-heading {
    margin-bottom: 22px;
  }

  .slide-section .section-heading h2 {
    font-size: 34px;
    line-height: 0.94;
  }

  .slide {
    --slide-copy-min: 238px;
    --slide-height: 560px;
    --slide-motion-height: 240px;
    --slide-motion-offset: 28px;
  }

  .slide-copy {
    gap: 14px;
  }
}

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