/* ==========================================================================
   fabiobaglio.com — site styles
   Editorial · institutional · quiet
   ========================================================================== */

/* Tokens
   ---------------------------------------------------------------------- */
:root {
  --navy:        #111A24;
  --black:       #0C0C0C;
  --ivory:       #F6F4EF;
  --grey:        #7E7A73;
  --muted-blue:  #27364D;
  --soft-text:   #B8B1A7;
  --tonal:       #2A2927;
  --line:        rgba(246,244,239,0.14);
  --line-strong: rgba(246,244,239,0.28);
  --line-dark:   rgba(12,12,12,0.10);

  --serif: Georgia, "Times New Roman", "Iowan Old Style", "Apple Garamond", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;

  --max:  1280px;
  --gut:  clamp(20px, 4vw, 56px);
  --rule: 1px solid var(--line);

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* Reset
   ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* Body
   ---------------------------------------------------------------------- */
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ivory);
  background: var(--navy);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
}

body.theme-light {
  color: var(--tonal);
  background: var(--ivory);
}

::selection { background: var(--ivory); color: var(--navy); }
body.theme-light ::selection { background: var(--navy); color: var(--ivory); }

/* Typography
   ---------------------------------------------------------------------- */
.serif { font-family: var(--serif); }
.italic { font-style: italic; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-wrap: balance;
}

.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--soft-text);
}
body.theme-light .label { color: var(--grey); }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--soft-text);
}

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.4;
  color: var(--ivory);
  max-width: 36ch;
  text-wrap: pretty;
}
body.theme-light .lede { color: var(--tonal); }

.body-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--soft-text);
  max-width: 62ch;
  text-wrap: pretty;
}
body.theme-light .body-text { color: var(--grey); }

.tnum { font-variant-numeric: tabular-nums; }

/* Layout
   ---------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--gut);
}

.section {
  padding: clamp(72px, 10vw, 140px) 0;
  border-top: var(--rule);
}
body.theme-light .section { border-top: 1px solid var(--line-dark); }

.section--first { border-top: 0; }

.grid { display: grid; gap: clamp(24px, 4vw, 56px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid--12 { grid-template-columns: repeat(12, minmax(0,1fr)); }

@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--12 { grid-template-columns: repeat(6, minmax(0,1fr)); }
}

/* Section header pattern: index — title — body
   ---------------------------------------------------------------------- */
.sec-head {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: baseline;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.sec-head__no {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--grey);
}
.sec-head__title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.015em;
  max-width: 22ch;
  text-wrap: balance;
}

@media (max-width: 700px) {
  .sec-head { grid-template-columns: 1fr; gap: 14px; }
  .sec-head__no { letter-spacing: 0.25em; }
}

/* Nav
   ---------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--navy) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
body.theme-light .nav { background: color-mix(in srgb, var(--ivory) 80%, transparent); }
body.theme-light .nav.is-scrolled { border-bottom-color: var(--line-dark); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.nav__brand .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ivory); display: inline-block;
}
body.theme-light .nav__brand .dot { background: var(--navy); }
.nav__sig {
  display: block;
  height: 38px;
  width: auto;
  user-select: none;
}
@media (max-width: 500px) {
  .nav__sig { height: 32px; }
}

/* Signature mark used in section closings / footers */
.sig-mark {
  display: block;
  height: 56px;
  width: auto;
  opacity: .9;
}
.sig-mark--small { height: 40px; }

.nav__links {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.nav__links a {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft-text);
  position: relative;
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav__links a:hover, .nav__links a:focus-visible { color: var(--ivory); }
body.theme-light .nav__links a:hover, body.theme-light .nav__links a:focus-visible { color: var(--navy); }
.nav__links a[aria-current="page"] { color: var(--ivory); }
body.theme-light .nav__links a[aria-current="page"] { color: var(--navy); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor; opacity: .5;
}

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav__toggle span {
  width: 22px; height: 1px; background: currentColor; position: relative;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 1px; background: currentColor;
  transition: transform .25s var(--ease);
}
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after  { top:  7px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 800px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed;
    inset: 72px 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 32px var(--gut) 48px;
    background: var(--navy);
    border-top: var(--rule);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  body.theme-light .nav__links { background: var(--ivory); border-top-color: var(--line-dark); }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { font-size: 18px; letter-spacing: 0.06em; padding: 14px 0; width: 100%; border-bottom: var(--rule); }
  body.theme-light .nav__links a { border-bottom-color: var(--line-dark); }
}

/* Buttons
   ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  color: var(--ivory);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover, .btn:focus-visible {
  background: var(--ivory);
  color: var(--navy);
  border-color: var(--ivory);
}
body.theme-light .btn { color: var(--tonal); border-color: rgba(12,12,12,0.18); }
body.theme-light .btn:hover, body.theme-light .btn:focus-visible {
  background: var(--tonal); color: var(--ivory); border-color: var(--tonal);
}
.btn .arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--ghost {
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
  position: relative;
}
.btn--ghost::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 6px;
  height: 1px; background: currentColor; opacity: .5;
  transition: right .35s var(--ease);
}
.btn--ghost:hover { background: transparent; color: var(--ivory); }
.btn--ghost:hover::after { right: 0; }
body.theme-light .btn--ghost:hover { color: var(--tonal); }

/* Hero
   ---------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(64px, 10vw, 140px) 0 clamp(64px, 9vw, 120px);
  border-top: 0;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(20px, 3vw, 40px);
  position: relative;
  z-index: 2;
}
.hero__no {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--grey);
  padding-top: 8px;
}
.hero__eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--soft-text);
  margin-bottom: clamp(28px, 5vw, 48px);
}
.hero__eyebrow .sep { display: inline-block; margin: 0 8px; opacity: .5; }
.hero__title {
  font-family: var(--serif);
  font-size: clamp(40px, 7.6vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-bottom: clamp(24px, 3vw, 36px);
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  color: var(--soft-text);
  font-weight: 400;
}
.hero__sub {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--soft-text);
  max-width: 50ch;
  margin-bottom: 32px;
  text-wrap: pretty;
}
.hero__credit {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: clamp(36px, 5vw, 56px);
  display: inline-flex;
  gap: 12px;
  align-items: center;
}
.hero__credit::before {
  content: ""; width: 28px; height: 1px; background: var(--line-strong);
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 700px) {
  .hero__inner { grid-template-columns: 1fr; gap: 14px; }
  .hero__no { padding-top: 0; }
}

/* Backdrop grid for hero (subtle) */
.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 80%, transparent 100%);
  opacity: .6;
}

/* Status row
   ---------------------------------------------------------------------- */
.status {
  display: grid;
  grid-template-columns: 80px repeat(3, minmax(0,1fr));
  gap: clamp(20px, 3vw, 40px);
  padding: 28px 0;
  border-top: var(--rule);
  border-bottom: var(--rule);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--soft-text);
}
.status__cell .label { display: block; margin-bottom: 8px; color: var(--grey); }
.status__cell strong { color: var(--ivory); font-weight: 400; }
.status__dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #6FB28A; margin-right: 8px; vertical-align: middle;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
@media (max-width: 800px) {
  .status { grid-template-columns: 1fr 1fr; }
  .status__cell:first-child { display: none; }
}

/* Intro / positioning
   ---------------------------------------------------------------------- */
.intro__title {
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: -0.018em;
  max-width: 18ch;
  margin-bottom: 32px;
}
.intro__copy {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--soft-text);
  max-width: 60ch;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

/* Cards: focus / notes
   ---------------------------------------------------------------------- */
.card-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border-top: var(--rule);
}
.card-row .card {
  border-right: var(--rule);
  padding: 36px 28px 36px 0;
  padding-right: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  position: relative;
  transition: background .35s var(--ease);
}
.card-row .card:last-child { border-right: 0; padding-right: 0; }
.card-row .card:not(:last-child) { padding-right: 28px; }
.card-row .card { padding-left: 28px; }
.card-row .card:first-child { padding-left: 0; }
.card-row .card:hover { background: rgba(246,244,239,0.02); }

.card__no {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--grey);
}
.card__title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 26px);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.card__copy {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--soft-text);
}

@media (max-width: 1000px) {
  .card-row { grid-template-columns: repeat(2, 1fr); }
  .card-row .card:nth-child(2) { border-right: 0; padding-right: 0; }
  .card-row .card:nth-child(3) { border-top: var(--rule); padding-left: 0; padding-top: 36px; }
  .card-row .card:nth-child(4) { border-top: var(--rule); padding-top: 36px; }
}
@media (max-width: 600px) {
  .card-row { grid-template-columns: 1fr; }
  .card-row .card { border-right: 0; border-top: var(--rule); padding: 32px 0; min-height: 0; }
  .card-row .card:first-child { border-top: 0; padding-top: 0; }
}

/* Notes
   ---------------------------------------------------------------------- */
.notes-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: var(--rule); }
.note {
  border-right: var(--rule);
  padding: 36px 28px 36px 0;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 320px;
}
.note:first-child { padding-left: 0; }
.note:last-child { border-right: 0; padding-right: 0; }
.note__meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--grey);
  text-transform: uppercase;
}
.note__title {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  flex: 1;
}
.note__abstract {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--soft-text);
}
.note__more {
  margin-top: auto;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--grey);
}
@media (max-width: 900px) {
  .notes-row { grid-template-columns: 1fr; }
  .note { border-right: 0; border-top: var(--rule); padding: 32px 0; }
  .note:first-child { border-top: 0; padding-top: 0; }
}

/* What I look for — large pull quote */
.pull {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.012em;
  max-width: 22ch;
  text-wrap: balance;
}
.pull em { color: var(--soft-text); font-style: italic; }

/* Proximity teaser on home
   ---------------------------------------------------------------------- */
.teaser {
  background: var(--black);
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  padding: clamp(80px, 10vw, 140px) 0;
}
.teaser .label { color: var(--grey); }
.teaser__inner {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: clamp(20px, 3vw, 56px);
  align-items: end;
}
.teaser__title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: 0.18em;
  color: var(--ivory);
}
.teaser__copy {
  font-size: 15px;
  line-height: 1.7;
  color: var(--soft-text);
  max-width: 42ch;
}
.teaser__cta { margin-top: 24px; }
@media (max-width: 800px) {
  .teaser__inner { grid-template-columns: 1fr; }
  .teaser__title { letter-spacing: 0.12em; }
}

/* Contact
   ---------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } }
.contact__list { display: flex; flex-direction: column; gap: 20px; margin-top: 12px; }
.contact__row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 20px;
  padding: 20px 0;
  border-top: var(--rule);
  align-items: center;
}
.contact__row:last-child { border-bottom: var(--rule); }
.contact__row .label { padding-top: 0; }
.contact__row a {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.005em;
  transition: color .25s var(--ease);
}
.contact__row a:hover { color: var(--soft-text); }
.contact__row .small {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--grey);
}

/* Footer
   ---------------------------------------------------------------------- */
.foot {
  border-top: var(--rule);
  padding: 40px 0 56px;
  font-size: 12px;
  color: var(--grey);
  letter-spacing: 0.02em;
}
.foot__top {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: clamp(20px, 3vw, 56px);
  align-items: start;
  padding-bottom: 28px;
}
.foot__disclaimer {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--soft-text);
  max-width: 70ch;
}
.foot__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px;
  border-top: var(--rule);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
@media (max-width: 700px) {
  .foot__top { grid-template-columns: 1fr; }
  .foot__bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ==========================================================================
   PROXIMITY (light theme)
   ========================================================================== */

body.theme-light {
  color: var(--tonal);
  background: var(--ivory);
}

.prox-hero {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0 clamp(64px, 9vw, 120px);
  border-top: 0;
  overflow: hidden;
}
.prox-hero__inner {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(20px, 3vw, 40px);
  position: relative;
}
.prox-hero__no { font-size: 11px; letter-spacing: 0.3em; color: var(--grey); padding-top: 8px; }
.prox-hero__eyebrow {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--grey);
  margin-bottom: clamp(40px, 6vw, 64px);
}
.prox-hero__lockup {
  font-family: var(--serif);
  font-size: clamp(48px, 11vw, 140px);
  letter-spacing: clamp(8px, 1.2vw, 18px);
  line-height: 1;
  color: var(--tonal);
  margin-bottom: 22px;
}
.prox-hero__divider {
  width: clamp(120px, 22vw, 240px);
  height: 1px;
  background: var(--tonal);
  opacity: .3;
  margin: 16px 0 18px;
}
.prox-hero__descriptor {
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.prox-hero__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.4;
  color: var(--tonal);
  max-width: 28ch;
  margin-bottom: 18px;
}
.prox-hero__micro {
  font-size: 13px; color: var(--grey); margin-bottom: clamp(36px, 5vw, 56px);
}
.prox-hero__motto {
  position: absolute;
  right: var(--gut); top: 100px;
  font-size: 11px; letter-spacing: 0.3em; color: var(--grey);
  text-align: right;
}
.prox-hero__motto strong { display: block; color: var(--tonal); font-weight: 400; font-family: var(--serif); font-style: italic; font-size: 13px; letter-spacing: 0.18em; margin-top: 6px; }
@media (max-width: 700px) {
  .prox-hero__inner { grid-template-columns: 1fr; }
  .prox-hero__motto { display: none; }
  .prox-hero__lockup { letter-spacing: 6px; }
}

/* Brand idea quote */
.brand-idea {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 22ch;
  color: var(--tonal);
  text-wrap: balance;
}

/* Principles list */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line-dark); }
.principle {
  padding: 28px 24px 28px 0;
  padding-left: 24px;
  border-right: 1px solid var(--line-dark);
}
.principle:first-child { padding-left: 0; }
.principle:last-child { border-right: 0; padding-right: 0; }
.principle__no { font-size: 11px; letter-spacing: 0.3em; color: var(--grey); display: block; margin-bottom: 8px; }
.principle__name { font-family: var(--serif); font-size: 22px; letter-spacing: -0.005em; }
@media (max-width: 800px) {
  .principles { grid-template-columns: 1fr; }
  .principle { border-right: 0; border-top: 1px solid var(--line-dark); padding: 22px 0; }
  .principle:first-child { border-top: 0; }
}

/* Capsule grid + product cards
   ---------------------------------------------------------------------- */
.capsule { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2vw, 32px); }
@media (max-width: 1000px) { .capsule { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .capsule { grid-template-columns: 1fr; gap: 32px; } }

.product {
  display: flex; flex-direction: column; gap: 18px;
}
.product__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--garment);
  border: 1px solid var(--line-dark);
  overflow: hidden;
}
.product__visual--white { --garment: #F6F4EF; --ink: rgba(42,41,39,0.55); border-color: rgba(42,41,39,0.10); }
.product__visual--grey  { --garment: #7E7A73; --ink: rgba(42,41,39,0.55); border-color: rgba(42,41,39,0.06); }
.product__visual--blue  { --garment: #27364D; --ink: rgba(184,177,167,0.50); border-color: rgba(255,255,255,0.06); }
.product__visual--black { --garment: #0C0C0C; --ink: rgba(184,177,167,0.30); border-color: rgba(255,255,255,0.06); }

/* Garment silhouette via inset shape */
.product__visual::before {
  content: "";
  position: absolute;
  inset: 14% 18% 0 18%;
  border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  border-bottom: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--garment) 95%, #000 5%), var(--garment) 30%);
}

/* Hood for hoodie */
.product__visual--black::before {
  inset: 22% 14% 0 14%;
}
.product__visual--black::after {
  content: "";
  position: absolute;
  top: 12%;
  left: 38%;
  right: 38%;
  height: 10%;
  border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* Tiny chest mark */
.product__chest {
  position: absolute;
  top: 22%;
  left: 26%;
  font-family: var(--serif);
  font-size: 6px;
  letter-spacing: 1.2px;
  color: var(--ink);
  text-align: left;
  line-height: 1.2;
  opacity: .85;
}
.product__chest small { font-family: var(--sans); font-size: 4px; letter-spacing: 0.8px; display: block; }

/* Hem mark — bottom right */
.product__hem {
  position: absolute;
  bottom: 6%;
  right: 22%;
  font-family: var(--serif);
  font-style: italic;
  font-size: 5px;
  letter-spacing: 0.8px;
  color: var(--ink);
}

/* Back-neck date */
.product__neck {
  position: absolute;
  top: 16%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 5px;
  letter-spacing: 1px;
  color: var(--ink);
  opacity: .7;
}

.product__meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line-dark);
}
.product__no { font-size: 11px; letter-spacing: 0.24em; color: var(--grey); text-transform: uppercase; }
.product__name { font-family: var(--serif); font-size: 18px; line-height: 1.3; grid-column: 1 / -1; }
.product__details { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--grey); }
.product__details li::before { content: "·"; margin-right: 8px; }
.product__cta { margin-top: 4px; }

/* Waitlist
   ---------------------------------------------------------------------- */
.waitlist {
  background: var(--tonal);
  color: var(--ivory);
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative;
}
.waitlist .label, .waitlist .sec-head__no { color: rgba(246,244,239,0.5); }
.waitlist .sec-head__title { color: var(--ivory); }
.waitlist__sub { color: var(--soft-text); max-width: 52ch; }

.form {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  gap: 0;
  max-width: 720px;
  border: 1px solid rgba(246,244,239,0.16);
  background: rgba(246,244,239,0.02);
}
.field { display: grid; gap: 8px; padding: 22px 24px; border-bottom: 1px solid rgba(246,244,239,0.10); }
.field:last-of-type { border-bottom: 0; }
.field__label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(246,244,239,0.55);
}
.field__label .opt { color: var(--grey); margin-left: 6px; font-size: 10px; }
.field input, .field select {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  padding: 4px 0;
  outline: none;
  width: 100%;
}
.field input::placeholder { color: rgba(246,244,239,0.35); }
.field select option { background: var(--tonal); color: var(--ivory); }
.field:focus-within .field__label { color: var(--ivory); }

.form__actions {
  padding: 22px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border-top: 1px solid rgba(246,244,239,0.10);
  flex-wrap: wrap;
}
.form__micro { font-size: 11px; color: rgba(246,244,239,0.45); letter-spacing: 0.04em; }
.btn--solid {
  background: var(--ivory); color: var(--tonal); border-color: var(--ivory);
}
.btn--solid:hover, .btn--solid:focus-visible { background: transparent; color: var(--ivory); border-color: var(--ivory); }

/* Placement system */
.placement { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.placement__cell {
  padding: 36px 28px 36px 0;
  padding-left: 28px;
  border-right: 1px solid var(--line-dark);
  display: flex; flex-direction: column; gap: 16px;
}
.placement__cell:first-child { padding-left: 0; }
.placement__cell:last-child { border-right: 0; padding-right: 0; }
.placement__no { font-size: 11px; letter-spacing: 0.3em; color: var(--grey); }
.placement__name { font-family: var(--serif); font-size: 24px; }
.placement__copy { font-size: 14.5px; color: var(--grey); line-height: 1.65; }

/* Tiny placement diagram */
.placement__diagram {
  position: relative;
  height: 120px;
  border: 1px solid var(--line-dark);
  background: #EFEDE7;
  margin-top: 8px;
}
.placement__dot {
  position: absolute; width: 6px; height: 6px; background: var(--tonal); border-radius: 50%;
}
.placement__diagram[data-pos="chest"] .placement__dot { top: 28%; left: 28%; }
.placement__diagram[data-pos="hem"]   .placement__dot { bottom: 14%; right: 22%; }
.placement__diagram[data-pos="neck"]  .placement__dot { top: 14%; left: 50%; transform: translateX(-50%); }

@media (max-width: 800px) {
  .placement { grid-template-columns: 1fr; }
  .placement__cell { border-right: 0; border-top: 1px solid var(--line-dark); padding: 28px 0; }
  .placement__cell:first-child { border-top: 0; }
}

/* Beyond goods — quiet aside */
.aside {
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: clamp(56px, 8vw, 96px) 0;
}
.aside__title { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.012em; max-width: 18ch; }
.aside__copy { color: var(--grey); max-width: 56ch; }

/* Final contact (proximity) */
.final {
  text-align: left;
  padding: clamp(72px, 10vw, 140px) 0;
}
.final__title { font-family: var(--serif); font-style: italic; font-size: clamp(32px, 5vw, 60px); letter-spacing: -0.015em; max-width: 18ch; }
.final__copy { color: var(--grey); max-width: 50ch; margin: 24px 0 36px; }

/* Light theme nav adjustments */
body.theme-light .btn { color: var(--tonal); border-color: rgba(12,12,12,0.18); }
body.theme-light .btn:hover { background: var(--tonal); color: var(--ivory); border-color: var(--tonal); }

/* Light footer */
body.theme-light .foot { color: var(--grey); border-top-color: var(--line-dark); }
body.theme-light .foot__bottom { border-top-color: var(--line-dark); }
body.theme-light .foot__disclaimer { color: var(--tonal); }

/* ==========================================================================
   PROXIMITY — Private Club (coming soon)
   ========================================================================== */

/* Full-bleed editorial hero on warm ivory paper */
.club-hero {
  position: relative;
  min-height: calc(100vh - 72px);
  padding: clamp(72px, 11vw, 140px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.club-hero__paper {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(1200px 600px at 80% 10%, rgba(42,41,39,0.04), transparent 60%),
    radial-gradient(900px 500px at 10% 90%, rgba(39,54,77,0.05), transparent 60%);
}
.club-hero__rule {
  position: absolute; left: var(--gut); right: var(--gut);
  height: 1px; background: var(--tonal); opacity: .25;
}
.club-hero__rule--top    { top: 28px; }
.club-hero__rule--bottom { bottom: 28px; }

.club-hero__top {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey);
  padding: 0 0 clamp(48px, 8vw, 96px);
}
.club-hero__top span:nth-child(2) { text-align: center; }
.club-hero__top span:nth-child(3) { text-align: right; }
.club-hero__top em { font-style: normal; color: var(--tonal); }

.club-hero__center {
  position: relative; z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: clamp(20px, 3vw, 36px);
}

.club-hero__lockup {
  font-family: var(--serif);
  font-size: clamp(56px, 13vw, 168px);
  letter-spacing: clamp(8px, 1.6vw, 22px);
  line-height: 0.95;
  color: var(--tonal);
  margin: 0;
}
.club-hero__divider {
  width: clamp(180px, 30vw, 320px);
  height: 1px;
  background: var(--tonal);
  opacity: .4;
}
.club-hero__descriptor {
  font-size: 12px; letter-spacing: 0.6em; text-transform: uppercase; color: var(--grey);
}

.club-hero__motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--tonal);
  margin-top: clamp(24px, 4vw, 48px);
  letter-spacing: 0.02em;
}

.club-hero__intro {
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--grey);
  margin: 0 auto;
  text-wrap: pretty;
}

.club-hero__bottom {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: end;
  padding-top: clamp(48px, 7vw, 80px);
}
.club-hero__bottom .label { color: var(--grey); }
.club-hero__bottom .right { text-align: right; }
.club-hero__year {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  letter-spacing: 0.4em;
  color: var(--tonal);
}

@media (max-width: 800px) {
  .club-hero__top { grid-template-columns: 1fr; gap: 8px; }
  .club-hero__top span:nth-child(2),
  .club-hero__top span:nth-child(3) { text-align: left; }
  .club-hero__bottom { grid-template-columns: 1fr; gap: 8px; }
  .club-hero__bottom .right { text-align: left; }
  .club-hero__lockup { letter-spacing: 6px; }
}

/* Pillars: wine · investments · crypto */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.pillar {
  position: relative;
  padding: clamp(40px, 5vw, 72px) clamp(24px, 3vw, 40px);
  border-right: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 360px;
}
.pillar:last-child { border-right: 0; }
.pillar__no { font-size: 11px; letter-spacing: 0.32em; color: var(--grey); text-transform: uppercase; }
.pillar__sym {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1;
  color: var(--tonal);
  opacity: .35;
  margin: 4px 0 8px;
}
.pillar__title {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.005em;
  color: var(--tonal);
}
.pillar__copy {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--grey);
  max-width: 32ch;
}
.pillar__tag {
  margin-top: auto;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey);
  font-style: italic;
  font-family: var(--serif);
}
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-top: 1px solid var(--line-dark); min-height: 0; }
  .pillar:first-child { border-top: 0; }
}

/* Manifesto block */
.manifesto {
  padding: clamp(72px, 10vw, 140px) 0;
}
.manifesto__title {
  font-family: var(--serif);
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.018em;
  max-width: 22ch;
  color: var(--tonal);
  text-wrap: balance;
}
.manifesto__title em { font-style: italic; color: var(--grey); }

.tenets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--line-dark);
}
.tenet {
  padding: 28px 24px 28px 0;
  padding-left: 24px;
  border-right: 1px solid var(--line-dark);
}
.tenet:first-child { padding-left: 0; }
.tenet:last-child { border-right: 0; padding-right: 0; }
.tenet__no { font-size: 11px; letter-spacing: 0.3em; color: var(--grey); display: block; margin-bottom: 10px; }
.tenet__name { font-family: var(--serif); font-size: 18px; line-height: 1.3; color: var(--tonal); }
@media (max-width: 800px) {
  .tenets { grid-template-columns: 1fr 1fr; }
  .tenet:nth-child(2) { border-right: 0; }
  .tenet:nth-child(3), .tenet:nth-child(4) { border-top: 1px solid var(--line-dark); padding-top: 22px; }
}
@media (max-width: 500px) {
  .tenets { grid-template-columns: 1fr; }
  .tenet { border-right: 0; border-top: 1px solid var(--line-dark); padding: 22px 0; }
  .tenet:first-child { border-top: 0; }
}

/* Membership block (dark inset on ivory page) */
.membership {
  background: var(--tonal);
  color: var(--ivory);
  padding: clamp(72px, 10vw, 140px) 0;
}
.membership .label, .membership .sec-head__no { color: rgba(246,244,239,0.5); }
.membership .sec-head__title { color: var(--ivory); }

.member-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 800px) { .member-grid { grid-template-columns: 1fr; } }

.member-copy {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.4;
  color: var(--ivory);
  max-width: 32ch;
}
.member-rules {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(246,244,239,0.18);
}
.member-rules li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(246,244,239,0.10);
  font-size: 14.5px;
  color: var(--soft-text);
  align-items: baseline;
}
.member-rules .rule__no { font-size: 11px; letter-spacing: 0.3em; color: rgba(246,244,239,0.45); }
.member-rules strong { color: var(--ivory); font-weight: 400; font-family: var(--serif); font-size: 16px; display: block; margin-bottom: 4px; }

/* Application form on dark — reuse .form structure but tweak the header */
.application-form {
  margin-top: clamp(48px, 6vw, 72px);
}
.application-form__head {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(246,244,239,0.5);
  margin-bottom: 16px;
}

/* Closing line */
.closing {
  padding: clamp(72px, 10vw, 140px) 0;
  text-align: center;
}
.closing__motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.005em;
  color: var(--tonal);
  margin: 0 auto;
  max-width: 22ch;
}
.closing__sub {
  margin-top: 24px;
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--grey);
}

/* Tally embed wrap — ivory paper inside the dark block so the form is readable */
.tally-wrap {
  background: var(--ivory);
  border: 1px solid rgba(246,244,239,0.16);
  padding: 24px 8px;
  border-radius: 0;
}
.tally-wrap iframe {
  display: block;
  width: 100%;
  background: var(--ivory);
  color-scheme: light;
  min-height: 520px;
}

/* Thanks page
   ---------------------------------------------------------------------- */
.thanks {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px var(--gut);
}
.thanks__inner { max-width: 520px; display: flex; flex-direction: column; gap: 24px; align-items: center; }
.thanks__title { font-family: var(--serif); font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.015em; }
.thanks__copy { color: var(--grey); }

/* 404
   ---------------------------------------------------------------------- */
.notfound {
  min-height: calc(100vh - 72px);
  display: grid; place-items: center;
  padding: 80px var(--gut);
}
.notfound__inner { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; max-width: 560px; }
.notfound__no { font-size: 11px; letter-spacing: 0.3em; color: var(--grey); }
.notfound__title { font-family: var(--serif); font-size: clamp(48px, 8vw, 96px); letter-spacing: -0.02em; line-height: 1; }
.notfound__copy { color: var(--soft-text); }
.notfound__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Reveal animations
   ---------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
[data-reveal-delay="1"] { transition-delay: 60ms; }
[data-reveal-delay="2"] { transition-delay: 120ms; }
[data-reveal-delay="3"] { transition-delay: 180ms; }
[data-reveal-delay="4"] { transition-delay: 240ms; }

/* Reduced motion
   ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Focus
   ---------------------------------------------------------------------- */
:focus-visible {
  outline: 1px solid var(--ivory);
  outline-offset: 3px;
}
body.theme-light :focus-visible { outline-color: var(--tonal); }

/* Utility
   ---------------------------------------------------------------------- */
.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;
}
.hr { border: 0; border-top: var(--rule); margin: 0; }
body.theme-light .hr { border-top-color: var(--line-dark); }
