:root {
  --bg: #ffffff;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --ink: #16191d;
  --muted: #5a6168;
  --line: rgba(22, 25, 29, 0.12);
  --gold: #ecc52d;
  --gold-2: #f3d24a;
  --cyan: #0d7370;
  --sans: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2 { font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 0.55em; }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: -999px; z-index: 80;
  background: var(--gold); color: #111; padding: 0.55rem 0.9rem;
}
.skip:focus { left: 1rem; top: 1rem; }
.wrap { width: min(var(--max), calc(100% - 2.4rem)); margin-inline: auto; }
.muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold);
  background: var(--gold); color: #16191d;
  border-radius: 999px;
  padding: 0.78rem 1.2rem;
  font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible { background: var(--gold-2); border-color: var(--gold-2); color: #16191d; }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--panel); color: var(--ink); }
.btn[disabled] { opacity: 0.55; cursor: wait; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.logo img {
  width: 44px; height: 44px;
  object-fit: contain;
}
.logo strong { color: var(--ink); letter-spacing: 0.16em; font-weight: 600; }
.nav-toggle {
  display: none;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { color: var(--muted); font-size: 0.92rem; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a.btn { color: #111; }

.hero {
  padding: 3.6rem 0 3.4rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
.eyebrow {
  display: inline-block;
  color: var(--cyan);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.hero-photo-frame { min-width: 0; }
.hero-photo {
  width: 100%;
  aspect-ratio: 500 / 520;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: right center;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.section { padding: 4.6rem 0; }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); max-width: 16ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-top { align-items: start; }
.split-top h2 { margin-top: 0; }
.split img {
  width: 100%; height: 420px; object-fit: cover;
  border-radius: 4px; border: 1px solid var(--line);
}

.rule {
  height: 1px; background: var(--line); border: 0; margin: 0;
}

.page-hero {
  padding: 5.4rem 0 4rem;
}
.page-hero .wrap { max-width: 40rem; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }

.devices {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.7rem;
}
.devices figure { margin: 0; }
.device-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.devices img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3.2rem 1.2rem 1.2rem;
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
}
.lightbox.is-open { display: flex; }
.lightbox-stage {
  max-width: 100%;
  max-height: 100%;
}
.lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 4.4rem);
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox-nav {
  position: absolute;
  top: 0.85rem;
  left: 1.2rem;
  display: flex;
  gap: 0.45rem;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}
.lightbox-prev,
.lightbox-next { min-width: 2.4rem; }
.lightbox-close { position: absolute; top: 0.85rem; right: 1.2rem; }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { border-color: var(--ink); }
body.lightbox-open { overflow: hidden; }

@media (min-width: 861px) {
  .lightbox { padding: 3.2rem 4.4rem 1.2rem; }
  .lightbox-stage { position: relative; width: fit-content; }
  .lightbox-nav { display: contents; }
  .lightbox-prev,
  .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  .lightbox-prev { right: 100%; margin-right: 1.45rem; }
  .lightbox-next { left: 100%; margin-left: 1.45rem; }
}

.about-story { padding: 3.2rem 0 5rem; }
.about-story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.2rem;
  align-items: start;
}
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.about-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 0.7em;
}
.about-copy > p { max-width: 38rem; }
.about-note {
  margin-top: 1.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.about-note h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  max-width: 18ch;
}

.form {
  display: grid; gap: 0.95rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.4rem;
}
.field { display: grid; gap: 0.35rem; }
label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  padding: 0.8rem 0.85rem;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--cyan);
}
.hp { position: absolute; left: -9999px; }
.status { margin: 0; font-size: 0.95rem; }
.status[data-state="ok"] { color: var(--cyan); }
.status[data-state="err"] { color: #b42318; }

.contact-card {
  display: grid; gap: 0.35rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}
.contact-card a { color: #9a7610; }
.contact-card a:hover { color: var(--ink); }

.map-section { padding: 0 0 4.6rem; }
.map-frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  padding: 2rem 0 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}
.footer-row {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    inset: 68px 0 auto;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.2rem 1.2rem;
    border-bottom: 1px solid var(--line);
    gap: 0.85rem;
  }
  body.nav-open .site-nav { display: flex; }
  .hero, .split, .devices, .about-story-grid { grid-template-columns: 1fr; }
  .hero { padding: 2.4rem 0 2.8rem; gap: 2rem; }
  .page-hero { padding: 2.4rem 0 2.8rem; }
  .hero-photo-frame {
    overflow: hidden;
    aspect-ratio: 1.4681 / 1;
    border-radius: 8px;
    border: 1px solid var(--line);
  }
  .hero-photo {
    width: calc(100% / 0.69);
    max-width: none;
    max-height: none;
    height: auto;
    aspect-ratio: auto;
    object-fit: fill;
    object-position: unset;
    border: 0;
    border-radius: 0;
    position: relative;
    left: calc(100% / 0.69 * -0.31);
    top: 50%;
    transform: translateY(-50%);
  }
  .split img { height: 260px; }
  .about-photo { aspect-ratio: 16 / 9; }
  .devices { grid-template-columns: repeat(2, 1fr); }
}

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