/* ============================================================
   SW PROJECT — REDESIGN MOCKUP FOUNDATION
   Black / #bf9000 gold. Oswald display, Cormorant serif,
   Inter Tight body, JetBrains Mono labels. Sharp corners only.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Oswald:ital,wght@0,300;0,400;0,500;0,600;0,700;1,500;1,600;1,700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter+Tight:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* IVORY & INK — white canvas, black drama bands, gold magic */
  --bg: #fdfcf9;
  --bg2: #f7f4ed;
  --bg3: #efeadd;
  --gold: #bf9000;
  --gold-bright: #e0aa00;
  --gold-deep: #8a6a00;          /* dark gold for small text on white */
  --gold-dim: rgba(191, 144, 0, 0.35);
  --hair: #e6e0d0;
  --ink: #0d0b08;
  --ivory: #f6f4ee;
  --text: #17140e;
  --dim: #6f6856;
  --mute: #a89f8b;
  --danger: #a83232;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* iOS inflates text in landscape unless told not to. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  /* Deliberately on body, never on <html> — clipping the root kills
     position:sticky in Safari and breaks scroll anchoring. */
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; height: auto; }

::selection { background: var(--gold); color: #000; }

.font-display { font-family: 'Oswald', sans-serif; font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: 0.01em; }
.font-serif   { font-family: 'Cormorant Garamond', serif; }
.mono         { font-family: 'JetBrains Mono', monospace; }

.kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold-deep);
}

.gold-line { height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 18%, var(--gold) 82%, transparent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Inter Tight', sans-serif; font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 18px 34px; cursor: pointer; border: none;
  transition: all 0.25s ease; text-decoration: none;
}
.btn-gold { background: var(--gold); color: #000; }
.btn-gold:hover { background: var(--ink); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(13,11,8,0.4); }
.btn-ghost { background: transparent; color: var(--gold-deep); border: 1px solid var(--gold); }
.btn-ghost:hover { background: var(--gold); color: #000; }
.btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 48px;
  background: linear-gradient(180deg, rgba(253,252,249,0.95), rgba(253,252,249,0.75) 70%, transparent);
  /* Safari carried this behind the prefix for years — without it the nav
     reads as a flat wash on any iPhone more than a couple of years old. */
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  color: var(--dim); text-decoration: none; font-size: 11.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.gold { color: var(--gold-deep); }

/* ---------- shared layout ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 48px; }

.section-kicker { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.section-kicker .rule { flex: 0 0 56px; height: 1px; background: var(--gold); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- forms ---------- */
.label {
  display: block; font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 10px;
}
.input, textarea.input, select.input {
  width: 100%; background: #ffffff;
  border: 1px solid var(--hair); color: var(--text);
  font-family: 'Inter Tight', sans-serif;
  /* 16px is not a taste decision: iOS Safari zooms the whole page on focus for
     anything smaller, and on a long application form that is brutal. */
  font-size: 16px;
  padding: 15px 16px; outline: none; transition: border-color 0.2s;
  /* iOS gives inputs rounded corners and an inner shadow by default, which
     fights a design with no rounded corners anywhere. */
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  min-height: 44px;
}
.input:focus { border-color: var(--gold); }
.input::placeholder { color: var(--mute); }
textarea.input { resize: vertical; min-height: 110px; line-height: 1.6; }

/* footer */
.footer {
  border-top: 1px solid var(--hair); margin-top: 0;
  padding: 44px 48px; display: flex; justify-content: space-between;
  align-items: center; color: var(--mute); font-size: 12px;
}

/* ============================================================
   CROSS-BROWSER + DEVICE FOUNDATION
   Added 2026-08-10. This file previously had no media queries at
   all, so every public page carried desktop padding on a phone.
   ============================================================ */

/* Keyboard users need to see where they are. Inputs deliberately keep their
   border-colour treatment; everything else gets a real ring. :focus-visible
   means a mouse click never shows it. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

/* Anything that moves must be able to stop. */
@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;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Touch devices: no hover states to strand, and finger-sized targets. */
@media (hover: none) {
  .btn-gold:hover { background: var(--gold); color: #000; transform: none; box-shadow: none; }
  .btn-ghost:hover { background: transparent; color: var(--gold-deep); }
  .nav-links a:hover { color: var(--dim); }
}

.btn { min-height: 48px; justify-content: center; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .nav { padding: 18px 28px; }
  .nav-links { gap: 22px; }
  .wrap { padding: 0 28px; }
  .footer { padding: 36px 28px; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  .nav {
    padding: 14px 18px;
    gap: 12px;
  }
  .nav-links {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .nav-links a { font-size: 10.5px; letter-spacing: 0.12em; }

  .wrap { padding: 0 18px; }

  .btn {
    padding: 16px 22px;
    font-size: 11.5px;
    letter-spacing: 0.1em;
  }

  .kicker { font-size: 10px; letter-spacing: 0.2em; }

  /* A row of space-between items becomes an unreadable squeeze on a phone. */
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 32px 18px;
    text-align: left;
  }

  .section-kicker { gap: 12px; margin-bottom: 20px; }
  .section-kicker .rule { flex-basis: 28px; }
}

/* Very narrow phones (iPhone SE and similar) — stop long unbroken strings
   from forcing a horizontal scroll. */
@media (max-width: 380px) {
  .wrap { padding: 0 14px; }
  body { word-break: break-word; overflow-wrap: anywhere; }
}
