/* =========================================================
   Strategic Security v2 — v2-styles.css
   Modernized editorial design with enhanced visual hierarchy
   Pure CSS, responsive, accessibility-first
   ========================================================= */

/* --- Design Tokens (Modernized) --- */
:root {
  /* Enhanced warm cream palette */
  --paper:        #F0EBE0;   /* primary background — warm cream */
  --paper-deep:   #E8E1D2;   /* slightly deeper cream */
  --paper-soft:   #F6F2E9;   /* lifted surface */
  --ink:          #1F1B17;   /* near-black warm ink */
  --ink-soft:     #3A332C;   /* secondary text */
  --ink-mute:     #6B5F52;   /* tertiary / captions */
  --rule:         #D8CFBE;   /* hairline rules */

  /* Enhanced Accents */
  --terracotta:   #C96442;   /* primary accent */
  --terracotta-d: #A4502F;
  --apricot:      #E9B79A;
  --moss:         #6B7A5A;
  --night:        #1A1714;   /* dark inverse panel */
  --night-soft:   #2A241F;

  /* Typography */
  --serif: "Source Serif 4", "Iowan Old Style", "Apple Garamond", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  /* Spacing and Scale */
  --max:    1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 18px;
}

/* --- CSS Reset (Enhanced) --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --- Grain Overlay (Modernized) --- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.10  0 0 0 0 0.08  0 0 0 0.07 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* --- Typography Styles (Modernized) --- */
.serif-h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
  color: var(--ink);
}

.serif-h2 em {
  font-style: italic;
  color: var(--terracotta-d);
}

.serif-h2.light {
  color: var(--paper);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 22px;
}

.prose {
  font-family: var(--serif);
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 18px;
  font-weight: 400;
}

.prose em {
  font-style: italic;
  color: var(--ink);
}

.prose.subtle {
  color: var(--ink-mute);
}

.prose.light {
  color: rgba(240, 235, 224, 0.82);
}

.prose.center {
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Navigation (Modernized) --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: rgba(240, 235, 224, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand-mark {
  color: var(--terracotta);
  display: inline-flex;
}

.brand-name {
  font-feature-settings: "ss01" on;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--terracotta);
  transition: right 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-links a:not(.nav-cta):hover::after {
  right: 0;
}

.nav-cta {
  padding: 9px 16px !important;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink) !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--paper) !important;
}

/* --- Buttons (Modernized) --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: 999px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--terracotta);
  transform: translateY(-1px);
}

.btn-primary.big {
  padding: 20px 32px;
  font-size: 17px;
}

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

/* =========================================================
   HERO SECTION (Modernized)
   ========================================================= */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--gutter);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) var(--gutter) clamp(60px, 8vw, 120px);
  min-height: 78vh;
}

.hero-inner {
  max-width: 640px;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7.2vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  color: var(--ink);
}

.display em {
  font-style: italic;
  color: var(--terracotta-d);
  font-weight: 400;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 36px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 540px;
  width: 100%;
  margin: 0 0 0 auto;
  animation: floaty 14s ease-in-out infinite;
  isolation: isolate;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: contrast(1.02) saturate(1.05);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(233, 183, 154, 0.55), rgba(240, 235, 224, 0) 72%);
  z-index: -1;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(31, 27, 23, 0.18);
  pointer-events: none;
}

.hero-art-glow {
  display: none;
}

@keyframes floaty {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(0.6deg);
  }
}

/* --- Marquee Section --- */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  background: var(--paper-soft);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 22px 0;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 34px);
  color: var(--ink);
  animation: drift 38s linear infinite;
  width: max-content;
}

.marquee-track span:not(:first-child) {
  color: var(--ink);
}

.marquee-track span:nth-child(odd) {
  color: var(--ink-mute);
  font-style: normal;
  font-size: 0.85em;
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   SECTIONS (Modernized)
   ========================================================= */
.section {
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}

.section-label {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--sans);
  border-top: 1px solid var(--ink);
  padding-top: 14px;
}

.section-label .num {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.section-label .label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.section-label.light {
  border-top-color: var(--paper);
}

.section-label.light .num {
  color: var(--paper);
}

.section-label.light .label {
  color: rgba(240, 235, 224, 0.6);
}

.section-body {
  max-width: 760px;
}

/* --- Premise Section --- */
.section-premise {
  background: var(--paper);
}

.pull-quote {
  margin: 48px 0 0;
  padding: 28px 32px 28px 56px;
  background: var(--paper-soft);
  border-left: 3px solid var(--terracotta);
  border-radius: 4px 18px 18px 4px;
  position: relative;
}

.pull-quote .mark {
  position: absolute;
  top: 8px;
  left: 18px;
  font-family: var(--serif);
  font-size: 64px;
  color: var(--terracotta);
  line-height: 1;
}

.pull-quote p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.4;
  color: var(--ink);
}

/* --- Principles Section --- */
.section-principles {
  background: var(--paper-deep);
}

.section-principles .section-label {
  border-top-color: var(--ink);
}

.principles-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.principle {
  background: var(--paper);
  padding: 40px 32px 44px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 0.35s ease, transform 0.35s ease;
  position: relative;
  min-height: 280px;
}

.principle:hover {
  background: var(--paper-soft);
}

.principle-num {
  font-family: var(--serif);
  font-size: 38px;
  font-style: italic;
  color: var(--terracotta);
  line-height: 1;
  font-weight: 400;
}

.principle h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.principle p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.principle-emph {
  background: var(--ink);
  color: var(--paper);
}

.principle-emph:hover {
  background: var(--night-soft);
}

.principle-emph h3 {
  color: var(--paper);
  font-style: italic;
}

.principle-emph p {
  color: rgba(240, 235, 224, 0.72);
}

.principle-emph .principle-num {
  color: var(--apricot);
  font-size: 48px;
}

/* --- Cost / Consequence Section --- */
.section-cost {
  background: var(--ink);
  max-width: none;
  width: 100%;
  margin: 0;
  position: relative;
  color: var(--paper);
}

.section-cost::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 80% 20%, rgba(201, 100, 66, 0.18), transparent 60%),
    radial-gradient(600px 300px at 10% 90%, rgba(233, 183, 154, 0.10), transparent 60%);
  pointer-events: none;
}

.section-cost > * {
  position: relative;
}

.section-cost .section-grid {
  max-width: var(--max);
  margin: 0 auto;
}

.section-cost .prose.light em {
  color: var(--apricot);
}

.cost-grid {
  margin: 72px auto 0;
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.cost-card {
  border: 1px solid rgba(240, 235, 224, 0.14);
  background: rgba(240, 235, 224, 0.03);
  padding: 36px 32px 38px;
  border-radius: var(--radius);
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.cost-card:hover {
  background: rgba(240, 235, 224, 0.06);
  border-color: rgba(233, 183, 154, 0.4);
  transform: translateY(-2px);
}

.cost-line {
  width: 36px;
  height: 2px;
  background: var(--terracotta);
  margin-bottom: 22px;
}

.cost-card h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 23px;
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--paper);
}

.cost-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(240, 235, 224, 0.7);
  font-family: var(--serif);
}

/* --- Practice Section --- */
.section-practice {
  background: var(--paper);
}

.practice-list {
  margin: 64px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.practice-list li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition: padding-left 0.3s ease;
}

.practice-list li:hover {
  padding-left: 16px;
}

.practice-list .step {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--terracotta);
}

.practice-list h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.practice-list p {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 640px;
}

/* --- Perspective Section --- */
.section-perspective {
  background: var(--paper-deep);
  max-width: none;
  width: 100%;
  margin: 0;
}

.perspective-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
}

.big-quote {
  margin: 0 auto 24px;
  max-width: 880px;
}

.big-quote p {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--ink);
}

.big-quote em {
  color: var(--terracotta-d);
  font-style: italic;
}

.attribution {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 64px;
}

.perspective-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
  margin-top: 32px;
}

.p-card {
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.p-card h5 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 12px;
  color: var(--terracotta-d);
}

.p-card p {
  margin: 0;
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* --- Contact / Closing Section --- */
.section-contact {
  background: var(--paper);
  padding: clamp(100px, 12vw, 180px) var(--gutter);
  text-align: center;
}

.contact-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.display-sm {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.display-sm em {
  font-style: italic;
  color: var(--terracotta-d);
}

.contact-note {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0;
  max-width: 480px;
}

/* =========================================================
   FOOTER (Modernized)
   ========================================================= */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px var(--gutter) 32px;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.6fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(240, 235, 224, 0.14);
}

.footer-col h6 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240, 235, 224, 0.5);
  margin: 0 0 18px;
  font-weight: 500;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--paper);
  font-size: 15px;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.footer-col a:hover {
  color: var(--apricot);
  border-bottom-color: var(--apricot);
}

.brand-footer {
  color: var(--paper);
  margin-bottom: 18px;
}

.brand-footer .brand-mark {
  color: var(--apricot);
}

.footer-tag {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15.5px;
  color: rgba(240, 235, 224, 0.62);
  max-width: 280px;
  line-height: 1.5;
}

.footer-col .small {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(240, 235, 224, 0.6);
  font-family: var(--serif);
}

.footer-base {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(240, 235, 224, 0.45);
}

.footer-base p {
  margin: 0;
}

.footer-base .muted {
  font-style: italic;
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */
@media (max-width: 980px) {
  .nav-links {
    gap: 18px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .hero-art {
    max-width: 360px;
    margin: 32px auto 0;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .section-label {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cost-grid {
    grid-template-columns: 1fr;
  }

  .practice-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .perspective-cards {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-base {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    padding: 14px 20px;
  }

  .nav-cta {
    padding: 8px 14px !important;
    font-size: 13px;
  }

  .display {
    font-size: clamp(40px, 12vw, 56px);
  }
}

/* --- Accessibility: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .hero-art,
  .marquee-track {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
