/* ==========================================================================
   Ironveil Forge — Styles v2
   Fantasy artisan aesthetic. Dark, warm, atmospheric.
   Built on Scale Rebel Studio design system.
   ========================================================================== */

/* --- Custom Properties --- */
:root {
  /* Core palette — warmer, darker, more atmospheric */
  --soft-black: #0E0C0A;
  --charcoal: #18160F;
  --charcoal-warm: #1C1912;
  --warm-concrete: #A8A299;
  --bone-white: #F2E8D5;
  --cream: #E8DCC8;
  --parchment: #D4C9AF;
  --oxide: #8B4D3B;
  --oxide-light: #A66B5A;
  --steel: #3D4752;
  --gold: #C4A055;
  --gold-light: #D4B76A;
  --gold-muted: rgba(196, 160, 85, .15);
  --gold-bright: #E0C878;

  /* Deep forested backdrop */
  --deep-950: #0D110F;
  --deep-900: #131A17;
  --deep-850: #182220;
  --deep-800: #1E2B28;
  --accent-glow: rgba(196, 160, 85, .12);

  /* Text system */
  --text-strong: #F2E8D5;
  --text-body: rgba(242, 232, 213, .85);
  --text-muted: rgba(242, 232, 213, .58);
  --text-on-parchment: #2A2318;
  --text-muted-on-parchment: #5C5141;

  /* Ember/fire */
  --ember: #D4652A;
  --ember-glow: rgba(212, 101, 42, .3);
  --ember-soft: rgba(212, 101, 42, .08);
  --forge-red: #8B2500;
  --forge-orange: #C85A1E;

  /* Typography */
  --heading: "Cinzel", "Times New Roman", serif;
  --body-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Transitions */
  --ease: cubic-bezier(.25, .8, .25, 1);
  --speed: 200ms;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--body-serif);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--text-body);
  background-color: var(--soft-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle noise texture on body */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}

a:hover {
  color: var(--gold-bright);
}

/* --- Accessibility --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: .5rem 1rem;
  background: var(--gold);
  color: var(--soft-black);
  font-weight: 600;
  z-index: 9999;
  border-radius: 0 0 4px 4px;
  font-family: var(--sans);
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 2px solid rgba(196, 160, 85, .55);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--heading);
  color: var(--text-strong);
  font-weight: 500;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  line-height: 1.15;
  letter-spacing: 0.04em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: 0.03em;
}

h3 {
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.kicker {
  display: block;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .65rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: .75rem;
}

.lede {
  font-family: var(--body-serif);
  font-size: 1.2rem;
  max-width: 58ch;
  line-height: 1.75;
  color: var(--text-muted);
  font-style: italic;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-dark {
  background: var(--soft-black);
}

/* Parchment section (replaces section-light) */
.section-parchment {
  background: linear-gradient(180deg, var(--cream) 0%, var(--parchment) 100%);
  color: var(--text-on-parchment);
  position: relative;
}

/* Parchment texture overlay */
.section-parchment::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

.section-parchment h2,
.section-parchment h3 {
  color: var(--text-on-parchment);
}

.section-parchment .kicker {
  color: var(--oxide);
}

.section-parchment .lede {
  color: var(--text-muted-on-parchment);
}

.section-parchment .process-number {
  color: var(--oxide);
}

.section-deep {
  background: linear-gradient(180deg, var(--deep-950), var(--deep-900));
}

.section-forge {
  background: radial-gradient(ellipse at 50% 100%, rgba(139, 37, 0, .15) 0%, transparent 50%),
              var(--soft-black);
}

.section-cta {
  background: radial-gradient(ellipse at 50% 50%, rgba(196, 160, 85, .08) 0%, transparent 60%),
              var(--deep-950);
  text-align: center;
  padding: 7rem 0;
}

.cta-ornament {
  width: 60px;
  height: 60px;
  margin: 0 auto 2rem;
  color: var(--gold);
}

/* --- Section Dividers --- */
.section-divider {
  text-align: center;
  line-height: 0;
  color: var(--gold);
  opacity: .3;
  background: var(--soft-black);
  padding: .5rem 0;
}

.section-divider svg {
  width: 300px;
  height: 20px;
  max-width: 80%;
}

.divider-light {
  background: var(--cream);
  color: var(--oxide);
  opacity: .25;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .85rem;
  padding: .85rem 2rem;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: all var(--speed) var(--ease);
  text-decoration: none;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--gold);
  color: var(--soft-black);
  box-shadow: 0 2px 12px rgba(196, 160, 85, .15);
}

.btn-primary:hover {
  background: var(--gold-bright);
  color: var(--soft-black);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(196, 160, 85, .25);
}

.btn-secondary {
  background: transparent;
  color: var(--bone-white);
  border: 1px solid rgba(196, 160, 85, .3);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(196, 160, 85, .1);
}

.btn-lg {
  padding: 1.05rem 2.5rem;
  font-size: .9rem;
}

.btn-forge {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--soft-black);
  box-shadow: 0 4px 20px rgba(196, 160, 85, .2);
  font-weight: 700;
}

.btn-forge:hover {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(196, 160, 85, .35);
  color: var(--soft-black);
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(14, 12, 10, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 160, 85, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1060px;
  margin: 0 auto;
  padding: .65rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--text-strong);
  text-decoration: none;
}

.brand:hover {
  color: var(--gold);
}

.brand-mark {
  width: 36px;
  height: 36px;
  color: var(--gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--heading);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .05em;
  line-height: 1.2;
}

.brand-tagline {
  font-family: var(--body-serif);
  font-size: .68rem;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: .02em;
}

/* Nav */
.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-list a {
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  position: relative;
  padding: .25rem 0;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms var(--ease);
}

.nav-list a:hover {
  color: var(--text-strong);
}

.nav-list a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  background: rgba(196, 160, 85, .1);
  color: var(--gold) !important;
  padding: .45rem 1.1rem !important;
  border-radius: 2px;
  border: 1px solid rgba(196, 160, 85, .2);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--soft-black) !important;
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gold);
  transition: all 300ms var(--ease);
  border-radius: 1px;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 5rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 90%, rgba(139, 37, 0, .12) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 50%, rgba(196, 160, 85, .04) 0%, transparent 50%),
              var(--soft-black);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(14, 12, 10, .6) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-ember {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(212, 101, 42, .1) 0%, rgba(196, 160, 85, .05) 30%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.hero-ornament {
  margin-bottom: 2rem;
  color: var(--gold);
  opacity: .5;
}

.hero-sigil {
  width: 40px;
  height: 30px;
}

.hero-content h1 {
  text-shadow: 0 2px 30px rgba(196, 160, 85, .15);
}

.hero-content .lede {
  margin: 1.5rem auto 0;
}

/* Decorative rule */
.hero-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 160, 85, .3), transparent);
  position: relative;
}

.rule-diamond {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: .6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* --- Work Grid --- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.work-card {
  background: linear-gradient(165deg, rgba(28, 25, 18, .9), rgba(14, 12, 10, .95));
  border: 1px solid rgba(196, 160, 85, .1);
  border-radius: 3px;
  padding: 2.25rem 1.75rem;
  transition: all 400ms var(--ease);
  position: relative;
  overflow: hidden;
}

/* Card corner ornaments */
.card-corner {
  position: absolute;
  width: 20px;
  height: 20px;
}

.card-corner::before,
.card-corner::after {
  content: "";
  position: absolute;
  background: var(--gold);
  opacity: .2;
}

.card-corner-tl { top: 8px; left: 8px; }
.card-corner-tl::before { width: 12px; height: 1px; top: 0; left: 0; }
.card-corner-tl::after { width: 1px; height: 12px; top: 0; left: 0; }

.card-corner-br { bottom: 8px; right: 8px; }
.card-corner-br::before { width: 12px; height: 1px; bottom: 0; right: 0; }
.card-corner-br::after { width: 1px; height: 12px; bottom: 0; right: 0; }

.work-card:hover,
.work-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(196, 160, 85, .25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4), 0 0 60px rgba(196, 160, 85, .06);
}

.work-card:hover .card-corner::before,
.work-card:hover .card-corner::after {
  opacity: .4;
}

.work-card-icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  opacity: .45;
  margin-bottom: 1.25rem;
  transition: opacity 400ms var(--ease);
}

.work-card:hover .work-card-icon {
  opacity: .7;
}

.work-card h3 {
  margin-bottom: .5rem;
  font-size: 1.4rem;
}

.card-rule {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 1rem;
  opacity: .3;
}

.work-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.work-card-tag {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--gold);
  opacity: .55;
}

/* --- Process Steps --- */
.process-steps {
  list-style: none;
  margin-top: 3rem;
  max-width: 680px;
}

.process-step {
  display: flex;
  gap: 2rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid rgba(42, 35, 24, .15);
}

.process-step:last-child {
  border-bottom: none;
}

.process-number {
  font-family: var(--heading);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--oxide);
  opacity: .35;
  flex-shrink: 0;
  line-height: 1.3;
  min-width: 2.5rem;
}

.process-content h3 {
  margin-bottom: .5rem;
  color: var(--text-on-parchment);
  font-size: 1.2rem;
}

.process-content p {
  color: var(--text-muted-on-parchment);
  font-size: 1rem;
}

/* --- Smith Section --- */
.smith-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  align-items: start;
}

.portrait-frame {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(196, 160, 85, .12);
  background: rgba(196, 160, 85, .03);
}

.portrait-inner {
  aspect-ratio: 2/3;
  overflow: hidden;
}

.portrait-inner svg,
.portrait-inner img {
  width: 100%;
  height: 100%;
  display: block;
}

.portrait-silhouette {
  width: 100%;
  height: 100%;
}

/* Corner ornaments on portrait */
.frame-corner {
  position: absolute;
  width: 16px;
  height: 16px;
}

.frame-corner::before,
.frame-corner::after {
  content: "";
  position: absolute;
  background: var(--gold);
  opacity: .4;
}

.frame-corner-tl { top: -1px; left: -1px; }
.frame-corner-tl::before { width: 16px; height: 1px; top: 0; left: 0; }
.frame-corner-tl::after { width: 1px; height: 16px; top: 0; left: 0; }

.frame-corner-tr { top: -1px; right: -1px; }
.frame-corner-tr::before { width: 16px; height: 1px; top: 0; right: 0; }
.frame-corner-tr::after { width: 1px; height: 16px; top: 0; right: 0; }

.frame-corner-bl { bottom: -1px; left: -1px; }
.frame-corner-bl::before { width: 16px; height: 1px; bottom: 0; left: 0; }
.frame-corner-bl::after { width: 1px; height: 16px; bottom: 0; left: 0; }

.frame-corner-br { bottom: -1px; right: -1px; }
.frame-corner-br::before { width: 16px; height: 1px; bottom: 0; right: 0; }
.frame-corner-br::after { width: 1px; height: 16px; bottom: 0; right: 0; }

.smith-bio .kicker {
  margin-bottom: .5rem;
}

.smith-bio h2 {
  margin-bottom: 1.25rem;
}

.smith-quote {
  font-family: var(--body-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gold);
  opacity: .7;
  border-left: 2px solid rgba(196, 160, 85, .25);
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.smith-bio p {
  margin-bottom: 1rem;
  color: var(--text-body);
}

.smith-bio p:last-child {
  margin-bottom: 0;
}

/* --- Sparks Container --- */
.sparks-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* --- Forge Game --- */
.forge-game {
  margin-top: 3rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.forge-scene {
  position: relative;
  background: linear-gradient(180deg, var(--charcoal-warm) 0%, var(--soft-black) 100%);
  border: 1px solid rgba(196, 160, 85, .1);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  text-align: center;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  overflow: hidden;
}

/* Subtle fire glow at bottom of forge scene */
.forge-fire {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 120px;
  pointer-events: none;
}

.fire-glow {
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 100%, rgba(212, 101, 42, .12) 0%, transparent 70%);
}

.anvil-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  z-index: 1;
}

.metal-piece {
  width: 80px;
  height: 16px;
  background: var(--steel);
  border-radius: 2px;
  position: relative;
  transition: all 500ms var(--ease);
}

.metal-piece.heating {
  background: var(--forge-red);
  box-shadow: 0 0 20px var(--ember-glow);
}

.metal-piece.hot {
  background: var(--ember);
  box-shadow: 0 0 30px var(--ember-glow), 0 0 60px rgba(212, 101, 42, .15);
}

.metal-piece.struck {
  animation: strike-flash 150ms ease-out;
}

.metal-piece.forged {
  background: var(--gold);
  box-shadow: 0 0 40px rgba(196, 160, 85, .3);
  width: 100px;
  height: 8px;
  border-radius: 1px 1px 2px 2px;
  clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 85% 100%, 5% 100%, 0% 50%);
}

.metal-piece.cracked {
  background: var(--steel);
  box-shadow: none;
  opacity: .5;
}

.metal-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ember-glow), transparent);
  opacity: 0;
  transition: opacity 500ms;
}

.metal-piece.hot .metal-glow,
.metal-piece.heating .metal-glow {
  opacity: 1;
}

.anvil {
  width: 200px;
  z-index: 1;
}

/* Timing bar */
.timing-bar-wrapper {
  width: 100%;
  max-width: 360px;
  z-index: 1;
}

.timing-bar {
  position: relative;
  height: 24px;
  background: rgba(242, 232, 213, .05);
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(196, 160, 85, .12);
}

.timing-zone {
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 22%;
  left: 39%;
  background: rgba(196, 160, 85, .12);
  border-radius: 2px;
  border: 1px solid rgba(196, 160, 85, .25);
}

.timing-indicator {
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: 6px;
  background: var(--bone-white);
  border-radius: 1px;
  left: 0;
  transition: none;
  box-shadow: 0 0 10px rgba(242, 232, 213, .4);
}

.timing-label {
  text-align: center;
  margin-top: .75rem;
  font-family: var(--sans);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-muted);
}

/* Strike counter */
.strike-counter {
  display: flex;
  gap: .5rem;
  z-index: 1;
}

.strike-pip {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--warm-concrete);
  transition: all 300ms var(--ease);
}

.strike-pip.hit {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(196, 160, 85, .5);
}

.strike-pip.miss {
  background: var(--forge-red);
  border-color: var(--forge-red);
}

/* Sparks */
.spark {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  animation: spark-fly 600ms ease-out forwards;
}

@keyframes spark-fly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--sx), var(--sy)) scale(0);
  }
}

@keyframes strike-flash {
  0% { transform: scaleY(1); }
  40% { transform: scaleY(.6); }
  100% { transform: scaleY(1); }
}

/* Game status messages */
.game-status {
  font-family: var(--heading);
  font-size: .9rem;
  letter-spacing: .06em;
  min-height: 1.5em;
  z-index: 1;
}

.game-status.success {
  color: var(--gold);
}

.game-status.fail {
  color: var(--ember);
}

.forge-controls {
  margin-top: 1.5rem;
  text-align: center;
}

.forge-btn {
  min-width: 200px;
}

.forge-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* --- Maker's Mark --- */
.makers-mark {
  background: var(--soft-black);
  padding: 5rem 0;
  text-align: center;
  position: relative;
}

.mark-anvil-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(196, 160, 85, .25));
  margin: 0 auto 2rem;
}

.mark-stamp {
  margin: 0 auto 2rem;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mark-border {
  width: 80px;
  height: 80px;
  border: 1.5px solid rgba(196, 160, 85, .25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(196, 160, 85, .03);
}

.mark-border::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(196, 160, 85, .08);
  border-radius: 50%;
}

.mark-border::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(196, 160, 85, .1);
  border-radius: 50%;
}

.mark-logo {
  width: 36px;
  height: 36px;
  color: var(--gold);
}

.mark-title {
  font-family: var(--heading);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.mark-text {
  max-width: 50ch;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.mark-text strong {
  color: var(--text-strong);
  font-weight: 500;
}

.mark-rule {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 160, 85, .2), transparent);
  margin: 1.5rem auto;
}

.mark-subtext {
  color: var(--text-muted);
  font-size: .95rem;
  font-style: italic;
}

.btn-mark {
  display: inline-block;
  margin-top: 1.25rem;
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(196, 160, 85, .2);
  padding: .75rem 2rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.btn-mark:hover {
  background: var(--gold);
  color: var(--soft-black);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(196, 160, 85, .2);
}

/* --- Footer --- */
.site-footer {
  background: var(--soft-black);
  border-top: 1px solid rgba(196, 160, 85, .06);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--heading);
  color: var(--text-muted);
  font-size: .85rem;
  letter-spacing: .03em;
}

.footer-mark {
  width: 22px;
  height: 22px;
  color: var(--gold);
  opacity: .5;
}

.footer-copy {
  color: var(--warm-concrete);
  font-size: .78rem;
  font-style: italic;
  opacity: .6;
}

.footer-built {
  font-family: var(--sans);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--warm-concrete);
  opacity: .6;
}

.footer-built a {
  color: var(--gold);
  opacity: .8;
}

/* --- Scroll Reveals --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: var(--charcoal-warm);
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 300ms var(--ease);
    border-left: 1px solid rgba(196, 160, 85, .1);
    z-index: 99;
  }

  .nav-list.open {
    right: 0;
  }

  .nav-list a {
    font-size: .85rem;
  }

  .nav-cta {
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .smith-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .smith-portrait {
    display: flex;
    justify-content: center;
  }

  .portrait-frame {
    max-width: 200px;
  }

  .smith-quote {
    border-left: none;
    padding-left: 0;
    text-align: center;
  }

  .section {
    padding: 4rem 0;
  }

  .section-cta {
    padding: 5rem 0;
  }

  .process-step {
    gap: 1.25rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .section-divider svg {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-name {
    font-size: .9rem;
  }

  .brand-tagline {
    display: none;
  }

  .hero {
    padding: 7rem 1.25rem 3rem;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .hero-ornament {
    margin-bottom: 1.5rem;
  }

  .hero-sigil {
    width: 32px;
    height: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .process-number {
    font-size: 1.4rem;
    min-width: 2rem;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}