/* Shared styles for About and Projects. Same tokens as the home page. */
:root {
  --bg: #f2f5f1;
  --surface: #ffffff;
  --ink: #0f2420;
  --muted: #4f625d;
  --line: #d3ddd7;
  --accent: #1d5a49;
  --accent-ink: #ffffff;
  --brass: #a67c2e;
  --plot: #dfe9e2;
  --grid: #dfe7e1;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Hanken Grotesk", "Noto Sans Tamil", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1a17; --surface: #13261f; --ink: #e9f1ed; --muted: #9bb0a9; --line: #25403a;
    --accent: #6cc3a6; --accent-ink: #072019; --brass: #d3aa5c; --plot: #1d3a31; --grid: #16302a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1a17; --surface: #13261f; --ink: #e9f1ed; --muted: #9bb0a9; --line: #25403a;
  --accent: #6cc3a6; --accent-ink: #072019; --brass: #d3aa5c; --plot: #1d3a31; --grid: #16302a;
  color-scheme: dark;
}
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font-body); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
img { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.02; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
:lang(ta) h1, :lang(ta) h2, :lang(ta) h3 { font-family: var(--font-body); letter-spacing: 0; line-height: 1.25; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1120px; margin-inline: auto; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 4px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 600 15px var(--font-body); text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn:hover { filter: brightness(1.08); }

/* top bar */
.bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding-block: 16px; }
.brand { display: block; }
.logo { height: 52px; width: auto; display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo { filter: invert(1) brightness(1.1); } }
:root[data-theme="dark"] .logo { filter: invert(1) brightness(1.1); }
.links { display: flex; gap: 26px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.links a { text-decoration: none; padding-block: 6px; border-bottom: 1px solid transparent; }
.links a:hover { border-bottom-color: var(--line); }
.links a[aria-current="page"] { border-bottom-color: var(--brass); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { background: transparent; border: 0; padding: 6px 12px; font: 500 13px var(--font-body); color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
@media (max-width: 760px) {
  .links { order: 3; width: 100%; gap: 22px; padding-top: 4px; border-top: 1px solid var(--line); }
}

/* footer */
.foot { margin-top: clamp(56px, 8vw, 110px); border-top: 1px solid var(--line); padding-block: 32px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 40px; color: var(--muted); font-size: 14px; }
.foot b { color: var(--ink); font-weight: 600; }
.foot .fine { font-size: 12px; }

.logo-sc { height: 40px; width: auto; display: block; }
.brand2 { display: block; margin-left: 4px; } .bar .brand2 .logo.logo-sc { height: 26px; width: auto; }
.devby { display: none; align-items: center; gap: 12px; margin-top: 20px; color: var(--muted); font-size: 14px; }
.devby .logo-sc { height: 34px; }
@media (min-width: 900px) { .brand2 { margin-left: 6px; } .bar .brand2 .logo-sc { height: 40px; } }

/* Pinned header */
html { scroll-padding-top: 84px; }
.bar { position: sticky; top: 0; z-index: 50; background: var(--bg); box-shadow: 0 1px 0 var(--line); transition: padding .2s ease; }
@media (max-width: 899px) { .bar.min { padding-block: 8px; } .bar.min .links { display: none; } .bar.min .brand .logo { height: 40px; width: auto; } }

/* Floating WhatsApp and call buttons */
.fabs { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 55; display: grid; gap: 12px; }
.fab { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.28); transition: transform .15s ease; }
.fab:hover { transform: scale(1.06); }
.fab svg { width: 28px; height: 28px; fill: currentColor; }
.fab-wa { background: #25d366; }
.fab-tel { background: #c0392b; }
@media (min-width: 900px) { .fabs { right: 24px; bottom: 24px; } .fab { width: 60px; height: 60px; } }
@media (max-width: 899px) { .bar .brand .logo { height: 44px; } }

/* Mobile menu */
.menu-btn { display: none; }
@media (max-width: 899px) {
  .bar, .bar.min { flex-wrap: nowrap; gap: 8px; padding-block: 8px; }
  .bar .brand .logo, .bar.min .brand .logo { height: 38px; }
  .bar .brand2 { margin-left: auto; }
  .bar .brand2 .logo.logo-sc { height: 22px; }
  .bar .bar-r, .bar .lang { margin-left: auto; }
  .bar .brand2 { margin-left: 0; }
  .menu-btn { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; padding: 0; }
  .menu-btn svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
  .bar .links, .bar.min .links { display: none; position: absolute; left: 0; right: 0; top: 100%; width: auto; margin: 0; padding: 6px 16px 12px; border-top: 1px solid var(--line); flex-direction: column; gap: 0; order: 0; background: var(--bg); box-shadow: 0 14px 22px rgba(0,0,0,.14); }
  .bar.open .links { display: flex; }
  .bar .links a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--line); }
  .bar .links a:last-child { border-bottom: 0; }
}

.faq details .fa { padding: 0 0 18px; color: var(--muted); } .faq details .fa p { padding: 0 0 12px; margin: 0; } .faq details .fa p:last-child { padding-bottom: 0; }
mark.ph { background: #ffe97a; color: #111; padding: 0 3px; border-radius: 3px; }
.faq-more { max-width: 820px; margin-top: 16px; display: grid; gap: 8px; justify-items: start; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 18px; color: var(--muted); }
.faq-more b { color: var(--ink); font-size: 18px; }
.sf { margin-top: clamp(48px, 8vw, 96px); border-top: 1px solid var(--line); padding-block: 32px 36px; color: var(--muted); font-size: 14px; display: grid; gap: 24px; }
.sf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.sf h4 { margin: 0 0 10px; color: var(--ink); font-size: 15px; font-weight: 600; }
.sf a { color: inherit; text-decoration: none; display: block; padding-block: 3px; }
.sf a:hover { color: var(--ink); text-decoration: underline; }
.sf p { margin: 10px 0 0; }
.sf .sf-logo { height: 44px; width: auto; }
.sf-fine { border-top: 1px solid var(--line); padding-top: 16px; font-size: 12px; display: grid; gap: 6px; }
@media (max-width: 899px) { .sf { padding-bottom: 100px; } }
.lang button { padding: 9px 14px; }
.sf a { padding-block: 9px; }
.bar .brand2 { padding-block: 11px; }
