:root {
  --bg: #000000;
  --panel: #080808;
  --panel-raised: #0d0b08;
  --text: #f2e8d5;
  --muted: #b9aa91;
  --accent: #e6af48;
  --accent-strong: #f2c66d;
  --accent-ink: #a57b07;
  --line: #2a2117;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: #000000;
  transform: translateY(-160%);
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(230, 175, 72, 0.18);
  background: rgba(0, 0, 0, 0.42);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  letter-spacing: 0;
  color: var(--accent);
}

.nav-links,
.header-legal {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a,
.header-legal a {
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.header-legal a:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 124px 0 88px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: #d3bd8e;
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 38px;
  height: 1px;
  background: var(--accent);
}

.hero-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 22px;
}

.hero-brand img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.hero-brand h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 6rem;
  line-height: 0.9;
  letter-spacing: 0;
  color: #f7e8c5;
}

.hero-copy {
  max-width: 620px;
  margin: 0 0 32px;
  color: #d6c9b4;
  font-size: 1.05rem;
}

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

.hero-actions .button {
  flex: 1 1 0;
  min-width: 0;
  max-width: 210px;
  padding: 0 14px;
  text-align: center;
  white-space: normal;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  background-image: url("assets/button-slate.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  color: #ffffff;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.button:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.button-primary {
  background-image: url("assets/button-gold.svg");
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72);
}

.button-primary:hover {
  filter: brightness(1.08);
}

.button-ghost:hover {
  filter: brightness(1.12);
}

.section {
  padding: 96px 0;
}

.section-index {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--accent);
  font-size: 0.82rem;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 42px;
}

.section-heading h2,
.experience-copy h2,
.contact-grid h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 2.35rem;
  line-height: 1.08;
  letter-spacing: 0;
  color: #f4e6c9;
}

.section-heading p:last-child,
.experience-copy p,
.contact-grid p {
  margin: 12px 0 0;
  color: var(--muted);
}

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

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

.screenshot-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #2c2318;
  border-radius: 8px;
  background: var(--panel);
}

.screenshot-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0a0a0a;
  cursor: zoom-in;
  aspect-ratio: 375 / 812;
}

.screenshot-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.03);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.screenshot-trigger:hover img {
  transform: scale(1.03);
  filter: saturate(1) contrast(1.05);
}

.screenshot-caption {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 16px;
  border-top: 1px solid #241c12;
}

.screenshot-caption span {
  flex: 0 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--accent);
  font-size: 0.82rem;
}

.screenshot-caption p {
  margin: 0;
  color: #d6c6a8;
  font-size: 0.86rem;
}

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

.experience-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.experience-visual img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
}

.feature-list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #241d13;
}

.feature-list span {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--accent);
  font-size: 0.82rem;
}

.feature-list p {
  margin: 0;
  color: #d6c6a8;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}

.contact-actions {
  display: grid;
  gap: 24px;
}

.contact-email {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 12px 0 8px;
  border-bottom: 1px solid var(--accent);
  color: var(--accent-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  max-width: 200px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  background-image: url("assets/button-slate.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  color: #ffffff;
  font-size: 0.8rem;
  letter-spacing: 0;
}

.legal-links a:hover {
  filter: brightness(1.12);
}

.legal-links a.legal-link-gold {
  background-image: url("assets/button-gold.svg");
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72);
}

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  background: #030303;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand-footer img {
  width: 38px;
  height: 38px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.78rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.94);
}

.lightbox.is-open {
  display: grid;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 9px 12px;
  border: 0;
  background-image: url("assets/button-slate.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  color: #ffffff;
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
}

.lightbox-figure {
  max-width: min(92vw, 460px);
  margin: 0;
}

.lightbox-figure img {
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  margin: 0 auto;
  border: 1px solid #3b2d1b;
}

.lightbox-figure figcaption {
  margin-top: 12px;
  color: #d6c6a8;
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
}

.legal-hero {
  padding: 150px 0 64px;
  border-bottom: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 0.82rem;
}

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

.legal-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 4.5rem;
  line-height: 0.95;
  letter-spacing: 0;
  color: #f7e8c5;
}

.legal-hero p {
  margin: 16px 0 0;
  color: var(--muted);
}

.legal-content {
  padding: 72px 0 96px;
}

.legal-shell {
  max-width: 760px;
}

.legal-shell h2 {
  margin: 42px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0;
  color: #f4e6c9;
}

.legal-shell h2:first-child {
  margin-top: 0;
}

.legal-shell p,
.legal-shell li {
  color: #c7b9a1;
}

.legal-shell ul {
  padding-left: 22px;
}

.legal-shell a {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 820px) {
  .hero-actions .button {
    flex-basis: 100%;
    max-width: none;
  }

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

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

  .experience-layout {
    gap: 36px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .header-inner {
    min-height: 68px;
  }

  .header-legal {
    gap: 12px;
  }

  .header-legal a {
    font-size: 0.82rem;
  }

  .hero {
    min-height: 100svh;
    padding-top: 104px;
  }

  .hero-brand img {
    width: 56px;
    height: 56px;
  }

  .hero-brand h1 {
    font-size: 3.25rem;
  }

  .hero-copy {
    font-size: 0.96rem;
  }

  .legal-links a {
    flex-basis: 100%;
    max-width: none;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading h2,
  .experience-copy h2,
  .contact-grid h2 {
    font-size: 2rem;
  }

  .screenshot-grid {
    gap: 12px;
  }

  .screenshot-caption {
    padding: 11px 10px 12px;
  }

  .legal-hero {
    padding-top: 124px;
  }

  .legal-hero h1 {
    font-size: 3.2rem;
  }
}

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

  .button,
  .screenshot-trigger img {
    transition: none;
  }
}
