/* KSK & Co, Chartered Accountants: shared styles for every page.
   Ledger paper and deep teal ink; KSK orange marks rules, ticks and the main action. */
:root {
  --paper: #EEF2EE;
  --paper-2: #E2E9E4;
  --sheet: #F8FAF8;
  --ink: #0E2C31;
  --ink-2: #3D585C;
  --ink-3: #7D9592;
  --teal: #1B5F63;
  --rule: #CFDBD6;
  --rule-strong: #9DB3AF;
  --orange: #F68B36;
  --orange-ink: #A84A0C;
  --on-orange: #1B1206;
  --err: #B3261E;
  --band: #0E2C31;
  --band-fg: #E7EFEB;
  --band-muted: #A3BAB6;
  --band-rule: #2B4B50;
  --shade: 14, 44, 49;

  --font-display: "Brygada 1918", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --side: 15rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B1D21; --paper-2: #10262B; --sheet: #132D33;
    --ink: #E4ECE8; --ink-2: #A9BDB9; --ink-3: #6A8784;
    --teal: #82C6C1; --rule: #20383D; --rule-strong: #3C5A5F;
    --orange: #FB913E; --orange-ink: #FFA562; --on-orange: #1B1206; --err: #FF8A80;
    --band: #061316; --band-fg: #E4ECE8; --band-muted: #93AAA6; --band-rule: #1D3539;
    --shade: 4, 16, 19;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0B1D21; --paper-2: #10262B; --sheet: #132D33;
  --ink: #E4ECE8; --ink-2: #A9BDB9; --ink-3: #6A8784;
  --teal: #82C6C1; --rule: #20383D; --rule-strong: #3C5A5F;
  --orange: #FB913E; --orange-ink: #FFA562; --on-orange: #1B1206; --err: #FF8A80;
  --band: #061316; --band-fg: #E4ECE8; --band-muted: #93AAA6; --band-rule: #1D3539;
  --shade: 4, 16, 19;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: clip;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
svg { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
::selection { background: var(--orange); color: var(--on-orange); }
p, ul, ol, dl, address, figure { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1:focus { outline: none; }
abbr[title] { text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 0.2em; cursor: help; }
.nw { white-space: nowrap; }
.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; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 8px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { max-width: calc(var(--wrap) + 64px); padding-inline: 32px; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-top: 3px double var(--orange); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 10px 20px; min-height: 70px; }
.site-header .brand { margin-right: auto; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: var(--ink); line-height: 1; }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; letter-spacing: -0.01em; padding-bottom: 4px; border-bottom: 3px double var(--orange); }
.amp { font-style: italic; font-weight: 400; color: var(--orange-ink); margin: 0 0.06em; }
.brand-sub { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.17em; text-transform: uppercase; color: var(--ink-2); margin-top: 6px; }
.nav { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; font-size: 0.94rem; font-weight: 500; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--rule-strong); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--orange); }
.menu-btn { display: none; align-items: center; gap: 10px; font: 600 0.9rem/1 var(--font-body); color: var(--ink); background: transparent; border: 1px solid var(--rule-strong); padding: 10px 12px; border-radius: 2px; cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
.theme-btn { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; background: transparent; color: var(--ink-2); border: 1px solid var(--rule-strong); border-radius: 2px; cursor: pointer; }
.theme-btn:hover { color: var(--ink); border-color: var(--ink); }
.theme-btn svg { width: 20px; height: 20px; }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule-strong); padding: 4px 16px 16px; box-shadow: 0 16px 24px -20px rgba(0, 0, 0, 0.35); }
  .site-header.is-open .site-nav { display: block; }
  .nav { flex-direction: column; }
  .nav a { padding: 13px 2px; border-bottom: 1px solid var(--rule); font-size: 1rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule); box-shadow: inset 3px 0 0 var(--orange); padding-left: 12px; }
}

/* ---------- ICAI disclaimer notice ---------- */
.notice { background: var(--band); color: var(--band-fg); border-bottom: 3px double var(--orange); font-size: 0.9rem; line-height: 1.5; }
.notice .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px 24px; padding-block: 12px; }
.notice-title { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); display: flex; align-items: center; gap: 10px; }
.notice-title::before { content: ""; width: 14px; height: 5px; border-top: 1px solid var(--orange); border-bottom: 1px solid var(--orange); }
.notice-text { color: var(--band-fg); max-width: 92ch; }
.notice-text abbr[title] { text-decoration-color: var(--band-muted); }
.notice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.notice-actions .btn { padding: 8px 16px; font-size: 0.9rem; }
.notice a { color: var(--band-fg); white-space: nowrap; }
.notice a:hover { color: var(--orange); }
@media (max-width: 980px) { .notice .wrap { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 12px 14px; } }
@media (max-width: 719px) { .notice-more { display: none; } .notice { font-size: 0.86rem; } }

/* ---------- Shared pieces ---------- */
.band { padding-block: clamp(56px, 8vw, 104px); }
.band-alt { background: var(--paper-2); }
.band-ink { background: var(--band); color: var(--band-fg); }
.label { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.label::before { content: ""; flex: none; width: 18px; height: 5px; border-top: 1px solid var(--orange); border-bottom: 1px solid var(--orange); }
.band-ink .label { color: var(--band-muted); }
h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.1; letter-spacing: -0.012em; max-width: 26ch; }
.band-ink h2 { color: var(--band-fg); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head > div { display: grid; gap: 14px; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--teal); }
.more svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.more:hover svg { transform: translateX(3px); }
.band-ink .more { color: var(--band-fg); }
.band-ink .more:hover { color: var(--orange); }
.lede { max-width: 58ch; font-size: 1.125rem; color: var(--ink-2); }

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--rule); break-inside: avoid; }
.ticks li::before {
  content: ""; position: absolute; left: 1px; top: 16px; width: 16px; height: 12px; background: var(--orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1.5 6.8 5.6 10.4 14.6 1.4' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1.5 6.8 5.6 10.4 14.6 1.4' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ticks.two { columns: 2; column-gap: 36px; }
@media (max-width: 640px) { .ticks.two { columns: 1; } }
.li-note { display: block; font-size: 0.84rem; line-height: 1.45; color: var(--ink-2); margin-top: 2px; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 18px; font: 600 0.95rem/1.2 var(--font-body); text-decoration: none; border: 1px solid var(--ink); border-radius: 2px; cursor: pointer; transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease; }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--teal); border-color: var(--teal); color: var(--paper); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--paper-2); color: var(--ink); }
.btn-accent { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.btn-accent:hover { background: var(--band-fg); border-color: var(--band-fg); color: var(--band); }
.btn-light { background: transparent; color: var(--band-fg); border-color: var(--band-muted); }
.btn-light:hover { background: var(--band-fg); color: var(--band); border-color: var(--band-fg); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.photo { position: relative; overflow: hidden; background: var(--paper-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(44px, 6vw, 88px) clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.hero-copy { position: relative; padding-left: 30px; min-width: 0; }
.hero-copy::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; border-left: 1px solid var(--orange); border-right: 1px solid var(--orange); transform-origin: top; animation: rule-grow 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both; }
@keyframes rule-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.eyebrow { font-family: var(--font-mono); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 20px; }
.hero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 4.6vw, 4.1rem); line-height: 1.02; letter-spacing: -0.02em; }
h1 em { font-style: italic; font-weight: 400; color: var(--teal); }
.hero .lede { margin-top: 24px; }
.hero .actions { margin-top: 32px; }
.hero-media { position: relative; min-width: 0; padding: 0 14px 14px 0; }
.hero-media::after { content: ""; position: absolute; inset: 14px 0 0 14px; border: 1px solid var(--rule-strong); z-index: 0; }
.hero-media .photo { position: relative; z-index: 1; aspect-ratio: 5 / 4; box-shadow: 0 24px 48px -32px rgba(0, 0, 0, 0.45); }
.hero-tag { position: absolute; z-index: 2; left: -14px; bottom: 34px; background: var(--sheet); border: 1px solid var(--rule-strong); border-top: 3px double var(--orange); padding: 10px 14px; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-media { max-width: 36rem; }
  .hero-tag { left: 12px; }
}
@media (max-width: 520px) { .hero-copy { padding-left: 20px; } }

/* ---------- Home hero: practice areas panel (no stock photos: ICAI allows only the firm's own) ---------- */
.hero-panel { background: var(--sheet); border: 1px solid var(--rule-strong); border-top: 3px double var(--orange); padding: 26px 28px 18px; box-shadow: 0 24px 48px -36px rgba(0, 0, 0, 0.45); }
.hero-panel-h { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 12px; border-bottom: 1px solid var(--rule-strong); }
.hero-panel ol { list-style: none; padding: 0; margin: 0; }
.hero-panel a { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 1.35rem; }
.hero-panel li:last-child a { border-bottom: 0; }
.hero-panel a span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--orange-ink); letter-spacing: 0.08em; }
.hero-panel a svg { width: 16px; height: 16px; color: var(--ink-3); transition: transform 0.2s ease, color 0.2s ease; }
.hero-panel a:hover { color: var(--teal); }
.hero-panel a:hover svg { transform: translateX(4px); color: var(--teal); }
.js .hero-panel { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both; }
.split.solo { grid-template-columns: minmax(0, 1fr); max-width: 52rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-err { grid-column: 1 / -1; padding: 12px 14px; border: 1px solid var(--err); border-left-width: 4px; background: var(--paper); }

/* ---------- Inner page banner ---------- */
.banner { position: relative; isolation: isolate; color: #F3F7F5; min-height: clamp(220px, 24vw, 320px); display: flex; align-items: end; background: radial-gradient(900px 400px at 85% 0%, rgba(246, 139, 54, 0.16), transparent 60%), linear-gradient(120deg, #0E2C31 0%, #16424A 60%, #1B5F63 100%); }
.banner .photo { position: absolute; inset: 0; z-index: -2; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 100% 32px; }
.banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-bottom: 3px double var(--orange); }
.banner .wrap { width: 100%; padding-block: clamp(36px, 5vw, 64px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; padding: 0; margin-bottom: 16px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #C9D8D4; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--orange); }
.crumbs a { color: #E7EFEB; text-decoration: none; }
.crumbs a:hover { color: var(--orange); text-decoration: underline; }
.banner h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.015em; max-width: 20ch; color: #F7FAF8; }
.banner p { margin-top: 14px; max-width: 56ch; font-size: 1.08rem; color: #D6E3DF; }

/* ---------- Inner page layout with section menu ---------- */
.page { padding-block: clamp(48px, 7vw, 88px); }
.page-grid { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.page-grid.solo { grid-template-columns: minmax(0, 1fr); }
.subnav { position: sticky; top: 96px; border-top: 2px solid var(--ink); }
.subnav-title { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-2); padding: 12px 0 10px; border-bottom: 1px solid var(--rule-strong); }
.subnav ul { list-style: none; padding: 0; }
.subnav a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--rule-strong); color: var(--ink); text-decoration: none; font-weight: 500; }
.subnav a:hover { color: var(--teal); }
.subnav a[aria-current="page"] { color: var(--ink); box-shadow: inset 3px 0 0 var(--orange); padding-left: 12px; font-weight: 600; }
.subnav a span:last-child { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-3); }
.content { min-width: 0; display: grid; gap: 28px; }
.content h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.prose { display: grid; gap: 18px; max-width: 64ch; }
.prose p { color: var(--ink-2); }
.prose p.first { font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
.next-step { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 12px; padding: 22px 24px; background: var(--sheet); border: 1px solid var(--rule-strong); border-left: 4px solid var(--orange); }
.next-step p { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; }
@media (max-width: 900px) {
  .page-grid { grid-template-columns: minmax(0, 1fr); }
  .subnav { position: static; order: 2; }
}

/* ---------- Cards: areas of practice ---------- */
/* Five cards: one row of five on wide screens, two then three on tablets, one column on phones */
.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cards > .card { grid-column: span 2; }
  .cards > .card:nth-child(-n+2) { grid-column: span 3; }
}
@media (max-width: 680px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .cards > .card, .cards > .card:nth-child(-n+2) { grid-column: auto; }
}
.page .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.page .cards > .card { grid-column: span 2; }
.page .cards > .card:nth-child(-n+2) { grid-column: span 3; }
@media (max-width: 680px) {
  .page .cards { grid-template-columns: minmax(0, 1fr); }
  .page .cards > .card, .page .cards > .card:nth-child(-n+2) { grid-column: auto; }
}
.card { display: flex; will-change: transform; flex-direction: column; background: var(--sheet); border: 1px solid var(--rule-strong); color: var(--ink); text-decoration: none; min-width: 0; transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.card .photo { aspect-ratio: 3 / 2; }
.card .photo img { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card-body { display: grid; gap: 8px; padding: 18px 20px 20px; flex: 1; align-content: start; }
.card-no { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; color: var(--orange-ink); }
.card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; line-height: 1.15; }
.card p { color: var(--ink-2); font-size: 0.96rem; }
.card .more { margin-top: 6px; }
.card:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-3px); box-shadow: 0 18px 36px -28px rgba(0, 0, 0, 0.5); }
.card:hover .photo img { transform: scale(1.04); }
.card:hover h3 { color: var(--teal); }

/* ---------- Split: photo and text ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split .photo { aspect-ratio: 4 / 3; }
.split-text { display: grid; gap: 18px; min-width: 0; }
.split-text p { color: var(--ink-2); }
.split-text p.first { font-size: 1.18rem; color: var(--ink); line-height: 1.55; }
.split-text .actions { margin-top: 8px; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Values / principles ---------- */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0 32px; }
.pt { padding: 24px 0 26px; border-top: 1px solid var(--band-rule); display: grid; gap: 10px; align-content: start; }
.pt svg { width: 38px; height: 38px; color: var(--orange); }
.pt h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; line-height: 1.2; color: var(--band-fg); }
.pt p { color: var(--band-muted); }
.light .pt { border-top-color: var(--rule-strong); }
.light .pt h3 { color: var(--ink); }
.light .pt p { color: var(--ink-2); }
.light .pt svg { color: var(--teal); }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 8px 32px; }
.vgroup { border-top: 2px solid var(--ink); min-width: 0; }
.vgroup h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.35rem; padding: 14px 0 12px; border-bottom: 1px solid var(--rule-strong); }
.vgroup h3 span { font-family: var(--font-mono); font-style: normal; font-size: 0.72rem; font-weight: 500; color: var(--ink-2); letter-spacing: 0.08em; }

/* ---------- Sectors ---------- */
.sectors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; }
.sector { position: relative; isolation: isolate; aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-2); }
.sector img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.sector::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--shade), 0) 40%, rgba(var(--shade), 0.9) 100%); }
.sector span { position: absolute; left: 16px; right: 16px; bottom: 16px; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.2; color: #F7FAF8; padding-top: 10px; border-top: 3px double var(--orange); }
.sector:hover img { transform: scale(1.05); }
@media (max-width: 1020px) { .sectors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sector { aspect-ratio: 4 / 5; } .sector:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; } }

/* ---------- Call to action band ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.cta { padding: clamp(24px, 4vw, 40px); background: var(--sheet); border: 1px solid var(--rule-strong); border-left: 4px solid var(--orange); }
.cta p { color: var(--ink-2); margin-top: 12px; max-width: 52ch; }
@media (max-width: 760px) { .cta { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Offices and contact persons ---------- */
.office-list { border-top: 2px solid var(--ink); display: grid; }
.office { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 12px 32px; padding: 26px 0 28px; border-bottom: 1px solid var(--rule-strong); }
.office-kind { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--orange-ink); margin-top: 6px; }
.office h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.15; }
.office-body { display: grid; gap: 12px; min-width: 0; }
.office address { font-style: normal; color: var(--ink-2); line-height: 1.55; }
.office-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.kv { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.kv .k { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.maplink { font-size: 0.92rem; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.maplink svg { width: 12px; height: 12px; }
@media (max-width: 720px) { .office { grid-template-columns: minmax(0, 1fr); } }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0 32px; }
.person { border-top: 2px solid var(--ink); padding: 22px 0 8px; min-width: 0; }
.person h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; line-height: 1.15; }
.role { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--orange-ink); margin: 6px 0 12px; }
.c-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px dotted var(--rule-strong); }
.c-row .k { flex: none; width: 3.4rem; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.c-row .copy-text { flex: 1 1 auto; min-width: 0; }
.copy { flex: none; font: 500 0.66rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 9px; border: 1px solid var(--rule-strong); background: transparent; color: var(--ink-2); border-radius: 2px; cursor: pointer; min-width: 5.4em; }
.copy:hover { color: var(--ink); border-color: var(--ink); }
.copy-text { font-family: var(--font-mono); font-size: 0.92rem; -webkit-user-select: all; user-select: all; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.copy-text.nw { overflow-wrap: normal; }

/* ---------- Enquiry form ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; background: var(--sheet); border: 1px solid var(--rule-strong); padding: clamp(20px, 3vw, 36px); }
.form-title { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 12px; border-bottom: 1px solid var(--rule-strong); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { display: flex; align-items: baseline; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.req { color: var(--orange-ink); }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--rule-strong); border-bottom: 2px solid var(--ink-2); border-radius: 0; padding: 10px 12px; }
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-bottom-color: var(--orange); }
.field [aria-invalid="true"] { border-color: var(--err); border-bottom-color: var(--err); }
.err { font-size: 0.84rem; color: var(--err); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; border-top: 1px dotted var(--rule-strong); padding-top: 20px; }
.form-note { font-size: 0.88rem; color: var(--ink-2); }
.form-done { grid-column: 1 / -1; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 14px; border: 1px solid var(--teal); border-left-width: 4px; background: var(--paper); padding: 16px 18px; }
.form-done svg { width: 24px; height: 24px; color: var(--teal); grid-row: span 2; margin-top: 2px; }
.form-done p { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 640px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Useful links ---------- */
.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; list-style: none; padding: 0; }
.links li { min-width: 0; }
.links li:nth-child(-n+2) { border-top: 2px solid var(--ink); }
.link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--rule-strong); color: var(--ink); text-decoration: none; }
.link-name { font-weight: 600; }
.link-desc { grid-column: 1; font-size: 0.92rem; line-height: 1.45; color: var(--ink-2); }
.link-host { font-family: var(--font-mono); font-size: 0.78rem; color: var(--teal); grid-column: 1; overflow-wrap: anywhere; margin-top: 2px; }
.link-row svg { grid-column: 2; grid-row: 1 / span 3; width: 16px; height: 16px; color: var(--orange-ink); transition: transform 0.2s ease; }
.link-row:hover { color: var(--ink); }
.link-row:hover .link-name { color: var(--teal); text-decoration: underline; }
.link-row:hover svg { transform: translate(3px, -3px); }
@media (max-width: 760px) { .links { grid-template-columns: minmax(0, 1fr); } .links li:nth-child(2) { border-top: 0; } }

/* ---------- Disclaimer page ---------- */
.disclaimer-text { display: grid; gap: 14px; max-width: 70ch; color: var(--ink-2); }
.disclaimer-text ul { padding-left: 1.2em; display: grid; gap: 8px; }
.disclaimer-text li::marker { color: var(--orange-ink); }
.disclaimer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 10px; padding-top: 20px; border-top: 1px dotted var(--rule-strong); }
.agreed-note { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.agreed-note svg { width: 22px; height: 22px; color: var(--teal); flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--band); color: var(--band-fg); padding-block: 56px 36px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.site-footer .brand { color: var(--band-fg); }
.site-footer .brand-sub { color: var(--band-muted); }
.site-footer .amp { color: var(--orange); }
.foot-about { color: var(--band-muted); font-size: 0.95rem; margin-top: 18px; max-width: 34ch; }
.foot-h { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--band-muted); margin-bottom: 12px; }
.foot-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.foot-list a { color: var(--band-fg); text-decoration: none; font-size: 0.95rem; }
.foot-list a:hover { color: var(--orange); text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--band-rule); font-size: 0.92rem; }
.foot-links .foot-h { margin: 0 6px 0 0; }
.foot-links a { color: var(--band-fg); text-decoration: none; border-bottom: 1px solid transparent; }
.foot-links a:hover { color: var(--orange); border-bottom-color: var(--orange); }
.foot-base { border-top: 1px solid var(--band-rule); margin-top: 18px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--band-muted); }
.foot-credit a { color: var(--band-fg); text-decoration: none; border-bottom: 1px solid var(--orange); padding-bottom: 1px; }
.foot-credit a:hover { color: var(--orange); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Live dot ---------- */
.live-dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); display: inline-block; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--orange); opacity: 0; animation: live-ping 2.2s ease-out infinite; }
@keyframes live-ping { 0% { transform: scale(0.5); opacity: 0.8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.t-src, .t-date { font-family: var(--font-mono); }

/* ---------- Latest updates box: the same list and upward scroll as the portal's Home card ---------- */
:root { --g-itax: 67, 56, 202; --g-gst: 194, 65, 12; --g-cbic: 109, 40, 217; --g-mca: 162, 28, 175; }
:root[data-theme="dark"] { --g-itax: 165, 180, 252; --g-gst: 251, 146, 60; --g-cbic: 196, 181, 253; --g-mca: 232, 121, 249; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --g-itax: 165, 180, 252; --g-gst: 251, 146, 60; --g-cbic: 196, 181, 253; --g-mca: 232, 121, 249; } }
.upd-card { background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 10px; padding: 22px 22px 16px; box-shadow: 0 18px 36px -32px rgba(0, 0, 0, 0.5); min-width: 0; }
.upd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.upd-head h3 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 600; }
.upd-all { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--rule-strong); border-radius: 8px; font-size: 0.88rem; font-weight: 500; color: var(--ink); text-decoration: none; background: var(--paper); }
.upd-all:hover { border-color: var(--ink); color: var(--ink); }
.upd-all svg { width: 13px; height: 13px; }
.upd-view { position: relative; height: 15rem; border-radius: 6px; overflow-y: auto; }
.upd-view.tall { height: auto; max-height: none; overflow: visible; }
.upd-view.is-scrolling { overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 0.75rem, #000 calc(100% - 0.75rem), transparent); mask-image: linear-gradient(to bottom, transparent, #000 0.75rem, #000 calc(100% - 0.75rem), transparent); }
.upd-marquee { animation: upd-marquee 40s linear infinite; will-change: transform; }
.upd-view:hover .upd-marquee { animation-play-state: paused; }
@keyframes upd-marquee { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.upd-rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.upd-rows > li + li { border-top: 1px solid var(--rule); }
.upd-row { display: block; padding: 10px 4px; border-radius: 4px; color: var(--ink); text-decoration: none; }
.upd-row:hover { background: var(--paper-2); color: var(--ink); }
.upd-row:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.upd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.upd-chip { display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px; border: 1px solid var(--rule-strong); border-radius: 999px; font-size: 0.8rem; font-weight: 500; color: var(--ink); background: var(--sheet); }
.upd-chip i { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--c, var(--g-itax))); }
.upd-chip[data-group="income-tax"] { --c: var(--g-itax); }
.upd-chip[data-group="gst"] { --c: var(--g-gst); }
.upd-chip[data-group="cbic"] { --c: var(--g-cbic); }
.upd-chip[data-group="mca"] { --c: var(--g-mca); }
.upd-when { font-size: 0.8rem; color: var(--ink-2); }
.upd-when.is-due { color: var(--orange-ink); font-weight: 600; }
.upd-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-size: 0.94rem; line-height: 1.45; }
.upd-view.tall .upd-title { -webkit-line-clamp: 3; }
.upd-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 0.84rem; color: var(--ink-2); }
.upd-pause { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border: 0; border-radius: 4px; background: transparent; font: 500 0.84rem/1.2 var(--font-body); color: var(--ink-2); cursor: pointer; }
.upd-pause:hover { background: var(--paper-2); color: var(--ink); }
.upd-pause svg { width: 12px; height: 12px; }
.upd-pause .i-play, .upd-pause[aria-pressed="true"] .i-pause { display: none; }
.upd-pause[aria-pressed="true"] .i-play { display: block; }
.upd-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; color: var(--ink-2); font-size: 0.92rem; padding: 24px 0; }
.upd-empty a { font-weight: 600; }
.upd-skel { padding: 12px 4px; display: grid; gap: 8px; }
.upd-skel span { display: block; height: 12px; border-radius: 4px; background: var(--paper-2); position: relative; overflow: hidden; }
.upd-skel span:nth-child(1) { width: 9rem; }
.upd-skel span:nth-child(3) { width: 66%; }
.upd-skel span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); transform: translateX(-100%); animation: shimmer 1.4s ease-in-out infinite; }

/* ---------- Latest News lists ---------- */
.feed-status { color: var(--ink-2); font-size: 0.95rem; }
.feed-status.is-error { padding: 16px 18px; background: var(--sheet); border: 1px solid var(--rule-strong); border-left: 4px solid var(--orange); }
.feed-block { display: grid; gap: 4px; }
.feed-time { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--ink-3); }
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 16px; list-style: none; padding: 0; }
.news-card { min-height: 150px; background: var(--sheet); border: 1px solid var(--rule-strong); border-top: 3px solid var(--teal); }
.news-card > a, .news-card > div { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 16px 18px 18px; color: var(--ink); text-decoration: none; }
.news-card > a:hover { background: var(--paper); }
.news-card > a:hover .n-title { color: var(--teal); }
.n-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.n-title { font-size: 0.97rem; font-weight: 500; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.n-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--teal); }
.n-link svg { width: 12px; height: 12px; }
.news-list.compact { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.news-list.compact .news-card { min-height: 0; }
.due-list { list-style: none; padding: 0; border-top: 2px solid var(--ink); }
.due-row { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule-strong); min-height: 58px; }
.due-date { display: grid; justify-items: start; line-height: 1.05; }
.due-day { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; }
.due-mon { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-ink); }
.due-what { display: grid; gap: 2px; min-width: 0; }
.due-title { font-weight: 600; }
.due-sub { font-size: 0.86rem; color: var(--ink-2); }
.due-ext { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); border: 1px solid var(--teal); padding: 1px 5px; margin-left: 6px; }
.feed-note { font-size: 0.86rem; color: var(--ink-2); max-width: 72ch; }
.live-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px 40px; align-items: start; }
.due-box { background: var(--sheet); border: 1px solid var(--rule-strong); padding: 20px 22px 22px; display: grid; gap: 14px; }
.due-box-h { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-2); }
.due-list.compact .due-row { grid-template-columns: 4.2rem minmax(0, 1fr); }
.due-list.compact .due-day { font-size: 1.4rem; }
@media (max-width: 860px) { .live-grid { grid-template-columns: minmax(0, 1fr); } }
.skel { position: relative; overflow: hidden; background: var(--paper-2); border-color: var(--rule); }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); transform: translateX(-100%); animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- Motion: entrance, scroll reveal, banner and header ---------- */
.js .hero-copy > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.js .hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.js .hero-copy > :nth-child(2) { animation-delay: 0.15s; }
.js .hero-copy > :nth-child(3) { animation-delay: 0.3s; }
.js .hero-copy > :nth-child(4) { animation-delay: 0.42s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.js .hero-media .photo { animation: unveil 1.3s cubic-bezier(0.7, 0, 0.2, 1) 0.2s both; }
.js .hero-media .photo img { animation: settle 9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.js .hero-tag { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 1.1s both; }
@keyframes unveil { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }
.js .banner .photo img { animation: settle 12s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.js .banner .wrap > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.js .banner .wrap > :nth-child(2) { animation-delay: 0.1s; }
.js .banner .wrap > :nth-child(3) { animation-delay: 0.22s; }
.site-header { transition: box-shadow 0.25s ease; }
.site-header.is-scrolled { box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.45); }
.rv-ready [data-rv] { opacity: 0; transform: translateY(24px); transition: opacity 0.75s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--rv-d, 0s); }
.rv-ready [data-rv].in { opacity: 1; transform: none; }
.rv-ready .sector[data-rv] { transform: translateY(24px) scale(0.98); }
.rv-ready .sector[data-rv].in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv-ready [data-rv] { opacity: 1; transform: none; }
  .upd-marquee { animation: none !important; }
}
