:root {
  --paper: #f4eddf;
  --paper-light: #fbf7ee;
  --ink: #17362d;
  --wine: #6b171b;
  --gold: #a87833;
  --muted: #706b60;
  --line: #cdbf9f;
  --navy: #1e1b4b;
  --violet: #635bff;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 76% 38%, rgba(168, 120, 51, .11), transparent 24rem),
    radial-gradient(rgba(50, 39, 24, .035) .7px, transparent .8px),
    var(--paper);
  background-size: auto, 6px 6px, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: "";
  position: fixed;
  right: 0;
  left: 0;
  z-index: 20;
  height: 7px;
  pointer-events: none;
  background: var(--ink);
}

body::before { top: 0; border-bottom: 2px solid var(--gold); }
body::after { bottom: 0; border-top: 2px solid var(--gold); }

.landing-page {
  display: grid;
  grid-template-rows: auto auto auto;
  width: min(1500px, calc(100% - 72px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 22px 0 34px;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  border-bottom: 1px solid rgba(168, 120, 51, .7);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  letter-spacing: -.035em;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.landing-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.landing-links a {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  text-decoration-color: rgba(23, 54, 45, .42);
  text-underline-offset: 4px;
  transition: color .16s ease, text-decoration-color .16s ease;
}

.landing-links a:hover {
  color: var(--wine);
  text-decoration-color: currentColor;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(390px, .82fr) minmax(620px, 1.35fr);
  gap: clamp(34px, 5vw, 86px);
  align-items: center;
  min-height: 0;
}

.hero-copy { padding: 18px 0 0 2px; }
.hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(62px, 6.1vw, 102px);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.065em;
}
.hero-copy h1 em { color: var(--wine); font-weight: 400; }
.hero-intro {
  max-width: 570px;
  margin: 30px 0 0;
  color: #45463e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.45;
}

.hero-actions { display: flex; align-items: stretch; gap: 12px; margin-top: 34px; }
.download-button {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  min-height: 62px;
  padding: 11px 20px 11px 14px;
  border: 1px solid var(--wine);
  background: var(--wine);
  color: #fffaf1;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.download-button:hover { transform: translateY(-2px); background: #511014; box-shadow: 0 10px 24px rgba(77, 24, 25, .16); }
.download-button--secondary { border-color: var(--ink); background: var(--ink); }
.download-button--secondary:hover { background: #0e2821; box-shadow: 0 10px 24px rgba(23, 54, 45, .16); }
.download-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.38);
  font-size: 22px;
}
.download-button strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 400; }
.download-button small { display: block; margin-top: 2px; color: rgba(255, 250, 241, .72); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.text-link { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 15px; text-underline-offset: 4px; }
.text-link span { display: inline-block; margin-left: 5px; transition: transform .16s ease; }
.text-link:hover span { transform: translateX(3px); }
.web-app-link { display: inline-flex; align-items: center; margin-top: 18px; }

.hero-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 22px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .095em;
  text-transform: uppercase;
}
.hero-principles span { position: relative; }
.hero-principles span:not(:last-child)::after { content: "·"; position: absolute; right: -14px; color: var(--gold); }

.snapshot-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(11px, 1.25vw, 18px);
  min-width: 0;
  height: min(64vh, 610px);
  padding: 18px 5px;
}
.snapshot-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 8px 8px 9px;
  border: 1px solid #c6bda9;
  background: #fff;
  box-shadow: 0 14px 32px rgba(51, 40, 24, .12), 0 2px 5px rgba(51, 40, 24, .07);
  transition: transform .22s ease, box-shadow .22s ease;
  animation: snapshot-arrive .65s cubic-bezier(.22,1,.36,1) both;
}
.snapshot-card::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 38px;
  height: 12px;
  background: rgba(222, 203, 160, .72);
  transform: translateX(-50%) rotate(-1deg);
}
.snapshot-card:hover { z-index: 3; transform: translateY(-5px) rotate(0); box-shadow: 0 20px 38px rgba(51, 40, 24, .17); }
.snapshot-card img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.snapshot-card figcaption { overflow: hidden; padding-top: 7px; color: #52534d; font-family: Georgia, "Times New Roman", serif; font-size: clamp(9px, .78vw, 12px); text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.snapshot-vae { transform: rotate(-1.2deg); }
.snapshot-rnn { transform: translateY(8px) rotate(1deg); animation-delay: .05s; }
.snapshot-curling { transform: rotate(-.6deg); animation-delay: .1s; }
.snapshot-floorplan { transform: translateY(-4px) rotate(.8deg); animation-delay: .15s; }
.snapshot-sunflower { transform: translateY(5px) rotate(-1deg); animation-delay: .2s; }
.snapshot-flowers { transform: translateY(-3px) rotate(1.2deg); animation-delay: .25s; }

.asset-library-preview {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  margin-top: 22px;
  padding: 25px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 238, .46);
}

.asset-library-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.08;
  white-space: nowrap;
  text-decoration-color: rgba(23, 54, 45, .4);
  text-underline-offset: 6px;
  transition: color .18s ease, text-decoration-color .18s ease;
}

.asset-library-link svg {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.5;
  transition: transform .18s ease;
}

.asset-library-link:hover { color: var(--wine); text-decoration-color: currentColor; }
.asset-library-link:hover svg { transform: translateX(5px); }

.asset-preview-list {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.asset-preview-list li {
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1;
  border-left: 1px solid rgba(205, 191, 159, .72);
}

.asset-preview-list li:first-child { border-left: 0; }
.asset-preview-more {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: .08em;
  line-height: 1;
}
.asset-preview-list img {
  display: block;
  width: 66%;
  height: 66%;
  image-rendering: pixelated;
  transition: transform .18s ease;
}
.asset-preview-list li:hover img { transform: translateY(-4px) scale(1.06); }

button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: default; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(107, 23, 27, .24); outline-offset: 3px; }

@keyframes snapshot-arrive {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}

@media (max-width: 1120px) {
  .landing-page { width: min(100% - 42px, 1050px); }
  .landing-hero { grid-template-columns: minmax(330px, .8fr) minmax(540px, 1.2fr); gap: 28px; }
  .hero-copy h1 { font-size: clamp(54px, 6.5vw, 76px); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .hero-principles { gap: 7px 14px; }
  .hero-principles span::after { display: none; }
}

@media (max-width: 860px) {
  body { overflow: auto; }
  .landing-page { width: min(100% - 30px, 680px); height: auto; min-height: 100svh; overflow: visible; padding-bottom: 34px; }
  .landing-hero { grid-template-columns: 1fr; gap: 30px; padding: 38px 0 42px; }
  .hero-copy { text-align: center; }
  .hero-copy h1 { font-size: clamp(58px, 15vw, 86px); }
  .hero-intro { max-width: 620px; margin-inline: auto; }
  .hero-actions { align-items: center; }
  .hero-principles { justify-content: center; }
  .snapshot-gallery { width: min(100%, 660px); height: min(62vw, 430px); margin: 0 auto; }
  .asset-library-preview { grid-template-columns: 1fr; gap: 22px; margin-top: 14px; }
  .asset-library-link { justify-content: center; text-align: center; }
}

@media (max-width: 540px) {
  body { overflow: auto; }
  .landing-page { width: calc(100% - 24px); }
  .landing-nav { height: 56px; }
  .landing-brand { font-size: 22px; }
  .landing-brand span { display: none; }
  .landing-links { gap: 12px; }
  .landing-links a { font-size: 12px; }
  .landing-hero { gap: 15px; padding: 20px 0 22px; }
  .hero-copy h1 { font-size: clamp(49px, 16vw, 68px); }
  .hero-intro { margin-top: 15px; font-size: 16px; line-height: 1.35; }
  .hero-actions { margin-top: 18px; gap: 10px; }
  .download-button { width: 100%; justify-content: center; }
  .text-link { display: inline-flex; }
  .hero-principles { margin-top: 14px; padding-top: 11px; font-size: 8px; }
  .snapshot-gallery { height: 180px; padding: 0 2px; gap: 5px; }
  .snapshot-card { padding: 3px 3px 4px; box-shadow: 0 6px 14px rgba(51, 40, 24, .1); }
  .snapshot-card::before { display: none; }
  .snapshot-card figcaption { padding-top: 2px; font-size: 7px; }
  .asset-library-preview { gap: 16px; margin-top: 10px; padding: 22px 14px; }
  .asset-library-link { gap: 10px; font-size: 20px; }
  .asset-library-link svg { width: 23px; height: 23px; }
  .asset-preview-list { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 12px; }
  .asset-preview-list li:nth-child(6) { border-left: 0; }
}

@media (max-width: 360px) {
  .asset-library-link { gap: 7px; font-size: 18px; }
  .asset-library-link svg { width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .snapshot-card { animation: none; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
