/* Nocta editorial system: off-white ground, ink type, ruled columns, one indigo accent, amber dot. Single light look by choice. */
:root {
  color-scheme: light;
  --bg: #F3F3EF; --ink: #111318; --muted: #45463F; --soft: #6B6A63; --rule: #D6D5CD; --panel: #E8E7E0;
  --accent: #2B3A8C; --dot: #B86E0E; --amber: #F2B544; --night-rule: #2E3038; --night-muted: #B9B8B0;
  --fd: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --fb: 'Instrument Sans', 'Helvetica Neue', system-ui, sans-serif;
  --fm: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--fb); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--fd); font-weight: 500; letter-spacing: -0.035em; text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: clamp(16px, 5vw, 72px); }
.mono { font-family: var(--fm); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* header */
header.site { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; font-family: var(--fd); font-weight: 700; font-size: 21px; letter-spacing: -.02em; }
.brand .wm .i { font-weight: 400; color: var(--soft); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a.l:hover, .nav a.on { color: var(--accent); }
.nav a.on { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.btn { background: var(--ink); color: var(--bg); border-radius: 999px; padding: 0 20px; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--accent); }
@media (max-width: 860px) { .nav a.l { display: none; } }

/* page hero */
.hero { padding-block: clamp(56px, 8vw, 112px) clamp(36px, 5vw, 64px); }
.hero .mono { display: block; margin-bottom: 22px; }
.hero h1 { font-size: clamp(42px, 7.2vw, 100px); line-height: .97; letter-spacing: -.048em; max-width: 14em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: flex-end; justify-content: space-between; }
.hero-row p { max-width: 34em; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); }
.cta-line { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--dot); padding-bottom: 6px; white-space: nowrap; }
.cta-line:hover { color: var(--accent); }

/* sections */
.sec { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px; margin-bottom: 40px; }
.sec-head .mono { padding-top: 12px; }
.sec-head h2 { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.02; }
.sec-head p { margin-top: 16px; color: var(--muted); font-size: 18.5px; max-width: 36em; }
@media (max-width: 860px) { .sec-head { grid-template-columns: minmax(0, 1fr); } .sec-head .mono { padding-top: 0; } }

/* doors (home) */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.door { border-radius: 20px; padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 16px; text-decoration: none; min-width: 0; }
.door.light { background: var(--panel); }
.door.dark { background: var(--ink); color: var(--bg); }
.door h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.02; }
.door p { color: var(--muted); max-width: 30em; }
.door.dark p { color: var(--night-muted); }
.door .list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; font-size: 15.5px; }
.door .go { margin-top: auto; padding-top: 16px; font-weight: 600; }
.door.dark .go { color: var(--amber); }
.door.light .go { color: var(--accent); }
.door:hover h2 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
@media (max-width: 860px) { .doors { grid-template-columns: minmax(0, 1fr); } }

/* practice detail */
.practice { padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--rule); scroll-margin-top: 80px; }
.practice-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); margin-bottom: 36px; }
.practice-head .num { font-family: var(--fm); font-size: 13px; color: var(--accent); letter-spacing: .14em; }
.practice-head h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1; margin-top: 12px; }
.practice-head p { color: var(--muted); font-size: 18.5px; }
.practice-head .outcome { margin-top: 18px; padding: 16px 20px; background: var(--panel); border-radius: 12px; font-size: 15.5px; color: var(--muted); }
.practice-head .outcome b { color: var(--ink); }
.blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.block { padding: 24px 28px 26px 0; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--rule); min-width: 0; }
.block:nth-child(3n+2), .block:nth-child(3n+3) { padding-left: 28px; border-left: 1px solid var(--rule); }
.block .bn { font-family: var(--fm); font-size: 12px; color: var(--soft); }
.block h3 { font-size: 22px; line-height: 1.15; }
.block p { font-size: 15.5px; color: var(--muted); }
.block .tech { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.block .tech span { font-family: var(--fm); font-size: 11.5px; border: 1px solid var(--rule); border-radius: 999px; padding: 3px 9px; color: var(--muted); }
@media (max-width: 960px) {
  .practice-head { grid-template-columns: minmax(0, 1fr); }
  .blocks { grid-template-columns: minmax(0, 1fr); }
  .block, .block:nth-child(3n+2), .block:nth-child(3n+3) { padding: 22px 0; border-left: 0; }
}

/* jump list */
.jump { display: flex; flex-wrap: wrap; gap: 10px; }
.jump a { text-decoration: none; border: 1px solid var(--rule); border-radius: 999px; padding: 10px 18px; min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; }
.jump a:hover { border-color: var(--ink); }

/* engagement steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.step { padding: 26px 30px 0 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.step + .step { padding-left: 30px; border-left: 1px solid var(--rule); }
.step .n { font-family: var(--fm); font-size: 13px; color: var(--accent); }
.step h3 { font-size: 26px; }
.step p { color: var(--muted); }
.step .out { font-family: var(--fm); font-size: 12.5px; color: var(--ink); margin-top: 4px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding: 22px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--rule); }
}

/* product cards (products page) */
.product { border-radius: 22px; padding: clamp(28px, 4.5vw, 56px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); }
.product + .product { margin-top: 20px; }
.product.dark { background: var(--ink); color: var(--bg); }
.product.light { background: var(--panel); }
.product .num { font-family: var(--fm); font-size: 13px; letter-spacing: .14em; }
.product.dark .num { color: var(--amber); }
.product.light .num { color: var(--accent); }
.product h2 { font-size: clamp(36px, 5vw, 64px); line-height: .98; margin-top: 14px; }
.product h2 em { font-style: normal; color: var(--amber); }
.product .lede { margin-top: 18px; font-size: 18.5px; max-width: 30em; }
.product.dark .lede { color: var(--night-muted); }
.product.light .lede { color: var(--muted); }
.product .acts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.pill { min-height: 48px; display: inline-flex; align-items: center; padding: 0 22px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.product.dark .pill.solid { background: var(--amber); color: var(--ink); }
.product.dark .pill.ghost { border: 1px solid #4A4D57; color: var(--bg); }
.product.dark .pill.ghost:hover { border-color: var(--bg); }
.product.light .pill.solid { background: var(--ink); color: var(--bg); }
.product.light .pill.ghost { border: 1px solid var(--ink); }
.benefits { display: flex; flex-direction: column; }
.benefit { padding-block: 18px; display: flex; flex-direction: column; gap: 4px; }
.product.dark .benefit { border-top: 1px solid var(--night-rule); }
.product.light .benefit { border-top: 1px solid var(--rule); }
.benefit b { font-family: var(--fd); font-weight: 500; font-size: 21px; letter-spacing: -.01em; }
.benefit span { font-size: 15.5px; }
.product.dark .benefit span { color: var(--night-muted); }
.product.light .benefit span { color: var(--muted); }
.tagline { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-family: var(--fm); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border-radius: 999px; padding: 6px 12px; }
.product.dark .tagline { border: 1px solid var(--night-rule); color: var(--amber); }
@media (max-width: 960px) { .product { grid-template-columns: minmax(0, 1fr); } }

/* nocta flow page */
.flow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.flow-step { background: var(--panel); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.flow-step .n { font-family: var(--fm); font-size: 13px; color: var(--accent); }
.flow-step h3 { font-size: 26px; line-height: 1.1; }
.flow-step p { color: var(--muted); }
@media (max-width: 860px) { .flow-steps { grid-template-columns: minmax(0, 1fr); } }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.feature { padding: 22px 28px 22px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feature:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--rule); }
.feature h3 { font-size: 21px; }
.feature p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 760px) { .features { grid-template-columns: minmax(0, 1fr); } .feature, .feature:nth-child(2n) { padding: 20px 0; border-left: 0; } }
.pain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pain div { border: 1px solid var(--rule); border-radius: 14px; padding: 18px 20px; font-size: 17px; }
@media (max-width: 760px) { .pain { grid-template-columns: minmax(0, 1fr); } }
.guarantee { background: var(--ink); color: var(--bg); border-radius: 22px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; align-items: center; }
.guarantee h2 { font-size: clamp(30px, 4vw, 50px); line-height: 1.02; }
.guarantee h2 em { font-style: normal; color: var(--amber); }
.guarantee p { color: var(--night-muted); }
.guarantee ul { display: flex; flex-direction: column; gap: 10px; }
.guarantee li { border-top: 1px solid var(--night-rule); padding-top: 10px; font-size: 16px; }
@media (max-width: 860px) { .guarantee { grid-template-columns: minmax(0, 1fr); } }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tier { border: 1px solid var(--rule); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tier.feat { border: 2px solid var(--ink); }
.tier h3 { font-size: 26px; }
.tier .who { color: var(--muted); font-size: 15.5px; }
.tier ul { display: flex; flex-direction: column; gap: 8px; font-size: 15px; border-top: 1px solid var(--rule); padding-top: 14px; }
.tier li { display: flex; gap: 10px; }
.tier li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transform: translateY(9px); }
.tier .price { margin-top: auto; padding-top: 12px; font-family: var(--fm); font-size: 13px; color: var(--soft); }
@media (max-width: 960px) { .tiers { grid-template-columns: minmax(0, 1fr); } }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); padding-block: 18px; }
.faq summary { cursor: pointer; font-family: var(--fd); font-size: 21px; letter-spacing: -.01em; list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 44px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--fm); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 46em; }
.badge { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px; font-family: var(--fm); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 22px; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--dot); display: block; }

/* strip / contact / footer */
.strip { border-top: 1px solid var(--rule); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-block: 18px; color: var(--soft); font-size: 15px; }
.contact-sec { padding-block: clamp(48px, 7vw, 96px); }
.contact { background: var(--ink); color: var(--bg); border-radius: 20px; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; align-items: end; scroll-margin-top: 80px; }
.contact h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.04; }
.contact p { margin-top: 16px; color: #C9C8C0; max-width: 30em; }
.contact .email { font-family: var(--fm); font-size: 18px; background: #23252C; padding: 15px 18px; border-radius: 8px; display: inline-block; user-select: all; overflow-wrap: anywhere; }
.contact .hint { margin-top: 12px; font-size: 14px; color: #C9C8C0; }
.contact .hint code { font-family: var(--fm); color: var(--bg); }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 8px 48px; font-family: var(--fm); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.crumbs { font-family: var(--fm); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* new-business note */
.note { margin-top: 28px; padding: 22px 24px; background: var(--panel); border-radius: 14px; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 20px; align-items: start; }
.note .mono { color: var(--accent); }
.note p { color: var(--muted); font-size: 16px; }
.note b { color: var(--ink); }
@media (max-width: 760px) { .note { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.pain div:last-child:nth-child(odd) { grid-column: 1 / -1; border-color: var(--ink); }

/* about */
.story { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px; }
.story .body { display: flex; flex-direction: column; gap: 18px; font-size: 19px; color: var(--muted); max-width: 40em; }
.story .body b { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .story { grid-template-columns: minmax(0, 1fr); } }
.block a.more { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 500; }
.block .gap { font-family: var(--fm); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dot); }
.vision { padding-block: clamp(56px, 8vw, 110px); border-top: 1px solid var(--rule); }
.vision p.big { font-family: var(--fd); font-size: clamp(32px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.035em; max-width: 16em; }
.vision p.big em { font-style: normal; color: var(--accent); }

/* working with us */
.path { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.path th, .path td { text-align: left; vertical-align: top; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.path th { font-family: var(--fm); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); font-weight: 400; }
.path td:first-child { width: 22%; }
.path td:first-child b { display: block; font-family: var(--fd); font-size: 21px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.path td:first-child span { font-family: var(--fm); font-size: 11.5px; color: var(--soft); }
.path td { color: var(--muted); }
.path td.price { color: var(--ink); font-weight: 500; }
@media (max-width: 760px) {
  .path thead { display: none; }
  .path tr { display: block; border-bottom: 1px solid var(--rule); padding: 16px 0; }
  .path td { display: block; border: 0; padding: 4px 0; width: auto !important; }
  .path td[data-l]::before { content: attr(data-l); display: block; font-family: var(--fm); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin-top: 8px; }
}
.commit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 56px; }
.commit div { background: var(--ink); color: var(--bg); border-radius: 18px; padding: 26px 24px; display: flex; flex-direction: column; gap: 8px; }
.commit h3 { font-size: 24px; line-height: 1.05; }
.commit p { color: var(--night-muted); font-size: 15px; }
@media (max-width: 860px) { .commit { grid-template-columns: minmax(0, 1fr); } }
.dont { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--rule); }
.dont ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.dont li { font-size: 16px; color: var(--muted); padding-left: 22px; position: relative; }
.dont li::before { content: "×"; position: absolute; left: 0; color: var(--dot); font-weight: 600; }
.capacity { margin-top: 28px; font-family: var(--fm); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
@media (max-width: 860px) { .dont, .dont ul { grid-template-columns: minmax(0, 1fr); } }
.tier .pick { display: flex; justify-content: center; align-items: center; min-height: 46px; border-radius: 999px; border: 1px solid var(--ink); font-weight: 600; text-decoration: none; color: var(--ink); }
.tier .pick:hover { background: var(--ink); color: var(--bg); }
.tier.feat .pick { background: var(--ink); color: var(--bg); }
.tier.feat .pick:hover { background: var(--accent); border-color: var(--accent); }
.hero p.source { margin-top: 18px; font-family: var(--fm); font-size: 11.5px; color: var(--soft); }
footer.site a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.legal { max-width: 46em; display: flex; flex-direction: column; gap: 14px; color: var(--muted); font-size: 17px; }
.legal h2 { font-size: 26px; color: var(--ink); margin-top: 22px; }
.legal ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal b { color: var(--ink); }
.hero p.kicker { margin-top: 22px; font-family: var(--fd); font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -0.02em; color: var(--ink); max-width: 30em; }

.hero .fine { margin-top: 22px; max-width: 40em; padding-left: 14px; border-left: 2px solid var(--dot); font-size: 15px; line-height: 1.5; color: var(--ink); }
.hero .fine b { font-weight: 600; }

/* info tooltip */
.info { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin: 0 2px 0 4px; vertical-align: 1px; border-radius: 50%; border: 1px solid var(--soft); background: none; color: var(--soft); font: italic 600 10px/1 Georgia, serif; cursor: help; opacity: .55; padding: 0; transition: opacity .15s; }
.info:hover, .info:focus-visible, .info:focus { opacity: 1; outline: none; }
.info .tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: max-content; max-width: min(240px, 70vw); background: var(--ink); color: var(--bg); font: 400 12px/1.4 var(--fm); padding: 8px 10px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .15s; text-align: left; z-index: 5; }
.info:hover .tip, .info:focus .tip { opacity: 1; }

/* info link (articles) */
a.info { text-decoration: none; }
/* hero slides */
.slides { display: grid; margin-top: 22px; max-width: 44em; }
.slides .slide { grid-area: 1 / 1; margin-top: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slides .slide.on { opacity: 1; visibility: visible; }
.slides .dots { grid-row: 2; display: flex; gap: 8px; margin-top: 12px; padding-left: 16px; }
.slides .dot { width: 7px; height: 7px; padding: 0; border-radius: 50%; border: 0; background: var(--rule); cursor: pointer; }
.slides .dot.on { background: var(--dot); }
@media (prefers-reduced-motion: reduce) { .slides .slide { transition: none; } }
/* articles */
.post { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px); }
.post .wrap > * { max-width: 44rem; }
.post-head h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.02; margin-top: 18px; }
.post-lede { margin-top: 18px; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); }
.post-body { margin-top: 40px; padding-top: 32px; border-top: 2px solid var(--ink); font-size: 18px; line-height: 1.65; color: var(--ink); display: flex; flex-direction: column; gap: 18px; }
.post-body h2 { font-size: 28px; line-height: 1.1; margin-top: 18px; }
.post-body ul, .post-body ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.post-body ul { list-style: disc; } .post-body ol { list-style: decimal; }
.post-body strong { font-weight: 600; }
.post-source { margin-top: 40px; padding: 18px 20px; background: var(--panel); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; }
.post-source a { color: var(--accent); }
.post-nav { margin-top: 48px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; max-width: 44rem; }
.post-nav a { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 14px; text-decoration: none; color: var(--ink); }
.post-nav a:hover { border-color: var(--ink); }
.post-nav .next { text-align: right; grid-column: 2; }
.post-nav b { font-family: var(--fd); font-weight: 500; font-size: 18px; line-height: 1.2; letter-spacing: -.01em; }
@media (max-width: 600px) { .post-nav { grid-template-columns: minmax(0,1fr); } .post-nav .next { grid-column: 1; } }
a.info { cursor: pointer; }

/* article link tooltip: clickable, with a hover bridge */
a.info .tip { font: 500 13px/1.35 var(--fb); max-width: min(280px, 72vw); text-decoration: underline; text-underline-offset: 3px; }
a.info .tip::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
a.info:hover .tip, a.info:focus .tip { pointer-events: auto; }
/* article link tooltip: compact, light, in the site's tone */
a.info .tip { background: var(--bg); color: var(--ink); border: 1px solid var(--rule); box-shadow: 0 6px 18px rgba(17,19,24,.08); border-radius: 10px; padding: 7px 10px 8px; max-width: min(220px, 70vw); font: 500 12px/1.35 var(--fb); text-decoration: none; display: flex; flex-direction: column; gap: 3px; }
a.info .tip::before { content: "Read"; font: 400 10px/1 var(--fm); letter-spacing: .12em; text-transform: uppercase; color: var(--dot); }
a.info:hover .tip, a.info:focus-visible .tip { color: var(--accent); }

/* wordmark: full "noctaintelligence"; on narrow screens it pans down to "noctai" */
.brand .wm .rest { display: inline-block; max-width: 9em; overflow: hidden; vertical-align: top; white-space: nowrap; }
@keyframes wm-pan { to { max-width: 0; opacity: 0; } }
@media (max-width: 520px) {
  .brand .wm .rest { animation: wm-pan .9s cubic-bezier(.65,0,.25,1) 1.1s forwards; }
  .wm-done .brand .wm .rest { animation: none; max-width: 0; opacity: 0; }
}
@media (max-width: 520px) and (prefers-reduced-motion: reduce) { .brand .wm .rest { animation: none; max-width: 0; opacity: 0; } }
/* wider screens: load as "noctai", then pan out into "noctaintelligence" (once per visit) */
@keyframes wm-open { from { max-width: 0; opacity: 0; } to { max-width: 9em; opacity: 1; } }
@media (min-width: 521px) {
  .brand .wm .rest { animation: wm-open 1s cubic-bezier(.65,0,.25,1) .6s both; }
  .wm-done .brand .wm .rest { animation: none; }
}
@media (min-width: 521px) and (prefers-reduced-motion: reduce) { .brand .wm .rest { animation: none; } }
a.info .tip { width: 220px; max-width: 70vw; }
a.info .tip .t { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* email: opens mail app, with a copy fallback */
.contact .email-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.contact a.email { color: var(--bg); text-decoration: none; }
.contact a.email:hover { background: #2E3038; }
.contact .copy { font-family: var(--fm); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #C9C8C0; background: none; border: 1px solid #3A3D46; border-radius: 8px; padding: 14px 14px; cursor: pointer; }
.contact .copy:hover, .contact .copy:focus-visible { color: var(--bg); border-color: #C9C8C0; }
.contact .mail-hint { font-family: var(--fm); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #9A998F; margin-bottom: 8px; }
.contact .email-wrap { position: relative; display: inline-flex; }
.contact .mail-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 5; display: flex; gap: 2px; padding: 4px; background: var(--bg); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 8px 22px rgba(17,19,24,.18); }
.contact .mail-menu[hidden] { display: none; }
.contact .mail-menu a { font: 500 13px/1 var(--fb); color: var(--ink); text-decoration: none; padding: 9px 12px; border-radius: 7px; white-space: nowrap; }
.contact .mail-menu a:hover, .contact .mail-menu a:focus-visible { background: var(--panel); color: var(--accent); }
.contact a.email { user-select: text; }
