:root {
  --bg: #07090c;
  --bg-2: #0d1218;
  --ice: #9ec9dc;
  --ice-2: #e7f4fb;
  --ice-dim: rgba(158, 201, 220, 0.16);
  --text: #eef3f6;
  --muted: #8d9aa4;
  --line: rgba(158, 201, 220, 0.2);
  --paper: #ece6d8;
  --ink: #161310;
  --ink-soft: #5b5348;
  --danger: #e08b7a;
  --ok: #8fd0b0;
  --radius: 18px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 14px;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(7,9,12,.92), rgba(7,9,12,.55) 70%, transparent);
}
.mark {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-links { display: flex; gap: 22px; font-size: 0.86rem; color: var(--muted); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ice-2); }

.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: end;
  padding: 28px 0 72px;
  min-height: calc(100vh - 70px);
}
.hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: -0.04em;
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--ice);
  font-weight: 400;
}
.kicker {
  color: var(--ice);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 18px;
}
.lede {
  margin-top: 22px;
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.btn.primary { background: var(--ice-2); color: #102028; border-color: var(--ice-2); }
.btn:hover { border-color: var(--ice); }
.hero-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 58vh;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; min-height: 58vh; }
.hero-chip {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(8,10,14,.72);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--ice-2);
}

.section { padding: 72px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.03em;
}
.note { color: var(--muted); max-width: 42ch; font-size: 0.92rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.gallery.trio {
  grid-template-columns: repeat(3, 1fr);
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
  min-height: 240px;
  cursor: zoom-in;
}
.gallery.trio .card { min-height: 280px; }
.card.wide { grid-column: span 8; min-height: 380px; }
.card.mid { grid-column: span 4; }
.card.half { grid-column: span 6; min-height: 320px; }
.work-more { display: flex; justify-content: center; margin-top: 22px; }
.soon {
  min-height: calc(100vh - 140px);
  display: grid;
  align-content: center;
  max-width: 28ch;
  padding: 48px 0 80px;
}
.soon h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin: 10px 0 18px;
}
.soon p { color: var(--muted); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover img { transform: scale(1.04); }
.card figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 16px 16px 14px;
  background: linear-gradient(transparent, rgba(7,9,12,.88));
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
}
.card figcaption span { color: var(--muted); }

.legal {
  background: var(--paper);
  color: var(--ink);
  border-radius: 32px;
  padding: 48px 44px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
}
.legal h2 { font-family: var(--display); font-weight: 400; font-size: 2.4rem; letter-spacing: -0.03em; }
.legal p { color: var(--ink-soft); margin-top: 14px; }
.stamp {
  border: 1px solid rgba(22,19,16,.18);
  border-radius: 18px;
  padding: 22px;
  background: rgba(255,255,255,.35);
}
.stamp strong { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
.legal-links { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.legal-links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(22,19,16,.25);
  padding-bottom: 8px;
}
.legal-links a:hover { border-color: var(--ink); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
}
form {
  display: grid;
  gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
}
label { font-size: 0.8rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
input, textarea {
  width: 100%;
  background: #080b10;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--ice); }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.hint { font-size: 0.8rem; color: var(--muted); }
.sig-block { display: grid; gap: 8px; }
#sig-pad {
  width: 100%;
  height: auto;
  aspect-ratio: 3.2 / 1;
  display: block;
  background-color: #f3f3f3;
  background-image:
    linear-gradient(45deg, #e4e4e4 25%, transparent 25%),
    linear-gradient(-45deg, #e4e4e4 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e4e4e4 75%),
    linear-gradient(-45deg, transparent 75%, #e4e4e4 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  border: 1px dashed var(--line);
  border-radius: 12px;
  touch-action: none;
  cursor: crosshair;
}
.pad-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pad-actions .btn { padding: 8px 14px; font-size: 0.82rem; }
.status { min-height: 1.3em; font-size: 0.9rem; }
.status.ok { color: var(--ok); }
.status.err { color: var(--danger); }
.side-links { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.side-links a { color: var(--ice-2); }

footer {
  padding: 28px 0 48px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(4,6,8,.9);
  display: none;
  place-items: center;
  padding: 24px;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1200px, 100%); max-height: 88vh; border-radius: 16px; }
.lightbox button {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hero, .legal, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 12px; }
  .hero-frame, .hero-frame img { min-height: 42vh; }
  .gallery.trio { grid-template-columns: 1fr; }
  .card.wide, .card.mid, .card.half { grid-column: span 12; min-height: 260px; }
  .row-3 { grid-template-columns: 1fr; }
  .legal { padding: 28px 22px; }
  footer { flex-direction: column; }
}
