/* ============================================================
   MINIMAL FIRM WEBSITE — design system
   Corporate secretarial & professional services
   Editorial minimalism: paper ground, hairlines, type-led layout.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Ground + ink */
  --paper:      #FFFFFF;   /* white page */
  --paper-2:    #F5F5F6;   /* alternating band */
  --paper-3:    #ECECEE;   /* inset / hover fill */
  --ink:        #0F1012;   /* headings, dark sections */
  --ink-2:      #1A1B1E;
  --body:       #4B4D52;   /* body copy */
  --muted:      #6A6C6F;   /* captions, meta — 4.8:1 on the band, 5.3:1 on white */
  --line:       #E6E6E8;   /* hairline */
  --line-2:     #D0D0D4;   /* hairline, stronger */

  /* Single restrained accent, used in small doses */
  --accent:     #0E2140;   /* 3Verity navy, sampled from the logo master */
  --accent-2:   #0A1830;
  --accent-tint:#E7EAF0;

  /* Type */
  --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;   /* loaded at 400, 500 and 600: use only those */
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;   /* loaded from Google Fonts, so labels match on every device */

  /* Metrics */
  --maxw: 1320px;
  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
  --sec-y: clamp(4.5rem, 10vw, 9.5rem);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Motion — dial the whole site up or down from here */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.35s;
  --dur: 0.6s;
  --dur-slow: 0.9s;
  --stag: 70ms;        /* list / grid child stagger */
  --stag-word: 38ms;   /* headline word stagger */
  --lift: 14px;        /* how far revealed blocks travel */
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 4px; }

/* ---------- 3. Type scale ---------- */
h1, h2, h3, h4, h5 {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.d1 { font-size: clamp(2.6rem, 7.2vw, 5.6rem); font-weight: 500; letter-spacing: -0.042em; line-height: 0.98; }
.d2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -0.035em; line-height: 1.04; }
.d3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.028em; line-height: 1.14; }
.d4 { font-size: clamp(1.15rem, 1.5vw, 1.35rem); letter-spacing: -0.02em; line-height: 1.25; }

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--body);
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.serif-em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex: none;
}
.eyebrow.plain::before { display: none; }

.small { font-size: 0.875rem; line-height: 1.6; }
.meta {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--muted);
}
.num {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--muted); font-variant-numeric: tabular-nums;
}

/* ---------- 4. Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 920px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec-y); }
.section.tight { padding-block: clamp(3rem, 6vw, 5.5rem); }
.band { background: var(--paper-2); }
.rule { height: 1px; background: var(--line); border: 0; }
.rule-dark { height: 1px; background: rgba(255,255,255,0.14); border: 0; }

/* Two-column editorial grid: sticky label + content */
.cols {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.cols-even { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); }
.sticky-label { position: sticky; top: calc(var(--header-h) + 2.5rem); }

@media (max-width: 900px) {                 /* the same width as the home hero folds, so a page never mixes the two */
  .cols, .cols-even { grid-template-columns: 1fr; gap: 2rem; }
  .sticky-label { position: static; }
}

/* ---------- 5. Links & buttons ---------- */
.link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--ink); font-size: 0.95rem; letter-spacing: -0.01em;
  padding-bottom: 2px;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 0.45s var(--ease), color 0.25s var(--ease);
}
.link:hover { background-size: 0% 1px; color: var(--accent); }
.link .arw { transition: transform 0.4s var(--ease); }
.link:hover .arw { transform: translateX(4px); }

.link.on-dark { color: var(--paper); background-image: linear-gradient(var(--paper), var(--paper)); }
.link.on-dark:hover { color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  height: 50px; padding-inline: 1.6rem;
  border: 1px solid var(--ink); border-radius: 2px;
  color: var(--paper); background: var(--ink);
  font-size: 0.93rem; letter-spacing: -0.005em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); transform: translateY(101%);
  transition: transform 0.55s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.985); }

.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost::before { background: var(--ink); }
.btn.ghost:hover { color: var(--paper); border-color: var(--ink); }

.btn.on-dark { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.on-dark::before { background: var(--accent); }
.btn.on-dark:hover { color: var(--paper); border-color: var(--accent); }

.btn.ghost-dark { background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.3); }
.btn.ghost-dark::before { background: var(--paper); }
.btn.ghost-dark:hover { color: var(--ink); border-color: var(--paper); }

/* ---------- 6. Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); }
.header-in {
  width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}

/* Logo — traced from the 3Verity master artwork (assets/3verity-logo.svg) */
.wordmark { display: inline-flex; align-items: center; gap: 0.95rem; }
.wordmark .logo { display: block; height: 50px; width: auto; }
.wordmark .wm-meta { display: none; position: relative; padding-left: 0.95rem; border-left: 1px solid var(--line-2); }
.wordmark .wm-sub {
  display: block; font-family: var(--mono); font-size: 0.6rem; line-height: 1.65; letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
/* Five nav links and the booking button fill the bar on desktop, so the descriptor
   (and the running head that replaces it on scroll) shows only beside the menu button. */
@media (min-width: 640px) and (max-width: 1180px) { .header .wordmark .wm-meta { display: block; } }
.nav a, .header-cta .btn { white-space: nowrap; }
@media (max-width: 560px) { .header .wordmark .logo { height: 42px; } }
.footer .wordmark .logo { height: 84px; }

.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.2rem); }
.nav a {
  font-size: 0.9rem; color: var(--body); letter-spacing: -0.005em;
  position: relative; padding-block: 4px;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--ink); transition: right 0.4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { right: 0; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { right: 0; background: var(--accent); }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-cta .btn { height: 42px; padding-inline: 1.15rem; font-size: 0.86rem; }

.burger { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; margin-right: -8px; }
.burger span { display: block; width: 20px; height: 1px; background: var(--ink); position: relative; transition: transform 0.35s var(--ease), opacity 0.2s; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1px; background: var(--ink);
  transition: transform 0.35s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 85;
  background: var(--paper);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.4s var(--ease), visibility 0.35s;
}
body.menu-open .drawer { opacity: 1; visibility: visible; transform: none; }
html:has(> body.menu-open) { overflow: hidden; }
.drawer nav { display: grid; gap: 0.25rem; }
.drawer nav a {
  font-size: clamp(1.8rem, 8vw, 2.4rem); line-height: 1.15; color: var(--ink); letter-spacing: -0.035em;
  padding-block: 0.5rem; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 0.9rem;
}
.drawer nav a .num { font-size: 0.65rem; }
.drawer .drawer-foot { display: grid; gap: 0.4rem; padding-top: 2rem; }

@media (max-width: 1180px) {
  .nav, .header-cta .btn { display: none; }
  .burger { display: flex; }
  /* Without JS the drawer cannot open, so the inline nav stays. */
  html:not(.js) .nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 0.8rem; }
  html:not(.js) .nav a { font-size: 0.85rem; }
  html:not(.js) .burger { display: none; }
}

/* ---------- 7. Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(3.5rem, 11vh, 7rem)); padding-bottom: clamp(3rem, 7vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.hero h1 { margin-top: 1.6rem; }
.hero-aside { display: grid; gap: 1.6rem; padding-bottom: 0.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero-foot {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 2.2rem; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; align-items: start; } }

/* ---------- 8. Marquee / credential strip ---------- */
.strip { border-block: 1px solid var(--line); padding-block: 1.1rem; overflow: hidden; }
.strip-track { display: flex; gap: 3.5rem; width: max-content; animation: slide 38s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-track span {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.9rem;
}
.strip-track span::after { content: ""; width: 4px; height: 4px; background: var(--line-2); border-radius: 50%; }
@keyframes slide { to { transform: translateX(-50%); } }
.strip.is-paused .strip-track { animation-play-state: paused; }
html:not(.js) .strip-track { animation: none; width: auto; flex-wrap: wrap; row-gap: 0.5rem; }
html:not(.js) .acc-sign, html:not(.js) .slot-toggle { display: none; }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }

/* ---------- 9. Numbered service rows ---------- */
.rows { border-top: 1px solid var(--line); }
.row-item { border-bottom: 1px solid var(--line); }
.row-link {
  display: grid;
  grid-template-columns: 56px minmax(0, 4fr) minmax(0, 5fr) 28px;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  padding-block: clamp(1.4rem, 2.6vw, 2.1rem);
  position: relative;
}
.row-link { isolation: isolate; }
.row-link::before {
  content: ""; position: absolute; inset: 0; background: var(--paper-3); z-index: -1;
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.6s var(--ease-out);
}
.row-item:hover .row-link .num { transform: translateX(6px); }
.row-item:hover .row-link::before { transform: scaleX(1); }
.row-link h3 {
  font-size: clamp(1.25rem, 2.1vw, 1.7rem); letter-spacing: -0.03em;
  transition: color 0.3s var(--ease), transform 0.5s var(--ease-out);
}
.row-item:hover .row-link h3 { color: var(--accent); transform: translateX(6px); }
.row-link .num, .row-link p { transition: color 0.3s var(--ease), transform 0.5s var(--ease-out); }
.row-item:hover .row-link .num { color: var(--accent); }
.row-item:hover .row-link p { transform: translateX(4px); }
.row-link p { font-size: 0.95rem; color: var(--body); margin: 0; }
.row-link .arw-box { justify-self: end; color: var(--muted); transition: transform 0.45s var(--ease), color 0.3s; align-self: center; }
.row-item:hover .arw-box { transform: translateX(5px); color: var(--ink); }
@media (max-width: 820px) {
  .row-link { grid-template-columns: 40px 1fr; gap: 0.35rem 1rem; }
  .row-link p { grid-column: 2; }
  .row-link .arw-box { display: none; }
}

/* ---------- 10. Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-3 > * { background: var(--paper); padding: clamp(1.5rem, 2.6vw, 2.2rem); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card { display: grid; gap: 0.75rem; align-content: start; transition: background 0.4s var(--ease); }
.card:hover { background: var(--paper-2); }
.card h3 { font-size: 1.12rem; letter-spacing: -0.02em; }
.card p { font-size: 0.93rem; }
.card .num { margin-bottom: 0.4rem; }

/* Bordered feature box */
.panel { border: 1px solid var(--line); padding: clamp(1.6rem, 3vw, 2.6rem); background: var(--paper); }
.panel.inset { background: var(--paper-2); border-color: transparent; }

/* ---------- 11. Figures ---------- */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.figures > div { background: var(--paper); padding: clamp(1.4rem, 2.6vw, 2rem) clamp(1rem, 2vw, 1.6rem); }
.figures .fig {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem); color: var(--ink); line-height: 1;
  letter-spacing: -0.045em; font-weight: 500; font-variant-numeric: tabular-nums;
}
.figures p { font-size: 0.86rem; margin-top: 0.6rem; color: var(--muted); }
@media (max-width: 760px) { .figures { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 12. Accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%; display: grid; grid-template-columns: 48px 1fr 24px; gap: 1rem;
  align-items: center; text-align: left; padding-block: 1.25rem;
}
.acc-h { margin: 0; font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.acc-title { display: block; }
.acc-head:hover .acc-title { color: var(--accent); }
.acc-sign { position: relative; width: 12px; height: 12px; justify-self: end; }
.acc-sign::before, .acc-sign::after {
  content: ""; position: absolute; inset: 50% 0 auto 0; height: 1px; background: var(--ink);
  transition: transform 0.4s var(--ease);
}
.acc-sign::after { transform: rotate(90deg); }
.acc-item.open .acc-sign::after { transform: rotate(0deg); }
.acc-panel { overflow: hidden; transition: height 0.45s var(--ease); }
.js .acc-panel { height: 0; }
.acc-panel-in { padding: 0 24px 1.6rem calc(48px + 1rem); max-width: 68ch; }
.acc-panel-in p + p { margin-top: 0.8rem; }

/* ---------- 13. Dark band ---------- */
.dark { background: var(--ink); color: rgba(255,255,255,0.72); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--paper); }
.dark .eyebrow { color: rgba(255,255,255,0.55); }
.dark .eyebrow::before { background: var(--paper); }
.dark .meta, .dark .num { color: rgba(255,255,255,0.5); }
.dark .lead { color: rgba(255,255,255,0.78); }
.dark .figures { background: rgba(255,255,255,0.14); }
.dark .figures > div { background: var(--ink); }
.dark .figures .fig { color: var(--paper); }
.dark .figures p { color: rgba(255,255,255,0.55); }

/* ---------- 14. Insight list ---------- */
.posts { border-top: 1px solid var(--line); }
.post {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 150px; gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline; padding-block: clamp(1.3rem, 2.4vw, 1.9rem);
  border-bottom: 1px solid var(--line);
  transition: opacity 0.3s var(--ease);
}
.post h3 {
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  transition: color 0.3s var(--ease), transform 0.5s var(--ease-out);
}
.post:hover h3 { color: var(--accent); transform: translateX(7px); }
.post .meta { transition: color 0.3s var(--ease); }
.post:hover .meta { color: var(--ink); }
.post .post-tag { justify-self: end; }
@media (max-width: 820px) {
  .post { grid-template-columns: 1fr; gap: 0.5rem; }
  .post .post-tag { justify-self: start; }
}

/* ---------- 15. People ---------- */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.person .portrait {
  aspect-ratio: 4 / 5; background: var(--paper-3); border: 1px solid var(--line);
  display: grid; place-items: center; margin-bottom: 1rem; overflow: hidden;
}
.person .portrait span { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.15em; color: var(--muted); text-transform: uppercase; }
.person h3 { font-size: 1.05rem; }
.person p { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 860px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .people { grid-template-columns: 1fr; } }

/* ---------- 16. Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line-2); border-radius: 100px; padding: 0.4rem 0.9rem;
  font-size: 0.82rem; color: var(--body);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.tag::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--paper-3); transform: scaleX(0); transform-origin: left center;
  transition: transform 0.45s var(--ease-out);
}
.tag:hover::before { transform: scaleX(1); }
.tag:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- 17. Forms ---------- */
.form { display: grid; gap: 1.4rem; }
.field { display: grid; gap: 0.45rem; }
.field label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.98rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  padding: 0.65rem 0; border-radius: 0;
  transition: border-color 0.3s var(--ease);
  appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.8rem; color: var(--muted); }

/* ---------- 18. Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 4.5rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: clamp(2rem, 4vw, 3rem); }
.footer h4, .footer .foot-h { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 1.1rem; }
.footer ul { display: grid; gap: 0.6rem; }
.footer ul a { font-size: 0.92rem; color: var(--body); transition: color 0.25s var(--ease); }
.footer ul a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.2rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; justify-content: space-between;
}
.footer-bottom, .footer-bottom a { font-size: 0.78rem; color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 19. Placeholder flags (remove once copy lands) ---------- */
[data-slot] { position: relative; }
body.show-slots [data-slot]::after {
  content: attr(data-slot);
  position: absolute; top: -8px; left: -4px; z-index: 50;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em;
  background: var(--accent); color: #fff; padding: 1px 4px; border-radius: 2px;
  pointer-events: none; white-space: nowrap;
}
.slot-toggle {
  position: fixed; bottom: 18px; right: 18px; z-index: 95;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--line-2); background: var(--paper); color: var(--muted);
  padding: 0.5rem 0.75rem; border-radius: 2px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.slot-toggle:hover { color: var(--ink); border-color: var(--ink); }
body.show-slots .slot-toggle { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- 20. Reveal on scroll ----------
   Hidden states are scoped to .js so the site reads fine without scripting. */
.js .reveal {
  opacity: 0; transform: translateY(var(--lift));
  transition: opacity var(--dur) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.r1 { transition-delay: 0.08s; }
.js .reveal.r2 { transition-delay: 0.16s; }
.js .reveal.r3 { transition-delay: 0.24s; }

/* Staggered children — JS assigns --i per child */
.js .stag {
  opacity: 0; transform: translateY(var(--lift));
  transition: opacity var(--dur) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stag));
}
.js .stag.in { opacity: 1; transform: none; }

/* Wipe reveal for blocks with their own surface */
.js .rv-mask {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s var(--ease-out), opacity var(--dur) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stag));
  opacity: 0;
}
.js .rv-mask.in { clip-path: inset(0 0 0 0); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .stag, .js .rv-mask {
    opacity: 1; transform: none; clip-path: none; transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ---------- 21. Page head (interior pages) ---------- */
.page-head { padding-top: calc(var(--header-h) + clamp(3rem, 8vh, 5.5rem)); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { margin-top: 1.4rem; max-width: 20ch; }
.page-head .lead { max-width: 56ch; margin-top: 1.5rem; }
.crumb { display: flex; gap: 0.5rem; align-items: center; }

/* ============================================================
   22. MOTION LAYER
   Everything below is progressive enhancement: it only applies
   once JS adds .js to <html>, and it all switches off under
   prefers-reduced-motion (see the block at the end).
   ============================================================ */

/* ---- 22.1 Headline word reveal ---- */
.js .split .w {
  display: inline-block; overflow: hidden;
  padding-bottom: 0.2em; margin-bottom: -0.2em;
}
.js .split .w-i {
  display: inline-block; transform: translateY(115%);
  transition: transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stag-word));
}
.js .split.in .w-i { transform: translateY(0); }

/* ---- 22.2 First-paint sequence ---- */
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Keyframes with `both` carry their own from-state, so nothing here depends on
   JS having run — a failed script can never leave the hero invisible. */
.js .header { animation: dropIn 0.7s var(--ease-out) 0.05s backwards; }
.js .hero .eyebrow { animation: riseIn 0.7s var(--ease-out) 0.1s backwards; }
.js .hero-aside { animation: riseIn 0.8s var(--ease-out) 0.42s backwards; }
.js .hero-foot { animation: riseIn 0.8s var(--ease-out) 0.54s backwards; }
.js .cue { animation: fadeIn 0.9s var(--ease-out) 0.8s backwards; }
.js .strip { animation: fadeIn 0.9s var(--ease-out) 0.66s backwards; }
.js .page-head .eyebrow { animation: riseIn 0.7s var(--ease-out) 0.1s backwards; }
.js .page-head .lead { animation: riseIn 0.8s var(--ease-out) 0.45s backwards; }

/* A script that arrived after the failsafe stripped .js must not replay the intro */
.js.late .header, .js.late .hero .eyebrow, .js.late .hero-aside, .js.late .hero-foot, .js.late .cue, .js.late .strip,
.js.late .page-head .eyebrow, .js.late .page-head .lead { animation: none; }
.js.late .hero-foot::before, .js.late .strip::before, .js.late .strip::after { animation: none; }
.js.late .reveal, .js.late .stag, .js.late .rv-mask, .js.late .rv-ink, .js.late .rv-rule::before,
.js.late .row-item::after, .js.late .post::after, .js.late .acc-item::after { transition: none; }

/* ---- 22.3 Scroll progress + header behaviour ---- */
.header { transition: border-color 0.35s var(--ease), background 0.35s var(--ease), transform 0.5s var(--ease-out); }
.header.is-hidden { transform: translateY(-100%); }
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: transparent; overflow: hidden; pointer-events: none;
}
.progress i {
  display: block; height: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: left center; will-change: transform;
}

/* ---- 22.4 Scroll cue ---- */
.cue { margin-top: clamp(2rem, 4vw, 3rem); display: inline-grid; gap: 0.7rem; justify-items: start; }
.cue-line { position: relative; display: block; width: 1px; height: 54px; background: var(--line-2); overflow: hidden; }
.cue-line i { position: absolute; left: 0; top: 0; width: 1px; height: 18px; background: var(--ink); animation: cueRun 2.2s var(--ease) infinite; }
@keyframes cueRun {
  0% { transform: translateY(-20px); } 55% { transform: translateY(54px); } 100% { transform: translateY(54px); }
}

/* ---- 22.5 Odometer figures ---- */
.odo { display: inline-block; height: 1em; overflow: hidden; vertical-align: -0.04em; }
.odo-track { display: block; }
.odo-d { display: block; height: 1em; line-height: 1em; }

/* ---- 22.6 Section number: rule draws out on reveal ---- */
.js .sticky-label .num, .js .reveal > .num { display: inline-flex; align-items: center; gap: 0.75rem; }
.js .sticky-label .num::after, .js .reveal > .num::after {
  content: ""; height: 1px; width: clamp(1.5rem, 4vw, 3rem); background: var(--line-2);
  transform: scaleX(0); transform-origin: left center; transition: transform 0.9s var(--ease-out) 0.25s;
}
.js .reveal.in > .num::after, .js .reveal.in .sticky-label .num::after,
.js .sticky-label.in .num::after, .js .in .sticky-label .num::after { transform: scaleX(1); }
.dark .num::after { background: rgba(255,255,255,0.3); }

/* ---- 22.7 Drawer link stagger ---- */
.js .drawer nav a {
  opacity: 0; transform: translateY(18px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.js body.menu-open .drawer nav a { opacity: 1; transform: none; }
.js .drawer .drawer-foot { opacity: 0; transition: opacity var(--dur) var(--ease-out) 0.3s; }
.js body.menu-open .drawer .drawer-foot { opacity: 1; }

/* ---- 22.8 Accordion content ---- */
.js .acc-item.open .acc-panel-in > * { animation: riseIn 0.55s var(--ease-out) 0.1s backwards; }
.acc-head .acc-title { transition: color 0.3s var(--ease), transform 0.5s var(--ease-out); }
.acc-head:hover .acc-title { transform: translateX(5px); }
.acc-head .num { transition: color 0.3s var(--ease); }
.acc-head:hover .num { color: var(--accent); }

/* ---- 22.9 Cards, people, panels ---- */
.card h3 { transition: transform 0.5s var(--ease-out), color 0.3s var(--ease); }
.card:hover h3 { transform: translateX(5px); color: var(--accent); }
.person .portrait { transition: border-color 0.4s var(--ease); }
.person .portrait img { transition: transform 1.1s var(--ease-out), filter 0.6s var(--ease); filter: grayscale(1); }
.person:hover .portrait img { transform: scale(1.04); filter: grayscale(0); }
.person:hover .portrait { border-color: var(--line-2); }
.panel { transition: border-color 0.4s var(--ease), transform 0.6s var(--ease-out); }
.js a.panel:hover { border-color: var(--ink); transform: translateY(-3px); }

/* ---- 22.10 Parallax + page veil ---- */
.para { will-change: transform; }
.page-veil {
  position: fixed; inset: 0; z-index: 200; background: var(--paper);
  opacity: 0; pointer-events: none; transition: opacity 0.32s var(--ease-out);
}
body.is-leaving .page-veil { opacity: 1; }

/* ---- 22.11 Magnetic buttons: transforms are set inline by the script ---- */

/* ---- 22.12 Reduced motion: stand everything down ---- */
@media (prefers-reduced-motion: reduce) {
  .js .split .w-i { transform: none; transition: none; }
  .js .header, .js .hero .eyebrow, .js .hero-aside, .js .hero-foot, .js .cue, .js .strip,
  .js .page-head .eyebrow, .js .page-head .lead { opacity: 1; animation: none; }
  .cue-line i, .js .acc-item.open .acc-panel-in > * { animation: none; }
  .header.is-hidden { transform: none; }
  .js .drawer nav a, .js .drawer .drawer-foot { opacity: 1; transform: none; transition: none; }
  .page-veil { display: none; }
  .card:hover h3, .row-item:hover .row-link h3, .post:hover h3, .acc-head:hover .acc-title,
  .row-item:hover .row-link p, .row-item:hover .row-link .num, .row-item:hover .arw-box,
  .js a.panel:hover, .btn:hover, .person:hover .portrait img { transform: none; }
  .js .sticky-label .num::after, .js .reveal > .num::after { transform: scaleX(1); transition: none; }
  .row-link::before, .tag::before, .btn::before, .acc-sign::before, .acc-sign::after,
  .burger span, .burger span::before, .burger span::after, .drawer, .acc-panel { transition: none; }
}

/* ============================================================
   22.13 – 22.27  SECOND MOTION PASS
   Principle (from the review panel): every new movement is
   triggered by the reader's scroll or hand and then settles.
   Nothing new loops while the page is still, except the clock.
   ============================================================ */

/* ---- 22.13 Hairlines draw themselves ----
   Each list rule now exists twice: a transparent border keeps the layout,
   a pseudo-element paints it and scales in. Do not give these elements
   overflow:hidden or their own ::before/::after. ---- */
.js .row-item, .js .post, .js .acc-item { border-bottom-color: transparent; position: relative; }
.js .row-item::after, .js .post::after, .js .acc-item::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--line);
  transform: scaleX(0); transform-origin: left center; pointer-events: none;
  transition: transform 0.9s var(--ease-out) calc(var(--i, 0) * var(--stag) + 0.12s);
}
.js .row-item.in::after, .js .post.in::after, .js .acc-item.in::after { transform: scaleX(1); }

.js .rows, .js .acc, .js .posts { border-top-color: transparent; position: relative; }
.js .rows::before, .js .acc::before, .js .posts::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line);
  transform: scaleX(0); transform-origin: left center; pointer-events: none;
  transition: transform 0.9s var(--ease-out);
}
.js .rows.in::before, .js .acc.in::before, .js .posts.in::before { transform: scaleX(1); }

@keyframes drawX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.js .hero-foot { border-top-color: transparent; position: relative; }
.js .hero-foot::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line);
  transform-origin: left center; animation: drawX 1.1s var(--ease-out) 0.5s backwards;
}
.js .strip { border-color: transparent; position: relative; }
.js .strip::before, .js .strip::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line);
  transform-origin: left center; animation: drawX 1.1s var(--ease-out) 0.66s backwards;
}
.js .strip::before { top: 0; }
.js .strip::after { bottom: 0; }

.js .footer.rv-rule { border-top-color: transparent; position: relative; }
.js .footer.rv-rule::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line);
  transform: scaleX(0); transform-origin: left center; transition: transform 1s var(--ease-out);
}
.js .footer.rv-rule.in::before { transform: scaleX(1); }
.js .footer.rv-rule .footer-bottom { border-top-color: transparent; position: relative; }
.js .footer.rv-rule .footer-bottom::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line);
  transform: scaleX(0); transform-origin: left center; transition: transform 1s var(--ease-out) 0.3s;
}
.js .footer.rv-rule.in .footer-bottom::before { transform: scaleX(1); }

/* ---- 22.14 Ink curtain: dark bands pour in from their top edge ---- */
.js .rv-ink { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out); }
.js .rv-ink.in { clip-path: inset(0 0 0 0); }
.js .rv-ink .reveal { transition-delay: 0.18s; }
.js .rv-ink .reveal.r1 { transition-delay: 0.26s; }
.js .rv-ink .reveal.r2 { transition-delay: 0.34s; }

/* ---- 22.15 Masthead stays put; the page slides over it (html.mast-pin, set by JS when the hero fits) ---- */
.js.mast-pin .hero, .js.mast-pin .page-head { position: sticky; top: 0; z-index: 0; }
.js.mast-pin main > .section, .js.mast-pin main > .strip { position: relative; z-index: 1; }
.js.mast-pin main > .section:not(.band):not(.dark), .js.mast-pin main > .strip { background: var(--paper); }
.js.mast-pin .hero .wrap, .js.mast-pin .page-head .wrap {
  transform: translate3d(0, calc(var(--hx, 0) * -6vh), 0);
  opacity: calc(1 - var(--hx, 0) * 0.85);
  will-change: transform, opacity;
}

/* ---- 22.16 Read-along ink on long headlines (≥ 8 words) ---- */
.js .split.ink .w-i {
  opacity: clamp(0.5, calc(var(--rp, 1) * (var(--n, 8) + 2) - var(--i, 0)), 1);
  transition: transform var(--dur-slow) var(--ease-out), opacity 0.25s linear;
  transition-delay: calc(var(--i, 0) * var(--stag-word)), 0s;
}

/* ---- 22.17 Sibling dimming: the hovered row lifts out of its list ---- */
@media (hover: hover) and (pointer: fine) {
  .js a.row-link { transition: opacity 0.45s var(--ease-out), transform 0.5s var(--ease-out); }
  .js .post { transition: opacity 0.45s var(--ease-out), transform 0.5s var(--ease-out); }
  .js .acc-head { transition: opacity 0.45s var(--ease-out), transform 0.5s var(--ease-out); }
  .js .row-link h3, .js .acc-head .acc-title, .js .post h3 { transition: color 0.3s var(--ease), transform 0.5s var(--ease-out), opacity 0.45s var(--ease-out); }
  .js .row-link .num, .js .acc-head .num, .js .post .post-tag { transition: color 0.3s var(--ease), transform 0.5s var(--ease-out), opacity 0.45s var(--ease-out); }
  .js .row-link .arw-box { transition: transform 0.45s var(--ease-out), color 0.3s var(--ease), opacity 0.45s var(--ease-out); }
  /* Headings only — body copy and meta stay at full contrast while a sibling is hovered. */
  .js .rows:hover .row-item:not(:hover) a.row-link h3,
  .js .acc:hover .acc-item:not(:hover):not(.open) .acc-head .acc-title,
  .js .posts:hover .post:not(:hover) h3 { opacity: 0.6; }
  .js .rows:hover .row-item:not(:hover) a.row-link .num,
  .js .rows:hover .row-item:not(:hover) a.row-link .arw-box,
  .js .acc:hover .acc-item:not(:hover):not(.open) .acc-head .num,
  .js .posts:hover .post:not(:hover) .post-tag { opacity: 0.42; }
}

/* ---- 22.18 Travelling nav indicator ---- */
.nav { position: relative; }
.nav-ind {
  position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; background: var(--accent);
  transform-origin: left center; transform: scaleX(0); pointer-events: none;
}
.nav-ind.ready { transition: transform 0.5s var(--ease-out); }
.js .nav.has-ind a::after { display: none; }

/* ---- 22.19 Margin gauge in the section channel ---- */
.js .sticky-label .gauge { display: block; width: 1px; height: 54px; margin-top: 1.1rem; background: var(--line-2); overflow: hidden; }
.js .sticky-label .gauge i { display: block; height: 100%; background: var(--ink); transform: scaleY(var(--sp, 0)); transform-origin: top center; will-change: transform; }
.js .sticky-label.in.is-spent .gauge { opacity: 0.55; transition: opacity 0.4s var(--ease); }
.dark .sticky-label .gauge { background: rgba(255,255,255,0.3); }
.dark .sticky-label .gauge i { background: var(--paper); }
@media (max-width: 900px) { .js .sticky-label .gauge { display: none; } }   /* labels stop being sticky here (see .cols) */

/* ---- 22.20 Running head: the header names the current section ---- */
.js .header .wordmark > span { position: relative; }
.js .wm-meta .runhead { left: 0.95rem; }
.js .runhead {
  position: absolute; left: 0; bottom: 0; display: grid; height: 1.65em; line-height: 1.65; overflow: hidden;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; pointer-events: none;
}
.js .runhead span {
  grid-area: 1 / 1; transform: translateY(calc(var(--dir, 1) * 110%)); opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.3s var(--ease);
}
.js .runhead span.is-on { transform: none; opacity: 1; }
.js .runhead span.is-out { transform: translateY(calc(var(--dir, 1) * -110%)); opacity: 0; }
.js .runhead span.jump { transition: none; }
.js .wm-sub { transition: opacity 0.3s var(--ease); }
.js .header.has-run .wm-sub { opacity: 0; }

/* ---- 22.21 Submit rolls to a "Sent" state ---- */
.btn-roll { display: inline-grid; clip-path: inset(0); }
.btn-roll > span { grid-area: 1 / 1; transition: transform 0.55s var(--ease-out), opacity 0.3s var(--ease); }
.btn-roll > span + span { transform: translateY(120%); opacity: 0; }
.is-sent .btn-roll > span:first-child { transform: translateY(-120%); opacity: 0; }
.is-sent .btn-roll > span + span { transform: none; opacity: 1; }
.is-sent .btn[type="submit"] { background: var(--accent); border-color: var(--accent); color: #fff; pointer-events: none; }
.is-sent .field { opacity: 0.6; transition: opacity 0.5s var(--ease); }
.form-note { transition: color 0.4s var(--ease), transform 0.5s var(--ease-out); }
.is-sent .form-note { color: var(--ink); transform: translateX(4px); }

/* ---- 22.22 Live clock ---- */
.clock b { font-weight: inherit; font-variant-numeric: tabular-nums; }
.clock i { font-style: normal; }
@media (max-width: 640px) { .footer-bottom .clock { flex-basis: 100%; } }

/* ---- 22.23 Footer uncovered from beneath (html.footer-pin, set by JS when the footer fits) ---- */
.js.footer-pin main { position: relative; z-index: 1; background: var(--paper); }
.js.footer-pin .footer { position: sticky; bottom: 0; z-index: 0; }
.js.footer-pin .footer-grid > *, .js.footer-pin .footer-bottom {
  transform: translate3d(0, calc((1 - var(--fp, 1)) * 24px), 0);
  opacity: calc(0.2 + var(--fp, 1) * 0.8);
  will-change: transform, opacity;
}

/* ---- 22.24 Index numbers roll to the accent ---- */
.js .num.roll { position: relative; display: inline-block; clip-path: inset(0 0 -0.06em 0); }
.js .num.roll .roll-i { display: block; transition: transform 0.45s var(--ease-out); }
.js .num.roll .roll-o { position: absolute; left: 0; top: 100%; color: var(--accent); transition: transform 0.45s var(--ease-out); }
.row-item:hover .num.roll .roll-i, .row-item:hover .num.roll .roll-o,
.acc-head:hover .num.roll .roll-i, .acc-head:hover .num.roll .roll-o,
.acc-item.open .num.roll .roll-i, .acc-item.open .num.roll .roll-o,
.js body.menu-open .drawer nav a:hover .num.roll .roll-i, .js body.menu-open .drawer nav a:hover .num.roll .roll-o { transform: translateY(-100%); }

/* ---- 22.25 Arrows that travel ---- */
.arw-2 { display: inline-grid; clip-path: inset(0 -0.15em); }
.arw-2 i { grid-area: 1 / 1; font-style: normal; transition: transform 0.5s var(--ease-out); }
.arw-2 i + i { transform: translateX(-130%); }
.link:hover .arw-2 i:first-child, .link:focus-visible .arw-2 i:first-child { transform: translateX(130%); }
.link:hover .arw-2 i + i, .link:focus-visible .arw-2 i + i { transform: none; }
.link:hover .arw-2 { transform: none; }
.row-link .arw-box { position: relative; }
.row-link .arw-box::before {
  content: ""; position: absolute; right: calc(100% - 0.3em); top: 50%; width: 28px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right center; transition: transform 0.5s var(--ease-out) 0.05s;
}
.row-item:hover .arw-box::before { transform: scaleX(1); }

/* ---- 22.26 Press feedback (60ms in, 500ms out — the asymmetry is the spring) ---- */
.js .link { transition: background-size 0.45s var(--ease), color 0.25s var(--ease), opacity 0.5s var(--ease-out); }
.js .nav a, .js .footer ul a, .js .footer-bottom a { transition: color 0.25s var(--ease), opacity 0.5s var(--ease-out); }
.js .tag { transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.5s var(--ease-out); }
.js a.row-link:active, .js .acc-head:active, .js .post:active { transform: scale(0.992); opacity: 0.7; transition-duration: 60ms; }
.js .tag:active { transform: translateY(1px); transition-duration: 60ms; }
.link:active, .nav a:active, .footer ul a:active, .footer-bottom a:active { opacity: 0.55; transition-duration: 60ms; }
.js body.menu-open .drawer nav a:active { transform: translateX(6px); opacity: 0.6; transition-duration: 60ms; transition-delay: 0s; }
body:not(.menu-open) .burger:active span::before { transform: translateY(2px); }
body:not(.menu-open) .burger:active span::after { transform: translateY(-2px); }

/* ---- 22.27 Field states: focus dot, select chevron, completion tick ---- */
.field { position: relative; }
.field label { position: relative; transition: color 0.3s var(--ease); }
.field label::before {
  content: ""; position: absolute; left: -0.9rem; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
  border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform 0.4s var(--ease-out);
}
.field:focus-within label { color: var(--ink); }
.field:focus-within label::before { transform: scale(1); }
.field:has(select) select { padding-right: 1.5rem; }
.field:has(select)::after {
  content: ""; position: absolute; right: 4px; bottom: 1.05rem; width: 7px; height: 7px;
  border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); transform: rotate(45deg);
  pointer-events: none; transition: transform 0.4s var(--ease-out), border-color 0.3s var(--ease);
}
.field:has(select:focus)::after { transform: rotate(-135deg) translate(-2px, -2px); border-color: var(--accent); }
.field::before {
  content: ""; position: absolute; right: 3px; bottom: 0.95rem; width: 9px; height: 5px;
  border-left: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  transform: rotate(-45deg) scale(0); transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.field.is-filled::before { transform: rotate(-45deg) scale(1); }
.field:has(select)::before { display: none; }
.field:has(textarea)::before { right: 18px; }
.field input, .field textarea { caret-color: var(--accent); }

/* ---- 22.28 Reduced motion for the second pass ---- */
@media (prefers-reduced-motion: reduce) {
  .js .row-item, .js .post, .js .acc-item, .js .rows, .js .acc, .js .posts, .js .hero-foot, .js .strip,
  .js .footer.rv-rule, .js .footer.rv-rule .footer-bottom { border-color: var(--line); }
  .js .row-item::after, .js .post::after, .js .acc-item::after, .js .rows::before, .js .acc::before, .js .posts::before,
  .js .hero-foot::before, .js .strip::before, .js .strip::after, .js .footer.rv-rule::before, .js .footer.rv-rule .footer-bottom::before { display: none; }
  .js .rv-ink { clip-path: none; transition: none; }
  .js.mast-pin .hero, .js.mast-pin .page-head { position: static; }
  .js.mast-pin .hero .wrap, .js.mast-pin .page-head .wrap { transform: none; opacity: 1; }
  .js .split.ink .w-i { opacity: 1; }
  .js .rows:hover .row-item:not(:hover) a.row-link *, .js .acc:hover .acc-item:not(:hover):not(.open) .acc-head *, .js .posts:hover .post:not(:hover) * { opacity: 1; }
  .nav-ind, .nav-ind.ready { transition: none; }
  .js .sticky-label .gauge i { transform: scaleY(1); }
  .js .sticky-label.in.is-spent .gauge { opacity: 1; }
  .js .runhead span { transition: none; }
  .btn-roll > span, .is-sent .field { transition: none; }
  .form-note, .is-sent .form-note { transform: none; transition: none; }
  .js.footer-pin .footer-grid > *, .js.footer-pin .footer-bottom { transform: none; opacity: 1; }
  .js.footer-pin .footer { position: static; }
  .js .num.roll .roll-i, .js .num.roll .roll-o { transition: none; }
  .arw-2 i, .arw-box::before { transition: none; }
  .link:hover .arw-2 i:first-child { transform: none; }
  .link:hover .arw-2 i + i { opacity: 0; }
  a.row-link:active, .acc-head:active, .post:active, .tag:active, .js body.menu-open .drawer nav a:active { transform: none; }
  body:not(.menu-open) .burger:active span::before, body:not(.menu-open) .burger:active span::after { transform: none; }
  .field label::before, .field::before, .field:has(select)::after { transition: none; }
}


/* ============================================================
   23. SERVICES PAGE — 3Verity copy
   One page, three segments, as the copy is written. Reference
   material reads as hairline lists; offerings read as cards.
   ============================================================ */

/* ---- 23.1 Voice: the serif tagline under each heading ---- */
.tagline {
  font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.18; letter-spacing: -0.01em; text-wrap: balance;
}
.dark .tagline { color: var(--paper); }
.prose > .tagline { max-width: 32ch; }
.prose > .tagline + .intro, .prose > .tagline + .rows { margin-top: clamp(1.4rem, 2.5vw, 2rem); }
.intro { display: grid; gap: 1.1rem; max-width: 68ch; }
.intro a, .kv dd a {
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2);
  text-underline-offset: 3px; transition: text-decoration-color 0.25s var(--ease);
}
.intro a:hover, .kv dd a:hover { text-decoration-color: var(--accent); }
.block-h { font-size: clamp(1.1rem, 1.5vw, 1.3rem); letter-spacing: -0.02em; margin: clamp(2.5rem, 5vw, 3.5rem) 0 1.1rem; }
.block-gap { margin-top: clamp(1.8rem, 3.5vw, 2.5rem); }
.sl-cta { margin-top: 1.4rem; }

/* ---- 23.2 Segment opener: a chapter break ---- */
.segment { padding-top: clamp(5.5rem, 12vw, 10rem); }
.segment-top { display: flex; align-items: center; gap: 1rem; }
.segment-top::after { content: ""; flex: 1; height: 1px; background: var(--line-2); transform-origin: left center; }
.js .segment-top::after { transform: scaleX(0); transition: transform 1.2s var(--ease-out) 0.2s; }
.js .segment-top.in::after { transform: scaleX(1); }
.js .segment-top > .num::after { display: none; }
.segment-title { margin-top: clamp(1.5rem, 3vw, 2.25rem); max-width: 16ch; }
.segment .tagline { margin-top: 1.1rem; }
.seg-index { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* ---- 23.3 Key requirements: a ruled definition list ---- */
.kv { margin: 0; border-top: 1px solid var(--line); }
.kv-row {
  position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr);
  gap: 0.35rem clamp(1rem, 3vw, 2.5rem); padding-block: 1.05rem; border-bottom: 1px solid var(--line);
}
.kv dt { color: var(--ink); font-weight: 500; letter-spacing: -0.01em; }
.kv dd { margin: 0; }
.kv-tight .kv-row { padding-block: 0.8rem; grid-template-columns: minmax(0, 1fr) minmax(0, 4fr); }
@media (max-width: 640px) { .kv-row, .kv-tight .kv-row { grid-template-columns: 1fr; } }

/* ---- 23.4 What 3Verity offers: a hairline card grid ---- */
.cardgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cardgrid > .card { background: var(--paper); padding: clamp(1.25rem, 2.2vw, 1.75rem); }
.cardgrid .card h3, .cardgrid .card h4 { font-size: 1.04rem; letter-spacing: -0.015em; font-weight: 500; }
.cardgrid .card p { font-size: 0.93rem; }
.cardgrid .card:hover { background: var(--paper); }
.cardgrid .card:hover h3, .cardgrid .card:hover h4 { transform: none; color: var(--ink); }
@media (max-width: 700px) { .cardgrid { grid-template-columns: 1fr; } }

/* ---- 23.5 Process steps: numbered rows that are not links ---- */
.rows.static .row-link { grid-template-columns: 48px minmax(0, 2fr) minmax(0, 3fr); gap: 0.35rem clamp(1rem, 2.5vw, 2rem); padding-block: 1.1rem; cursor: default; }
.rows.static .row-link h3, .rows.static .row-link h4 { font-size: clamp(1rem, 1.3vw, 1.1rem); letter-spacing: -0.015em; font-weight: 500; color: var(--ink); }
.rows.static .row-link p { font-size: 0.95rem; }
.rows.static .row-link::before { display: none; }
.rows.static .row-item:hover .row-link h3, .rows.static .row-item:hover .row-link p,
.rows.static .row-item:hover .row-link .num { transform: none; color: inherit; }
@media (max-width: 820px) { .rows.static .row-link { grid-template-columns: 40px 1fr; } .rows.static .row-link p { grid-column: 2; } }

/* ---- 23.6 Home: the services strip as three link cards ---- */
.link-cards > .card { color: inherit; }
.link-cards .card h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
.link-cards .card-go { color: var(--muted); justify-self: start; transition: transform 0.45s var(--ease-out), color 0.3s var(--ease); }
.link-cards .card:hover .card-go { transform: translateX(6px); color: var(--ink); }
.band .link-cards > .card:hover { background: var(--paper-3); }

/* ---- 23.7 Segment CTA without a lead paragraph ---- */
.cta-solo { display: grid; gap: clamp(1.6rem, 3vw, 2.2rem); justify-items: start; }

/* ---- 23.8 Hairlines draw themselves (extends 22.13 to the ruled lists) ---- */
.js .kv-row { border-bottom-color: transparent; }
.js .kv-row::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--line);
  transform: scaleX(0); transform-origin: left center; pointer-events: none;
  transition: transform 0.9s var(--ease-out) calc(var(--i, 0) * var(--stag) + 0.12s);
}
.js .kv-row.in::after, .js .kv-tight .kv-row::after { transform: scaleX(1); }
.js .kv:not(.kv-tight) { border-top-color: transparent; position: relative; }
.js .kv:not(.kv-tight)::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line);
  transform: scaleX(0); transform-origin: left center; pointer-events: none; transition: transform 0.9s var(--ease-out);
}
.js .kv.in::before { transform: scaleX(1); }

/* ---- 23.10 Beneficial ownership: the focus section and links into it ---- */
.section.focus .sticky-label .num { color: var(--accent); }
.xref {
  color: inherit; text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: var(--line-2); text-underline-offset: 4px;
  transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}
.xref:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ---- 23.9 Reviewer flags — visible only with "Show copy notes" on; notes live in REVIEW.md ---- */
[data-review] { position: relative; }
body.show-slots [data-review] { outline: 1px dashed #B45309; outline-offset: 4px; }
body.show-slots [data-review]::before {
  content: attr(data-review) " · verify"; position: absolute; top: -10px; right: -4px; z-index: 50;
  font: 500 9px/1.4 var(--mono); letter-spacing: 0.06em; background: #B45309; color: #fff;
  padding: 1px 5px; border-radius: 2px; pointer-events: none; white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .js .kv-row, .js .kv:not(.kv-tight) { border-color: var(--line); }
  .js .kv-row::after, .js .kv:not(.kv-tight)::before { display: none; }
  .js .segment-top::after { transform: none; transition: none; }
  .link-cards .card:hover .card-go { transform: none; }
}


/* ============================================================
   24. SEVEN-PAGE LAYOUT (13 Oct 2026)
   Components for "3Verity - Website copy new layout.docx".
   ============================================================ */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- 24.1 Facts only 3Verity can supply: [bracketed] in the copy ---- */
.tbc { text-decoration: underline dotted #B45309; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.dark .tbc { text-decoration-color: #F5B26B; }
body.show-slots .tbc { background: #FFF1E0; box-shadow: 0 0 0 2px #FFF1E0; border-radius: 2px; }
body.show-slots .dark .tbc { background: transparent; box-shadow: none; }

/* ---- 24.2 Section statement set as a paragraph under a labelled heading ---- */
.d2.statement { color: var(--ink); font-weight: 500; max-width: 24ch; text-wrap: balance; }

/* ---- 24.3 Services list as a two-column table of rows ---- */
.rows-head {
  display: grid; grid-template-columns: 48px minmax(0, 2fr) minmax(0, 3fr); gap: 0.35rem clamp(1rem, 2.5vw, 2rem);
  padding-bottom: 0.8rem; font: 500 0.66rem/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.rows.static.svc .row-link { padding-block: clamp(1.2rem, 2.2vw, 1.6rem); }
.rows.static.svc .row-link h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); letter-spacing: -0.025em; font-weight: 500; }
@media (max-width: 820px) { .rows-head { display: none; } }

/* ---- 24.4 Notes and data tables ---- */
.note { font-size: 0.875rem; line-height: 1.6; color: var(--muted); max-width: 68ch; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; position: relative; }
.table-wrap.more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
.table-wrap.more-left { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px); mask-image: linear-gradient(to right, transparent, #000 56px); }
.table-wrap.more-left.more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.table-wrap:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 4px; }
.dtable { width: 100%; border-collapse: collapse; font-size: 0.92rem; line-height: 1.5; }
.dtable thead th {
  text-align: left; vertical-align: bottom; font: 500 0.66rem/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); padding: 0 1rem 0.8rem 0; border-bottom: 1px solid var(--line-2);
}
.dtable td, .dtable tbody th { vertical-align: top; text-align: left; padding: 0.95rem 1rem 0.95rem 0; border-bottom: 1px solid var(--line); color: var(--body); font-weight: 400; }
.dtable tbody th { color: var(--ink); font-weight: 500; }
.dtable.wide { min-width: 720px; }
.dtable.compare tbody th { width: 19%; }
.dtable.compare td { width: 27%; }
.band .dtable td, .band .dtable tbody th { border-bottom-color: var(--line-2); }

/* ---- 24.5 Book an e-appointment: steps, choice pills, confirmation ---- */
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps4 > div { background: var(--paper); padding: clamp(1.25rem, 2.2vw, 1.75rem); display: grid; gap: 0.6rem; align-content: start; }
.steps4 h3 { font-size: 1.04rem; letter-spacing: -0.015em; font-weight: 500; }
.steps4 p { font-size: 0.92rem; }
@media (max-width: 900px) { .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps4 { grid-template-columns: 1fr; } }

.flabel { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.choice { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.field .choice label {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
  font: 400 0.92rem/1.2 var(--sans); letter-spacing: normal; text-transform: none; color: var(--body);
  border: 1px solid var(--line-2); border-radius: 100px; padding: 0.6rem 1rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}
.field .choice label::before { display: none; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.field .choice label:has(input:checked) { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }
.field .choice label:has(input:focus-visible) { outline: 1.5px solid var(--accent); outline-offset: 3px; }
.form-hint { font-size: 0.8rem; color: var(--muted); }

.confirm { border: 1px solid var(--line); padding: clamp(1.6rem, 3vw, 2.4rem); display: grid; gap: 1rem; outline: none; }
.confirm h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.03em; }
.confirm[hidden] { display: none; }
.js .confirm:not([hidden]) { animation: riseIn 0.6s var(--ease-out) backwards; }

/* ---- 24.6 Contact details (contact page and footer) ---- */
.footer ul li > span { display: block; font-size: 0.92rem; line-height: 1.55; color: var(--body); }
.details { display: grid; gap: 1.4rem; margin-top: 1.4rem; }
.details p { margin-top: 0.35rem; }

@media (prefers-reduced-motion: reduce) {
  .js .confirm:not([hidden]) { animation: none; }
  .tabbar a:hover .go { transform: none; }
  .tabbar a::after, .req-ind { transition: none; }
}

.field:has(.choice)::before { display: none; }

/* ============================================================
   25. DOING BUSINESS AS TWO TABS (15 Oct 2026)
   Local Entrepreneurs and Foreign Entrepreneurs: one page each, sharing
   the page head, with a tab bar and a requirements layout of their own.
   ============================================================ */

/* ---- 25.1 Tab bar under the page head ---- */
.section.tabsec { padding-block: 0 clamp(0.5rem, 1.5vw, 1rem); }
.tabbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tabbar a {
  position: relative; display: flex; align-items: baseline; gap: 0.9rem; min-width: 0;
  padding: clamp(1.1rem, 2.2vw, 1.6rem) clamp(0.25rem, 1vw, 0.75rem) clamp(1.1rem, 2.2vw, 1.6rem) 0;
  font-size: clamp(1.15rem, 2.3vw, 1.85rem); line-height: 1.15; letter-spacing: -0.035em; color: var(--muted);
  transition: color 0.3s var(--ease);
}
.tabbar a + a { padding-left: clamp(1rem, 2.5vw, 2rem); border-left: 1px solid var(--line); }
.tabbar a .num { flex: none; font-size: 0.66rem; letter-spacing: 0.14em; }
.tabbar a .go { margin-left: auto; flex: none; font-size: 1rem; color: var(--muted); transition: transform 0.45s var(--ease-out), color 0.3s var(--ease); }
.tabbar a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink);
  transform: scaleX(0); transform-origin: left center; transition: transform 0.5s var(--ease-out);
}
.tabbar a:hover { color: var(--ink); }
.tabbar a:hover .go { transform: translateX(5px); color: var(--ink); }
.tabbar a:hover::after { transform: scaleX(1); }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"]::after { transform: scaleX(1); background: var(--accent); }
.tabbar a[aria-current="page"] .go { visibility: hidden; }
.tabbar a:focus-visible { outline: 1.5px solid var(--accent); outline-offset: -3px; }
@media (max-width: 560px) {
  .tabbar a { flex-wrap: wrap; gap: 0.35rem 0.6rem; font-size: 1.05rem; }
  .tabbar a .num { flex-basis: 100%; }
  .tabbar a .go { display: none; }
}

/* ---- 25.2 Requirements: a side index that follows the reader, numbered requirements beside it ---- */
.section.req-sec { padding-top: clamp(2.5rem, 5vw, 4rem); }
.req-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: start; }   /* column gap = .cols, so both columns line up */
.req-aside { position: sticky; top: calc(var(--header-h) + 2.5rem); }
.req-index { position: relative; }
.req-index .meta { display: block; margin-bottom: 1rem; }
.req-index ol { border-left: 1px solid var(--line); }
.req-index a {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.4rem; padding: 0.5rem 0 0.5rem 1rem;
  font-size: 0.9rem; line-height: 1.4; color: var(--muted); transition: color 0.3s var(--ease);
}
.req-index a .num { padding-top: 0.2em; transition: color 0.3s var(--ease); }
.req-index a:hover, .req-index a.is-done { color: var(--body); }
.req-index a.is-active { color: var(--ink); }
.req-index a.is-active .num { color: var(--accent); }
.req-ind {
  position: absolute; left: 0; top: 0; width: 2px; height: var(--h, 0px); margin-left: -0.5px; background: var(--accent);
  transform: translateY(var(--y, 0px)); opacity: 0; pointer-events: none;
  transition: transform 0.5s var(--ease-out), height 0.5s var(--ease-out), opacity 0.3s var(--ease);
}
.req-ind.on { opacity: 1; }

.req-body { display: grid; gap: clamp(2.5rem, 5vw, 3.75rem); min-width: 0; }
.req-top h2 { margin-bottom: 1rem; }
.req-top p { max-width: 62ch; }
.req-top p + p { margin-top: 1rem; }
.req { border-top: 1px solid var(--line); padding-top: clamp(1.4rem, 2.6vw, 2rem); min-width: 0; }
.req-h { display: flex; align-items: baseline; gap: 1rem; margin-bottom: clamp(1rem, 2vw, 1.4rem); }
.req-h h3 { font-size: clamp(1.3rem, 2.1vw, 1.7rem); line-height: 1.15; letter-spacing: -0.03em; font-weight: 500; }
.req-c > * + * { margin-top: 1.1rem; }
.req-c > p:not(.note) { max-width: 68ch; }
.req .dtable.wide { min-width: 600px; }
.req .kv-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); padding-block: 0.95rem; font-size: 0.95rem; }
@media (max-width: 1000px) {
  .req-layout { grid-template-columns: 1fr; }
  .req-aside { position: static; }
  .req-index ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; border-left: 0; }
  .req-index a { padding-left: 0; border-top: 1px solid var(--line); }
  .req-ind { display: none; }
}
@media (max-width: 560px) { .req-index ol { grid-template-columns: 1fr; } }
@media (max-width: 1000px) {                /* pages with a requirements layout: the page head folds with it */
  body:has(.req-layout) .page-head .cols { grid-template-columns: 1fr; gap: 2rem; }
}


/* ============================================================
   26. OUR THREE GUIDING PRINCIPLES (About Us, 16 Oct 2026)
   The firm's three truths: a statement, the intro, and the
   at-a-glance table as three numbered rows with serif numerals.
   ============================================================ */
.truths-intro { margin-top: clamp(1.6rem, 3vw, 2.4rem); max-width: 60ch; }
.glance { margin-top: clamp(2.5rem, 5vw, 3.75rem); }
.glance-h { font-size: clamp(1.1rem, 1.5vw, 1.3rem); letter-spacing: -0.02em; font-weight: 500; margin-bottom: 1.1rem; }
.truths-head, .truths li { display: grid; grid-template-columns: 4.25rem minmax(0, 2fr) minmax(0, 3fr); gap: 0.35rem clamp(1rem, 2.5vw, 2rem); }
.truths-head {
  padding-bottom: 0.8rem; border-bottom: 1px solid var(--line-2);
  font: 500 0.66rem/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.truths li { align-items: baseline; padding-block: clamp(1.25rem, 2.4vw, 1.75rem); border-bottom: 1px solid var(--line-2); }
.truth-n { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2.6rem, 4.2vw, 3.5rem); line-height: 0.8; color: var(--accent); }
.truths h4 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.25; letter-spacing: -0.02em; font-weight: 500; color: var(--ink); }
.truths p { font-size: 0.98rem; }
.truths li:hover .truth-n { transform: translateX(4px); }
.truth-n { display: inline-block; transition: transform 0.5s var(--ease-out); }
@media (max-width: 700px) {
  .truths-head { display: none; }
  .truths li { grid-template-columns: 3rem minmax(0, 1fr); }
  .truths li p { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .truths li:hover .truth-n { transform: none; } }

/* ============================================================
   27. FINAL WRITE-UP (16 Oct 2026)
   Home tagline, About story, service checklists, the Malaysian /
   foreign requirements tabs, call-to-action bands, the in-progress page.
   ============================================================ */

/* ---- 27.1 Home ---- */
.hero h1.hero-title { font-size: clamp(2.5rem, 5.6vw, 4.6rem); max-width: 15ch; text-wrap: balance; }
.hero-aside .lead { font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.6; }
.d3.statement-wide { color: var(--ink); font-weight: 500; max-width: 32ch; text-wrap: balance; }
.who-body { margin-top: clamp(1.4rem, 2.6vw, 2rem); max-width: 58ch; }

/* ---- 27.2 Page heads with more than one paragraph ---- */
.ph-body > * + * { margin-top: 1rem; }
.ph-body p:not(.lead) { max-width: 62ch; color: var(--body); }
.ph-body .link { margin-left: 0.15rem; }

/* ---- 27.3 About: the story, with its turning point set larger ---- */
.story > * + * { margin-top: 1.15rem; }
.story p { max-width: 64ch; }
.story .pull {
  margin-block: clamp(1.8rem, 3.5vw, 2.6rem); max-width: 30ch; padding-left: clamp(1rem, 2vw, 1.4rem);
  border-left: 2px solid var(--accent); font-size: clamp(1.3rem, 2.1vw, 1.75rem); line-height: 1.28; letter-spacing: -0.025em; color: var(--ink);
}
.people-copy > * + * { margin-top: 1rem; }
.people-copy p { max-width: 62ch; }
.people.people-text { margin-top: clamp(2rem, 4vw, 3rem); }
.people.people-text .person { display: grid; gap: 0.35rem; align-content: start; padding-top: 1.1rem; border-top: 1px solid var(--line-2); }
.people.people-text .person h3 { font-size: clamp(1.05rem, 1.4vw, 1.2rem); letter-spacing: -0.02em; }

/* ---- 27.4 Services: a heading column and a checklist beside it ---- */
.svc-h { margin-top: 1rem; }
.svc-sub { margin-top: 0.8rem; max-width: 26ch; color: var(--body); }
.ticks { border-top: 1px solid var(--line); }
.ticks li { position: relative; padding: 0.85rem 0 0.85rem 1.6rem; border-bottom: 1px solid var(--line); font-size: 0.98rem; line-height: 1.55; color: var(--body); }
.ticks li::before { content: ""; position: absolute; left: 0.2rem; top: 1.38rem; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.band .ticks, .band .ticks li { border-color: var(--line-2); }
.ticks li strong { color: var(--ink); font-weight: 500; }

/* ---- 27.5 Call-to-action bands ---- */
.section.cta-line { padding-block: clamp(4rem, 9vw, 7rem); }
.cta-big {
  display: inline-block; max-width: 24ch; color: var(--paper); text-wrap: balance;
  font-size: clamp(1.8rem, 4vw, 3.1rem); line-height: 1.08; letter-spacing: -0.035em;
}
.cta-big .arw { display: inline-block; margin-left: 0.2em; transition: transform 0.45s var(--ease-out); }
.cta-big:hover .arw, .cta-big:focus-visible .arw { transform: translateX(10px); }
.cta-big:focus-visible { outline: 1.5px solid var(--paper); outline-offset: 6px; }
.band-statement { color: var(--paper); max-width: 30ch; text-wrap: balance; }
@media (min-width: 901px) {                 /* the band's button sits on the page's right edge, like the header button */
  .section.dark .cols-even > :last-child { justify-self: end; }
}

/* ---- 27.6 Setting up a company ---- */
.sec-intro { margin-bottom: clamp(1.6rem, 3vw, 2.2rem); }
.sec-intro > * + * { margin-top: 1rem; }
.sec-intro p { max-width: 62ch; }
.rows.static.structures .row-link p { font-size: 0.95rem; }

/* Tabs: one list of requirements per owner. Without JS both lists show, each under its own heading. */
.atabs-list { display: none; }
.atabs.is-tabs .atabs-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}
.atabs-list [role="tab"] {
  position: relative; display: flex; align-items: baseline; gap: 0.75rem; text-align: left;
  padding: clamp(0.9rem, 1.8vw, 1.25rem) 0.75rem clamp(0.9rem, 1.8vw, 1.25rem) 0;
  font-size: clamp(1.05rem, 1.9vw, 1.45rem); letter-spacing: -0.025em; line-height: 1.2; color: var(--muted);
  transition: color 0.3s var(--ease);
}
.atabs-list [role="tab"] + [role="tab"] { padding-left: clamp(1rem, 2.5vw, 1.5rem); border-left: 1px solid var(--line-2); }
.atabs-list [role="tab"] .num { font-size: 0.66rem; flex: none; }
.atabs-list [role="tab"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink);
  transform: scaleX(0); transform-origin: left center; transition: transform 0.5s var(--ease-out);
}
.atabs-list [role="tab"]:hover { color: var(--ink); }
.atabs-list [role="tab"]:hover::after { transform: scaleX(1); }
.atabs-list [role="tab"][aria-selected="true"] { color: var(--ink); }
.atabs-list [role="tab"][aria-selected="true"]::after { transform: scaleX(1); background: var(--accent); }
.atabs-list [role="tab"]:focus-visible { outline: 1.5px solid var(--accent); outline-offset: -3px; }
.atabs-h { font-size: clamp(1.1rem, 1.5vw, 1.3rem); letter-spacing: -0.02em; font-weight: 500; margin: 1.6rem 0 0.9rem; }
.atabs-panel:first-of-type .atabs-h { margin-top: 0; }
.atabs.is-tabs .atabs-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.atabs-lead { margin-bottom: 0.9rem; max-width: 60ch; color: var(--ink); }
.js .atabs.is-tabs .atabs-panel:not([hidden]) { animation: riseIn 0.5s var(--ease-out) backwards; }
@media (max-width: 560px) {
  .atabs-list [role="tab"] { flex-wrap: wrap; gap: 0.3rem 0.6rem; font-size: 1rem; }
  .atabs-list [role="tab"] .num { flex-basis: 100%; }
}

/* ---- 27.7 Doing business: in progress ---- */
.soon { border: 1px dashed var(--line-2); padding: clamp(1.6rem, 3vw, 2.4rem); }
.soon p { color: var(--body); }

@media (prefers-reduced-motion: reduce) {
  .cta-big:hover .arw, .cta-big:focus-visible .arw { transform: none; }
  .atabs-list [role="tab"]::after { transition: none; }
  .js .atabs.is-tabs .atabs-panel:not([hidden]) { animation: none; }
}

/* ============================================================
   28. MENU: DOING BUSINESS OPENS ONTO ITS TWO TABS (16 Oct 2026)
   ============================================================ */
.nav-group { position: relative; display: flex; align-items: center; }
.nav-caret {
  display: inline-block; width: 5px; height: 5px; margin-left: 0.45rem; vertical-align: 0.2em;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.nav-group:hover .nav-caret, .nav-group:focus-within .nav-caret { transform: translateY(2px) rotate(-135deg); }
.nav-group > a[aria-current="true"] { color: var(--ink); }
.nav-group > a[aria-current="true"]::after { right: 0; background: var(--accent); }
.nav-sub {
  position: absolute; top: calc(100% + 0.75rem); left: -1.1rem; z-index: 5; min-width: 15rem;
  display: grid; padding: 0.4rem 0; background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 22px 44px -28px rgba(15, 16, 18, 0.28);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease-out), visibility 0.25s;
}
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -0.8rem; height: 0.8rem; }   /* keeps hover across the gap */
.nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav .nav-sub a { display: flex; align-items: baseline; gap: 0.7rem; padding: 0.6rem 1.1rem; font-size: 0.9rem; color: var(--body); white-space: nowrap; }
.nav .nav-sub a::after { display: none; }
.nav .nav-sub a .num { font-size: 0.62rem; }
.nav .nav-sub a:hover, .nav .nav-sub a:focus-visible, .nav .nav-sub a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav .nav-sub a:focus-visible { outline: 1.5px solid var(--accent); outline-offset: -3px; }
.drawer nav a.sub { font-size: clamp(1.25rem, 5.4vw, 1.6rem); padding-left: 1.6rem; border-bottom-color: transparent; }
.drawer nav a.sub .num { font-size: 0.6rem; }
@media (prefers-reduced-motion: reduce) { .nav-sub, .nav-caret { transition: none; } }

/* ============================================================
   29. LOCAL ENTREPRENEURS: STRUCTURE TABLE (16 Oct 2026)
   Laid out like Foreign Entrepreneurs → Choosing your vehicle.
   ============================================================ */
.dtable.structures-table { table-layout: fixed; }
.dtable.structures-table thead th:nth-child(1) { width: 17%; }
.dtable.structures-table thead th:nth-child(2) { width: 41%; }
.dtable.structures-table thead th:nth-child(3) { width: 42%; }
.dtable.structures-table td p + p { margin-top: 0.6rem; }
.kreq { margin: 0; }
.kreq > div {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0.15rem 0.8rem;
  padding: 0.42rem 0; border-top: 1px solid var(--line);
}
.kreq > div:first-child { border-top: 0; padding-top: 0; }
.kreq dt { color: var(--ink); font-weight: 500; font-size: 0.86rem; line-height: 1.45; }
.kreq dd { margin: 0; font-size: 0.88rem; line-height: 1.45; }

/* On phones the structure and vehicle tables stack row by row; each cell is labelled with its column heading. */
@media (max-width: 700px) {
  .dtable.wide.stack-sm, .req .dtable.wide.stack-sm { min-width: 0; table-layout: auto; }
  .dtable.stack-sm thead { display: none; }
  .dtable.stack-sm, .dtable.stack-sm tbody, .dtable.stack-sm tr, .dtable.stack-sm tbody th, .dtable.stack-sm td { display: block; width: auto; }
  .dtable.stack-sm tr { padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
  .dtable.stack-sm tr:first-child { border-top: 1px solid var(--line-2); }
  .dtable.stack-sm tbody th, .dtable.stack-sm td { padding: 0; border-bottom: 0; }
  .dtable.stack-sm tbody th { font-size: 1.02rem; letter-spacing: -0.015em; margin-bottom: 0.7rem; }
  .dtable.stack-sm td + td { margin-top: 0.85rem; }
  .dtable.stack-sm td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 0.35rem;
    font: 500 0.62rem/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  }
}


/* ============================================================
   30. FAQ (Doing Business, 16 Oct 2026)
   Topic index beside the topics; each question is an accordion.
   ============================================================ */
.faq-updated { display: block; margin-top: 0.9rem; }
.faq-topic .req-c > p { max-width: 64ch; }
.faq-glance { margin-top: 1.25rem; }
.faq-glance .kv-row { padding-block: 0.65rem; font-size: 0.9rem; }
.faq-acc { margin-top: clamp(1.5rem, 2.8vw, 2.1rem); border-top-color: var(--line-2); }
.faq-acc .acc-head { padding-block: 1.05rem; }
.faq-acc .acc-h { font-size: clamp(1rem, 1.25vw, 1.1rem); font-weight: 500; letter-spacing: -0.012em; line-height: 1.35; }
.faq-acc .acc-panel-in { font-size: 0.95rem; }
.faq-acc .acc-panel-in > * + * { margin-top: 0.75rem; }
.faq-list { display: grid; gap: 0.4rem; }
.faq-list li { position: relative; padding-left: 1.15rem; }
.faq-list li::before { content: ""; position: absolute; left: 0.15rem; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
ol.faq-steps { counter-reset: step; display: grid; gap: 0.45rem; }
ol.faq-steps li { position: relative; padding-left: 2rem; counter-increment: step; }
ol.faq-steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0.2em;
  font: 500 0.66rem/1.6 var(--mono); letter-spacing: 0.08em; color: var(--muted);
}
.faq-note { padding-left: 0.9rem; border-left: 2px solid var(--accent); color: var(--ink); }
.faq-note strong { font-weight: 500; }
.faq-disclaimer { margin-top: clamp(0.5rem, 1.5vw, 1rem); }
@media (max-width: 700px) {
  .faq-acc .acc-head { grid-template-columns: 30px minmax(0, 1fr) 18px; gap: 0.7rem; }
  .faq-acc .acc-panel-in { padding: 0 0 1.4rem calc(30px + 0.7rem); }
}

/* Contact email as a link: underlined like other inline links, inherits the size of its line */
a.mail { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color 0.3s var(--ease); }
a.mail:hover, a.mail:focus-visible { text-decoration-color: var(--accent); }

/* ========== 31. Launch: live forms and the legal pages ========== */
/* A field people never see: send.php ignores any form that fills it in */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { font-size: 0.8rem; color: var(--muted); }
.form-privacy a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.form-privacy a:hover, .form-privacy a:focus-visible { text-decoration-color: var(--accent); }
.form-note.is-error { color: #B42318; }
.is-busy .btn[type="submit"] { opacity: 0.65; cursor: progress; }
/* Privacy notice, Notis privasi, Terms of use: the requirements layout, one numbered section per heading */
.legal-sec .req-h h2 { font-size: clamp(1.3rem, 2.1vw, 1.7rem); line-height: 1.15; letter-spacing: -0.03em; font-weight: 500; }
.legal-sec .req-c a:not(.mail), .ph-body .lead a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.legal-updated { margin-top: 1.2rem; }

/* ========== 32. Justified paragraphs (requested 16 October) ========== */
/* Body text sets justified, with hyphenation (long words only) so the word spacing stays even in narrow columns and on phones */
main p, main li, main dd, footer .footer-grid p {
  text-align: justify;
  -webkit-hyphens: auto; hyphens: auto;
  hyphenate-limit-chars: 8 4 4;
}
/* Display statements, labels, interface text, the side indexes and address lines keep a ragged edge: justifying them leaves gaps */
main .d1, main .d2, main .d3, main .pull, main .band-statement, main .hero-title, main .statement, main .statement-wide, main .cta-big,
main .meta, main .eyebrow, main .num, main .form-note, main .form-hint, main .form-privacy, main .legal-switch,
main .req-index li, main .details li, main .details p, main .tabbar *, main .confirm h3 {
  text-align: left;
  -webkit-hyphens: manual; hyphens: manual;
}

/* Justified text shows every paragraph's right edge, so body text in a column runs the column's full width, like its lists,
   tables and forms: one left edge and one right edge per column. Display statements keep their shorter measure. */
main p:not(.d1):not(.d2):not(.d3):not(.pull):not(.band-statement):not(.statement):not(.statement-wide):not(.cta-big),
main ul.faq-list, main ol.faq-steps { max-width: none; }

/* ========== 33. Photographs (17 October) ========== */
/* A wide photo inside the page's edges (the same left and right edges as the text), with a small caption below */
.photo-sec { padding-block: clamp(2.5rem, 6vw, 5rem) 0; }
.page-head + .photo-sec { padding-top: 0; }
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; background: var(--paper-2); }
.photo figcaption { margin-top: 0.9rem; }

/* ========== 34. FAQ from the five FAQ documents (18 October) ========== */
/* Questions in groups ("The basics", "Requirements", …), tables inside answers, then each topic's "Need help…?" and its
   official references (links to the authorities' own pages and documents) */
.faq-group { display: block; margin-top: clamp(1.9rem, 3.4vw, 2.6rem); }
.faq-group + .faq-acc { margin-top: 0.85rem; }
.faq-acc .acc-panel-in .table-wrap { margin-top: 0.9rem; }
.faq-table { font-size: 0.88rem; }
.faq-help { margin-top: clamp(2.2rem, 4vw, 3rem); padding-top: clamp(1.4rem, 2.6vw, 1.9rem); border-top: 1px solid var(--line-2); }
.faq-help h4 { font-size: clamp(1.05rem, 1.5vw, 1.2rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; color: var(--ink); }
.faq-help p { margin-top: 0.7rem; }
.faq-help-link { margin-top: 1.1rem; }
.faq-refs { margin-top: clamp(1.8rem, 3.2vw, 2.4rem); }
.faq-refs .faq-list { margin-top: 0.85rem; font-size: 0.9rem; }
.faq-refs a { color: var(--body); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease); }
.faq-refs a:hover, .faq-refs a:focus-visible { color: var(--accent); text-decoration-color: currentColor; }
main .faq-refs li, main .faq-table th, main .faq-table td { text-align: left; -webkit-hyphens: manual; hyphens: manual; }

/* ========== 35. Sustainability statement (29 October) ========== */
/* Bold lead-ins in the FAQ answers and in the statement: medium weight in the heading colour, like the checklists' (§27) */
.faq-acc strong, .legal-sec .req-c strong { font-weight: 500; color: var(--ink); }
/* Headings inside justified list items keep a ragged edge: a justified heading spreads its words apart (About Us →
   Our Guiding Principles, found 30 October) */
main li :is(h2, h3, h4, h5, h6) { text-align: left; -webkit-hyphens: manual; hyphens: manual; }
