:root {
  --accent: #4ea6e8;
  --accent-deep: #1c78b8;
  --paper: #f3f3f0;
  --surface: #fafaf8;
  --ink: #090909;
  --muted: #626262;
  --line: #d8d8d3;
  --page-pad: clamp(1.25rem, 4vw, 4rem);
  --content-width: 1440px;
  --reading-width: 760px;

  --shell-page-pad: var(--page-pad);
  --shell-accent: var(--accent);
  --shell-header-bg: rgba(243, 243, 240, 0.94);
  --shell-header-text: var(--ink);
  --shell-header-muted: #4e4e4b;
  --shell-header-line: var(--line);
  --shell-footer-bg: #111111;
  --shell-footer-text: #f5f5f2;
  --shell-footer-muted: #8e8e8a;
  --shell-footer-line: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

#about,
#philosophy,
#gallery,
#trailer,
#development,
#wishlist {
  scroll-margin-top: 72px;
}

.eh-page main {
  overflow: clip;
}

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

.eh-noscript {
  min-height: 70vh;
  padding: 8rem var(--page-pad);
}

.eh-overline {
  color: var(--accent-deep);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eh-section {
  padding: clamp(6rem, 11vw, 11rem) var(--page-pad);
  border-bottom: 1px solid var(--line);
}

.eh-section-header {
  width: min(100%, var(--content-width));
  margin: 0 auto clamp(3.5rem, 7vw, 6.5rem);
}

.eh-section-header h2,
.eh-story h2,
.eh-trailer h2,
.eh-wishlist h2 {
  margin-top: 1rem;
  max-width: 1000px;
  font-size: clamp(3.1rem, 7.6vw, 7.5rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.eh-section-header--split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: end;
}

.eh-section-header--split > p {
  max-width: 430px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

/* Hero */
.eh-hero {
  position: relative;
  min-height: max(680px, calc(100svh - 72px));
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #e7e9e8;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.eh-hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
}

.eh-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(243, 243, 240, 0.98) 0%, rgba(243, 243, 240, 0.88) 30%, rgba(243, 243, 240, 0.25) 66%, rgba(243, 243, 240, 0.02) 100%),
    linear-gradient(0deg, rgba(243, 243, 240, 0.34), transparent 40%);
}

.eh-hero-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.eh-hero-logo {
  width: min(760px, 70vw);
  max-height: 190px;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 2rem;
  object-fit: contain;
  object-position: left center;
}

.eh-hero-description {
  max-width: 660px;
  color: #2d3234;
  font-size: clamp(1rem, 1.55vw, 1.25rem);
  line-height: 1.7;
}

.eh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.eh-button {
  min-height: 52px;
  padding: 0 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid var(--ink);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.eh-button:hover,
.eh-button:focus-visible {
  transform: translateY(-2px);
}

.eh-button--primary {
  min-width: 215px;
  color: #fff;
  background: var(--ink);
}

.eh-button--primary:hover,
.eh-button--primary:focus-visible {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.eh-button--secondary {
  min-width: 190px;
  background: rgba(243, 243, 240, 0.74);
  backdrop-filter: blur(8px);
}

.eh-button--secondary:hover,
.eh-button--secondary:focus-visible {
  color: var(--accent-deep);
  border-color: var(--accent-deep);
  background: #fff;
}

.eh-button.is-placeholder,
[data-placeholder-link] {
  cursor: default;
}

.eh-platform {
  margin-top: 1.3rem;
  color: #606466;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eh-scroll-cue {
  position: absolute;
  left: var(--page-pad);
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #5c6163;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Synopsis */
.eh-story {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(3rem, 8vw, 10rem);
  align-items: center;
  background: #fff;
}

.eh-story-copy {
  justify-self: end;
  width: min(100%, 610px);
}

.eh-story-copy > p:last-child {
  max-width: var(--reading-width);
  margin-top: 2rem;
  color: #424647;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.85;
}

.eh-story-media {
  min-height: 520px;
  overflow: hidden;
  background: #e3e5e4;
}

.eh-story-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

/* Features */
.eh-features {
  background: var(--paper);
}

.eh-feature-grid {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eh-feature-card {
  min-height: 330px;
  padding: clamp(1.75rem, 3vw, 3rem);
  border-right: 1px solid var(--line);
}

.eh-feature-card:last-child {
  border-right: 0;
}

.eh-feature-number {
  display: block;
  margin-bottom: clamp(4rem, 7vw, 7rem);
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.eh-feature-card h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.eh-feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Alternating visual features */
.eh-showcase {
  background: #111315;
  color: #fff;
}

.eh-showcase-row {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: stretch;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.eh-showcase-row--right .eh-showcase-media {
  order: 2;
}

.eh-showcase-media {
  min-height: 620px;
  overflow: hidden;
  background: #1a1d1f;
}

.eh-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(.2,.8,.2,1);
}

.eh-showcase-row:hover .eh-showcase-media img {
  transform: scale(1.025);
}

.eh-showcase-copy {
  padding: clamp(3rem, 7vw, 8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eh-showcase-copy .eh-overline {
  color: var(--accent);
}

.eh-showcase-copy h3 {
  margin: 1.2rem 0 1.6rem;
  font-size: clamp(3rem, 5.4vw, 6rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.eh-showcase-copy > p:last-child {
  max-width: 470px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1rem;
  line-height: 1.8;
}

/* Screenshots */
.eh-screenshots {
  background: #fff;
}

.eh-screenshot-grid {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.eh-shot {
  position: relative;
  padding: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 0;
  background: #e5e7e6;
  cursor: zoom-in;
}

.eh-shot--wide {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

.eh-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.eh-shot span {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.65rem 0.8rem;
  color: #fff;
  background: rgba(12, 14, 15, 0.76);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.eh-shot:hover img,
.eh-shot:focus-visible img {
  transform: scale(1.02);
  filter: brightness(0.9);
}

.eh-shot:hover span,
.eh-shot:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

/* Trailer */
.eh-trailer {
  display: grid;
  grid-template-columns: minmax(290px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
  background: #eceeea;
}

.eh-trailer-copy {
  justify-self: end;
  width: min(100%, 560px);
}

.eh-trailer-copy h2 {
  font-size: clamp(3rem, 6.2vw, 6.4rem);
}

.eh-trailer-copy > p:last-child {
  margin-top: 1.8rem;
  color: var(--muted);
  line-height: 1.8;
}

.eh-trailer-poster {
  position: relative;
  padding: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  background: #dfe2e0;
  cursor: pointer;
}

.eh-trailer-poster[aria-disabled="true"] {
  cursor: default;
}

.eh-trailer-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82);
}

.eh-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(10, 12, 13, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.eh-trailer-status {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Devlogs */
.eh-development {
  background: var(--paper);
}

.eh-devlog-grid {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.eh-devlog-card {
  min-height: 390px;
  padding: clamp(1.75rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.eh-devlog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-bottom: clamp(3.5rem, 6vw, 6rem);
  color: var(--accent-deep);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eh-devlog-card h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.eh-devlog-card > p {
  color: var(--muted);
  line-height: 1.75;
}

.eh-devlog-card > a {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  color: #26292a;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eh-project-details {
  width: min(100%, var(--content-width));
  margin: clamp(5rem, 8vw, 8rem) auto 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eh-project-details div {
  padding: 1.75rem;
  border-right: 1px solid var(--line);
}

.eh-project-details div:last-child {
  border-right: 0;
}

.eh-project-details dt {
  margin-bottom: 0.8rem;
  color: var(--accent-deep);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eh-project-details dd {
  color: #282b2c;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Final CTA */
.eh-wishlist {
  position: relative;
  min-height: 720px;
  padding: clamp(7rem, 13vw, 13rem) var(--page-pad);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #111315;
  isolation: isolate;
}

.eh-wishlist-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  background:
    radial-gradient(circle at 65% 45%, rgba(78, 166, 232, 0.42), transparent 24%),
    linear-gradient(115deg, transparent 0 57%, rgba(255,255,255,.05) 57% 58%, transparent 58% 100%);
}

.eh-wishlist-inner {
  width: min(100%, 1000px);
  text-align: center;
}

.eh-wishlist .eh-overline {
  color: var(--accent);
}

.eh-wishlist h2 {
  margin-inline: auto;
}

.eh-wishlist-inner > p:not(.eh-overline) {
  max-width: 650px;
  margin: 2rem auto 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1.05rem;
  line-height: 1.8;
}

.eh-wishlist .eh-hero-actions {
  justify-content: center;
}

.eh-wishlist .eh-button--primary {
  color: #111315;
  background: #fff;
  border-color: #fff;
}

.eh-wishlist .eh-button--primary:hover,
.eh-wishlist .eh-button--primary:focus-visible {
  color: #fff;
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.eh-wishlist .eh-button--secondary {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
}

.eh-socials {
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
}

.eh-socials a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eh-socials a:hover,
.eh-socials a:focus-visible {
  color: var(--accent);
}

/* Dialogs */
.eh-lightbox,
.eh-trailer-dialog {
  width: min(94vw, 1500px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
}

.eh-lightbox::backdrop,
.eh-trailer-dialog::backdrop {
  background: rgba(5, 7, 8, 0.94);
  backdrop-filter: blur(12px);
}

.eh-lightbox figure {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

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

.eh-lightbox figcaption {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
}

.eh-lightbox-close,
.eh-lightbox-nav {
  position: fixed;
  z-index: 2;
  width: 48px;
  height: 48px;
  color: #fff;
  background: rgba(10, 12, 13, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.eh-lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.6rem;
}

.eh-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.eh-lightbox-prev {
  left: 1.5rem;
}

.eh-lightbox-next {
  right: 1.5rem;
}

.eh-trailer-dialog video {
  width: 100%;
  max-height: 88vh;
  background: #000;
}

@media (max-width: 1050px) {
  .eh-story,
  .eh-trailer {
    grid-template-columns: 1fr;
  }

  .eh-story-copy,
  .eh-trailer-copy {
    justify-self: start;
    width: min(100%, 760px);
  }

  .eh-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eh-feature-card:nth-child(2) {
    border-right: 0;
  }

  .eh-feature-card:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .eh-showcase-row {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .eh-showcase-row--right .eh-showcase-media {
    order: 0;
  }

  .eh-showcase-media {
    min-height: 56vw;
  }

  .eh-showcase-copy {
    min-height: 460px;
  }

  .eh-devlog-grid {
    grid-template-columns: 1fr;
  }

  .eh-devlog-card {
    min-height: 320px;
  }

  .eh-project-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eh-project-details div:nth-child(2n) {
    border-right: 0;
  }

  .eh-project-details div:nth-child(-n+4) {
    border-bottom: 1px solid var(--line);
  }

  .eh-project-details div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .eh-hero {
    min-height: 720px;
    align-items: end;
  }

  .eh-hero-overlay {
    background: linear-gradient(0deg, rgba(243, 243, 240, 0.99) 0%, rgba(243, 243, 240, 0.9) 48%, rgba(243, 243, 240, 0.14) 82%, transparent 100%);
  }

  .eh-hero-inner {
    padding: 5rem 0 6.5rem;
  }

  .eh-hero-logo {
    width: min(100%, 560px);
  }

  .eh-scroll-cue {
    display: none;
  }

  .eh-section-header--split {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .eh-feature-grid,
  .eh-screenshot-grid {
    grid-template-columns: 1fr;
  }

  .eh-feature-card,
  .eh-feature-card:nth-child(2) {
    min-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .eh-feature-card:last-child {
    border-bottom: 0;
  }

  .eh-feature-number {
    margin-bottom: 3.5rem;
  }

  .eh-shot--wide {
    grid-column: auto;
    aspect-ratio: 16 / 10;
  }

  .eh-showcase-copy {
    min-height: 400px;
  }

  .eh-project-details {
    grid-template-columns: 1fr;
  }

  .eh-project-details div,
  .eh-project-details div:nth-child(2n),
  .eh-project-details div:last-child {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .eh-project-details div:last-child {
    border-bottom: 0;
  }

  .eh-wishlist {
    min-height: 650px;
  }

  .eh-lightbox-nav {
    top: auto;
    bottom: 1rem;
    transform: none;
  }
}

@media (max-width: 480px) {
  .eh-button {
    width: 100%;
  }

  .eh-hero-actions {
    display: grid;
  }

  .eh-story-media,
  .eh-story-media img {
    min-height: 360px;
  }

  .eh-showcase-media {
    min-height: 75vw;
  }
}

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

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

.eh-devlog-all {
  width: min(100%, var(--content-width));
  margin: 2rem auto 0;
  display: flex;
  justify-content: flex-end;
}
