/* PinnInvestment — Strategic Articulation Matrix
   Styles transcribed 1:1 from the Claude Design export (design source of truth).
   Tier 0: complete without JavaScript. Tier 1: native CSS motion. */

/* ---------- Self-hosted fonts (variable, subset) ---------- */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-italic-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-italic-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Base (values from export) ---------- */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: #0A1A33;
  color: #EAE5D8;
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #CFA95E; text-decoration: none; transition: color .4s ease; }
a:hover { color: #EAE5D8; }
::selection { background: #CFA95E; color: #0A1A33; }

/* Legal & 404 use the export's own sub-page palette */
body.sub { color: #E8E3D6; }
body.sub a { color: #C9A45C; transition: color .35s ease; }
body.sub a:hover { color: #E8E3D6; }
body.sub ::selection { background: #C9A45C; color: #0A1A33; }

/* Keyboard focus (site hides the pointer cursor; keep focus unmistakable) */
a:focus-visible {
  outline: 2px solid rgba(207, 169, 94, 0.9);
  outline-offset: 3px;
}
body.sub a:focus-visible { outline-color: rgba(201, 164, 92, 0.9); }

.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;
}

/* Custom cursor mode (toggled by JS on fine pointers only) */
.pinn-cursor-on, .pinn-cursor-on * { cursor: none; }

@keyframes pinnSheen {
  0%, 45% { background-position: 135% 0; }
  80%, 100% { background-position: -35% 0; }
}

/* Lenis recommended styles */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- Home ---------- */

.site {
  background: linear-gradient(180deg, #0E2347 0%, #0B1D3A 34%, #0A1A33 62%, #081528 100%);
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 5vw, 56px);
  padding-left: max(clamp(20px, 5vw, 56px), env(safe-area-inset-left));
  padding-right: max(clamp(20px, 5vw, 56px), env(safe-area-inset-right));
  background: rgba(10, 26, 51, 0.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid rgba(207, 169, 94, 0.16);
}
.brand {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.34em;
  position: relative;
}
a.brand, a.brand:hover { color: #CFA95E; }
/* Enlarged touch target without visual change */
.brand::after { content: ""; position: absolute; inset: -14px -12px; }

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 140px clamp(12px, 3vw, 48px) 90px;
  position: relative;
  background: radial-gradient(ellipse 90% 60% at 50% 38%, rgba(28, 55, 100, 0.55) 0%, rgba(28, 55, 100, 0) 70%);
}
.hero-eyebrow {
  font-size: clamp(10px, 1.1vw, 13px);
  letter-spacing: 0.52em;
  color: rgba(207, 169, 94, 0.9);
  margin-bottom: clamp(28px, 5vh, 56px);
  font-weight: 500;
  padding-left: 0.52em;
}
.hero-clip { overflow: hidden; max-width: 100%; padding: 0.06em 0.1em; }
.hero-title {
  position: relative;
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(32px, 8.8vw, 190px);
  line-height: 1.04;
  letter-spacing: 0.075em;
  white-space: nowrap;
  color: #CFA95E;
}
.hero-title .metal {
  display: block;
  background: linear-gradient(180deg, #F6E5B4 0%, #E2C284 32%, #CFA95E 56%, #96722F 88%, #B08C42 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 1px rgba(2, 8, 20, 0.55)) drop-shadow(0 14px 34px rgba(2, 8, 20, 0.55)) drop-shadow(0 30px 70px rgba(2, 8, 20, 0.4));
}
.hero-title .gloss {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 249, 227, 0.95) 0%, rgba(255, 249, 227, 0) 20%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  pointer-events: none;
}
.hero-title .sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255, 250, 232, 0) 43%, rgba(255, 250, 232, 0.5) 50%, rgba(255, 250, 232, 0) 57%);
  background-size: 260% 100%;
  background-position: 135% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  pointer-events: none;
  animation: pinnSheen 7s ease-in-out 2.4s infinite;
}
.hero-rule {
  width: 1px;
  height: clamp(36px, 7vh, 72px);
  background: linear-gradient(rgba(207, 169, 94, 0), rgba(207, 169, 94, 0.7));
  margin: clamp(28px, 5vh, 48px) 0;
}
.hero-lede {
  max-width: 620px;
  margin: 0;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.8;
  color: rgba(234, 229, 216, 0.84);
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: clamp(36px, 6vh, 60px);
}
.hero-scroll {
  position: absolute;
  bottom: calc(30px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.42em;
  color: rgba(234, 229, 216, 0.55);
}

.btn-solid {
  display: inline-block;
  background: linear-gradient(180deg, #E0C183 0%, #CFA95E 60%, #B58C3F 100%);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  padding: 17px 34px;
  box-shadow: 0 10px 30px rgba(2, 8, 20, 0.45);
  transition: filter .4s ease;
}
a.btn-solid, a.btn-solid:hover { color: #0A1A33; }
.btn-solid:hover, .btn-solid:active { filter: brightness(1.12); }

.btn-outline {
  display: inline-block;
  border: 1px solid rgba(207, 169, 94, 0.55);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  padding: 17px 34px;
  transition: background .4s ease, color .4s ease;
}
a.btn-outline { color: #CFA95E; }
a.btn-outline:hover, a.btn-outline:active { background: #CFA95E; color: #0A1A33; }

.btn-lg { padding: 19px 38px; }

/* ---------- Intro overlay (created by JS only) ---------- */

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(ellipse 90% 70% at 50% 45%, #0E2347 0%, #0A1A33 60%, #081528 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro-line { white-space: nowrap; }
.intro-letter {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(26px, 5.8vw, 96px);
  letter-spacing: 0.12em;
  background: linear-gradient(180deg, #F6E5B4 0%, #E2C284 32%, #CFA95E 56%, #96722F 88%, #B08C42 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #CFA95E;
}

/* ---------- Threads ---------- */

.threadwrap { position: relative; }
.threads {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 0 6px rgba(207, 169, 94, 0.4));
}
/* pathLength="1" is set on each path: dasharray 1 + dashoffset 0 renders fully
   drawn without JavaScript; motion tiers animate dashoffset from 1 to 0. */
.threads path { stroke-dasharray: 1; stroke-dashoffset: 0; }

/* ---------- Matrix ---------- */

.matrix {
  position: relative;
  z-index: 2;
  padding: clamp(140px, 22vh, 260px) clamp(20px, 6vw, 72px) clamp(100px, 16vh, 180px);
  max-width: 1200px;
  margin: 0 auto;
}
.matrix-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 28px;
  margin-bottom: clamp(48px, 9vh, 96px);
}
.matrix-title {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.5em;
  color: rgba(207, 169, 94, 0.9);
}
.matrix-sub {
  font-size: 10px;
  letter-spacing: 0.34em;
  color: rgba(234, 229, 216, 0.45);
}
.manifesto {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 6vh, 56px);
  max-width: 880px;
}
.sentence {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(28px, 4.2vw, 58px);
  line-height: 1.25;
  color: #EAE5D8;
  text-wrap: pretty;
}
.sentence em { color: #CFA95E; font-style: italic; }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(100px, 16vh, 190px);
}
.pillar { border-top: 1px solid rgba(207, 169, 94, 0.3); padding-top: 30px; }
.pillar-num {
  font-size: 11px;
  letter-spacing: 0.4em;
  color: rgba(234, 229, 216, 0.45);
  margin-bottom: 18px;
}
.pillar h3 {
  margin: 0 0 16px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 32px);
  color: #CFA95E;
  line-height: 1.2;
}
.pillar p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(234, 229, 216, 0.74);
  text-wrap: pretty;
}

/* ---------- Two ways in ---------- */

.ways {
  position: relative;
  z-index: 2;
  padding: clamp(120px, 18vh, 220px) clamp(20px, 6vw, 72px);
  max-width: 1200px;
  margin: 0 auto;
}
.ways-clip { overflow: hidden; margin-bottom: clamp(52px, 9vh, 100px); }
.ways-title {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.1;
  color: #EAE5D8;
}
.ways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.way-card {
  display: block;
  border: 1px solid rgba(207, 169, 94, 0.28);
  padding: clamp(36px, 4.5vw, 60px);
  background: linear-gradient(160deg, rgba(234, 229, 216, 0.035) 0%, rgba(234, 229, 216, 0.01) 100%);
  box-shadow: 0 24px 60px rgba(2, 8, 20, 0.35);
  transition: border-color .5s ease, background .5s ease;
}
a.way-card, a.way-card:hover { color: inherit; }
.way-card:hover, .way-card:active {
  border-color: rgba(207, 169, 94, 0.7);
  background: rgba(207, 169, 94, 0.06);
}
.way-tag { font-size: 11px; letter-spacing: 0.5em; color: #CFA95E; margin-bottom: 24px; }
.way-card h3 {
  margin: 0 0 18px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(26px, 2.8vw, 38px);
  color: #EAE5D8;
  line-height: 1.2;
}
.way-card p {
  margin: 0 0 30px;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(234, 229, 216, 0.74);
  text-wrap: pretty;
}
.way-mail { font-size: 12px; letter-spacing: 0.14em; color: #CFA95E; }

/* ---------- The call ---------- */

.call {
  position: relative;
  z-index: 2;
  padding: clamp(140px, 24vh, 280px) clamp(20px, 6vw, 72px) clamp(140px, 20vh, 240px);
  text-align: center;
}
.call-eyebrow {
  margin: 0 0 clamp(36px, 7vh, 64px);
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.5em;
  color: rgba(207, 169, 94, 0.9);
}
.call-clip { overflow: hidden; max-width: 900px; margin: 0 auto; }
.call-line {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(30px, 4.6vw, 64px);
  line-height: 1.3;
  color: #EAE5D8;
  text-wrap: pretty;
}
.call-line em { color: #CFA95E; }
.call-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: clamp(44px, 8vh, 80px);
}

/* ---------- Footer ---------- */

.foot {
  background: #071122;
  border-top: 1px solid rgba(207, 169, 94, 0.18);
  padding: clamp(56px, 9vh, 84px) clamp(20px, 6vw, 72px);
  padding-bottom: calc(clamp(56px, 9vh, 84px) + env(safe-area-inset-bottom, 0px));
  text-align: center;
}
.foot-brand {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.34em;
  color: #CFA95E;
  margin-bottom: 32px;
}
.foot-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(234, 229, 216, 0.58);
  letter-spacing: 0.04em;
}
.foot-lines a, .foot-lines a:hover { color: rgba(207, 169, 94, 0.85); }
/* Inline padding + negative margin: 44px hit target, zero layout shift */
.foot-lines a, .legal-body a { padding: 14px 6px; margin: -14px -6px; }

/* ---------- Legal ---------- */

.legal-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #0A1A33;
}
.subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 5vw, 56px);
  padding-left: max(clamp(20px, 5vw, 56px), env(safe-area-inset-left));
  padding-right: max(clamp(20px, 5vw, 56px), env(safe-area-inset-right));
  border-bottom: 1px solid rgba(201, 164, 92, 0.16);
}
/* Colors pinned with body.sub specificity: the export sets these inline,
   so its global a:hover rule never recolors them. */
body.sub a.subnav-brand, body.sub a.subnav-brand:hover {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.34em;
  color: #C9A45C;
}
body.sub a.subnav-back, body.sub a.subnav-back:hover {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(232, 227, 214, 0.65);
}
.subnav-brand, .subnav-back { position: relative; }
.subnav-brand::after, .subnav-back::after { content: ""; position: absolute; inset: -14px -12px; }

.legal-main {
  flex: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(72px, 12vh, 140px) clamp(20px, 6vw, 56px);
  width: 100%;
  box-sizing: border-box;
}
.legal-label {
  font-size: 11px;
  letter-spacing: 0.5em;
  color: rgba(201, 164, 92, 0.85);
  margin-bottom: 28px;
}
.legal-main h1 {
  margin: 0 0 clamp(40px, 7vh, 64px);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.15;
  color: #E8E3D6;
}
.legal-body {
  display: flex;
  flex-direction: column;
  gap: 36px;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(232, 227, 214, 0.78);
}
.legal-body h2 {
  margin: 0 0 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.34em;
  color: #C9A45C;
}
.legal-body p { margin: 0; }

.legal-foot {
  border-top: 1px solid rgba(201, 164, 92, 0.18);
  padding: 36px clamp(20px, 6vw, 56px);
  padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 12.5px;
  color: rgba(232, 227, 214, 0.55);
}

/* ---------- 404 ---------- */

.nf {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px clamp(20px, 6vw, 56px);
  background: #0A1A33;
  box-sizing: border-box;
}
.nf-label {
  font-size: 11px;
  letter-spacing: 0.5em;
  color: rgba(201, 164, 92, 0.85);
  margin-bottom: 36px;
}
.nf-letters { margin: 0 0 44px; white-space: nowrap; }
.nf-letters span {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(26px, 6vw, 92px);
  color: #C9A45C;
  letter-spacing: 0.1em;
  opacity: 0.55;
}
/* Deterministic scatter from the export (sx=(((i*73)%29)-14)*1.2,
   sy=(((i*41)%37)-18)*1.8, sr=(((i*59)%13)-6) for i = 0..13) */
.nf-letters span:nth-child(1)  { transform: translate(-16.8px, -32.4px) rotate(-6deg); }
.nf-letters span:nth-child(2)  { transform: translate(1.2px, -25.2px) rotate(1deg); }
.nf-letters span:nth-child(3)  { transform: translate(-15.6px, -18px) rotate(-5deg); }
.nf-letters span:nth-child(4)  { transform: translate(2.4px, -10.8px) rotate(2deg); }
.nf-letters span:nth-child(5)  { transform: translate(-14.4px, -3.6px) rotate(-4deg); }
.nf-letters span:nth-child(6)  { transform: translate(3.6px, 3.6px) rotate(3deg); }
.nf-letters span:nth-child(7)  { transform: translate(-13.2px, 10.8px) rotate(-3deg); }
.nf-letters span:nth-child(8)  { transform: translate(4.8px, 18px) rotate(4deg); }
.nf-letters span:nth-child(9)  { transform: translate(-12px, 25.2px) rotate(-2deg); }
.nf-letters span:nth-child(10) { transform: translate(6px, 32.4px) rotate(5deg); }
.nf-letters span:nth-child(11) { transform: translate(-10.8px, -27px) rotate(-1deg); }
.nf-letters span:nth-child(12) { transform: translate(7.2px, -19.8px) rotate(6deg); }
.nf-letters span:nth-child(13) { transform: translate(-9.6px, -12.6px) rotate(0deg); }
.nf-letters span:nth-child(14) { transform: translate(8.4px, -5.4px) rotate(-6deg); }
.nf-copy {
  max-width: 440px;
  margin: 0 0 40px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(232, 227, 214, 0.7);
  text-wrap: pretty;
}
body.sub a.nf-btn {
  display: inline-block;
  border: 1px solid rgba(201, 164, 92, 0.55);
  color: #C9A45C;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  padding: 16px 32px;
  transition: background .35s ease, color .35s ease;
}
body.sub a.nf-btn:hover, body.sub a.nf-btn:active { background: #C9A45C; color: #0A1A33; }

/* ---------- Tier 1: scroll motion without JavaScript ----------
   Only applies when scripting is disabled, motion is allowed, and the
   browser supports scroll-driven animations. JS-enabled browsers never
   match (scripting: enabled there), so the two tiers cannot conflict. */

@media (scripting: none) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @keyframes pinn-rise {
      from { opacity: 0; transform: translateY(28px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes pinn-clip-up {
      from { transform: translateY(112%); }
      to { transform: translateY(0); }
    }
    @keyframes pinn-draw {
      from { stroke-dashoffset: 1; }
      to { stroke-dashoffset: 0; }
    }
    [data-reveal] {
      animation: pinn-rise 1s cubic-bezier(.16, 1, .3, 1) both;
      animation-timeline: view();
      animation-range: entry 10% entry 70%;
    }
    [data-clip] {
      animation: pinn-clip-up 1s cubic-bezier(.16, 1, .3, 1) both;
      animation-timeline: view();
      animation-range: entry 10% entry 80%;
    }
    .threadwrap { view-timeline: --pinn-threads; }
    .threads path {
      animation: pinn-draw linear both;
      animation-timeline: --pinn-threads;
      animation-range: cover 0% cover 80%;
    }
  }
}

/* ---------- Reduced motion: full static premium experience ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition-duration: 0.01ms !important; }
  .nf-letters span { transform: none !important; }
}
