/* Presidio Custom Metalworks — visual language taken from the client homepage
   (see BRAND_RESEARCH.md): espresso-black header, white body, light geometric
   sans, letterspaced capitals, square-cornered white-outlined buttons. */

:root {
  --ink: #201a16;
  --ink-soft: #3e3e3e;
  --text: #272727;
  --muted: #5f5b58;
  --line: #d9d6d3;
  --paper: #ffffff;
  --focus: #0976b4;
  --font: "Century Gothic", "Futura", "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  --handle: 56px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.6;
}

a { color: inherit; }

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

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  z-index: 10;
}
.skip:focus { top: 8px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  min-height: 96px;
}
.brand { display: block; line-height: 0; }
.brand img { width: 118px; height: auto; display: block; }
.brand:focus-visible, .site-nav a:focus-visible { outline-color: #fff; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8125rem;
  font-weight: 600;
}
.site-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: 0;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.btn-outline { border-color: #fff; color: #fff; }
.site-nav .btn-outline:hover { background: #fff; color: var(--ink); text-decoration: none; }

.btn-solid {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  min-width: 220px;
}
.btn-solid:hover:not(:disabled) { background: #000; }
.btn-solid:disabled {
  background: #ecebea;
  border-color: #ecebea;
  color: #6b6764;
  cursor: not-allowed;
}

/* ---------- Stage ---------- */
.stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.gate {
  padding: 40px 20px 36px;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

h1 {
  margin: 0 0 16px;
  font-weight: 300;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.lead { margin: 0 0 28px; font-size: 1.0625rem; color: var(--text); }

/* ---------- Drag control ---------- */
.drag {
  --p: 0;
  position: relative;
  height: var(--handle);
  background: var(--ink);
  border: 2px solid var(--ink);
  user-select: none;
  touch-action: none;
  overflow: hidden;
}
.drag-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--p) * (100% - var(--handle)) + var(--handle));
  background: var(--ink-soft);
}
.drag-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: var(--handle);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8125rem;
  font-weight: 600;
  pointer-events: none;
  opacity: calc(1 - var(--p) * 1.4);
}
.drag-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--p) * (100% - var(--handle)));
  width: var(--handle);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ink);
  cursor: grab;
  touch-action: none;
}
.drag-handle:focus-visible { outline-offset: -5px; outline-color: var(--focus); }
.drag[data-state="dragging"] .drag-handle { cursor: grabbing; }
.drag[data-state="loading"] .drag-handle,
.drag[data-state="working"] .drag-handle,
.drag[data-state="done"] .drag-handle { cursor: default; }
.drag[data-state="loading"] { opacity: 0.6; }
.drag[data-state="snap"] .drag-handle,
.drag[data-state="snap"] .drag-fill { transition: left 0.2s ease, width 0.2s ease; }
.drag[data-state="done"] { border-color: var(--ink); }
.drag[data-state="done"] .drag-label { opacity: 1; padding-left: 0; padding-right: var(--handle); }

.hint { margin: 10px 0 0; font-size: 0.875rem; color: var(--muted); }

.status {
  min-height: 3em;
  margin: 18px 0 14px;
  font-weight: 400;
  color: var(--ink);
}
.status-error, .status.is-error { color: #8a1c0f; }

/* ---------- Photo ---------- */
.photo { margin: 0; background: #ecebea; }
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 28px 20px;
}
.site-footer h2 {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8125rem;
  font-weight: 600;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
}
.site-footer a { text-underline-offset: 4px; }
.site-footer a:focus-visible { outline-color: #fff; }

/* ---------- Wider screens ---------- */
@media (min-width: 900px) {
  .site-header { padding: 0 40px; min-height: 128px; }
  .brand img { width: 150px; }
  .stage { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .gate { margin: 0; max-width: none; padding: 72px 56px 56px max(40px, calc((100vw - 1240px) / 2)); align-self: center; }
  .photo img { aspect-ratio: auto; min-height: 100%; }
  .site-footer { padding: 28px 40px; }
}

@media (max-width: 420px) {
  .site-header { padding: 10px 16px; min-height: 84px; }
  .brand img { width: 96px; }
  .site-nav { gap: 14px; }
  .site-nav .btn { padding: 0 14px; min-height: 42px; }
  .site-nav a { font-size: 0.75rem; letter-spacing: 0.1em; }
  .gate { padding: 28px 16px 28px; }
  .btn-solid { width: 100%; }
  .site-footer { padding: 24px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
