/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
input, textarea, select, button { font: inherit; color: inherit; }
button { cursor: pointer; }

/* ---------- tokens ---------- */
:root {
  --paper: #F5F4EF;
  --panel: #EBE9E2;
  --ink: #14171A;
  --muted: #6E7168;
  --line: #DAD8D0;
  --line-strong: #B3B0A5;
  --redline: #C81E1E;

  --font-display: 'IBM Plex Mono', 'Consolas', monospace;
  --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;

  --wrap: 1180px;
  --frame: 14px;
}

/* ---------- base ---------- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
h1 { letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--redline);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

:focus-visible { outline: 2px solid var(--redline); outline-offset: 3px; }

/* ---------- sheet frame (signature) ---------- */
.sheet-frame {
  position: fixed;
  inset: var(--frame);
  border: 1px solid var(--line-strong);
  pointer-events: none;
  z-index: 40;
}
.reg-mark { position: absolute; width: 16px; height: 16px; }
.reg-mark::before, .reg-mark::after { content: ""; position: absolute; background: var(--redline); }
.reg-mark::before { width: 100%; height: 1px; top: 50%; left: 0; }
.reg-mark::after { height: 100%; width: 1px; left: 50%; top: 0; }
.reg-tl { top: -8px; left: -8px; }
.reg-tr { top: -8px; right: -8px; }
.reg-bl { bottom: -8px; left: -8px; }
.reg-br { bottom: -8px; right: -8px; }

@media (max-width: 720px) {
  .sheet-frame { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 2px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  font-size: 0.85rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--redline); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--redline); color: var(--redline); }
.btn-small { padding: 9px 16px; font-size: 0.78rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: var(--frame);
  z-index: 50;
  background: rgba(245, 244, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-strong);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { flex-shrink: 0; height: 30px; width: auto; object-fit: contain; }
.site-footer .brand-mark { height: 26px; }
.brand-word { font-family: var(--font-display); font-size: 0.98rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em; }
.brand-word strong { font-weight: 600; }

.site-nav { display: flex; gap: 8px; margin-left: auto; }
.site-nav a {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  padding: 8px 12px;
  border: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a em { font-style: normal; color: var(--line-strong); }
.site-nav a:hover { color: var(--ink); border-color: var(--line-strong); }
.site-nav a:hover em { color: var(--redline); }

.header-cta { margin-left: 4px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  margin-left: auto;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); margin: 0 auto; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 86vh;
  min-height: 560px;
  max-height: 880px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
}
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20,23,26,0.86) 0%, rgba(20,23,26,0.35) 42%, rgba(20,23,26,0) 68%);
}
.hero-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding-bottom: 64px;
  padding-top: 40px;
  color: var(--paper);
}
.hero .eyebrow { color: #E8A7A0; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.12; color: var(--paper); }
.hero-sub { color: rgba(245,244,239,0.82); font-size: 1.02rem; max-width: 46ch; margin-top: 20px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero .btn-ghost { border-color: rgba(245,244,239,0.4); color: var(--paper); }
.hero .btn-ghost:hover { border-color: var(--redline); color: #ff8a7d; }

.titleblock {
  position: absolute;
  z-index: 2;
  top: 32px;
  right: 28px;
  border: 1px solid rgba(245,244,239,0.35);
  background: rgba(20,23,26,0.55);
  backdrop-filter: blur(4px);
  width: 100%;
  max-width: 220px;
}
.titleblock-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid rgba(245,244,239,0.2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(245,244,239,0.85);
}
.titleblock-row:first-child { border-top: none; }
.titleblock-row span { color: rgba(245,244,239,0.55); text-transform: uppercase; letter-spacing: 0.04em; }
.titleblock-row strong { font-weight: 500; text-align: right; color: var(--paper); }

/* ---------- sections ---------- */
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--panel); }
.section h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 40px; max-width: 24ch; }

.studio-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.studio-text { font-family: var(--font-body); font-size: 1.2rem; line-height: 1.55; font-weight: 500; }
.studio-photo { border: 1px solid var(--line-strong); aspect-ratio: 3 / 2; overflow: hidden; }
.studio-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- services schedule ---------- */
.schedule { border-top: 1px solid var(--line-strong); }
.schedule-head {
  display: grid;
  grid-template-columns: 56px 1fr 3fr 140px;
  gap: 18px;
  padding: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.schedule-row {
  display: grid;
  grid-template-columns: 56px 1fr 3fr 140px;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line-strong);
}
.schedule-num { font-family: var(--font-mono); color: var(--redline); font-size: 0.9rem; }
.schedule-row h3 { font-size: 1rem; letter-spacing: 0; }
.schedule-row p { color: var(--muted); font-size: 0.92rem; }
.schedule-tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; text-align: right; }

/* ---------- work list ---------- */
.worklist { display: flex; flex-direction: column; }
.work-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--line-strong);
}
.worklist .work-row:last-child { border-bottom: 1px solid var(--line-strong); }
.work-row:nth-child(even) { grid-template-columns: 1fr 1.3fr; }
.work-row:nth-child(even) .work-photo { order: 2; }
.work-photo { border: 1px solid var(--line-strong); aspect-ratio: 4 / 3; overflow: hidden; }
.work-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-index { font-family: var(--font-mono); color: var(--redline); font-size: 0.82rem; }
.work-meta h3 { font-size: 1.3rem; margin-top: 10px; margin-bottom: 18px; letter-spacing: 0; }
.work-meta dl { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 28px; }
.work-meta dt { font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.work-meta dd { font-size: 0.9rem; margin-top: 3px; }

.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.contact-info { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.contact-info dt { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-info dd a:hover { color: var(--redline); }

.contact-form { display: flex; flex-direction: column; gap: 6px; background: var(--paper); border: 1px solid var(--line-strong); padding: 28px; }
.contact-form label { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); margin-top: 14px; }
.contact-form input, .contact-form textarea, .contact-form select {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 11px 12px;
  color: var(--ink);
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--redline); outline: none; }
.contact-form button { margin-top: 20px; align-self: flex-start; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- confirmation page ---------- */
.confirm { padding-top: 120px; padding-bottom: 160px; }
.confirm h2 { margin-bottom: 0; max-width: 20ch; }
.confirm .hero-sub { color: var(--muted); margin-top: 20px; }
.confirm .hero-actions { margin-top: 32px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-strong); padding: 44px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer-tag { color: var(--muted); font-size: 0.88rem; }
.footer-copy { margin-left: auto; color: var(--muted); font-size: 0.78rem; font-family: var(--font-mono); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .schedule-head { display: none; }
  .schedule-row { grid-template-columns: 40px 1fr; grid-template-areas: "num title" ". desc" ". tag"; row-gap: 6px; }
  .schedule-num { grid-area: num; }
  .schedule-row h3 { grid-area: title; }
  .schedule-row p { grid-area: desc; }
  .schedule-tag { grid-area: tag; text-align: left; }

  .work-row, .work-row:nth-child(even) { grid-template-columns: 1fr; gap: 22px; }
  .work-row:nth-child(even) .work-photo { order: 0; }

  .studio-grid { grid-template-columns: 1fr; gap: 32px; }
  .studio-photo { order: -1; aspect-ratio: 16 / 9; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-copy { margin-left: 0; }
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-strong);
    flex-direction: column;
    padding: 18px 28px;
    gap: 4px;
    display: none;
  }
  .site-nav a { padding: 10px 4px; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .site-header { top: 0; }
  .hero { height: auto; min-height: 0; padding: 120px 0 56px; }
  .hero-photo { position: static; height: 320px; }
  .hero::after { display: none; }
  .hero-copy { position: static; color: var(--ink); padding-top: 32px; padding-bottom: 0; }
  .hero h1, .hero-sub { color: var(--ink); }
  .hero-sub { color: var(--muted); }
  .hero .eyebrow { color: var(--redline); }
  .hero .btn-ghost { border-color: var(--line-strong); color: var(--ink); }
  .titleblock { position: static; margin-top: 0; max-width: none; background: var(--panel); border-color: var(--line-strong); }
  .titleblock-row, .titleblock-row span, .titleblock-row strong { color: var(--ink); }
  .titleblock-row span { color: var(--muted); }
}
