/* ============================================
   EIFL — Orevane
   Editorial minimal · dark · serif · gold
   ============================================ */

:root {
  --bg:           #0c0c0e;
  --bg-elev:      #131316;
  --text:         #e8e2d4;
  --text-strong:  #f4eee0;
  --text-muted:   #8a857a;
  --text-faint:   #4a4640;
  --gold:         #c9a96a;
  --gold-bright:  #e0c483;
  --border:       #1f1f22;
  --border-soft:  #17171a;

  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body:    "Fraunces", "EB Garamond", Georgia, serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max-w:        1280px;
  --col-prose:    640px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 350;
  font-size: 18px;
  line-height: 1.65;
  font-variation-settings: "opsz" 14, "SOFT" 30;
  overflow-x: hidden;
}

/* Subtle grain texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 240ms ease;
}

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

::selection {
  background: var(--gold);
  color: var(--bg);
}

/* ============================================
   Layout primitives
   ============================================ */

.shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  position: relative;
  z-index: 2;
}

/* ============================================
   Nav
   ============================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 28px clamp(24px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(12,12,14,0.85) 0%, rgba(12,12,14,0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-strong);
}

.nav__brand-mark {
  color: var(--gold);
  margin-right: 2px;
}

.nav__links {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  list-style: none;
}

.nav__links a {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
}

.nav__links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 320ms ease;
}

.nav__links a:hover { color: var(--text-strong); }
.nav__links a:hover::after { width: 100%; }

/* ============================================
   Hero
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 48px;
  opacity: 0;
  animation: rise 1200ms ease 200ms forwards;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: "";
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin: 0 16px;
  opacity: 0.5;
}

.hero__motto {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 88px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  max-width: 14ch;
  margin-bottom: 32px;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  opacity: 0;
  animation: rise 1400ms ease 400ms forwards;
}

.hero__translation {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  max-width: 36ch;
  margin-bottom: 64px;
  opacity: 0;
  animation: rise 1400ms ease 700ms forwards;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0;
  animation: rise 1400ms ease 1000ms forwards;
}

.hero__tagline span {
  color: var(--text-faint);
  margin: 0 12px;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-faint);
  opacity: 0;
  animation: rise 1200ms ease 1400ms forwards;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-faint), transparent);
  margin: 12px auto 0;
  animation: pulse 2400ms ease-in-out infinite;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%      { opacity: 1;   transform: scaleY(1.2); }
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}

.section__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section__label::before {
  content: "";
  display: block;
  width: 24px; height: 1px;
  background: var(--gold);
}

.section__heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text-strong);
  margin-bottom: 64px;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  max-width: 18ch;
}

/* About section */

.about {
  border-top: 1px solid var(--border);
}

.about__prose {
  max-width: var(--col-prose);
}

.about__prose p {
  margin-bottom: 1.4em;
  color: var(--text);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.7;
}

.about__prose p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4.2em;
  font-weight: 300;
  font-style: italic;
  float: left;
  line-height: 0.9;
  margin: 0.05em 0.12em 0 -0.04em;
  color: var(--gold);
  font-variation-settings: "opsz" 144;
}

.about__prose em {
  color: var(--text-strong);
  font-style: italic;
}

.about__motto-pullout {
  margin: 80px 0;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  max-width: var(--col-prose);
}

.about__motto-pullout p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 300;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  margin: 0 0 12px !important;
  font-variation-settings: "opsz" 144;
}

.about__motto-pullout small {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================
   Social section
   ============================================ */

.social {
  border-top: 1px solid var(--border);
}

.social__list {
  list-style: none;
  margin-top: 24px;
}

.social__item {
  border-bottom: 1px solid var(--border);
}

.social__item:first-child {
  border-top: 1px solid var(--border);
}

.social__link {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 32px 0;
  transition: padding 320ms ease;
}

.social__link:hover {
  padding-left: 16px;
  color: var(--text-strong);
}

.social__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}

.social__name {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  color: var(--text-strong);
}

.social__handle {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: lowercase;
}

.social__arrow {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text-faint);
  transition: transform 320ms ease, color 320ms ease;
}

.social__link:hover .social__arrow {
  transform: translate(6px, -6px);
  color: var(--gold);
}

@media (max-width: 640px) {
  .social__link {
    grid-template-columns: 32px 1fr auto;
    gap: 16px;
    padding: 24px 0;
  }
  .social__handle { display: none; }
}

/* ============================================
   Footer
   ============================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 48px;
  margin-top: 80px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}

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

.footer__motto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 300;
  color: var(--text);
  font-variation-settings: "opsz" 144;
  line-height: 1.3;
  max-width: 22ch;
}

.footer__motto small {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer__col-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer__contact a {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 400;
  color: var(--text-strong);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  display: inline-block;
  transition: border-color 240ms ease;
}

.footer__contact a:hover {
  border-color: var(--gold);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
}

@media (max-width: 640px) {
  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ============================================
   Coming soon (Work, Journal pages)
   ============================================ */

.coming {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px;
}

.coming__label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
}

.coming__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin-bottom: 32px;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.coming__sub {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-muted);
  max-width: 40ch;
  margin-bottom: 64px;
  line-height: 1.6;
}

.coming__back {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  transition: border-color 240ms, color 240ms;
}

.coming__back:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
}

/* ============================================
   Reveal on scroll (basic, optional)
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms ease, transform 800ms ease;
}

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

/* ============================================
   About — signature (end of origin)
   ============================================ */

.about__signature {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  max-width: var(--col-prose);
}

.about__signature span:first-child {
  color: var(--text-strong);
}

/* ============================================
   Work — section II content
   ============================================ */

.work {
  border-top: 1px solid var(--border);
}

.work__intro {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 56ch;
  margin-top: -32px;
  margin-bottom: 80px;
  line-height: 1.5;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}

.work__intro em {
  color: var(--text-strong);
  font-style: italic;
}

.work__sub { margin-bottom: 96px; }
.work__sub:last-of-type { margin-bottom: 32px; }

.work__sub-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.work__sub-label::before {
  content: "";
  display: block;
  width: 16px;
  height: 1px;
  background: var(--gold);
}

.work__sub-heading {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 300;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  color: var(--text-strong);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.work__list {
  list-style: none;
}

.work__item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  transition: padding 320ms ease;
}

.work__item:first-child {
  border-top: 1px solid var(--border);
}

.work__item:hover {
  padding-left: 16px;
}

.work__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  padding-top: 8px;
}

.work__body { min-width: 0; }

.work__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 300;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  color: var(--text-strong);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.work__desc {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.3vw, 16px);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 52ch;
}

.work__status {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
  align-self: center;
}

.work__status--active {
  color: var(--gold);
  border-color: var(--gold);
}

.work__status--paper,
.work__status--blueprinted {
  color: var(--text);
  border-color: var(--text-faint);
}

.work__status--phase2 {
  color: var(--text-muted);
  border-color: var(--border);
}

.work__back {
  display: inline-block;
  margin-top: 64px;
}

@media (max-width: 640px) {
  .work__item {
    grid-template-columns: 32px 1fr;
    gap: 16px;
    padding: 24px 0;
  }
  .work__status {
    grid-column: 2;
    justify-self: start;
    margin-top: 12px;
  }
  .work__num { padding-top: 6px; }
  .work__sub { margin-bottom: 64px; }
}

/* ============================================
   Inquiries — section III
   ============================================ */

.inquiries {
  border-top: 1px solid var(--border);
}

.inquiries__intro {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 56ch;
  margin-top: -32px;
  margin-bottom: 64px;
  line-height: 1.55;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}

.inquiries__list {
  list-style: none;
  margin-top: 8px;
}

.inquiries__item {
  border-bottom: 1px solid var(--border);
}

.inquiries__item:first-child {
  border-top: 1px solid var(--border);
}

.inquiries__link {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 32px 0;
  transition: padding 320ms ease;
}

.inquiries__link:hover {
  padding-left: 16px;
  color: var(--text-strong);
}

.inquiries__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  align-self: start;
  padding-top: 8px;
}

.inquiries__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.inquiries__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 300;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.inquiries__desc {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 52ch;
}

.inquiries__arrow {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text-faint);
  transition: transform 320ms ease, color 320ms ease;
}

.inquiries__link:hover .inquiries__arrow {
  transform: translate(6px, -6px);
  color: var(--gold);
}

.inquiries__note {
  margin-top: 48px;
  font-family: var(--font-display);
  font-size: clamp(13px, 1.2vw, 15px);
  color: var(--text-faint);
  letter-spacing: 0.04em;
  max-width: var(--col-prose);
}

.inquiries__note em {
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 640px) {
  .inquiries__link {
    grid-template-columns: 32px 1fr auto;
    gap: 16px;
    padding: 24px 0;
  }
  .inquiries__num { padding-top: 6px; }
}

/* ============================================
   Practice / Offerings — section II
   ============================================ */

.offerings {
  border-top: 1px solid var(--border);
}

.offerings__intro {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 56ch;
  margin-top: -32px;
  margin-bottom: 64px;
  line-height: 1.55;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}

.offerings__intro em {
  color: var(--text-strong);
  font-style: italic;
}

.offerings__list {
  list-style: none;
  margin-top: 8px;
}

.offerings__item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  transition: padding 320ms ease;
}

.offerings__item:first-child {
  border-top: 1px solid var(--border);
}

.offerings__item:hover {
  padding-left: 16px;
}

.offerings__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  padding-top: 10px;
}

.offerings__body { min-width: 0; }

.offerings__name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 300;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  color: var(--text-strong);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.offerings__desc {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 60ch;
}

@media (max-width: 640px) {
  .offerings__item {
    grid-template-columns: 32px 1fr;
    gap: 16px;
    padding: 28px 0;
  }
  .offerings__num { padding-top: 8px; }
}

/* ============================================
   Journal — Positions list
   ============================================ */

.positions__list {
  list-style: none;
  margin-top: 8px;
}

.positions__row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.positions__row:first-child {
  border-top: 1px solid var(--border);
}

.positions__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}

.positions__ticker {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 300;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  color: var(--text-strong);
  letter-spacing: 0.02em;
}

.positions__qty {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--text);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.positions__venue {
  font-family: var(--font-display);
  font-size: clamp(11px, 1vw, 12px);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.positions__note {
  margin-top: 32px;
  font-family: var(--font-display);
  font-size: clamp(13px, 1.2vw, 15px);
  color: var(--text-faint);
  letter-spacing: 0.04em;
  max-width: var(--col-prose);
}

.positions__note em {
  color: var(--text-muted);
  font-style: italic;
}

.journal__empty {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 56ch;
  line-height: 1.6;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}

/* ============================================
   Journal — Allocation donut + legend
   ============================================ */

.allocation {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
  padding: 16px 0 32px;
  max-width: 640px;
}

.allocation__chart {
  flex-shrink: 0;
}

.allocation__chart svg {
  display: block;
  width: 240px;
  height: 240px;
  max-width: 100%;
}

.allocation__legend {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-width: 180px;
}

.legend__row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 14px;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legend__row:last-child { border-bottom: none; }

.legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
  transform: translateY(1px);
}

.legend__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  color: var(--text-strong);
  letter-spacing: 0.01em;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}

.legend__pct {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.allocation__caption {
  margin-bottom: 40px;
  font-family: var(--font-display);
  font-size: clamp(13px, 1.2vw, 15px);
  color: var(--text-faint);
  letter-spacing: 0.04em;
  max-width: var(--col-prose);
}

.allocation__caption em {
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 640px) {
  .allocation {
    grid-template-columns: 1fr;
    gap: 32px;
    justify-items: center;
    padding: 8px 0 24px;
  }
  .allocation__chart svg {
    width: 200px;
    height: 200px;
  }
  .allocation__legend {
    width: 100%;
    max-width: 280px;
  }
}

/* ============================================
   Journal — Entries log
   ============================================ */

.entries__intro {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.6;
  margin: -24px 0 48px;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}

.entries {
  display: flex;
  flex-direction: column;
}

.entry {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  max-width: 720px;
}

.entry:first-child { border-top: none; padding-top: 8px; }

.entry__head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.entry__date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--text-faint);
}

.entry__price {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--gold-bright, #e0c483);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144, "SOFT" 80;
}

.entry__metric {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.entry__flag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #e0c483;
  border: 1px solid rgba(224, 196, 131, 0.35);
  border-radius: 0;
  padding: 5px 12px;
  margin-bottom: 20px;
}

.entry__snap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.snap__chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 5px 11px;
  font-variant-numeric: tabular-nums;
}

.snap__chip--neg {
  color: #c47a6f;
  border-color: rgba(184, 90, 82, 0.3);
}

.entry__raw {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.45;
  color: var(--text-strong);
  margin: 0 0 20px;
  padding-left: 22px;
  border-left: 2px solid rgba(224, 196, 131, 0.45);
  max-width: 62ch;
  font-variation-settings: "opsz" 144, "SOFT" 70;
}

.entry__raw + .entry__raw { margin-top: -6px; }

.entry__interp {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 64ch;
  margin: 0;
}

@media (max-width: 640px) {
  .entry { padding: 32px 0; }
  .entry__head { gap: 12px; margin-bottom: 16px; }
  .entry__raw {
    padding-left: 16px;
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .positions__row {
    grid-template-columns: 32px 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 16px;
    padding: 20px 0;
    align-items: baseline;
  }
  .positions__num {
    grid-row: 1;
    grid-column: 1;
  }
  .positions__ticker {
    grid-row: 1;
    grid-column: 2;
  }
  .positions__qty {
    grid-row: 1;
    grid-column: 3;
    text-align: right;
  }
  .positions__venue {
    grid-row: 2;
    grid-column: 2 / 4;
    font-size: 10px;
    letter-spacing: 0.24em;
  }
}

/* ============================================
   Accumulation donut + legend
   ============================================ */

.accumulation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin: 32px 0 56px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.accumulation__chart {
  display: flex;
  align-items: center;
  justify-content: center;
}

.accumulation__chart svg {
  width: 100%;
  max-width: 360px;
  height: auto;
  transition: transform 360ms ease;
}

.accumulation__chart svg:hover {
  transform: scale(1.015);
}

.accumulation__chart path {
  stroke: var(--bg);
  stroke-width: 1.5;
  transition: opacity 220ms ease;
}

.accumulation__chart svg:hover path {
  opacity: 0.72;
}

.accumulation__chart svg path:hover {
  opacity: 1;
}

.accumulation__center-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  fill: var(--text-faint);
  text-transform: uppercase;
}

.accumulation__center-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  fill: var(--text-strong);
  letter-spacing: -0.01em;
}

.accumulation__legend {
  list-style: none;
  padding: 0;
  margin: 0;
}

.accumulation__leg-item {
  display: grid;
  grid-template-columns: 12px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-faint, rgba(201, 169, 106, 0.08));
}

.accumulation__leg-item:last-child { border-bottom: none; }

.accumulation__swatch {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.accumulation__leg-ticker {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  color: var(--text-strong);
  letter-spacing: 0.02em;
}

.accumulation__leg-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  min-width: 48px;
  text-align: right;
}

.accumulation__leg-value {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  min-width: 56px;
  text-align: right;
}

@media (max-width: 760px) {
  .accumulation {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0;
  }
  .accumulation__chart svg {
    max-width: 300px;
  }
}
