/* ============================================================
   TAG AMERICA — Editorial design system
   Cool white + navy + electric blue · Hanken Grotesk
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300..800&family=Plus+Jakarta+Sans:wght@300..800&family=Sora:wght@300..700&family=Geist:wght@300..700&family=Space+Grotesk:wght@400..700&family=Manrope:wght@300..800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Surfaces — cool white / slate */
  --paper:        250 251 253;  /* #FAFBFD */
  --paper-deep:   239 243 249;  /* #EFF3F9 */
  --paper-soft:   255 255 255;  /* #FFFFFF */
  --ash:          226 233 244;  /* #E2E9F4 */

  /* Ink — deep navy */
  --ink:            9  22  43;  /* #09162B */
  --ink-deep:       5  13  28;  /* #050D1C */
  --ink-soft:      51  67  93;  /* #33435D */
  --ink-mute:     102 120 148;  /* #667894 */
  --ink-faint:    154 170 194;  /* #9AAAC2 */

  /* Accent — electric blue */
  --clay:          34  98 240;  /* #2262F0 */
  --clay-deep:     26  76 200;  /* #1A4CC8 */
  --clay-soft:    188 211 255;  /* #BCD3FF */
  --clay-wash:    237 243 255;  /* #EDF3FF */

  /* Secondary — azure */
  --sage:          11 110 196;  /* #0B6EC4 */
  --sage-soft:    196 222 248;  /* #C4DEF8 */

  /* Hairlines */
  --hairline:       9  22  43 / 0.10;
  --hairline-soft:  9  22  43 / 0.055;
  --hairline-hard:  9  22  43 / 0.16;

  --maxw: 1400px;

  /* Type — controllable via Tweaks */
  --font-display: 'Hanken Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-accent: 'Hanken Grotesk', 'Inter', system-ui, sans-serif;
  --display-tracking: -0.035em;
}

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

html { scroll-behavior: smooth; background: rgb(var(--paper)); color: rgb(var(--ink)); -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: rgb(var(--paper));
  color: rgb(var(--ink));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Subtle paper grain */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: rgb(var(--clay) / 0.24); color: rgb(var(--ink-deep)); }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
@media (min-width: 768px) { .wrap { padding: 0 48px; } }
@media (min-width: 1200px) { .wrap { padding: 0 64px; } }

.wrap-narrow { max-width: 920px; margin: 0 auto; padding: 0 28px; }
@media (min-width: 768px) { .wrap-narrow { padding: 0 48px; } }

.rule { height: 1px; background: rgb(var(--hairline)); border: none; }
.rule-soft { height: 1px; background: rgb(var(--hairline-soft)); }
.rule-hard { height: 1px; background: rgb(var(--hairline-hard)); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.font-serif {
  font-family: var(--font-display);
  font-feature-settings: 'ss01' on, 'ss02' on, 'liga' on, 'dlig' on;
}
.font-mono { font-family: 'JetBrains Mono', monospace; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgb(var(--ink-mute));
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: rgb(var(--clay));
}
.eyebrow-center { justify-content: center; }
.eyebrow-center::before { display: none; }
.eyebrow-center::after {
  content: ''; margin-left: 4px;
  display: inline-block; width: 24px; height: 1px;
  background: rgb(var(--clay));
}

.chapter {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgb(var(--ink-mute));
  font-variation-settings: 'opsz' 36;
}
.chapter strong {
  font-weight: 400;
  color: rgb(var(--clay-deep));
}

.display {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: var(--display-tracking);
  font-variation-settings: 'opsz' 144;
  font-weight: 600;
  color: rgb(var(--ink));
}
.display em, .display .it {
  font-style: normal;
  font-weight: 600;
  color: rgb(var(--clay));
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-variation-settings: 'opsz' 96;
  font-weight: 600;
}
.display-md em, .display-md .it {
  font-style: normal;
  font-weight: 600;
  color: rgb(var(--clay));
}

.display-sm {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 72;
  font-weight: 600;
}
.display-sm em, .display-sm .it {
  font-style: normal;
  font-weight: 600;
  color: rgb(var(--clay));
}

.lead {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.45;
  color: rgb(var(--ink-soft));
  font-weight: 400;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 36;
}
.lead em { font-style: normal; font-weight: 600; color: rgb(var(--clay)); }

.num-display {
  font-family: var(--font-display);
  font-feature-settings: 'tnum' on, 'ss01' on;
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-variation-settings: 'opsz' 144;
  color: rgb(var(--ink));
}
.num-display em {
  font-style: normal;
  font-weight: 600;
  color: rgb(var(--clay));
}

.kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgb(var(--ink-mute));
}

/* ============================================================
   LINKS
   ============================================================ */
.link-line {
  position: relative;
  display: inline-block;
  background-image: linear-gradient(to right, currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.link-line:hover { color: rgb(var(--clay-deep)); }

.link-underline {
  position: relative;
  display: inline-block;
  background-image: linear-gradient(to right, currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  padding-bottom: 2px;
  transition: background-size 0.45s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s;
}
.link-underline:hover { background-size: 100% 1px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  line-height: 1;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: rgb(var(--ink));
  color: rgb(var(--paper));
  box-shadow: inset 0 0 0 1px rgb(var(--ink));
}
.btn-primary:hover {
  background: rgb(var(--ink-deep));
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgb(var(--ink-deep)), 0 18px 40px -20px rgb(var(--ink) / 0.5);
}
.btn-accent {
  background: rgb(var(--clay));
  color: white;
  box-shadow: inset 0 0 0 1px rgb(var(--clay));
}
.btn-accent:hover {
  background: rgb(var(--clay-deep));
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgb(var(--clay-deep)), 0 18px 40px -20px rgb(var(--clay) / 0.6);
}
.btn-outline {
  background: transparent;
  color: rgb(var(--ink));
  box-shadow: inset 0 0 0 1px rgb(var(--hairline-hard));
}
.btn-outline:hover {
  background: rgb(var(--ink));
  color: rgb(var(--paper));
  box-shadow: inset 0 0 0 1px rgb(var(--ink));
}
.btn-ghost {
  background: transparent;
  color: rgb(var(--ink));
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: rgb(var(--clay-deep)); }

.btn .arr {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover .arr { transform: translateX(4px); }
.btn-lg { padding: 18px 28px; font-size: 14.5px; }

/* ============================================================
   CHIPS
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  background: rgb(var(--paper-soft));
  color: rgb(var(--ink-soft));
  box-shadow: inset 0 0 0 1px rgb(var(--hairline-hard));
}
.chip-clay {
  background: rgb(var(--clay-wash));
  color: rgb(var(--clay-deep));
  box-shadow: inset 0 0 0 1px rgb(var(--clay) / 0.22);
}
.chip-ink {
  background: rgb(var(--ink));
  color: rgb(var(--paper));
  box-shadow: none;
}
.chip-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgb(var(--clay));
}
.chip-dot.is-sage::before { background: rgb(var(--sage)); }

/* ============================================================
   HEADER (nav)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgb(var(--paper) / 0.78);
  border-bottom: 1px solid rgb(var(--hairline-soft));
}
.site-header.is-scrolled { border-bottom-color: rgb(var(--hairline)); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: rgb(var(--ink));
}
.brand .mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgb(var(--ink));
  color: rgb(var(--paper));
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.brand .mark::after {
  content: '';
  position: absolute;
  bottom: 1px; right: 1px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgb(var(--clay));
}
.brand .word { letter-spacing: 0.04em; text-transform: uppercase; font-size: 15px; white-space: nowrap; }

.nav-links {
  display: none;
  align-items: center;
  gap: 30px;
}
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 13.5px;
  color: rgb(var(--ink-soft));
  letter-spacing: -0.005em;
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover { color: rgb(var(--ink)); }
.nav-links a.is-active { color: rgb(var(--ink)); }
.nav-links a.is-active::after {
  content: '';
  position: absolute;
  bottom: -22px; left: 0; right: 0;
  height: 2px;
  background: rgb(var(--clay));
}

.nav-cta { display: flex; align-items: center; gap: 14px; }
.area-login-link {
  color: rgb(var(--ink-soft));
}
.area-login-link:hover {
  color: rgb(var(--clay-deep));
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgb(var(--hairline-hard));
  background: transparent;
}
@media (min-width: 960px) { .nav-toggle { display: none; } }

.nav-toggle svg { width: 16px; height: 16px; }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 72px 0 0 0;
  background: rgb(var(--paper));
  z-index: 99;
  padding: 40px 28px;
  transform: translateY(-110%);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, visibility 0s linear 0.45s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}
.mobile-menu.is-open {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, visibility 0s linear 0s;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.025em;
  padding: 14px 0;
  border-bottom: 1px solid rgb(var(--hairline-soft));
  color: rgb(var(--ink));
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.mobile-menu a .n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgb(var(--ink-mute));
}
.mobile-menu a em { font-style: normal; font-weight: 600; color: rgb(var(--clay)); }
@media (min-width: 960px) { .mobile-menu { display: none; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: rgb(var(--ink));
  color: rgb(var(--paper));
  padding: 90px 0 40px;
  margin-top: 100px;
  position: relative;
  overflow: hidden;
}
.site-footer .display-md { color: rgb(var(--paper)); }
.site-footer a { color: rgb(var(--paper) / 0.7); transition: color 0.2s; }
.site-footer a:hover { color: rgb(var(--clay-soft)); }

.footer-mono {
  position: absolute;
  inset: auto 0 -50px 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(11rem, 24vw, 22rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: rgb(var(--paper) / 0.06);
  font-variation-settings: 'opsz' 144;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  padding-bottom: 70px;
  border-bottom: 1px solid rgb(var(--paper) / 0.1);
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgb(var(--paper) / 0.4);
  margin-bottom: 22px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col li { font-size: 14px; }

.footer-bot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  gap: 20px;
  font-size: 12px;
  color: rgb(var(--paper) / 0.5);
  position: relative;
  z-index: 1;
}
.footer-bot .legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: rgb(var(--paper-soft));
  border-radius: 18px;
  padding: 32px;
  box-shadow: inset 0 0 0 1px rgb(var(--hairline));
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover {
  box-shadow: inset 0 0 0 1px rgb(var(--hairline-hard));
  transform: translateY(-3px);
}
.card-dark {
  background: rgb(var(--ink));
  color: rgb(var(--paper));
  border-radius: 22px;
}
.card-clay {
  background: rgb(var(--clay-wash));
  box-shadow: inset 0 0 0 1px rgb(var(--clay) / 0.22);
}

/* ============================================================
   PHOTO PLACEHOLDERS
   ============================================================ */
.photo {
  position: relative;
  background: rgb(var(--ash));
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
}
.photo::before {
  /* subtle diagonal stripes so the placeholder reads as 'photo to come' */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      135deg,
      rgb(var(--ink) / 0.04) 0 12px,
      transparent 12px 24px
    );
}
.photo::after {
  /* warm haze */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgb(var(--clay) / 0.18), transparent 60%),
              radial-gradient(ellipse at 80% 90%, rgb(var(--sage) / 0.12), transparent 65%);
}
.photo .label {
  position: absolute;
  inset: auto 0 14px 0;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(var(--ink-mute));
  z-index: 2;
}
.photo .photo-num {
  position: absolute;
  top: 14px; left: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(var(--ink-mute));
  z-index: 2;
}
.photo.tall { aspect-ratio: 3/4; }
.photo.wide { aspect-ratio: 16/9; }
.photo.square { aspect-ratio: 1/1; }
.photo.pano { aspect-ratio: 21/9; }
.photo.portrait { aspect-ratio: 4/5; }

/* sky variant: warm sunset gradient */
.photo.sky::after {
  background:
    linear-gradient(180deg,
      rgb(219 234 254) 0%,
      rgb(147 197 253) 28%,
      rgb(59 130 246) 56%,
      rgb(30 60 140) 82%,
      rgb(10 24 56) 100%);
}
.photo.sky::before {
  background-image: none;
  background: radial-gradient(circle at 75% 32%, rgb(255 255 255 / 0.5), transparent 32%);
  z-index: 1;
}

/* sea variant */
.photo.sea::after {
  background:
    linear-gradient(180deg,
      rgb(191 214 255) 0%,
      rgb(90 134 220) 52%,
      rgb(18 40 88) 100%);
}
.photo.sea::before {
  background-image:
    repeating-linear-gradient(
      0deg,
      rgb(255 255 255 / 0.08) 0 2px,
      transparent 2px 14px
    );
}

/* paper variant: subtle cream */
.photo.cream::after {
  background:
    radial-gradient(ellipse at 30% 30%, rgb(var(--clay-wash)) 0%, rgb(var(--paper-soft)) 60%);
}
.photo.cream::before {
  opacity: 0.5;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgb(var(--hairline));
  border-bottom: 1px solid rgb(var(--hairline));
  padding: 26px 0;
  background: rgb(var(--paper));
}
.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: rgb(var(--ink));
  white-space: nowrap;
  font-variation-settings: 'opsz' 72;
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.marquee-item em {
  font-style: normal;
  font-weight: 600;
  color: rgb(var(--clay-deep));
  
}
.marquee-item::after {
  content: '✦';
  color: rgb(var(--clay));
  font-size: 0.7em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-row {
  border-top: 1px solid rgb(var(--hairline));
}
.faq-row:last-child { border-bottom: 1px solid rgb(var(--hairline)); }
.faq-trigger {
  display: grid;
  grid-template-columns: 60px 1fr 36px;
  align-items: baseline;
  gap: 24px;
  width: 100%;
  padding: 28px 0;
  text-align: left;
  cursor: pointer;
}
.faq-trigger .num {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgb(var(--ink-mute));
  font-variation-settings: 'opsz' 36;
}
.faq-trigger .q {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.22;
  letter-spacing: -0.018em;
  color: rgb(var(--ink));
  font-variation-settings: 'opsz' 72;
  font-weight: 400;
}
.faq-trigger .ic {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgb(var(--hairline-hard));
  transition: all 0.3s ease;
}
.faq-row[open] .faq-trigger .num { color: rgb(var(--clay-deep)); }
.faq-row[open] .faq-trigger .ic {
  background: rgb(var(--ink));
  color: rgb(var(--paper));
  transform: rotate(45deg);
  box-shadow: inset 0 0 0 1px rgb(var(--ink));
}
.faq-body {
  display: grid;
  grid-template-columns: 60px 1fr 36px;
  gap: 24px;
  padding-bottom: 32px;
}
.faq-body p {
  grid-column: 2;
  max-width: 64ch;
  font-size: 16px;
  line-height: 1.7;
  color: rgb(var(--ink-soft));
}

/* ============================================================
   PROSE
   ============================================================ */
.prose {
  color: rgb(var(--ink-soft));
  font-size: 17px;
  line-height: 1.78;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.018em;
  margin-top: 3rem;
  margin-bottom: 0.4em;
  color: rgb(var(--ink));
  font-variation-settings: 'opsz' 60;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.3;
  margin-top: 2.4rem;
  margin-bottom: 0.3em;
  color: rgb(var(--ink));
}
.prose strong { color: rgb(var(--ink)); font-weight: 500; }
.prose blockquote {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.45;
  color: rgb(var(--ink));
  border-left: 2px solid rgb(var(--clay));
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-variation-settings: 'opsz' 60;
}

/* ============================================================
   FORM
   ============================================================ */
.field-label {
  display: block;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgb(var(--ink-mute));
  margin-bottom: 10px;
}
.field-label .req { color: rgb(var(--clay-deep)); }
.field-input, .field-select, .field-textarea {
  width: 100%;
  padding: 16px 18px;
  font-size: 15px;
  background: rgb(var(--paper-soft));
  box-shadow: inset 0 0 0 1px rgb(var(--hairline-hard));
  border-radius: 14px;
  color: rgb(var(--ink));
  transition: all 0.25s ease;
  border: none;
  outline: none;
  font-family: inherit;
}
.field-input::placeholder, .field-textarea::placeholder { color: rgb(var(--ink-faint)); }
.field-input:focus, .field-select:focus, .field-textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 1.5px rgb(var(--clay)), 0 0 0 4px rgb(var(--clay) / 0.12);
  background: rgb(var(--paper));
}
.field-textarea { min-height: 150px; resize: vertical; line-height: 1.6; }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal][data-delay="100"] { transition-delay: 100ms; }
[data-reveal][data-delay="200"] { transition-delay: 200ms; }
[data-reveal][data-delay="300"] { transition-delay: 300ms; }
[data-reveal][data-delay="400"] { transition-delay: 400ms; }

/* ============================================================
   STATS / SPOTLIGHT
   ============================================================ */
.stat {
  border-top: 1px solid rgb(var(--hairline));
  padding-top: 22px;
}
.stat .num {
  font-family: var(--font-display);
  font-feature-settings: 'tnum' on, 'ss01' on;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-variation-settings: 'opsz' 120;
  color: rgb(var(--ink));
}
.stat .num em {
  font-style: normal;
  font-weight: 600;
  color: rgb(var(--clay));
  font-variation-settings: 'opsz' 120;
}
.stat .lbl {
  margin-top: 12px;
  font-size: 13px;
  color: rgb(var(--ink-mute));
  line-height: 1.5;
  max-width: 22ch;
}

/* ============================================================
   SECTION HELPERS
   ============================================================ */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section-lg { padding: 140px 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 70px;
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; }
}
.section-head .ldn { max-width: 48ch; }

/* Asymmetric editorial grid */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
}
@media (max-width: 800px) {
  .grid-12 { grid-template-columns: 1fr; gap: 24px; }
  .grid-12 > * { grid-column: 1 / -1 !important; }
}

/* Hero glow */
.glow-hero {
  position: absolute;
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--clay) / 0.14), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   COOKIE / MINI
   ============================================================ */
.cookie-bar {
  position: fixed;
  bottom: 24px; left: 24px; right: 24px;
  max-width: 760px;
  margin: 0 auto;
  background: rgb(var(--ink));
  color: rgb(var(--paper));
  padding: 22px 26px;
  border-radius: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  z-index: 200;
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 0 24px 60px -20px rgb(var(--ink) / 0.4);
}
.cookie-bar.is-hidden { display: none; }
.cookie-bar p { flex: 1 1 280px; }
.cookie-bar a { color: rgb(var(--clay-soft)); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cookie-bar .actions { display: flex; gap: 10px; }
.cookie-bar .btn { padding: 10px 16px; font-size: 13px; }
.cookie-bar .btn-paper { background: rgb(var(--paper)); color: rgb(var(--ink)); }
.cookie-bar .btn-paper:hover { background: rgb(var(--paper-deep)); }
.cookie-bar .btn-cookie-ghost { background: transparent; color: rgb(var(--paper)); box-shadow: inset 0 0 0 1px rgb(var(--paper) / 0.25); }
.cookie-bar .btn-cookie-ghost:hover { background: rgb(var(--paper) / 0.06); }

/* ============================================================
   TIMELINE / PROCESS
   ============================================================ */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr; } }
.timeline-step {
  position: relative;
  padding: 36px 28px 36px 0;
  border-top: 1px solid rgb(var(--hairline));
}
.timeline-step:not(:last-child) { border-right: 1px solid rgb(var(--hairline)); }
@media (max-width: 900px) {
  .timeline-step { border-right: none !important; padding-right: 0; }
}
.timeline-step .dot {
  position: absolute;
  top: -5px; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgb(var(--clay));
}
.timeline-step .n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgb(var(--ink-mute));
}
.timeline-step h4 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 18px;
  color: rgb(var(--ink));
  font-variation-settings: 'opsz' 72;
  font-weight: 400;
}
.timeline-step h4 em { font-style: normal; font-weight: 600; color: rgb(var(--clay)); }
.timeline-step p {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgb(var(--ink-soft));
  max-width: 32ch;
}

/* ============================================================
   ARTICLE / BLOG CARD
   ============================================================ */
.article-card {
  display: block;
  position: relative;
  padding: 0;
  border-top: 1px solid rgb(var(--hairline));
  padding-top: 28px;
  padding-bottom: 28px;
  transition: padding 0.35s ease;
}
.article-card:hover { padding-left: 8px; padding-right: 8px; }
.article-card:last-child { border-bottom: 1px solid rgb(var(--hairline)); }
.article-card .meta {
  display: flex;
  gap: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgb(var(--ink-mute));
  margin-bottom: 14px;
}
.article-card .meta .cat { color: rgb(var(--clay-deep)); }
.article-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 96;
  font-weight: 400;
  max-width: 24ch;
  transition: color 0.25s ease;
}
.article-card:hover h3 { color: rgb(var(--clay-deep)); }
.article-card .arrow {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%) translateX(-12px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--font-display);
  font-style: normal;
  font-size: 30px;
  color: rgb(var(--clay));
}
.article-card:hover .arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ============================================================
   UTILITY
   ============================================================ */
.txt-c { text-align: center; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-10 { gap: 40px; }
.mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; } .mt-16 { margin-top: 64px; } .mt-20 { margin-top: 80px; }
.mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; } .mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.text-ink { color: rgb(var(--ink)); }
.text-ink-soft { color: rgb(var(--ink-soft)); }
.text-ink-mute { color: rgb(var(--ink-mute)); }
.text-ink-faint { color: rgb(var(--ink-faint)); }
.text-clay { color: rgb(var(--clay)); }
.text-clay-deep { color: rgb(var(--clay-deep)); }
.text-paper { color: rgb(var(--paper)); }
.bg-paper { background: rgb(var(--paper)); }
.bg-paper-soft { background: rgb(var(--paper-soft)); }
.bg-paper-deep { background: rgb(var(--paper-deep)); }
.bg-ash { background: rgb(var(--ash)); }
.bg-ink { background: rgb(var(--ink)); }
.bg-clay-wash { background: rgb(var(--clay-wash)); }

.col-12 { grid-column: span 12; }
.col-11 { grid-column: span 11; }
.col-10 { grid-column: span 10; }
.col-9  { grid-column: span 9; }
.col-8  { grid-column: span 8; }
.col-7  { grid-column: span 7; }
.col-6  { grid-column: span 6; }
.col-5  { grid-column: span 5; }
.col-4  { grid-column: span 4; }
.col-3  { grid-column: span 3; }
.col-2  { grid-column: span 2; }

.start-2 { grid-column-start: 2; }
.start-3 { grid-column-start: 3; }
.start-4 { grid-column-start: 4; }
.start-5 { grid-column-start: 5; }
.start-6 { grid-column-start: 6; }
.start-7 { grid-column-start: 7; }
.start-8 { grid-column-start: 8; }

@media (min-width: 800px) {
  .md-flex { display: flex; }
}


/* ============================================================
   TWEAKS PANEL
   ============================================================ */
.tweaks-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 360px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 40px);
  background: rgb(var(--paper));
  color: rgb(var(--ink));
  border-radius: 18px;
  box-shadow:
    0 30px 80px -20px rgb(var(--ink) / 0.35),
    0 0 0 1px rgb(var(--hairline-hard));
  z-index: 500;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--font-body);
}
.tweaks-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.tp-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 22px 22px 18px;
  border-bottom: 1px solid rgb(var(--hairline));
}
.tp-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgb(var(--ink-mute));
  margin-bottom: 6px;
}
.tp-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: rgb(var(--ink));
}
.tp-it {
  font-style: italic;
  color: rgb(var(--clay-deep));
}
.tp-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgb(var(--ink));
  box-shadow: inset 0 0 0 1px rgb(var(--hairline-hard));
  transition: all 0.2s;
  flex-shrink: 0;
}
.tp-close:hover {
  background: rgb(var(--ink));
  color: rgb(var(--paper));
}

.tp-section {
  padding: 20px 22px;
  border-bottom: 1px solid rgb(var(--hairline));
}
.tp-section:last-of-type { border-bottom: none; }

.tp-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgb(var(--ink-mute));
  margin-bottom: 14px;
}

.tp-fonts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tp-font {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: transparent;
  color: rgb(var(--ink));
  box-shadow: inset 0 0 0 1px rgb(var(--hairline));
  text-align: left;
  transition: all 0.2s;
  cursor: pointer;
}
.tp-font:hover { box-shadow: inset 0 0 0 1px rgb(var(--hairline-hard)); background: rgb(var(--paper-soft)); }
.tp-font.is-active {
  background: rgb(var(--ink));
  color: rgb(var(--paper));
  box-shadow: inset 0 0 0 1px rgb(var(--ink));
}
.tp-font-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-body);
}
.tp-font-note {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgb(var(--ink-mute));
  grid-column: 1;
  grid-row: 2;
  margin-top: 2px;
}
.tp-font.is-active .tp-font-note { color: rgb(var(--paper) / 0.55); }
.tp-font-preview {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 22px;
  line-height: 1;
  align-self: center;
  letter-spacing: -0.02em;
}
.tp-font-preview em {
  font-style: italic;
  color: rgb(var(--clay-deep));
}
.tp-font.is-active .tp-font-preview em { color: rgb(var(--clay-soft)); }

.tp-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: rgb(var(--paper-soft));
  box-shadow: inset 0 0 0 1px rgb(var(--hairline));
}

.tp-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.tp-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 4px;
  border-radius: 10px;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgb(var(--hairline));
  cursor: pointer;
  transition: all 0.2s;
}
.tp-swatch:hover { box-shadow: inset 0 0 0 1px rgb(var(--hairline-hard)); }
.tp-swatch.is-active { box-shadow: inset 0 0 0 2px rgb(var(--ink)); }
.tp-swatch-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08);
}
.tp-swatch-name {
  font-size: 10.5px;
  font-weight: 500;
  font-family: var(--font-body);
  color: rgb(var(--ink-soft));
  letter-spacing: -0.01em;
}
.tp-swatch.is-active .tp-swatch-name { color: rgb(var(--ink)); }

.tp-seg {
  padding: 9px 6px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  font-family: var(--font-body);
  color: rgb(var(--ink-soft));
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.tp-seg:hover { color: rgb(var(--ink)); }
.tp-seg.is-active {
  background: rgb(var(--ink));
  color: rgb(var(--paper));
}

.tp-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  border-top: 1px solid rgb(var(--hairline));
  background: rgb(var(--paper-soft));
  border-radius: 0 0 18px 18px;
}
.tp-hint {
  font-size: 11.5px;
  color: rgb(var(--ink-mute));
}
.tp-reset {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgb(var(--ink));
  background: transparent;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s;
}
.tp-reset:hover { color: rgb(var(--clay-deep)); }

@media (max-width: 520px) {
  .tweaks-panel { right: 12px; bottom: 12px; left: 12px; width: auto; }
}


/* ============================================================
   SECTORS
   ============================================================ */
.sector {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px;
  border-radius: 16px;
  background: rgb(var(--paper-soft));
  box-shadow: inset 0 0 0 1px rgb(var(--hairline));
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  height: 100%;
}
.sector:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px rgb(var(--hairline-hard)), 0 22px 44px -28px rgb(var(--ink) / 0.4);
}
.sector .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgb(var(--clay-wash));
  color: rgb(var(--clay-deep));
  display: inline-flex; align-items: center; justify-content: center;
}
.sector h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: rgb(var(--ink));
}
.sector p {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgb(var(--ink-soft));
}
.sector .tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgb(var(--clay-deep));
  margin-top: auto;
  padding-top: 8px;
}

/* ============================================================
   GUIDE / ARTICLE
   ============================================================ */
.guide-hero {
  padding: 72px 0 48px;
  position: relative;
  overflow: hidden;
}
.guide-meta-row {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgb(var(--ink-mute));
}
.guide-meta-row .cat { color: rgb(var(--clay-deep)); }
.guide-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: rgb(var(--ink));
  max-width: 20ch;
  margin-top: 22px;
}
.guide-title em { font-style: normal; color: rgb(var(--clay)); }
.guide-standfirst {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.5;
  color: rgb(var(--ink-soft));
  font-weight: 400;
  letter-spacing: -0.012em;
  max-width: 54ch;
  margin-top: 26px;
}

/* Layout: article + sticky TOC */
.guide-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}
@media (min-width: 1000px) {
  .guide-layout { grid-template-columns: 240px 1fr; }
}
.guide-layout > * { min-width: 0; }
.toc {
  position: sticky;
  top: 100px;
  display: none;
}
@media (min-width: 1000px) { .toc { display: block; } }
.toc .toc-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgb(var(--ink-mute));
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgb(var(--hairline));
}
.toc ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.toc a {
  font-size: 13.5px;
  line-height: 1.4;
  color: rgb(var(--ink-mute));
  transition: color 0.2s;
  display: block;
  padding-left: 14px;
  border-left: 2px solid transparent;
}
.toc a:hover { color: rgb(var(--ink)); }
.toc a.is-active {
  color: rgb(var(--clay-deep));
  border-left-color: rgb(var(--clay));
  font-weight: 500;
}

.guide-body { max-width: 720px; }
.guide-body .prose h2 {
  scroll-margin-top: 96px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  margin-top: 2.8rem;
}
.guide-body .prose h2:first-child { margin-top: 0; }
.guide-body .prose h3 { font-weight: 600; }
.guide-body .prose p,
.guide-body .prose li { font-size: 17px; }

/* Lead paragraph dropcap */
.guide-body .prose > p.lede { font-size: 19px; color: rgb(var(--ink)); }

/* Key-points callout */
.callout {
  background: rgb(var(--clay-wash));
  border-radius: 16px;
  padding: 26px 28px;
  margin: 36px 0;
  box-shadow: inset 0 0 0 1px rgb(var(--clay) / 0.18);
}
.callout .callout-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgb(var(--clay-deep));
  margin-bottom: 14px;
}
.callout ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.callout ul li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.55;
  color: rgb(var(--ink));
  margin: 0;
}
.callout ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 12px;
  border-radius: 3px;
  background: rgb(var(--clay));
}

/* Comparison table inside prose */
.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 14.5px;
}
.guide-table th, .guide-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgb(var(--hairline));
  vertical-align: top;
  line-height: 1.5;
}
.guide-table thead th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgb(var(--ink-mute));
  border-bottom: 2px solid rgb(var(--ink));
}
.guide-table thead th:nth-child(2) { color: rgb(var(--clay-deep)); }
.guide-table tbody td:first-child { font-weight: 500; color: rgb(var(--ink)); }
.guide-table tbody tr:last-child td { border-bottom: none; }

/* Disclaimer box (reuse card-clay pattern but neutral) */
.guide-disclaimer {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgb(var(--paper-deep));
  border-radius: 14px;
  padding: 22px 24px;
  margin: 40px 0 0;
  box-shadow: inset 0 0 0 1px rgb(var(--hairline));
}
.guide-disclaimer .ic { flex-shrink: 0; color: rgb(var(--ink-mute)); margin-top: 2px; }
.guide-disclaimer p { font-size: 13.5px; line-height: 1.6; color: rgb(var(--ink-soft)); margin: 0; }

/* Related guides */
.guide-related a {
  display: block;
  padding: 22px 24px;
  border-radius: 14px;
  background: rgb(var(--paper-soft));
  box-shadow: inset 0 0 0 1px rgb(var(--hairline));
  transition: all 0.3s;
  height: 100%;
}
.guide-related a:hover { box-shadow: inset 0 0 0 1px rgb(var(--hairline-hard)); transform: translateY(-2px); }
.guide-related .cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgb(var(--clay-deep));
}
.guide-related h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.2;
  margin-top: 10px;
  color: rgb(var(--ink));
}

/* ============================================================
   QUIZ
   ============================================================ */
.quiz-shell {
  background: rgb(var(--paper-soft));
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgb(var(--hairline)), 0 30px 70px -40px rgb(var(--ink) / 0.4);
  overflow: hidden;
}
.quiz-progress {
  height: 4px;
  background: rgb(var(--ash));
  position: relative;
}
.quiz-progress .bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: rgb(var(--clay));
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  width: 0;
}
.quiz-inner { padding: clamp(28px, 5vw, 56px); }
.quiz-step { display: none; }
.quiz-step.is-active { display: block; animation: quizIn 0.5s cubic-bezier(0.22,1,0.36,1); }
@keyframes quizIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.quiz-qnum {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgb(var(--clay-deep));
  margin-bottom: 18px;
}
.quiz-q {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: rgb(var(--ink));
  max-width: 22ch;
}
.quiz-options { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.quiz-opt {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 20px 22px;
  border-radius: 14px;
  background: rgb(var(--paper));
  box-shadow: inset 0 0 0 1px rgb(var(--hairline-hard));
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.22,1,0.36,1);
}
.quiz-opt:hover {
  box-shadow: inset 0 0 0 1.5px rgb(var(--clay));
  transform: translateX(4px);
}
.quiz-opt .dot {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgb(var(--hairline-hard));
  transition: all 0.2s;
}
.quiz-opt:hover .dot { box-shadow: inset 0 0 0 6px rgb(var(--clay)); }
.quiz-opt .txt { font-size: 15.5px; line-height: 1.45; color: rgb(var(--ink)); }
.quiz-opt .txt small { display: block; font-size: 13px; color: rgb(var(--ink-mute)); margin-top: 3px; }

.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }
.quiz-back {
  font-size: 13.5px;
  color: rgb(var(--ink-mute));
  background: none;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.quiz-back:hover { color: rgb(var(--ink)); }
.quiz-back:disabled { opacity: 0; pointer-events: none; }

/* Result */
.quiz-result { display: none; }
.quiz-result.is-active { display: block; animation: quizIn 0.6s cubic-bezier(0.22,1,0.36,1); }
.quiz-result .verdict-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgb(var(--clay-deep));
  margin-bottom: 16px;
}
.quiz-result .verdict {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: rgb(var(--ink));
}
.quiz-result .verdict em { font-style: normal; color: rgb(var(--clay)); }
.quiz-meter {
  display: flex;
  gap: 8px;
  margin: 28px 0;
  align-items: center;
}
.quiz-meter .track {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: rgb(var(--ash));
  overflow: hidden;
}
.quiz-meter .fill { height: 100%; background: rgb(var(--clay)); border-radius: 99px; transition: width 0.8s cubic-bezier(0.22,1,0.36,1); }
.quiz-meter .pct { font-family: var(--font-mono); font-size: 12px; color: rgb(var(--ink-mute)); min-width: 80px; }

/* ============================================================
   CLIENT MAILROOM
   ============================================================ */
.mail-app {
  background: rgb(var(--paper-deep));
}
.client-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(var(--paper-soft) / 0.9);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgb(var(--hairline));
}
.client-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.client-account {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.client-company {
  font-size: 13.5px;
  font-weight: 600;
  color: rgb(var(--ink));
}
.client-company { white-space: nowrap; }
.client-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(var(--clay-wash));
  color: rgb(var(--clay-deep));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.client-hero {
  padding: 36px 0 22px;
}
.client-topline,
.client-title-row,
.mail-list-head,
.mail-panel-head,
.mail-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.client-breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgb(var(--ink-mute));
}
.client-title-row {
  align-items: end;
  margin-top: 24px;
}
.client-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.client-title em {
  font-style: normal;
  color: rgb(var(--clay));
}
.client-lead {
  max-width: 58ch;
  margin-top: 18px;
  color: rgb(var(--ink-soft));
  font-size: 16px;
  line-height: 1.65;
}
.client-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.client-workspace {
  padding: 18px 0 90px;
}
.mail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.mail-metric,
.mail-panel,
.mail-list,
.mail-detail .mail-panel {
  background: rgb(var(--paper-soft));
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgb(var(--hairline));
}
.mail-metric {
  padding: 20px;
  min-height: 132px;
}
.mail-metric span,
.mail-field span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgb(var(--ink-mute));
}
.mail-metric strong {
  display: block;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.mail-metric small {
  display: block;
  margin-top: 12px;
  color: rgb(var(--ink-soft));
  font-size: 13px;
}
.mail-metric.is-alert {
  box-shadow: inset 0 0 0 1px rgb(var(--clay) / 0.35);
  background: rgb(var(--clay-wash));
}
.mail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}
.mail-sidebar,
.mail-detail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mail-panel,
.mail-list {
  padding: 22px;
}
.mail-panel-head button {
  color: rgb(var(--clay-deep));
  font-size: 13px;
  font-weight: 600;
}
.mail-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}
.mail-field input,
.mail-field select {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: rgb(var(--paper));
  box-shadow: inset 0 0 0 1px rgb(var(--hairline-hard));
  padding: 0 13px;
  color: rgb(var(--ink));
}
.mail-filter-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}
.mail-filter-group button {
  min-height: 38px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgb(var(--hairline-hard));
  font-size: 13px;
}
.mail-filter-group button.is-active {
  background: rgb(var(--ink));
  color: rgb(var(--paper));
  box-shadow: none;
}
.mail-process ol {
  margin: 18px 0 0 18px;
  color: rgb(var(--ink-soft));
  font-size: 13.5px;
  line-height: 1.6;
}
.mail-process li + li { margin-top: 8px; }
.mail-list h2 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.02em;
}
.mail-safe-note {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgb(var(--paper-deep));
  color: rgb(var(--ink-soft));
  font-size: 12.5px;
  white-space: nowrap;
}
.mail-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgb(var(--hairline));
}
.mail-empty {
  margin-top: 18px;
  padding: 24px;
  border-radius: 12px;
  background: rgb(var(--paper-deep));
  color: rgb(var(--ink-soft));
  font-size: 14px;
  line-height: 1.5;
}
.mail-row:first-of-type { margin-top: 18px; }
.mail-row { cursor: pointer; transition: background 0.18s ease, box-shadow 0.18s ease; }
.mail-row:hover:not(.is-selected) {
  margin-left: -12px;
  margin-right: -12px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 12px;
  border-top-color: transparent;
  background: rgb(var(--paper-deep));
}
.mail-row.is-selected {
  position: relative;
  margin-left: -12px;
  margin-right: -12px;
  padding: 18px 12px 18px 18px;
  border-radius: 12px;
  background: rgb(var(--clay-wash));
  border-top-color: transparent;
  box-shadow: inset 3px 0 0 rgb(var(--clay));
}
.mail-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgb(var(--ink));
  color: rgb(var(--paper));
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}
.mail-row-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.mail-row h3 {
  min-width: 0;
  font-size: 16px;
  line-height: 1.3;
  color: rgb(var(--ink));
}
.mail-row p,
.mail-detail-copy,
.mail-admin-note p {
  margin-top: 6px;
  color: rgb(var(--ink-soft));
  font-size: 13.5px;
  line-height: 1.55;
}
.mail-meta {
  display: flex;
  gap: 5px 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
  color: rgb(var(--ink-mute));
  font-size: 12px;
}
.mail-meta > span { display: inline-flex; align-items: center; white-space: nowrap; }
.mail-conf { font-weight: 600; white-space: nowrap; }
.mail-conf--high { color: rgb(var(--ink-soft)); }
.mail-conf--med { color: #8a6a00; }
.mail-conf--low { color: rgb(var(--clay-deep)); }
.mail-conf--low::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgb(var(--clay));
  margin-left: 6px;
}
.mail-status {
  flex: 0 0 auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mail-status.urgent { background: rgb(var(--clay)); color: white; }
.mail-status.new { background: rgb(var(--clay-wash)); color: rgb(var(--clay-deep)); }
.mail-status.read { background: rgb(var(--paper-deep)); color: rgb(var(--ink-soft)); }
.mail-status.review { background: rgb(255 246 210); color: rgb(132 86 0); }
.mail-preview {
  margin-top: 18px;
  min-height: 240px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgb(var(--paper-deep)), rgb(var(--paper-soft)));
  box-shadow: inset 0 0 0 1px rgb(var(--hairline));
}
.mail-paper {
  width: 72%;
  min-height: 180px;
  padding: 24px;
  background: white;
  box-shadow: 0 18px 45px -28px rgb(var(--ink) / 0.55);
  color: rgb(var(--ink));
}
.mail-paper span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--ink-mute));
}
.mail-paper strong {
  display: block;
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
}
.mail-paper p {
  margin-top: 32px;
  color: rgb(var(--ink-soft));
  font-size: 13px;
  line-height: 1.5;
}
.mail-detail h2 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.025em;
}
.mail-facts {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.mail-facts div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid rgb(var(--hairline-soft));
}
.mail-facts dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--ink-mute));
}
.mail-facts dd {
  color: rgb(var(--ink));
  font-size: 13.5px;
}
.mail-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}
.admin-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.admin-filter-tabs button {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgb(var(--hairline-hard));
  color: rgb(var(--ink-soft));
  font-size: 13px;
}
.admin-filter-tabs button.is-active {
  background: rgb(var(--ink));
  color: rgb(var(--paper));
  box-shadow: none;
}
.admin-client-select {
  margin-top: 22px;
}
.admin-detail .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
@media (max-width: 1180px) {
  .mail-layout { grid-template-columns: 260px minmax(0, 1fr); }
  .mail-detail { grid-column: 1 / -1; }
  .admin-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .client-title-row,
  .client-topline,
  .mail-list-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .client-actions { justify-content: flex-start; }
  .mail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mail-layout { grid-template-columns: 1fr; }
  .mail-safe-note { white-space: normal; }
}
@media (max-width: 560px) {
  .client-nav,
  .client-account {
    align-items: flex-start;
    flex-direction: column;
  }
  .mail-metrics { grid-template-columns: 1fr; }
  .mail-row-title { align-items: flex-start; flex-direction: column; }
  .mail-facts div { grid-template-columns: 1fr; gap: 4px; }
}

/* ============================================================
   DEMO LOGIN
   ============================================================ */
.login-app {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 12%, rgb(var(--clay) / 0.12), transparent 32%),
    linear-gradient(135deg, rgb(var(--paper)), rgb(var(--paper-deep)));
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
}
.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 6vw, 72px);
  background: rgb(var(--paper-soft));
  box-shadow: 1px 0 0 rgb(var(--hairline));
}
.login-copy {
  margin-top: 40px;
}
.login-copy h1 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.login-copy h1 em {
  font-style: normal;
  color: rgb(var(--clay));
}
.login-copy p {
  margin-top: 20px;
  color: rgb(var(--ink-soft));
  font-size: 15.5px;
  line-height: 1.65;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 42px;
}
.login-error {
  display: none;
  color: rgb(var(--clay-deep));
  font-size: 13px;
  line-height: 1.45;
}
.login-error.is-visible {
  display: block;
}
.login-note {
  display: grid;
  gap: 6px;
  margin-top: 42px;
  padding: 18px;
  border-radius: 12px;
  background: rgb(var(--paper-deep));
  color: rgb(var(--ink-soft));
  font-size: 13px;
  line-height: 1.55;
}
.login-note strong {
  color: rgb(var(--ink));
}
.login-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px);
}
.login-showcase {
  width: min(100%, 460px);
}
.login-window {
  border-radius: 18px;
  background: rgb(var(--ink));
  box-shadow: 0 50px 100px -55px rgb(var(--ink) / 0.85), inset 0 0 0 1px rgb(var(--paper) / 0.06);
  overflow: hidden;
}
.login-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid rgb(var(--paper) / 0.1);
}
.login-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgb(var(--paper) / 0.22);
}
.login-window-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(var(--paper) / 0.6);
}
.login-window-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 6px;
}
.login-stat {
  padding: 14px;
  border-radius: 12px;
  background: rgb(var(--paper) / 0.06);
}
.login-stat span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(var(--paper) / 0.55);
}
.login-stat strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: rgb(var(--paper));
}
.login-stat.is-alert {
  background: rgb(var(--clay) / 0.18);
  box-shadow: inset 0 0 0 1px rgb(var(--clay) / 0.4);
}
.login-stat.is-alert strong { color: rgb(var(--clay-soft)); }
.login-doc {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 12px;
  background: rgb(var(--paper) / 0.05);
}
.login-doc.is-muted { opacity: 0.7; }
.login-doc-icon {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgb(var(--paper) / 0.1);
  color: rgb(var(--paper));
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.login-doc-main { min-width: 0; flex: 1; }
.login-doc-main strong {
  display: block;
  font-size: 14px;
  color: rgb(var(--paper));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.login-doc-main small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: rgb(var(--paper) / 0.55);
}
.login-doc-tag {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: rgb(var(--paper) / 0.7);
}
.login-doc-tag.is-warn { color: rgb(var(--clay-soft)); }
.login-showcase-note {
  margin-top: 22px;
  padding-left: 4px;
  color: rgb(var(--ink-soft));
  font-size: 13.5px;
  line-height: 1.6;
}
@media (max-width: 860px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-panel {
    min-height: 100vh;
  }
  .login-preview {
    display: none;
  }
}

/* ============================================================
   PHOTO CARD — editorial image with caption scrim
   ============================================================ */
.photo-card {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  margin: 0;
  background: rgb(var(--ink));
  box-shadow: 0 40px 90px -55px rgb(var(--ink) / 0.8), inset 0 0 0 1px rgb(var(--paper) / 0.06);
}
.photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
a .photo-card:hover img, .photo-card a:hover img { transform: scale(1.04); }
.photo-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 56px 22px 20px;
  background: linear-gradient(to top, rgb(7 17 33 / 0.86), rgb(7 17 33 / 0.4) 55%, transparent);
}
.pc-place {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #fff;
}
.pc-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.7);
  margin-top: 5px;
}
.pc-badge {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.14);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25);
}

/* ============================================================
   FLORIDA MAP — custom brand cartography
   ============================================================ */
.fl-map {
  position: relative;
  background: rgb(var(--ink));
  border-radius: 20px;
  padding: 26px;
  overflow: hidden;
  box-shadow: 0 40px 90px -55px rgb(var(--ink) / 0.8), inset 0 0 0 1px rgb(var(--paper) / 0.05);
}
.fl-map-svg { width: 100%; height: auto; display: block; }
.fl-grid line { stroke: rgb(188 211 255 / 0.1); stroke-width: 1; }
.fl-shape {
  fill: rgb(34 98 240 / 0.08);
  stroke: rgb(34 98 240);
  stroke-width: 2;
  stroke-linejoin: round;
}
@media (prefers-reduced-motion: no-preference) {
  .fl-map.is-visible .fl-shape {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: flDraw 2.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  }
}
@keyframes flDraw { to { stroke-dashoffset: 0; } }
.fl-keys circle { fill: rgb(188 211 255 / 0.7); }
.fl-marker-pulse { fill: rgb(34 98 240 / 0.35); transform-origin: center; animation: flPulse 2.4s ease-out infinite; }
.fl-marker-dot { fill: rgb(34 98 240); stroke: white; stroke-width: 1.5; }
@media (prefers-reduced-motion: reduce) { .fl-marker-pulse { animation: none; } }
@keyframes flPulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }
.fl-marker-label { fill: white; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; }
.fl-marker-coord { fill: rgb(188 211 255 / 0.7); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; }
.fl-corner {
  fill: rgb(188 211 255 / 0.45);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}
.fl-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgb(var(--paper) / 0.12);
}
.fl-cap > div:first-child { flex: 1; min-width: 0; }
.fl-cap .fl-cap-place {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: rgb(var(--paper));
}
.fl-cap .fl-cap-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--paper) / 0.55);
  margin-top: 4px;
}
.fl-cap .fl-cap-badge {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(var(--clay-soft));
  padding: 7px 12px;
  border-radius: 999px;
  background: rgb(34 98 240 / 0.16);
  box-shadow: inset 0 0 0 1px rgb(34 98 240 / 0.35);
}

/* ============================================================
   SEAL — circular brand stamp
   ============================================================ */
.seal { display: block; }
.fl-stamp {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 92px;
  height: 92px;
  z-index: 3;
}
@media (max-width: 600px) { .fl-stamp { width: 68px; height: 68px; top: 14px; right: 14px; } }
.seal-ring-outer { fill: none; stroke: rgb(188 211 255 / 0.5); stroke-width: 1; }
.seal-ring-inner { fill: none; stroke: rgb(188 211 255 / 0.28); stroke-width: 1; }
.seal-text { fill: rgb(188 211 255 / 0.85); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; }
.seal-mono { fill: rgb(188 211 255 / 0.6); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; }
.seal-year { fill: white; font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.seal-rule { stroke: rgb(188 211 255 / 0.4); stroke-width: 1; }
.seal--ink .seal-ring-outer { stroke: rgb(var(--clay) / 0.4); }
.seal--ink .seal-ring-inner { stroke: rgb(var(--clay) / 0.22); }
.seal--ink .seal-text { fill: rgb(var(--clay-deep)); }
.seal--ink .seal-mono { fill: rgb(var(--ink-mute)); }
.seal--ink .seal-year { fill: rgb(var(--ink)); }
.seal--ink .seal-rule { stroke: rgb(var(--clay) / 0.4); }

@media (prefers-reduced-motion: no-preference) {
  .seal--spin .seal-rotor { transform-origin: center; animation: sealSpin 28s linear infinite; }
}
@keyframes sealSpin { to { transform: rotate(360deg); } }

/* ============================================================
   COORDINATE MOTIF — recurring graphic language
   ============================================================ */
.coord-motif {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  background-image:
    repeating-linear-gradient(to right, rgb(var(--ink) / 0.05) 0 1px, transparent 1px 104px),
    repeating-linear-gradient(to bottom, rgb(var(--ink) / 0.05) 0 1px, transparent 1px 104px);
}
.coord-motif--dark {
  background-image:
    repeating-linear-gradient(to right, rgb(var(--paper) / 0.05) 0 1px, transparent 1px 104px),
    repeating-linear-gradient(to bottom, rgb(var(--paper) / 0.05) 0 1px, transparent 1px 104px);
}
.coord-tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgb(var(--ink-faint));
}
.coord-motif--dark .coord-tag { color: rgb(var(--paper) / 0.3); }

/* image-slot brand framing */
image-slot {
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgb(var(--hairline-hard));
  overflow: hidden;
}

/* ============================================================
   MOBILE OPTIMIZATION
   ============================================================ */
/* iOS: usa il viewport dinamico (barra Safari che appare/scompare) */
@supports (min-height: 100svh) {
  .login-app, .login-shell { min-height: 100svh; }
}

@media (max-width: 800px) {
  /* Ritmo verticale più compatto */
  .section { padding: 64px 0; }
  .section-sm { padding: 44px 0; }
  .section-lg { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }

  /* iOS: sotto i 16px Safari zooma al focus dei campi */
  .field-input, .field-select, .field-textarea { font-size: 16px; }

  /* Target tattile ampio per il menu */
  .nav-toggle { width: 44px; height: 44px; }

  /* Quando le colonne si impilano, niente allineamenti a destra orfani */
  .grid-12 > [style*="text-align:right"] { text-align: left !important; }

  /* Le righe flessibili vanno a capo invece di traboccare */
  .flex { flex-wrap: wrap; }

  /* Tabelle (guide + pagine legali): scorrono in orizzontale */
  .guide-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .guide-table thead th, .guide-table tbody td { min-width: 120px; }

  /* Scritta gigante del footer: non deve allargare la pagina */
  .footer-mono { font-size: clamp(5rem, 26vw, 11rem); inset: auto 0 -20px 0; }

  /* Hero interni: meno aria sopra */
  .guide-hero { padding: 48px 0 36px; }
}

@media (max-width: 520px) {
  /* CTA principali a tutta larghezza: più facili da toccare */
  form .btn-lg, .quiz-result .btn-lg { width: 100%; justify-content: center; }

  /* Cookie bar a filo schermo */
  .cookie-bar { left: 12px; right: 12px; bottom: 12px; padding: 18px 20px; }
  .cookie-bar .actions { width: 100%; }
  .cookie-bar .actions .btn { flex: 1; justify-content: center; }

  /* Card e quiz: padding ridotto */
  .card, .card-dark { padding: 26px 22px; }
  .quiz-opt { padding: 16px 16px; }

  /* Didascalie foto più compatte */
  .photo-card figcaption { padding: 44px 16px 16px; }
}

/* Touch: niente hover "appiccicosi" */
@media (hover: none) {
  .mail-row:hover:not(.is-selected) { margin: 0; padding-left: 0; padding-right: 0; background: transparent; border-radius: 0; }
  a .photo-card:hover img { transform: none; }
}
