/* HWM site. Layout concept: editorial index, wide bone canvas, one oversized headline with the Marine period as the signature, a single wave line as the only ornament. */
@font-face { font-family: "PJS Local"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/PlusJakartaSans-Bold.ttf") format("truetype"); }
@font-face { font-family: "PJS Local"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/PlusJakartaSans-ExtraBold.ttf") format("truetype"); }
:root {
  --bone: #F6F4EF;
  --carbon: #111111;
  --marine: #2B5B84;
  --stone: #B8B0A2;
  --bg: #F6F4EF;
  --fg: #111111;
  --muted: #5E5A52;
  --rule: #DDD8CD;
  --panel: #FFFFFF;
  --accent: #2B5B84;
  --btn-bg: #111111;
  --btn-fg: #F6F4EF;
  --display: "PJS Local", "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111111; --fg: #F6F4EF; --muted: #B5B0A5; --rule: #2C2C2C; --panel: #181818;
    --accent: #6F9CC4; --btn-bg: #F6F4EF; --btn-fg: #111111; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111111; --fg: #F6F4EF; --muted: #B5B0A5; --rule: #2C2C2C; --panel: #181818;
  --accent: #6F9CC4; --btn-bg: #F6F4EF; --btn-fg: #111111; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 20px; }

/* logo swap, driven by the same theme switches as the tokens */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

/* nav */
.nav { border-bottom: 1px solid var(--rule); }
.nav .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 18px; }
.nav .brand img { height: 22px; width: auto; }
.nav ul { display: flex; flex-wrap: wrap; gap: 6px 26px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a.link { text-decoration: none; font-size: 15px; color: var(--muted); padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a.link:hover, .nav a.link[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); }
.btn {
  display: inline-block; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 15px;
  background: var(--btn-bg); color: var(--btn-fg); padding: 12px 22px; border-radius: 999px; border: 1px solid var(--btn-bg);
}
.btn:hover { background: transparent; color: var(--fg); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn.ghost:hover { background: var(--fg); color: var(--bg); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* type */
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 8.5vw, 6.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.2; font-weight: 700; }
.dot { display: inline-block; width: 0.15em; height: 0.15em; border-radius: 50%; background: var(--accent); margin-left: 0.07em; vertical-align: baseline; }
.kicker { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.lede { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 40rem; color: var(--fg); margin: 26px 0 0; }
.sub { font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, 2vw, 1.3rem); margin: 22px 0 0; max-width: 34rem; }
p { max-width: 42rem; }

/* sections */
.hero { padding-block: clamp(48px, 9vw, 112px) clamp(40px, 6vw, 72px); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.wave { display: block; width: 100%; height: 40px; color: var(--accent); }
section { padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--rule); }
section > .wrap > h2 + p, .section-intro { margin-top: 18px; color: var(--muted); }

.chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 2px solid var(--fg); }
.chain > div { padding: 22px 20px 8px 0; min-width: 0; }
.chain > div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.chain .step { font-family: var(--display); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.03em; }
.chain p { margin: 10px 0 0; font-size: 15.5px; color: var(--muted); }

.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid var(--rule); }
.formats > div { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.formats h3 { display: flex; align-items: baseline; gap: 10px; }
.formats p { margin: 8px 0 0; font-size: 15.5px; color: var(--muted); }
.tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.band { background: var(--fg); color: var(--bg); border-top: 0; }
.band .kicker, .band .section-intro { color: var(--stone); }
.band .btn { background: var(--bg); color: var(--fg); border-color: var(--bg); }
.band .btn:hover { background: transparent; color: var(--bg); }
.band .btn.ghost { background: transparent; color: var(--bg); border-color: var(--bg); }
.band .btn.ghost:hover { background: var(--bg); color: var(--fg); }
.band .dot { background: #6F9CC4; }
.band .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* article pages */
.article { padding-block: clamp(40px, 7vw, 80px); }
.article h1 { font-size: clamp(2.3rem, 6.5vw, 4.6rem); max-width: 14ch; }
.meta { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--muted); margin-top: 22px; }
.callout { margin-top: 34px; padding: 18px 20px; border: 1px solid var(--rule); border-left: 4px solid var(--accent); background: var(--panel); max-width: 44rem; font-size: 15.5px; }
.callout p { margin: 0; }
.tablewrap { overflow-x: auto; margin-top: 28px; border-top: 2px solid var(--fg); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15.5px; }
th, td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
td:first-child { font-family: var(--display); font-weight: 700; padding-right: 20px; }
.visa-list { margin-top: 28px; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.visa-list > div { padding: 24px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 12px 40px; }
.visa-list h3 { margin: 0; }
.visa-list p { margin: 0 0 10px; }
.visa-list p:last-child { margin-bottom: 0; }
.facts { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.mistakes { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); max-width: 46rem; }
.mistakes li { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.mistakes b { font-family: var(--display); font-weight: 700; }
.sources { font-size: 14.5px; color: var(--muted); }
.sources li { margin-bottom: 6px; }
.seats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 2px solid var(--fg); }
.seats > div { padding: 24px 24px 12px 0; min-width: 0; }
.seats > div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.seats p { margin: 12px 0 0; font-size: 15.5px; color: var(--muted); }
.seat-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; display: block; }

footer { border-top: 1px solid var(--rule); padding-block: 40px 56px; font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: space-between; align-items: flex-start; }
footer img { height: 20px; width: auto; margin-bottom: 14px; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); text-decoration: underline; }
footer p { margin: 0; }

@media (max-width: 820px) {
  .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chain > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .chain > div:nth-child(n+3) { border-top: 1px solid var(--rule); margin-top: 8px; padding-top: 22px; }
  .formats, .seats { grid-template-columns: 1fr; }
  .seats > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .split, .visa-list > div { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .chain { grid-template-columns: 1fr; }
  .chain > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .chain > div:nth-child(3) { border-top: 1px solid var(--rule); }
  body { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .nav, footer, .band, .noprint { display: none !important; }
  body { background: #fff; color: #000; }
  .logo-dark { display: none !important; } .logo-light { display: block !important; }
}

footer .fine { display: block; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 13.5px; }
footer .fine p { max-width: 52rem; }
footer .fine a { text-decoration: underline; }
.policy { margin-top: 44px; border-top: 2px solid var(--fg); max-width: 52rem; }
.policy > div { padding: 24px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 8px 36px; }
.policy h3 { margin: 0; }
.policy p { margin: 0; }
.sponsor-label { display: inline-block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--accent); color: var(--accent); padding: 2px 8px; border-radius: 3px; margin-right: 4px; vertical-align: 1px; }
@media (max-width: 820px) { .policy > div { grid-template-columns: 1fr; } }

.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-bottom: clamp(48px, 7vw, 88px); }
.project { padding: clamp(24px, 4vw, 44px); border: 1px solid var(--rule); border-radius: 4px; display: flex; flex-direction: column; min-width: 0; }
.project h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.project .pline { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin: 18px 0 0; }
.project p { max-width: 36rem; }
.project .status { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--muted); margin-top: auto; padding-top: 20px; }
.project .actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; }
.project.ansim { background: #173A2E; border-color: #173A2E; color: #F6F4EF; }
.project.ansim .kicker, .project.ansim .status { color: #B9C8BF; }
.project.ansim .btn { background: #F6F4EF; color: #173A2E; border-color: #F6F4EF; }
.project.ansim .btn:hover { background: transparent; color: #F6F4EF; }
.project.ansim h2 { letter-spacing: 0.02em; }
.project.savant { background: var(--panel); }
@media (max-width: 820px) { .projects { grid-template-columns: 1fr; } }

.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: clamp(48px, 7vw, 88px); }
.guide { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 26px; border: 1px solid var(--rule); border-radius: 4px; background: var(--panel); text-decoration: none; color: var(--fg); }
a.guide:hover { border-color: var(--fg); }
.guide h3 { font-size: 1.5rem; }
.guide p { margin: 0; color: var(--muted); font-size: 15.5px; }
.guide-tags { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.guide-foot { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.guide .go { color: var(--fg); font-family: var(--display); font-weight: 700; font-size: 15px; }
.guide.soon { background: transparent; border-style: dashed; }
@media (max-width: 960px) { .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .guides { grid-template-columns: 1fr; } }

/* guide visuals */
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; margin-top:34px; background:var(--rule); border:1px solid var(--rule); }
.stats div { background:var(--bg); padding:18px 16px; }
.stats b { display:block; font-weight:800; font-size:clamp(1.4rem,3.4vw,2rem); color:var(--accent); }
.stats span { display:block; font-size:13.5px; color:var(--muted); margin-top:4px; }
.figure { margin:22px 0 0; max-width:44rem; }
.figure figcaption { font-size:13.5px; color:var(--muted); margin-top:8px; }
.chart { width:100%; height:auto; display:block; }
.chart .c-lab { font:600 13px Inter,system-ui,sans-serif; fill:var(--fg); }
.chart .c-val { font:500 12.5px "JetBrains Mono",monospace; fill:var(--muted); }
.chart .c-track { fill:var(--panel); }
.chart .c-bar { fill:var(--stone); }
.chart .c-bar.hl { fill:var(--accent); }
.flow { margin-top:22px; max-width:44rem; }
.flow-q { display:inline-block; background:var(--fg); color:var(--bg); padding:10px 16px; font-weight:700; }
.flow-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:10px; margin-top:12px; border-left:2px solid var(--fg); padding-left:14px; }
.flow-a { border:1px solid var(--rule); background:var(--panel); padding:12px 14px; }
.flow-a b { display:block; font-size:14.5px; }
.flow-a span { display:block; margin-top:6px; color:var(--accent); font-weight:700; font-size:14px; }
.flow-a.hl { border-color:var(--accent); }
.flow-a.warn span { color:var(--muted); }
@media (max-width:620px){ .stats{grid-template-columns:repeat(2,1fr);} .chart .c-lab{font-size:15px} .chart .c-val{font-size:14px} }

/* channels */
.channels { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; margin-top:28px; }
.channel { display:flex; flex-direction:column; gap:6px; padding:22px; border:1px solid var(--rule); border-radius:4px; background:var(--panel); text-decoration:none; color:var(--fg); min-width:0; }
.channel:hover { border-color:var(--fg); }
.ch-name { font-family:var(--display); font-weight:800; font-size:1.2rem; overflow-wrap:anywhere; }
.ch-handle { font-family:var(--mono); font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--accent); }
.channel p { margin:6px 0 0; color:var(--muted); font-size:15px; }

/* editorial photography slots */
.photo { position:relative; margin:0; aspect-ratio:var(--r,4/5); background:var(--panel); overflow:hidden; border-radius:2px; width:100%; }
.photo i { position:absolute; inset:0; background-size:cover; background-position:center; background-repeat:no-repeat; }
.photo .slot { position:absolute; inset:0; display:none; align-items:center; justify-content:center; text-align:center; font:500 11.5px "JetBrains Mono",monospace; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); padding:12px; }
html.slots .photo .slot { display:flex; }
.photo.in-card { margin-bottom:18px; }
.hero-split { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:clamp(28px,5vw,72px); align-items:end; }
.hero-split .photo { max-width:460px; justify-self:end; }
.project .photo { margin-bottom:22px; }
.project.ansim .photo { background:rgba(246,244,239,.08); }
.guide .photo { margin-bottom:8px; }
.article .photo { margin-top:30px; max-width:44rem; }
@media (max-width:820px){ .hero-split{grid-template-columns:1fr;} .hero-split .photo{max-width:none;justify-self:stretch;} }

/* softer editorial layer */
:root { --soft: #ECE7DD; --radius: 20px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --soft: #1B1A18; } }
:root[data-theme="dark"] { --soft: #1B1A18; }
section.soft { background: var(--soft); border-top: 0; }
.band { background: var(--soft); color: var(--fg); }
.band .kicker, .band .section-intro { color: var(--muted); }
.band .btn { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.band .btn:hover { background: transparent; color: var(--fg); }
.band .dot { background: var(--accent); }
.photo { background: var(--soft); border-radius: var(--radius); }
.photo.arch { border-radius: 999px 999px var(--radius) var(--radius); }
.photo.wide { border-radius: var(--radius); }
.project, .guide, .channel, .callout, .flow-a { border-radius: var(--radius); }
.callout { border-left-width: 1px; }
.project.savant { background: var(--soft); border-color: var(--soft); }
.hero-split .photo { max-width: 420px; }
.essays { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.essay { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3.5vw, 40px); background: var(--soft); border-radius: var(--radius); text-decoration: none; color: var(--fg); min-width: 0; }
.essay h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.12; }
.essay p { margin: 0; color: var(--muted); font-size: 15.5px; }
.essay .go, .work .go { margin-top: auto; padding-top: 10px; font-family: var(--display); font-weight: 700; font-size: 15px; }
.essay:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.essay-tag, .work-tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.work { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--fg); min-width: 0; }
.work .photo { margin-bottom: 10px; }
.work p { margin: 0; color: var(--muted); font-size: 15.5px; }
.work:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.record { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.record > div { padding: 22px; background: var(--soft); border-radius: var(--radius); min-width: 0; }
.record p { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.record a { text-decoration: none; }
.fineprint { margin-top: 28px; font-size: 14.5px; color: var(--muted); max-width: 46rem; }
.elsewhere { margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.formats { border-top-color: rgba(0,0,0,.12); }
@media (max-width: 960px) { .record { grid-template-columns: repeat(2, minmax(0, 1fr)); } .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .essays { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .record, .works { grid-template-columns: 1fr; } }
section.soft .photo, .project.savant .photo { background: var(--bg); }
.work .photo { box-shadow: inset 0 0 0 1px var(--rule); }

/* social icons */
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--rule); color: var(--fg); text-decoration: none; }
.social a:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); text-decoration: none; }
.social svg { width: 19px; height: 19px; }
.foot-right { display: flex; flex-direction: column; gap: 22px; align-items: flex-end; }
.foot-right ul { justify-content: flex-end; }
.band .social { margin-top: 24px; }
@media (max-width: 820px) { .foot-right { align-items: flex-start; } .foot-right ul { justify-content: flex-start; } }

/* lead with imagery, thesis, services */
.hero-lead { padding-block: clamp(40px, 7vw, 88px) clamp(28px, 4vw, 48px); }
.hero-lead h1 { max-width: 15ch; font-size: clamp(2.5rem, 7.5vw, 5.6rem); }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.row-head .go { font-family: var(--display); font-weight: 700; font-size: 15px; text-decoration: none; }
.row-head .go:hover { text-decoration: underline; text-underline-offset: 4px; }
.works { margin-top: 28px; }
.thesis .prose p { margin: 0 0 18px; font-size: clamp(1.1rem, 1.9vw, 1.3rem); line-height: 1.55; max-width: 38rem; }
.thesis .prose p:first-child { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.25; letter-spacing: -0.015em; }
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.service { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--soft); border-radius: var(--radius); min-width: 0; }
.service h3 { font-size: 1.5rem; }
.service p { margin: 0; font-size: 15.5px; color: var(--muted); }
.service .svc-no { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--accent); }
.service .svc-when { font-family: var(--display); font-weight: 700; color: var(--fg); font-size: 1rem; }
.service .svc-price { margin-top: auto; padding-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.service .btn { align-self: flex-start; margin-top: 4px; }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* selected work: case cards */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; margin-top: 32px; }
.case { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.case .photo { margin-bottom: 8px; }
.case-tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.case-logo { display: flex; align-items: center; min-height: 34px; }
.case-logo h3 { font-size: 1.6rem; }
.case-img { height: 30px; width: auto; max-width: 70%; }
.case.has-logo .case-logo h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.case p { margin: 0; color: var(--muted); font-size: 15.5px; }
.case-status { margin-top: auto; padding-top: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
@media (max-width: 700px) { .cases { grid-template-columns: 1fr; } }

/* three-up photo mosaic */
.photo.trio { display: grid; grid-template-columns: var(--cols, repeat(3, 1fr)); gap: 8px; background: transparent; border-radius: 0; overflow: visible; }
.photo.trio i { position: static; background-size: cover; background-position: center; border-radius: var(--radius); background-color: var(--soft); }
.photo.trio .slot { display: none; }
html.slots .photo.trio .slot { display: flex; z-index: 1; }

/* brand case mosaics */
.photo.mosaic { display: grid; grid-template-columns: var(--cols, 1fr 1fr); gap: 6px; background: transparent; border-radius: 0; overflow: visible; }
.photo.mosaic i { position: static; background-size: cover; background-repeat: no-repeat; border-radius: var(--radius); background-color: var(--soft); min-height: 0; }
.photo.mosaic.m3 { grid-template-rows: 1fr 1fr; }
.photo.mosaic.m3 i:first-of-type { grid-row: 1 / 3; }
.photo.mosaic .slot { display: none; }
html.slots .photo.mosaic .slot { display: flex; z-index: 1; }

/* sharing, print and PDF */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.share .btn { padding: 9px 16px; font-size: 14px; cursor: pointer; font-family: var(--display); }
.share [hidden] { display: none; }
.share-note { font-size: 13.5px; color: var(--muted); }
.print-wm { display: none; }
@page { margin: 16mm 14mm 22mm; }
@page visa {
  margin: 16mm 14mm 22mm;
  @bottom-left { content: "@highwater.holly  \00B7  highwatermark.xyz/visa"; font: 500 9.5px "JetBrains Mono", monospace; color: #444; vertical-align: top; padding-top: 4mm; }
  @bottom-right { content: "Last refreshed 11 October 2026  \00B7  " counter(page) " / " counter(pages); font: 500 9.5px "JetBrains Mono", monospace; color: #444; vertical-align: top; padding-top: 4mm; }
}
@page ff {
  margin: 16mm 14mm 22mm;
  @bottom-left { content: "@highwater.holly  \00B7  highwatermark.xyz/free-flights"; font: 500 9.5px "JetBrains Mono", monospace; color: #444; vertical-align: top; padding-top: 4mm; }
  @bottom-right { content: "Last refreshed 27 October 2026  \00B7  " counter(page) " / " counter(pages); font: 500 9.5px "JetBrains Mono", monospace; color: #444; vertical-align: top; padding-top: 4mm; }
}
.article.visa { page: visa; }
.article.ff { page: ff; }
@media print {
  :root, :root:not([data-theme="light"]), :root[data-theme="dark"] { --bg:#fff; --fg:#111; --muted:#4a4a4a; --rule:#ddd; --panel:#fff; --soft:#f3f1ec; --accent:#2B5B84; color-scheme: light; }
  body { background: #fff; color: #111; font-size: 14px; }
  .nav, footer, .band, .noprint, .share { display: none !important; }
  .print-wm { display: flex; flex-direction: column; align-items: center; gap: 10px; position: fixed; top: 38%; left: 0; right: 0; transform: rotate(-24deg); opacity: .09; z-index: 9; pointer-events: none; }
  .print-wm img { width: 360px; height: auto; display: block !important; }
  .print-wm span { font: 800 44px/1 var(--display); letter-spacing: -0.02em; color: #111; }
  .article h1 { font-size: 34px; }
  .article { padding-block: 0; }
  .photo.trio { aspect-ratio: 9/4; }
  h2, h3, .visa-list > div, .flow, .figure { break-inside: avoid; }
  a { text-decoration: none; }
}

/* sources toggle */
.sources-box { margin-top: 56px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); max-width: 44rem; }
.sources-box summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.015em; display: flex; justify-content: space-between; align-items: center; }
.sources-box summary::-webkit-details-marker { display: none; }
.sources-box summary::after { content: "+"; font-family: var(--mono); font-weight: 500; font-size: 1.4rem; color: var(--accent); }
.sources-box[open] summary::after { content: "\2212"; }
.sources-box summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sources-box .sources { padding-bottom: 18px; }

.article h1.one-line { max-width: none; white-space: nowrap; font-size: clamp(1.55rem, 6.2vw, 4.4rem); }
@media print { .article h1.one-line { font-size: 30px; } }

/* Free-Flight Four guide */
.btn.sm { padding: 8px 15px; font-size: 13.5px; cursor: pointer; font-family: var(--display); }
.ff-title { font-size: clamp(1.9rem, 5.4vw, 3.6rem); max-width: 18ch; }
.ff-cap { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); max-width: 44rem; }
.ff-index { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 56rem; }
.ff-index a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--soft); border-radius: var(--radius); text-decoration: none; color: var(--fg); height: 100%; }
.ff-index a:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.ff-index b { font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.015em; }
.ff-index span { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.ff-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 28px; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); max-width: 56rem; }
.ff-toolbar p { margin: 0; font-size: 14.5px; color: var(--muted); }
.ff-sec { margin-top: 56px; max-width: 56rem; }
.ff-sec > p { margin-top: 16px; }
.ff-dest { margin-top: 64px; max-width: 56rem; scroll-margin-top: 20px; }
.ff-tag { margin: 12px 0 0; font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; color: var(--accent); max-width: 44rem; }
.ff-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 44px); align-items: start; margin-top: 26px; }
.ff-split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.ff-split.flip .ff-fig { order: 2; }
.ff-split > div > p:first-child { margin-top: 0; }
.ff-fig { margin: 0; }
.ff-img { width: 100%; aspect-ratio: 4/5; background-size: cover; background-repeat: no-repeat; background-color: var(--soft); border-radius: var(--radius); }
.ff-fig figcaption, .ff-end figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.ff-dest > p { margin-top: 18px; }
.watch { margin-top: 24px; padding: 20px 22px; background: var(--soft); border-radius: var(--radius); max-width: 56rem; }
.watch h3 { font-size: 1.05rem; color: var(--accent); margin-bottom: 8px; }
.watch p { margin: 0; font-size: 15.5px; }
.sectionbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
details.acc { border-top: 1px solid var(--rule); margin-top: 0; max-width: 56rem; }
details.acc:last-of-type { border-bottom: 1px solid var(--rule); }
.sectionbar + details.acc { margin-top: 16px; }
details.acc summary { cursor: pointer; list-style: none; padding: 15px 0; font-family: var(--display); font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-family: var(--mono); font-weight: 500; font-size: 1.3rem; color: var(--accent); }
details.acc[open] summary::after { content: "\2212"; }
details.acc summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.acc-in { padding: 0 0 18px; font-size: 15.5px; }
.acc-in h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; font-weight: 500; }
.acc-in ul { margin: 0 0 6px; padding-left: 20px; }
.acc-in li { margin-bottom: 8px; }
.acc-in .warn { margin: 14px 0 0; padding: 12px 14px; background: var(--soft); border-radius: 12px; font-size: 14.5px; }
dl.facts { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 8px 16px; margin: 0; }
dl.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
dl.facts dd { margin: 0; }
table.score { min-width: 640px; }
table.score th[scope="row"] { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; white-space: nowrap; padding-right: 18px; }
table.score td { font-size: 14.5px; }
table.score td:first-child { font-family: inherit; font-weight: inherit; padding-right: 16px; }
.dots { color: var(--accent); letter-spacing: 2px; font-size: 13px; white-space: nowrap; }
.dots i { font-style: normal; color: var(--rule); }
.rank { list-style: none; margin: 24px 0 0; padding: 0; border-top: 2px solid var(--fg); max-width: 46rem; }
.rank li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.rank .n { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--accent); line-height: 1; }
.rank b { font-family: var(--display); font-weight: 800; font-size: 1.25rem; display: block; }
.rank em { display: block; font-style: normal; color: var(--accent); font-family: var(--mono); font-size: 12.5px; margin: 4px 0 6px; }
.rank p { margin: 0; font-size: 15.5px; color: var(--muted); }
.ff-end { margin: 56px 0 0; max-width: 24rem; }
.ff-end .ff-img { aspect-ratio: 4/5; }
@media (max-width: 860px) { .ff-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ff-split, .ff-split.flip { grid-template-columns: 1fr; } .ff-split.flip .ff-fig { order: 0; } .ff-fig { max-width: 26rem; } dl.facts { grid-template-columns: 1fr; gap: 2px 0; } dl.facts dd { margin-bottom: 10px; } }
@media (max-width: 480px) { .ff-index { grid-template-columns: 1fr; } }
@media print {
  .ff-index, .ff-toolbar, .sectionbar { display: none !important; }
  .ff-split, .ff-split.flip { grid-template-columns: 1fr 1fr; }
  .ff-split.flip .ff-fig { order: 0; }
  .ff-dest { break-inside: auto; margin-top: 30px; }
  .watch, .rank li, table.score tr, .ff-fig { break-inside: avoid; }
  .ff-img { aspect-ratio: 4/3; }
  .ff-end { max-width: 12rem; }
  .ff-title { font-size: 28px; }
}
.ff-sec, .ff-dest { padding-block: 0; border-top: 0; }

/* glance table: chips, price, legend; one-or-two-line title */
.ff-title { max-width: none; font-size: clamp(1.55rem, 4.6vw, 3.3rem); }
.legend { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); max-width: none; }
.chip { display: inline-block; margin: 2px 4px 2px 0; padding: 3px 10px; border-radius: 999px; font-size: 13px; line-height: 1.35; border: 1px solid var(--rule); color: var(--fg); background: transparent; white-space: normal; }
.chip.g { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.chip.w { background: var(--soft); border-color: var(--stone); }
.price { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--accent); letter-spacing: .02em; }
table.score { min-width: 720px; }
table.score td { vertical-align: top; }
.article h1.ff-title { max-width: none; font-size: clamp(1.55rem, 4.6vw, 3.3rem); }

/* Lombok guide */
.article.lb { page: lb; }
@page lb {
  margin: 16mm 14mm 22mm;
  @bottom-left { content: "@highwater.holly  \00B7  highwatermark.xyz/lombok"; font: 500 9.5px "JetBrains Mono", monospace; color: #444; vertical-align: top; padding-top: 4mm; }
  @bottom-right { content: "Last refreshed 14 October 2026  \00B7  " counter(page) " / " counter(pages); font: 500 9.5px "JetBrains Mono", monospace; color: #444; vertical-align: top; padding-top: 4mm; }
}
.article.lb .record.lb-bases p { font-size: 15px; }
.article.lb .stats { max-width: 56rem; }
.article.lb .visa-list { max-width: 56rem; }
.article.lb .mistakes { max-width: 56rem; }

/* Bali Land Investment Checklist */
:root { --green: #2F7D5B; --amber: #B7791F; --red: #B5453A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --green: #6FBF9A; --amber: #E0B15A; --red: #E58C82; } }
:root[data-theme="dark"] { --green: #6FBF9A; --amber: #E0B15A; --red: #E58C82; }
.article.ls { page: ls; }
@page ls {
  margin: 16mm 14mm 22mm;
  @bottom-left { content: "@highwater.holly  \00B7  highwatermark.xyz/lease"; font: 500 9.5px "JetBrains Mono", monospace; color: #444; vertical-align: top; padding-top: 4mm; }
  @bottom-right { content: "Last refreshed 14 October 2026  \00B7  " counter(page) " / " counter(pages); font: 500 9.5px "JetBrains Mono", monospace; color: #444; vertical-align: top; padding-top: 4mm; }
}
.article.ls .record { max-width: 56rem; }
.ls-routes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ls-areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flow4 { max-width: 44rem; margin-top: 28px; }
.fnode { position: relative; background: var(--soft); border-radius: var(--radius); padding: 20px 22px 16px; border-left: 4px solid var(--stone); }
.fnode + .fnode { margin-top: 38px; }
.fnode + .fnode::before { content: ""; position: absolute; left: 34px; top: -38px; height: 38px; width: 2px; background: var(--rule); }
.fn-main { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 14px; align-items: start; }
.fn-n { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--fg); color: var(--bg); font-family: var(--display); font-weight: 800; font-size: 14px; }
.fnode h3 { font-size: 1.15rem; margin-bottom: 6px; }
.fnode p { margin: 0; font-size: 15px; color: var(--muted); }
.fn-split { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 16px 0 0 3rem; font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.fn-yes { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--green); color: var(--green); }
.fn-no { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--stone); }
.fn-no.y { border-color: var(--amber); color: var(--amber); }
.fn-no.r { border-color: var(--red); color: var(--red); }
.fn-go { border-left-color: var(--green); }
.fn-go .fn-n { background: var(--green); color: var(--bg); }
ul.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { margin-bottom: 10px; }
.tick { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; cursor: pointer; align-items: start; }
.tick input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1.5px solid var(--fg); border-radius: 5px; background: transparent; cursor: pointer; display: grid; place-content: center; }
.tick input::after { content: ""; width: 10px; height: 10px; transform: scale(0); transition: transform .12s; background: var(--accent); border-radius: 2px; }
.tick input:checked::after { transform: scale(1); }
.tick input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tick b { display: block; font-family: var(--display); font-weight: 700; font-size: 1rem; }
.tick em { display: block; font-style: normal; font-size: 14px; color: var(--muted); margin-top: 2px; }
@media (max-width: 860px) { .ls-routes, .ls-areas { grid-template-columns: 1fr; } .fn-split { margin-left: 0; } }
@media print { .fnode { break-inside: avoid; } .tick input { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .ls-routes, .ls-areas { grid-template-columns: 1fr 1fr 1fr; } }

/* Lombok guide: month grid and tips */
table.mgrid { min-width: 560px; border-collapse: separate; border-spacing: 3px; }
table.mgrid th, table.mgrid td { padding: 0; border: 0; text-align: center; }
table.mgrid thead th { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); font-weight: 500; padding-bottom: 4px; }
table.mgrid th[scope="row"] { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding-right: 12px; white-space: nowrap; }
.mc { height: 28px; border-radius: 6px; border: 1px solid var(--rule); }
.mc.g { background: var(--accent); border-color: var(--accent); }
.mc.n { background: transparent; }
.mc.w { background: var(--soft); border-color: var(--stone); }
.mgrid td.ev { color: var(--accent); font-size: 16px; height: 24px; }
.lb-verdict { max-width: 46rem; }
.lb-tips { max-width: 46rem; margin-top: 20px; }
.lb-tips p { margin: 0; }

.ff-duo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 52rem; margin: 18px 0 22px; }
.ff-duo > div { aspect-ratio: 3/4; background-size: cover; background-position: center; border-radius: var(--radius); background-color: var(--soft); }

/* Lombok guide: glance cards, surf list, one-photo row */
.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; max-width: 56rem; }
.glance > div { padding: 18px; background: var(--soft); border-radius: var(--radius); min-width: 0; }
.glance span { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.glance b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.15rem; line-height: 1.2; letter-spacing: -0.015em; }
.glance p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .glance { grid-template-columns: 1fr; } }
.lb-long { max-width: 56rem; }
.mini { font-size: 1.15rem; margin: 26px 0 0; }
.surf { list-style: none; margin: 14px 0 22px; padding: 0; max-width: 56rem; border-top: 1px solid var(--rule); }
.surf li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.surf .chip { justify-self: start; text-align: center; margin: 2px 0 0; }
.surf b { font-family: var(--display); font-weight: 700; }
.surf p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
@media (max-width: 560px) { .surf li { grid-template-columns: 1fr; gap: 6px; } }
.ff-one { max-width: 22rem; margin: 18px 0 22px; }
.ff-one > div { aspect-ratio: 4/3; background-size: cover; background-position: center; border-radius: var(--radius); background-color: var(--soft); }
.article.lb .photo.trio { max-width: 56rem; }

/* Lombok polish: icons, gili cards, day split */
.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; max-width: 56rem; }
.ways > div { padding: 18px; background: var(--soft); border-radius: var(--radius); min-width: 0; }
.ways .ico { display: block; width: 44px; height: 44px; margin-bottom: 10px; color: var(--accent); }
.ways .ico svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ways b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.ways p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ways { grid-template-columns: 1fr; } }
.lb-gili { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; max-width: 56rem; }
.lb-gili p { font-size: 15px; }
@media (max-width: 860px) { .lb-gili { grid-template-columns: 1fr; } }
.lb-day { margin: 18px 0 22px; max-width: 56rem; }
.lb-day .ff-fig { max-width: none; }
.lb-day .mistakes { margin-top: 12px; }

/* category icons */
.acc-in h4.hi { display: flex; align-items: center; gap: 10px; }
.hico { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; color: var(--accent); flex: none; }
.hico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sumline { display: inline-flex; align-items: center; gap: 12px; }
.sumline .hico { width: 30px; height: 30px; background: var(--soft); border-radius: 50%; }
.sumline .hico svg { width: 18px; height: 18px; }
details.acc[open] .sumline .hico { background: var(--accent); color: var(--bg); }
.acc-in h4.hi { margin: 22px 0 10px; font-size: 13px; letter-spacing: .14em; color: var(--fg); gap: 12px; }
.acc-in h4.hi .hico { width: 36px; height: 36px; background: var(--soft); border-radius: 50%; }
.acc-in h4.hi .hico svg { width: 20px; height: 20px; }
.acc-in ul li::marker { color: var(--accent); }

/* Bali Land guide v2: stoplight, wider text, decision flow */
.article.ls .ff-sec > p { max-width: none; }
.photo.ls-hero { aspect-ratio: 16/9; max-width: 56rem; margin-top: 26px; }
.t-g { color: var(--green); font-weight: 700; } .t-y { color: var(--amber); font-weight: 700; } .t-r { color: var(--red); font-weight: 700; }
.ls-legend { display: flex; align-items: center; gap: 22px; margin-top: 22px; padding: 18px 22px; background: var(--soft); border-radius: var(--radius); max-width: 56rem; }
.ls-legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.stoplight { width: 34px; height: 88px; flex: none; }
.stoplight rect { fill: #1b1b1b; }
.sl-r { fill: var(--red); } .sl-y { fill: var(--amber); } .sl-g { fill: var(--green); }
.flow4 { max-width: 56rem; margin-top: 26px; position: relative; }
.flow4 .fnode { background: var(--soft); border-radius: var(--radius); padding: 22px 24px; border-left: 0; }
.flow4 .fnode + .fnode { margin-top: 34px; }
.flow4 .fnode + .fnode::before { left: 40px; top: -34px; height: 34px; width: 3px; background: var(--green); border-radius: 2px; }
.flow4 .fnode + .fnode::after { content: ""; position: absolute; left: 33px; top: -10px; border: 8px solid transparent; border-top: 9px solid var(--green); }
.flow4 .fnode { position: relative; }
.fn-q { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 16px; align-items: start; }
.fn-q h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 6px; }
.fn-q h3 .hico { width: 32px; height: 32px; background: var(--bg); border-radius: 50%; }
.fn-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px; margin: 18px 0 0 3.2rem; }
.fn-yes, .fn-no { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 4px; align-items: start; padding: 14px 16px; border-radius: 14px; background: var(--bg); font-size: 14.5px; }
.fn-yes { border: 1.5px solid var(--green); }
.fn-no.r { border: 1.5px solid var(--red); } .fn-no.y { border: 1.5px solid var(--amber); }
.fn-yes b, .fn-no b { font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .02em; }
.fn-yes b { color: var(--green); }
.fn-yes > span:last-child, .fn-no > span:last-child { grid-column: 2; color: var(--fg); }
.fn-no em { display: block; font-style: normal; color: var(--muted); margin-top: 4px; }
.dotc { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; background: var(--stone); }
.dotc.g { background: var(--green); } .dotc.y { background: var(--amber); } .dotc.r { background: var(--red); }
.dotc.big { display: inline-block; width: 18px; height: 18px; margin-top: 0; }
.fn-go .fn-q h3 { color: var(--green); }
@media (max-width: 700px) { .fn-cols { grid-template-columns: 1fr; margin-left: 0; } .flow4 .fnode + .fnode::before, .flow4 .fnode + .fnode::after { left: 30px; } }
@media print { .fn-cols { grid-template-columns: 5fr 7fr; } .ls-legend { break-inside: avoid; } }
.fn-yes, .fn-no { align-content: start; }
.stoplight rect { fill: #0b0b0b; stroke: var(--rule); stroke-width: 1; }
:root:not([data-theme="dark"]) .stoplight rect { stroke: #cfcac0; }

.ls-split { align-items: center; margin-bottom: 26px; }
.ls-split .ff-fig { max-width: 24rem; }
.ls-split .ff-img { aspect-ratio: 4/5; }
.ls-split p { margin: 0; font-size: 1.1rem; max-width: 34rem; }
@media (max-width: 860px) { .ls-split .ff-fig { max-width: 20rem; } }
.article.ls .photo.trio { max-width: 56rem; margin-top: 26px; }

/* Green light celebration and price tests */
.flow4 .fnode.fn-go { position: relative; overflow: hidden; background: color-mix(in srgb, var(--green) 14%, var(--bg)); border: 1.5px solid var(--green); padding-right: 190px; min-height: 150px; }
.fn-go .fn-q h3 { font-size: 1.45rem; }
.cheers { position: absolute; right: 22px; bottom: 6px; width: 150px; height: 118px; }
.cheers .fl { fill: none; stroke: var(--fg); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cheers .liq { fill: #E6C568; opacity: .9; }
.cheers .spark { fill: #E6C568; }
.cheers .bub { fill: #fff; opacity: .8; }
.confetti { position: absolute; inset: 0 0 auto 0; height: 100%; pointer-events: none; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; opacity: .9; animation: confall 4.5s ease-in infinite; }
@keyframes confall { 0% { top: -14px; opacity: 0; } 12% { opacity: .95; } 100% { top: 105%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .confetti i { animation: none; top: 12%; } .confetti i:nth-child(even) { top: 55%; } }
@media (max-width: 700px) { .flow4 .fnode.fn-go { padding-right: 24px; padding-bottom: 130px; } .cheers { right: 16px; bottom: 6px; } }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; max-width: 56rem; }
.price-grid > div { padding: 22px; background: var(--soft); border-radius: var(--radius); min-width: 0; }
.price-grid p { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.ls-price-rule { max-width: 56rem; margin-top: 22px; }
.article.ls .ls-price-note { max-width: none; margin-top: 18px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }
@media print { .confetti { display: none; } }
.flow4 .fnode.fn-go { min-height: 190px; padding-right: 230px; }
.cheers { width: 190px; height: 150px; right: 24px; bottom: 10px; }

.hero-lead + .wrap .photo.trio { max-width: none; }

/* guide feedback */
.fb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 34px; max-width: 44rem; font-size: 15.5px; }
.fb-q { font-weight: 700; margin-right: 4px; }
.fb-btn { display: inline-block; padding: 8px 16px; border: 1px solid var(--rule); border-radius: 999px; background: var(--panel); color: inherit; text-decoration: none; }
.fb-btn:hover { border-color: var(--ink, #111); }
.fb-fix { margin-left: auto; font-size: 14.5px; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .fb-fix { margin-left: 0; width: 100%; } }

/* free-flight guide: one centered reading column so nothing is left hanging on the right */
.article.ff > .wrap { max-width: 800px; }
.article.ff p, .article.ff .lede, .article.ff .callout, .article.ff .fb, .article.ff .mistakes, .article.ff .ff-title, .article.ff .ff-cap, .article.ff .photo.trio { max-width: none; }

/* visa guide: same centered column */
.article.visa > .wrap { max-width: 800px; }
.article.visa p, .article.visa .lede, .article.visa .callout, .article.visa .fb, .article.visa .mistakes, .article.visa .figure, .article.visa .flow, .article.visa .photo.trio, .article.visa .sources-box, .article.visa details.acc { max-width: none; }

/* free-flight deadline banner and steps */
.callout.ff-deadline { margin-top: 18px; border-left-width: 4px; font-size: 16px; }
.ff-deadline a { white-space: nowrap; }
ol.steps { padding-left: 22px; margin: 6px 0 14px; }
ol.steps li { margin: 0 0 10px; }

/* business ventures guide */
.article.bv > .wrap { max-width: 800px; }
.article.bv p, .article.bv .lede, .article.bv .callout, .article.bv .fb, .article.bv details.acc, .article.bv .ff-title, .article.bv .ff-sec { max-width: none; }
.bv-hero { margin: 8px 0 0; } .bv-hero .ff-img { aspect-ratio: 16/9; background-size: cover; border-radius: var(--radius); }
.vtable-wrap { overflow-x: auto; margin-top: 18px; }
.vtable { width: 100%; border-collapse: collapse; font-size: 15px; }
.vtable th { text-align: left; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); }
.vtable td { vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); min-width: 120px; }
.vtable.score td { min-width: 0; }
@media print { .vtable-wrap { overflow: visible; } }

.vtable.pick td { min-width: 0; } .vtable.pick td a { color: var(--fg); font-weight: 700; }
.article.bv h3 { font-size: 1.3rem; }

.vtable.score th[scope=row] { text-align:left; font-family:inherit; font-size:15px; text-transform:none; letter-spacing:0; color:var(--fg); font-weight:400; padding:10px 12px 10px 0; border-bottom:1px solid var(--rule); min-width:150px; }
.vtable.score th[scope=row] i { color: var(--muted); font-size: 13px; }
.vtable.score td { text-align:center; padding:10px 6px; white-space:nowrap; }
.vtable.score tr.grp td { text-align:left; font-family:var(--mono); font-size:11.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); padding-top:22px; border-bottom:0; }
.vtable.score tr.blk { opacity:.62; }
.bv-cards { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-top:16px; }
.bv-card { display:flex; flex-direction:column; gap:6px; padding:18px; border:1px solid var(--rule); border-radius:var(--radius); background:var(--panel); text-decoration:none; color:var(--fg); }
.bv-card:hover { border-color:var(--fg); }
.bv-card .bv-em { font-size:26px; line-height:1; }
.bv-card span:not(.bv-em) { color:var(--muted); font-size:15px; }
.bv-card em { font-style:normal; font-family:var(--mono); font-size:12px; letter-spacing:.04em; color:var(--accent); margin-top:4px; }
@media (max-width:560px){ .bv-cards{grid-template-columns:1fr;} }
ul.bv-pb { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
ul.bv-pb li { padding-left:0; }
ul.bv-pb .bv-em { position:absolute; left:0; top:0; font-size:18px; line-height:1.4; }

/* Bali ventures v3 */
.reel-card { display:grid; grid-template-columns:96px 1fr; gap:16px; align-items:center; margin-top:22px; padding:12px; border:1px solid var(--rule); border-radius:14px; text-decoration:none; color:inherit; }
.reel-card:hover { border-color:var(--accent); }
.reel-img { position:relative; display:block; aspect-ratio:9/16; border-radius:8px; overflow:hidden; }
.reel-img img { width:100%; height:100%; object-fit:cover; display:block; }
.reel-play { position:absolute; inset:0; display:grid; place-items:center; color:#fff; font-size:22px; text-shadow:0 1px 8px rgba(0,0,0,.6); }
.reel-txt b { display:block; font-size:1.05rem; }
.reel-txt span { display:block; color:var(--muted); font-size:15px; margin-top:4px; }
.reel-txt em { display:block; font-style:normal; color:var(--accent); font-size:13px; margin-top:8px; font-family:var(--mono, monospace); }
.pl { display:inline-block; padding:3px 10px; border-radius:999px; font-size:12px; font-weight:600; line-height:1.4; white-space:nowrap; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
.pl.g { background:#1c3a2a; color:#86d9a8; }
.pl.y { background:#3d3615; color:#ecd36f; }
.pl.r { background:#4a2323; color:#f4a0a0; }
.vtable.score th small { display:block; font-weight:400; text-transform:none; letter-spacing:0; opacity:.7; font-size:11px; margin-top:2px; }
.bv-legend { margin-top:12px; font-size:14px; color:var(--muted); }
ul.bv-why { margin:16px 0; padding-left:20px; display:grid; gap:10px; }
.bv-arch { margin-top:44px; padding-top:24px; border-top:1px solid var(--rule); scroll-margin-top:80px; }
.bv-arch h3 { margin:0; }
.bv-arch .bv-venture { margin-top:4px; color:var(--accent); font-weight:600; }
.bv-arch p { margin-top:12px; }
.bv-fit { display:flex; flex-wrap:wrap; gap:6px 14px; font-size:13px; color:var(--muted); }
.bv-fit span { white-space:nowrap; }
ul.bv-pb { margin-top:16px; }
ul.bv-pb li { padding-left:0; }
.bv-cards { grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); }
.reel-card { margin-bottom:18px; }

/* Bali ventures v4 */
.bv-whyitem { margin-top:26px; }
.bv-whyitem h3 { margin:0 0 8px; }
a.pl { text-decoration:none; white-space:normal; line-height:1.35; }
a.pl:hover { filter:brightness(1.15); }
.bv-whyitem ol { margin:12px 0 0; padding-left:20px; display:grid; gap:6px; }
.bv-insight { display:flex; gap:12px; align-items:flex-start; margin-top:22px; padding:14px 16px; border:1px solid var(--rule); border-left:3px solid var(--accent); border-radius:10px; }
.bv-insight > span { font-size:22px; line-height:1.3; }
.bv-insight p { margin:0 !important; }
.bv-top { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:24px; align-items:start; }
.bv-pic { margin:0; aspect-ratio:4/5; border-radius:12px; overflow:hidden; }
.bv-pic img { width:100%; height:100%; object-fit:cover; display:block; }
.bv-matrix { display:grid; grid-template-columns:1fr 1fr; gap:1px; margin-top:20px; background:var(--rule); border:1px solid var(--rule); border-radius:12px; overflow:hidden; }
.bv-matrix > div { background:var(--bg, #111); padding:14px 16px; }
.bv-matrix b { font-family:var(--mono, monospace); font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--accent); }
.bv-matrix p { margin:6px 0 0 !important; font-size:15px; }
.bv-warn { margin-top:14px; padding:12px 14px; border-radius:10px; background:rgba(236,211,111,.08); border:1px solid rgba(236,211,111,.25); font-size:15px; }
@media (max-width:640px) { .bv-top { grid-template-columns:1fr; } .bv-pic { aspect-ratio:3/2; } .bv-matrix { grid-template-columns:1fr; } }
