/* ═══════════════════════════════════════════════════
   shared.css — Ignite Web Studios common styles
   ═══════════════════════════════════════════════════ */

:root {
  --linen:    #F7F5F0;
  --surf:     #F1EFE8;
  --raised:   #FFFFFF;
  --ink:      #141210;
  --ink-2:    #5A5A63;
  --line:     rgba(20,18,16,.10);
  --line-soft:rgba(20,18,16,.06);
  --accent:   #7A2E1F;
  --accent-soft: rgba(122,46,31,.08);
  --peach:    #E8B691;
  --prim:     var(--ink);
  --muted:    var(--ink-2);
  --deep:     var(--linen);
}

/* ── Skip link ─────────────────────────────────── */
.skip-link { position: absolute; top: -100%; left: 1rem; background: var(--accent); color: #fff; padding: .75rem 1.5rem; border-radius: .5rem; font-weight: 600; z-index: 10000; text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--linen);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: 'Fraunces', serif; font-optical-sizing: auto; color: var(--ink); }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ── Grain overlay ─────────────────────────────── */
#grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  opacity: 0.55;
  mix-blend-mode: multiply;
}

/* ── Editorial accent ──────────────────────────── */
.accent {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

/* ── Buttons ───────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: 1rem 1.85rem;
  border-radius: 9999px;
  background: var(--ink);
  color: var(--linen);
  font-family: 'Manrope', sans-serif;
  font-size: .95rem; font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: transform .25s cubic-bezier(.16,1,.3,1), background-color .25s ease, color .25s ease;
}
.btn-primary:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: 1rem 1.85rem;
  border-radius: 9999px;
  background: transparent;
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-size: .95rem; font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: transform .25s cubic-bezier(.16,1,.3,1), background-color .25s ease, color .25s ease;
}
.btn-ghost:hover { transform: translateY(-2px); background: var(--ink); color: var(--linen); }
.btn-ghost:active { transform: translateY(0) scale(.98); }
.btn-ghost:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Scroll reveal ─────────────────────────────── */
.rev {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.rev.on { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .10s; }
.d2 { transition-delay: .20s; }
.d3 { transition-delay: .30s; }
.d4 { transition-delay: .40s; }

/* ── Nav ───────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0;
  transition: padding .3s ease, background .3s ease, box-shadow .3s ease;
}
#nav.scrolled {
  padding: 13px 0;
  background: rgba(247,245,240,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
}

/* ── Mobile nav ────────────────────────────────── */
#mob-nav {
  position: fixed; inset: 0; z-index: 99;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  background: var(--linen);
  transform: translateY(-100%);
  transition: transform .38s cubic-bezier(.16,1,.3,1);
}
#mob-nav.open { transform: translateY(0); }

.ham-line {
  display: block; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, width .25s ease;
}

/* ── Card surface ──────────────────────────────── */
.card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(20,18,16,.03);
  transition: transform .35s cubic-bezier(.16,1,.3,1), border-color .25s ease, box-shadow .35s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(20,18,16,.22);
  box-shadow: 0 1px 2px rgba(20,18,16,.04), 0 18px 40px rgba(20,18,16,.06);
}

/* ── Photo wrap ────────────────────────────────── */
.photo-wrap { position: relative; overflow: hidden; }
.photo-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s cubic-bezier(.16,1,.3,1);
}
.photo-wrap:hover img { transform: scale(1.05); }
.photo-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,18,16,.78) 0%, rgba(20,18,16,.30) 50%, transparent 100%);
  pointer-events: none; z-index: 1;
}

/* ── Form fields ───────────────────────────────── */
.field {
  width: 100%; padding: .85rem 1rem; border-radius: .75rem;
  background: var(--raised);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: 'Manrope', sans-serif; font-size: .95rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field::placeholder { color: #9A9AA0; }
.field:hover { border-color: rgba(20,18,16,.22); }
.field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(122,46,31,.10);
}

/* ── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--linen); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ── Reduced motion ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .rev, .btn-primary, .btn-ghost, .card, .photo-wrap img { transition: none !important; }
  .rev { opacity: 1 !important; transform: none !important; }
  #mob-nav { transition: none !important; }
}

/* ── Footer (shared across index + redesign) ───── */
.ftr {
  position: relative;
  background: var(--ink);
  color: var(--linen);
  padding: 6rem 1.5rem 2.5rem;
  overflow: hidden;
  isolation: isolate;
}
.ftr::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(122,46,31,.22) 0%, transparent 70%),
    radial-gradient(ellipse 55% 50% at 100% 100%, rgba(232,182,145,.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.ftr::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .45 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.18'/></svg>");
  opacity: .35;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
.ftr-inner {
  position: relative;
  z-index: 1;
  max-width: 82rem;
  margin: 0 auto;
}
.ftr-status {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: 'Manrope', sans-serif;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(247,245,240,.7);
  padding: .55rem 1rem;
  border: 1px solid rgba(247,245,240,.16);
  border-radius: 999px;
  background: rgba(247,245,240,.03);
  backdrop-filter: blur(6px);
}
.ftr-status .pulse {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #8BD17C;
  box-shadow: 0 0 0 0 rgba(139,209,124,.65);
  animation: pulseDot 2.2s cubic-bezier(.4,0,.6,1) infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(139,209,124,.6); }
  70% { box-shadow: 0 0 0 10px rgba(139,209,124,0); }
  100% { box-shadow: 0 0 0 0 rgba(139,209,124,0); }
}
.ftr-manifesto {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 6.4vw, 5.8rem);
  line-height: 1;
  letter-spacing: -.04em;
  margin: 2rem 0 3rem;
  max-width: 22ch;
  color: var(--linen);
}
.ftr-manifesto em {
  font-style: italic;
  color: #E8B691;
  font-weight: 400;
}
.ftr-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(247,245,240,.12);
}
.ftr-big-cta {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--linen);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
}
.ftr-big-cta:hover { color: #E8B691; }
.ftr-big-cta:focus-visible { outline: 2px solid #E8B691; outline-offset: 6px; border-radius: 4px; }
.ftr-big-cta svg { transition: transform .55s cubic-bezier(.16,1,.3,1); }
.ftr-big-cta:hover svg { transform: translateX(6px) translateY(-3px); }
.ftr-right-note {
  font-family: 'Manrope', sans-serif;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(247,245,240,.42);
  max-width: 14rem;
  line-height: 1.65;
}
.ftr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  padding: 4rem 0 3rem;
}
.ftr-col .col-head {
  font-family: 'Manrope', sans-serif;
  font-size: .65rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(247,245,240,.42);
  margin-bottom: 1.35rem;
}
.ftr-col .col-links {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.ftr-col .col-links a {
  font-family: 'Manrope', sans-serif;
  font-size: .92rem;
  color: rgba(247,245,240,.72);
  text-decoration: none;
  transition: color .2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.ftr-col .col-links a:hover { color: var(--linen); }
.ftr-col .col-links a:focus-visible { outline: 2px solid #E8B691; outline-offset: 3px; border-radius: 2px; }
.ftr-wordmark {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3.5rem, 9vw, 8rem);
  letter-spacing: -.04em;
  text-transform: uppercase;
  color: rgba(247,245,240,.04);
  text-align: center;
  line-height: .85;
  padding: 2rem 0 0;
}
.ftr-wordmark em {
  font-style: normal;
  display: block;
}
.ftr-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(247,245,240,.08);
  font-family: 'Manrope', sans-serif;
  font-size: .72rem;
  color: rgba(247,245,240,.38);
}
.ftr-bottom a {
  color: rgba(247,245,240,.48);
  text-decoration: none;
  transition: color .2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.ftr-bottom a:hover { color: var(--linen); }
.ftr-bottom a:focus-visible { outline: 2px solid #E8B691; outline-offset: 3px; border-radius: 2px; }
.ftr-bottom .center { display: flex; gap: 1.5rem; }
.ftr-bottom .right { display: flex; align-items: center; gap: 1.25rem; }
.ftr-bottom .right a {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}
.ftr-top-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: 'Manrope', sans-serif;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(247,245,240,.48);
  text-decoration: none;
  transition: color .25s ease;
}
.ftr-top-btn:hover { color: #E8B691; }
.ftr-top-btn svg { transition: transform .45s cubic-bezier(.16,1,.3,1); }
.ftr-top-btn:hover svg { transform: translateY(-3px); }

/* ── A11y hardening ────────────────────────────── */
.mob-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
#desk-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

/* ── Footer responsive ─────────────────────────── */
@media (max-width: 768px) {
  .ftr { padding: 4rem 1.25rem 2rem; }
  .ftr-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .ftr-bottom { flex-direction: column; text-align: center; gap: .75rem; }
  .ftr-bottom .right { justify-content: center; }
  .ftr-top-btn { padding: .6rem .85rem; min-height: 44px; border-radius: 999px; }
  .ftr-top-btn:focus-visible { outline: 2px solid #E8B691; outline-offset: 3px; }
}
