@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #101D28;
  --navy-2: #192B36;
  --card: #14232F;
  --line: #24384A;
  --orange: #F47716;
  --cream: #F5E9CE;
  --muted: #C9BFA8;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: "Montserrat", "Avenir Next", Arial, sans-serif;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* header */
.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 64px; height: auto; }
.wordmark { display: flex; flex-direction: column; line-height: 1; text-transform: uppercase; }
.wordmark span { font-weight: 800; font-size: 20px; letter-spacing: 1.5px; }
.wordmark .studio {
  display: flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 10px; letter-spacing: 6px; margin-top: 6px;
}
.wordmark .studio::before, .wordmark .studio::after {
  content: ""; height: 3px; width: 26px; border-radius: 2px; background: var(--orange);
}
nav { display: flex; align-items: center; gap: 32px; font-weight: 600; }
nav a { text-decoration: none; }
nav a:not(.btn):hover { color: var(--orange); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--orange); color: var(--navy); }
.btn-solid:hover { background: #ff8a30; }
.btn-outline { border: 2px solid var(--cream); }
nav .btn-outline { border-color: var(--orange); color: var(--orange); padding: 8px 20px; }
nav .btn-outline:hover { background: var(--orange); color: var(--navy); }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 72px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 32px;
}
h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  line-height: 1.08;
  font-weight: 800;
  margin: 0;
}
.rule { display: block; width: 88px; height: 6px; border-radius: 3px; background: var(--orange); margin: 28px 0 24px; }
.hero p { font-size: 1.2rem; max-width: 34em; margin: 0 0 32px; color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* sections */
.projects, .about, .contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px;
}
.projects { border-top: 1px solid var(--line); }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; margin: 0 0 28px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--orange); transform: translateY(-2px); }
.thumb {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #0C1720;
  position: relative;
  overflow: hidden;
}
.thumb img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; }
.card h3 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 800; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-size: .75rem; font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--muted);
}

.about { max-width: 820px; }
.about p { font-size: 1.1rem; color: var(--muted); }
.contact {
  max-width: 820px;
  text-align: center;
  background: var(--navy-2);
  border-radius: 18px;
  margin-bottom: 64px;
}
.contact p { color: var(--muted); margin: -12px 0 24px; }

footer {
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  padding: 24px;
}

footer a { color: var(--cream); }
footer a:hover { color: var(--orange); }

/* legal pages */
.legal { max-width: 780px; margin: 0 auto; padding: 24px 24px 72px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin: 16px 0 4px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--cream); }
.legal a { color: var(--orange); }
.legal ul { padding-left: 1.2em; }

/* ---- polish ---- */
body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(244,119,22,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, rgba(25,43,54,.9), transparent 70%),
    var(--navy);
  background-attachment: fixed;
}
::selection { background: var(--orange); color: var(--navy); }
.top { position: sticky; top: 0; z-index: 20; isolation: isolate; transition: padding .25s ease; }
.top::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -100vmax; right: -100vmax; z-index: -1;
  background: rgba(16,29,40,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .25s ease;
}
.top.scrolled { padding-top: 12px; padding-bottom: 12px; }
.top.scrolled::before { opacity: 1; }
.brand img { transition: transform .3s ease; }
.brand:hover img { transform: rotate(-8deg) scale(1.05); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px; color: var(--orange);
  font-size: .8rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--orange); }
.hero .eyebrow { font-size: .8rem; margin-bottom: 20px; }
.accent { color: var(--orange); }
.hero { padding-top: 56px; padding-bottom: 96px; }
.hero-art { position: relative; isolation: isolate; }
.hero-art::before {
  content: ""; position: absolute; inset: -6% -4% 10%; z-index: -1;
  background: radial-gradient(circle at 52% 42%, rgba(244,119,22,.35), transparent 62%);
  filter: blur(30px);
}
.hero { align-items: end; padding-bottom: 0; grid-template-columns: 1.1fr 1fr; }
.hero-text { padding-bottom: 72px; align-self: center; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); line-height: 1.02; letter-spacing: -1px; }
.hero .lede { margin-top: 28px; color: var(--muted); font-size: 1.2rem; max-width: 30em; }
.hero-art img { width: 100%; height: auto; max-width: 560px; margin-left: auto; }
.pillars {
  list-style: none; margin: 0 auto; padding: 0 24px; max-width: var(--max);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.pillars li {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 26px 12px; font-weight: 700; font-size: 1.1rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: relative;
}
.pillars li + li::before {
  content: ""; position: absolute; left: 0; top: 28%; bottom: 28%; width: 1px; background: var(--line);
}
.pillars svg { width: 34px; height: 34px; fill: none; stroke: var(--cream); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s ease, transform .2s ease; }
.pillars .fill { fill: var(--orange); stroke: none; }
.pillars li:hover svg { stroke: var(--orange); transform: translateY(-2px); }
.btn-solid { box-shadow: 0 8px 24px -8px rgba(244,119,22,.6); }
.btn-solid:hover { box-shadow: 0 12px 28px -8px rgba(244,119,22,.75); }
.btn-outline:hover { background: rgba(245,233,206,.08); }

.projects { padding-top: 80px; border-top: 0; }
.section-head h2 { margin-bottom: 36px; }
.card {
  background: linear-gradient(180deg, #17283A 0%, var(--card) 100%);
  box-shadow: 0 20px 40px -24px rgba(0,0,0,.6);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 50px -22px rgba(0,0,0,.7), 0 0 0 1px rgba(244,119,22,.35), 0 18px 60px -30px rgba(244,119,22,.55);
}
.thumb { background: radial-gradient(circle at 50% 35%, #1B3042 0%, #0C1720 75%); }
.thumb img { transition: transform .4s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.card-body { padding: 0 6px 6px; }
.tags li { background: rgba(245,233,206,.04); }

.about {
  max-width: var(--max);
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center;
  padding-top: 88px; padding-bottom: 88px;
}
.about .eyebrow { font-size: .8rem; color: var(--orange); }
h2 { line-height: 1.2; }
.about-text p:last-child { margin-bottom: 0; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.values li {
  display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; align-items: start;
  padding: 20px 22px; border-radius: 14px;
  background: rgba(25,43,54,.55); border: 1px solid var(--line);
  transition: border-color .25s ease, transform .25s ease;
}
.values li:hover { border-color: rgba(244,119,22,.6); transform: translateX(4px); }
.values h3 { margin: 2px 0 4px; font-size: 1.05rem; font-weight: 800; }
.values p { grid-column: 2; margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.v-icon {
  grid-row: span 2; width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; background: rgba(244,119,22,.12);
}
.v-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.contact {
  position: relative; overflow: hidden; padding: 56px 32px;
  background: radial-gradient(600px 260px at 50% 0%, rgba(244,119,22,.18), transparent 70%), var(--navy-2);
  border: 1px solid rgba(244,119,22,.35);
  border-radius: 22px; margin-bottom: 88px;
}
.contact-icon { margin: 0 auto 18px; width: 72px; height: 72px; }
.contact h2 { margin-bottom: 20px; }

footer { text-align: left; padding: 40px 24px 28px; background: rgba(0,0,0,.12); }
.foot {
  max-width: var(--max); margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.foot-brand { gap: 14px; color: var(--cream); font-weight: 700; line-height: 1.3; }
.foot-brand img { width: 44px; }
.foot-links { display: flex; gap: 28px; font-weight: 600; }
.foot-links { flex-wrap: wrap; }
.foot-links a:not(.btn) { display: inline; color: var(--cream); text-decoration: none; }
.foot-links a:hover { color: var(--orange); }
.copy { max-width: var(--max); margin: 0 auto; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; }

.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .hero-art { width: 100%; max-width: 440px; margin: 0 auto; }
  .hero-text { padding-bottom: 8px; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillars li:nth-child(3)::before { display: none; }
  .pillars li:nth-child(n+3) { border-top: 0; }
  nav { gap: 18px; }
  nav a:not(.btn) { display: none; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .contact { margin-left: 16px; margin-right: 16px; padding: 44px 20px; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .wordmark span { font-size: 16px; }
  .brand img { width: 50px; }
  .contact .btn { font-size: .85rem; padding: 12px 14px; overflow-wrap: anywhere; }
  .top { padding: 18px 16px; }
  .hero, .projects, .about, .contact { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}

/* ---- luna page ---- */
.card-link { position: relative; }
.card-link h3 a { color: inherit; text-decoration: none; }
.card-link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tags li.more { background: none; border-color: transparent; color: var(--orange); font-weight: 700; }
.thumb-photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.luna { max-width: var(--max); margin: 0 auto; padding: 0 24px 40px; }
.luna h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; line-height: 1.1; margin: 0 0 16px; }
.luna-hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; padding: 48px 0 64px; }
.luna-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -1px; margin: 0; }
.luna-hero .lede { margin-top: 24px; color: var(--muted); font-size: 1.15rem; max-width: 32em; }
.device { margin: 0; padding: 14px; border-radius: 28px; background: #0B141C; border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 6px rgba(245,233,206,.03); }
.shot { display: block; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: #0B141C; }
.shot img { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.shot:hover img { transform: scale(1.03); }
.device .shot { border: 0; border-radius: 16px; }
.specs { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs li { padding: 22px 16px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.specs li + li { border-left: 1px solid var(--line); }
.specs span { color: var(--muted); font-size: .9rem; }
.feature { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: center; padding: 64px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-text { order: 2; }
.feature-text p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; line-height: 1.6; margin: 0; }
.luna .eyebrow { color: var(--orange); font-size: .8rem; }
.shots { display: grid; gap: 14px; }
.luna-hero > *, .feature > *, .shots > * { min-width: 0; }
.shots-2 { grid-template-columns: 1fr 1fr; }
.shots-3 { grid-template-columns: 1fr 1fr; }
.shots-3 .shot:first-child { grid-column: 1 / -1; }
.built { padding: 72px 0 24px; border-top: 1px solid var(--line); }
.built .values { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
.built h3 { margin: 0 0 6px; font-size: 1.1rem; }
.built .values p { margin: 0; color: var(--muted); }
.built .values li { display: block; }
.luna .contact { margin-top: 48px; }
@media (max-width: 820px) {
  .luna-hero, .feature { grid-template-columns: 1fr; gap: 28px; }
  .luna-hero { padding-top: 24px; }
  .feature { padding: 44px 0; }
  .feature.flip .feature-text { order: 0; }
  .specs { grid-template-columns: 1fr 1fr; }
  .specs li:nth-child(3) { border-left: 0; }
  .specs li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .built .values { grid-template-columns: 1fr; }
  .luna .contact { margin-left: 0; margin-right: 0; }
}

/* ---- luna galleries ---- */
figure.shot { margin: 0; border: 0; border-radius: 0; background: none; overflow: visible; }
.shot > a { display: block; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: #0B141C; }
.shot > a img { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.shot > a:hover img { transform: scale(1.03); }
.shot figcaption, .tile figcaption { color: var(--muted); font-size: .88rem; line-height: 1.45; margin-top: 8px; }
.feature.wide { grid-template-columns: 1fr; gap: 28px; }
.feature.wide .feature-text { max-width: 760px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; }
.tile { margin: 0; }
.tile a { display: block; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: #0B141C; }
.tile img { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.tile a:hover img { transform: scale(1.05); }
.tile figcaption { text-align: center; color: var(--cream); font-weight: 600; }
@media (max-width: 820px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- picture viewer ---- */
.viewer { border: 0; padding: 0; margin: 0; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  background: rgba(8,14,20,.94); color: var(--cream); overflow: hidden; }
.viewer::backdrop { background: rgba(8,14,20,.6); }
.v-stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 64px 72px; box-sizing: border-box; }
.v-stage figure { margin: 0; width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.v-stage img { display: block; max-width: 100%; max-height: calc(100dvh - 180px); width: auto; height: auto;
  border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }
.v-stage figcaption { color: var(--muted); text-align: center; max-width: 46em; font-size: .95rem; }
.v-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(25,43,54,.85); color: var(--cream); font: 600 28px/1 inherit; cursor: pointer;
  display: grid; place-items: center; transition: background .2s ease, border-color .2s ease; }
.v-btn:hover, .v-btn:focus-visible { background: var(--orange); border-color: var(--orange); color: var(--navy); outline: none; }
.v-close { top: 16px; right: 16px; font-size: 32px; }
.v-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.v-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 820px) {
  .v-stage { padding: 72px 12px 88px; }
  .v-prev, .v-next { top: auto; bottom: 20px; transform: none; }
  .v-prev { left: calc(50% - 60px); }
  .v-next { right: calc(50% - 60px); }
}
