:root {
  --ink: #10272d;
  --ink-deep: #0d1519;
  --paper: #f2f3ee;
  --paper-warm: #ebe8dd;
  --ice: #dce5e9;
  --ochre: #d9b53a;
  --night-blue: #244a7a;
  --white: #f8f6ef;
  --gutter: 48px;
  --max-width: 1520px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--ink) var(--paper);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}

::selection {
  background: var(--ochre);
  color: var(--ink-deep);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink-deep);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 2px;
  pointer-events: none;
  mix-blend-mode: difference;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left center;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  display: none;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: #ffffff;
}

.cursor-ring {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

@media (pointer: fine) {
  html.has-cursor,
  html.has-cursor a,
  html.has-cursor button,
  html.has-cursor input,
  html.has-cursor textarea {
    cursor: none;
  }

  html.has-cursor .cursor-dot,
  html.has-cursor .cursor-ring {
    display: block;
  }

  html.has-cursor .cursor-ring.is-active {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 26px var(--gutter);
  color: #ffffff;
  mix-blend-mode: difference;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
}

.brand-name {
  white-space: nowrap;
}

.hero {
  position: relative;
  height: 92svh;
  overflow: hidden;
  background: var(--ice);
  isolation: isolate;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: translate3d(var(--hero-x, 0), calc(var(--hero-y, 0) + var(--hero-scroll, 0px)), 0) scale(1.07);
  will-change: transform;
}

.hero-shade {
  z-index: -1;
  background: rgba(9, 26, 34, 0.08);
}

.hero-copy {
  position: absolute;
  top: 25%;
  right: var(--gutter);
  left: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ink-deep);
  text-align: center;
  transform: translate3d(var(--title-x, 0), var(--title-y, 0), 0);
  will-change: transform;
}

.hero-title {
  display: flex;
  margin: 0;
  flex-direction: column;
  align-items: center;
  font-size: 138px;
  font-stretch: condensed;
  font-weight: 800;
  line-height: 0.78;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
}

.hero-note {
  margin: 28px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.35;
}

.hero-foot {
  position: absolute;
  right: var(--gutter);
  bottom: 24px;
  left: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  color: var(--white);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.hero-foot p {
  margin: 0 0 4px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.round-link {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  transition: color 260ms ease, background-color 260ms ease, transform 260ms var(--ease);
}

.round-link:hover,
.round-link:focus-visible {
  background: var(--white);
  color: var(--ink-deep);
  transform: translateY(-4px);
}

.section-shell {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max-width));
  margin: 0 auto;
}

.field {
  padding: 170px 0 130px;
  overflow: hidden;
  background: var(--paper);
}

.section-heading,
.night-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 34px;
  align-items: start;
}

.section-heading h2,
.night-copy h2 {
  margin: 0;
  font-size: 92px;
  font-weight: 500;
  line-height: 0.94;
}

.section-heading h2 em,
.night-copy h2 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.section-summary,
.night-copy > p:last-child {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.7;
}

.field-statement {
  display: grid;
  margin-top: 160px;
  padding: 98px 0 92px;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 34px;
  align-items: end;
  border-top: 1px solid rgba(16, 39, 45, 0.3);
  border-bottom: 1px solid rgba(16, 39, 45, 0.3);
}

.statement-note {
  margin: 0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  line-height: 1.6;
  text-transform: uppercase;
}

.statement-copy {
  margin: 0;
  font-size: 72px;
  font-weight: 500;
  line-height: 0.96;
}

.ascii-text {
  position: relative;
  min-width: 0;
  isolation: isolate;
}

.ascii-source {
  transition: opacity 240ms ease;
}

.ascii-source [data-ascii-line] {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.ascii-text-guestbook {
  max-width: 620px;
}

.ascii-text-guestbook .guestbook-title-flow [data-ascii-line] {
  display: inline;
  width: auto;
  max-width: none;
}

.ascii-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.ascii-text.is-canvas-ready .ascii-source {
  opacity: 0;
}

.ascii-text.is-canvas-ready .ascii-canvas {
  opacity: 1;
}

.ascii-text.is-disrupted .ascii-canvas {
  filter: contrast(1.06);
}

.night {
  padding: 160px 0 78px;
  overflow: hidden;
  background: var(--ink-deep);
  color: var(--white);
}

.night-copy h2 {
  font-size: 96px;
}

.night-copy > p:last-child {
  color: rgba(248, 246, 239, 0.66);
}

.night-frame {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max-width));
  margin: 130px auto 0;
}

.night-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 30000 / 23756;
  overflow: hidden;
  background: var(--night-blue);
}

.night-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(var(--night-x, 0), var(--night-y, 0), 0) scale(1.025);
  transition: filter 600ms ease;
  will-change: transform;
}

.night-frame:hover img {
  filter: saturate(1.08);
}

.night-frame figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  color: rgba(248, 246, 239, 0.58);
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.guestbook {
  padding: 150px var(--gutter) 104px;
  overflow: hidden;
  background: var(--paper-warm);
  color: var(--ink);
}

.guestbook-shell {
  display: grid;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  column-gap: clamp(50px, 8vw, 150px);
  row-gap: 88px;
}

.guestbook-intro {
  grid-column: 1;
}

.guestbook-intro h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(56px, 6.1vw, 94px);
  font-weight: 500;
  line-height: 0.94;
}

.guestbook-intro h2 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.guestbook-summary {
  max-width: 330px;
  margin: 36px 0 0;
  font-size: 14px;
  line-height: 1.7;
}

.guestbook-live {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  align-self: start;
}

.live-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(16, 39, 45, 0.32);
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.live-count {
  margin-left: auto;
  opacity: 0.55;
  font-weight: 400;
}

.live-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b24531;
  box-shadow: 0 0 0 0 rgba(178, 69, 49, 0.38);
  animation: live-pulse 2.2s ease-out infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(178, 69, 49, 0.42); }
  70% { box-shadow: 0 0 0 7px rgba(178, 69, 49, 0); }
  100% { box-shadow: 0 0 0 0 rgba(178, 69, 49, 0); }
}

.guestbook-ticker {
  width: 100%;
  margin: 0 0 26px;
  overflow: hidden;
  border-bottom: 1px solid rgba(16, 39, 45, 0.16);
}

.guestbook-ticker-track {
  display: flex;
  width: max-content;
  padding: 16px 0 17px;
  white-space: nowrap;
  animation: ticker-loop 26s linear infinite;
}

.guestbook-ticker:hover .guestbook-ticker-track {
  animation-play-state: paused;
}

.ticker-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 52px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-style: italic;
}

.ticker-note::after {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ochre);
  content: "";
}

@keyframes ticker-loop {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.message-list {
  display: flex;
  max-height: 286px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex-direction: column;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 39, 45, 0.42) transparent;
}

.message-item {
  display: grid;
  padding: 14px 0 15px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  border-bottom: 1px solid rgba(16, 39, 45, 0.16);
}

.message-item:first-child {
  padding-top: 0;
}

.message-item.is-new {
  animation: message-arrival 1.8s var(--ease) both;
}

@keyframes message-arrival {
  0% {
    background: rgba(217, 181, 58, 0.38);
    transform: translateX(18px);
  }
  100% {
    background: transparent;
    transform: translateX(0);
  }
}

.message-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.message-copy {
  margin: 4px 0 0;
  color: rgba(16, 39, 45, 0.74);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.35;
}

.message-time {
  margin: 0;
  color: rgba(16, 39, 45, 0.54);
  font-family: Consolas, "Courier New", monospace;
  font-size: 9px;
  text-transform: uppercase;
  white-space: nowrap;
}

.guestbook-form {
  grid-column: 1;
  display: grid;
  max-width: 640px;
  grid-template-columns: 1fr 1fr;
  gap: 34px 22px;
  align-self: end;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.form-field label span {
  opacity: 0.5;
  font-weight: 400;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(16, 39, 45, 0.42);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.form-field textarea {
  min-height: 46px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(16, 39, 45, 0.44);
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--ink);
}

.form-submit-row {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.form-status {
  min-height: 16px;
  margin: 0;
  color: rgba(16, 39, 45, 0.62);
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

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

.send-button {
  display: inline-flex;
  min-height: 45px;
  padding: 0 18px;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background-color 240ms ease, color 240ms ease, transform 240ms var(--ease);
}

.send-button:hover,
.send-button:focus-visible {
  background: var(--ink);
  color: var(--paper-warm);
  transform: translateY(-3px);
}

.site-footer {
  padding: 90px var(--gutter) 30px;
  overflow: hidden;
  background: #101718;
  color: var(--white);
}

.footer-lead {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding-bottom: 66px;
  border-bottom: 1px solid rgba(248, 246, 239, 0.2);
}

.footer-lead h2 {
  margin: 0;
  font-size: 132px;
  font-weight: 700;
  line-height: 0.82;
  text-transform: uppercase;
}

.footer-meta {
  display: flex;
  width: min(100%, var(--max-width));
  margin: 28px auto 0;
  align-items: center;
  justify-content: space-between;
  color: rgba(248, 246, 239, 0.56);
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.footer-meta p {
  margin: 0;
}

.site-metrics {
  display: flex;
  gap: 30px;
}

.site-metrics strong {
  color: var(--white);
  font-weight: 400;
}

.js [data-reveal],
.js .reveal-now,
.js .hero-title span {
  opacity: 0;
  transform: translateY(34px);
}

.js [data-reveal] {
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

.js [data-reveal].is-visible,
.is-ready .reveal-now,
.is-ready .hero-title span {
  opacity: 1;
  transform: translateY(0);
}

.js .hero-title span {
  transition: opacity 1100ms var(--ease), transform 1100ms var(--ease);
}

.is-ready .hero-title span:first-child {
  transition-delay: 120ms;
}

.is-ready .hero-title span:last-child {
  transition-delay: 220ms;
}

.is-ready .hero-note {
  transition: opacity 700ms 320ms ease, transform 700ms 320ms var(--ease);
}

.is-ready .hero-foot {
  transition: opacity 700ms 560ms ease, transform 700ms 560ms var(--ease);
}

@media (max-width: 1100px) {
  :root {
    --gutter: 32px;
  }

  .hero-title {
    font-size: 104px;
  }

  .section-heading,
  .night-copy {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .section-heading h2,
  .night-copy h2 {
    font-size: 72px;
  }

  .section-summary,
  .night-copy > p:last-child {
    grid-column: 2;
    max-width: 360px;
    margin-top: 16px;
  }

  .field-statement {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .statement-copy {
    font-size: 60px;
  }

  .statement-note {
    grid-column: 2;
    margin-top: 10px;
  }

  .footer-lead h2 {
    font-size: 100px;
  }
}

@media (max-width: 860px) {
  .guestbook-shell {
    display: block;
  }

  .guestbook-live {
    margin-top: 78px;
  }

  .guestbook-form {
    margin-top: 64px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
  }

  .site-header {
    padding-top: 18px;
  }

  .brand-name {
    display: none;
  }

  .hero-media img {
    object-position: 54% 50%;
  }

  .hero-copy {
    top: 20%;
  }

  .hero-title {
    font-size: 56px;
    line-height: 0.82;
  }

  .hero-note {
    margin-top: 20px;
    font-size: 15px;
  }

  .hero-foot {
    bottom: 18px;
    grid-template-columns: 1fr auto 1fr;
  }

  .round-link {
    width: 48px;
    height: 48px;
  }

  .field {
    padding: 100px 0 86px;
  }

  .section-heading,
  .night-copy,
  .field-statement {
    display: block;
  }

  .section-heading h2,
  .night-copy h2 {
    font-size: clamp(32px, 10.8vw, 48px);
    line-height: 0.98;
  }

  .section-summary,
  .night-copy > p:last-child {
    max-width: 310px;
    margin-top: 30px;
    font-size: 14px;
  }

  .field-statement {
    margin-top: 92px;
    padding: 64px 0 58px;
  }

  .statement-copy {
    margin-top: 0;
    font-size: clamp(30px, 9.6vw, 44px);
  }

  .statement-note {
    margin-top: 32px;
  }

  .night {
    padding: 104px 0 58px;
  }

  .night-frame {
    margin-top: 82px;
  }

  .night-frame figcaption {
    gap: 12px;
    flex-direction: column;
    font-size: 9px;
  }

  .guestbook {
    padding-top: 100px;
    padding-bottom: 78px;
  }

  .guestbook-shell {
    display: block;
  }

  .guestbook-intro h2 {
    font-size: 48px;
  }

  .guestbook-summary {
    margin-top: 28px;
  }

  .guestbook-live {
    margin-top: 78px;
  }

  .guestbook-form {
    display: block;
    max-width: none;
    margin-top: 54px;
  }

  .form-field + .form-field {
    margin-top: 28px;
  }

  .form-submit-row {
    margin-top: 34px;
  }

  .site-footer {
    padding-top: 68px;
  }

  .footer-lead {
    padding-bottom: 48px;
  }

  .footer-lead h2 {
    max-width: 330px;
    margin-top: 34px;
    font-size: 60px;
    line-height: 0.86;
  }

  .footer-meta {
    display: block;
    margin-top: 22px;
  }

  .site-metrics {
    display: grid;
    margin-top: 18px;
    gap: 7px;
  }
}

@media (max-height: 600px) {
  .hero-copy {
    top: 16%;
  }

  .hero-title {
    font-size: 76px;
  }

  .hero-note {
    margin-top: 14px;
    font-size: 14px;
  }
}

@media (max-width: 720px) and (max-height: 600px) {
  .hero-title {
    font-size: 44px;
  }
}

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

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

  .hero-media img,
  .hero-copy,
  .guestbook-ticker-track,
  .night-image-wrap img {
    transform: none !important;
  }

  .js [data-reveal],
  .js .reveal-now,
  .js .hero-title span {
    opacity: 1;
    transform: none;
  }
}
