/* Kreare Tech — main stylesheet. Tokens first; every colour goes through a var. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg-primary: #FFFFFF;
  --bg-surface: #F4F4F5;
  --bg-elevated: #FFFFFF;
  --border-default: #E4E4E7;
  --border-strong: #D4D4D8;
  --text-primary: #09090B;
  --text-muted: #52525B;
  --text-disabled: #A1A1AA;

  --brand: #FF3333;            /* logo red: decoration, large shapes only */
  --accent: #D41A1A;           /* AA-safe red for text & links (5.3:1 on white) */
  --accent-bg: #D41A1A;        /* buttons, white text on top (5.3:1) */
  --accent-bg-hover: #B31515;
  --accent-subtle: #D41A1A1F;
  --on-accent: #FFFFFF;

  --invert-bg: #09090B;
  --invert-surface: #18181B;
  --invert-border: #27272A;
  --invert-text: #FAFAFA;
  --invert-muted: #A1A1AA;
  --invert-accent: #FF4D4D;

  --status-success: #15803D;
  --status-error: #B91C1C;
  --whatsapp: #0B7A6E;   /* WhatsApp green darkened for 5.2:1 contrast with white text */

  --shadow-lg: 0 12px 32px #09090B1F;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;

  --radius-sm: 8px; --radius-md: 12px; --radius-pill: 999px;

  --fs-hero: 36px; --fs-title: 36px; --fs-h2: 28px; --fs-h3: 22px;
  --fs-lg: 18px; --fs-body: 15px; --fs-sm: 13px; --fs-xs: 11px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --header-h: 64px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg-primary: #09090B; --bg-surface: #131316; --bg-elevated: #1C1C20;
    --border-default: #27272A; --border-strong: #3F3F46;
    --text-primary: #FAFAFA; --text-muted: #A1A1AA; --text-disabled: #52525B;
    --accent: #FF4D4D; --accent-subtle: #FF4D4D24;
    --invert-bg: #131316; --invert-surface: #1C1C20; --invert-border: #27272A;
    --status-success: #4ADE80; --status-error: #F87171;
    --shadow-lg: 0 12px 32px #00000080;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-primary: #09090B; --bg-surface: #131316; --bg-elevated: #1C1C20;
  --border-default: #27272A; --border-strong: #3F3F46;
  --text-primary: #FAFAFA; --text-muted: #A1A1AA; --text-disabled: #52525B;
  --accent: #FF4D4D; --accent-subtle: #FF4D4D24;
  --invert-bg: #131316; --invert-surface: #1C1C20; --invert-border: #27272A;
  --status-success: #4ADE80; --status-error: #F87171;
  --shadow-lg: 0 12px 32px #00000080;
}

@media (min-width: 768px) {
  :root { --fs-hero: 48px; --header-h: 72px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute must win over component display rules (e.g. .btn is inline-flex). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--space-4)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font: 400 var(--fs-body)/1.6 var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
:lang(te) body { --font: "Noto Sans Telugu", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent-bg); color: var(--on-accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.i18n-loading main, .i18n-loading .site-header, .i18n-loading .site-footer { visibility: hidden; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 32px; height: 32px; stroke-width: 1.75; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-4); }
@media (min-width: 640px) { .container { padding-inline: var(--space-6); } }
@media (min-width: 1024px) { .container { padding-inline: var(--space-12); } }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm);
  background: var(--accent-bg); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
:lang(te) .kicker { letter-spacing: 0; text-transform: none; font-size: var(--fs-body); }
.kicker::before {
  content: ""; width: 16px; height: 8px; background: var(--brand);
  transform: skewX(-14deg); border-radius: 2px;
}
.h-hero { font-size: var(--fs-hero); font-weight: 800; line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
.h-title { font-size: var(--fs-h2); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
@media (min-width: 768px) { .h-title { font-size: var(--fs-title); } }
.h-card { font-size: var(--fs-lg); font-weight: 700; line-height: 1.3; }
:lang(te) .h-hero, :lang(te) .h-title, :lang(te) .h-card { letter-spacing: 0; line-height: 1.4; }
/* Telugu glyphs run wider and taller: one step down the scale */
:lang(te) .h-hero { font-size: var(--fs-h2); }
@media (min-width: 768px) { :lang(te) .h-hero { font-size: var(--fs-title); } }
.lead { font-size: var(--fs-lg); line-height: 1.6; color: var(--text-muted); max-width: 60ch; }
.muted { color: var(--text-muted); }
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: var(--space-3) var(--space-6);
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: var(--fs-body); font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), color 150ms var(--ease-out), transform 100ms var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent-bg); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-bg-hover); }
.btn-secondary { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--text-primary); }
.btn-ghost { background: transparent; color: var(--text-primary); padding-inline: var(--space-3); }
.btn-ghost:hover { background: var(--bg-surface); }
.btn-whatsapp { background: var(--whatsapp); color: #FFFFFF; }
.btn-whatsapp:hover { background: #08665C; }
.btn-sm { min-height: 40px; padding: var(--space-2) var(--space-4); font-size: var(--fs-sm); }
.btn .icon-arrow { transition: transform 150ms var(--ease-out); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px;
  color: var(--accent); font-weight: 600; text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform 150ms var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-primary) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-default);
}
.header-inner { display: flex; align-items: center; gap: var(--space-4); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; border-radius: 4px; }
.brand img { height: 32px; width: auto; }
@media (min-width: 768px) { .brand img { height: 36px; } }

.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none !important; }
  :root:not([data-theme="light"]) .logo-dark { display: block !important; }
}
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }

.nav-list { display: none; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3);
  color: var(--text-muted); font-weight: 500; text-decoration: none; border-radius: var(--radius-sm);
  transition: color 150ms var(--ease-out);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link[aria-current="page"] { color: var(--text-primary); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }

.header-tools { display: flex; align-items: center; gap: var(--space-1); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-width: 44px; height: 44px; padding: 0 var(--space-2);
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-primary);
  cursor: pointer; transition: background-color 150ms var(--ease-out);
}
.icon-btn:hover { background: var(--bg-surface); }
.lang-btn { font-size: var(--fs-sm); font-weight: 600; padding: 0 var(--space-3); border: 1px solid var(--border-default); }
.lang-btn .icon { width: 16px; height: 16px; }
.theme-btn .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .icon-moon { display: block; }
}
:root[data-theme="dark"] .theme-btn .icon-sun { display: none; }
:root[data-theme="dark"] .theme-btn .icon-moon { display: block; }
.header-cta { display: none; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--bg-primary); padding: var(--space-6) var(--space-4) var(--space-12);
  overflow-y: auto; display: none;
}
.mobile-nav.is-open { display: block; }
.mobile-nav .nav-link { display: flex; min-height: 56px; font-size: var(--fs-h3); font-weight: 600; color: var(--text-primary); border-bottom: 1px solid var(--border-default); border-radius: 0; padding: 0; }
.mobile-nav .nav-link[aria-current="page"] { color: var(--accent); box-shadow: none; }
.mobile-nav .btn { width: 100%; margin-top: var(--space-6); }
body.nav-open { overflow: hidden; }

@media (min-width: 1024px) {
  .nav-list { display: flex; gap: var(--space-1); }
  .menu-btn, .mobile-nav { display: none !important; }
  .header-cta { display: inline-flex; margin-left: var(--space-2); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-16); }
@media (min-width: 1024px) { .section { padding-block: var(--space-24); } }
.section-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-12); max-width: 720px; }
.section-alt { background: var(--bg-surface); border-block: 1px solid var(--border-default); }

/* Hero */
.hero { padding-block: var(--space-12) var(--space-16); overflow: hidden; }
@media (min-width: 1024px) { .hero { padding-block: var(--space-24); } }
.hero-grid { display: grid; gap: var(--space-12); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 7fr 5fr; gap: var(--space-16); } }
.hero-copy { display: grid; gap: var(--space-6); justify-items: start; }
.hero-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); color: var(--text-muted); }
.hero-note a { color: var(--text-primary); font-weight: 600; text-underline-offset: 3px; }
.hero-note a:hover { color: var(--accent); }

/* Brand tiles — echoes the slanted tiles in the logo */
.tiles {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-3);
  transform: skewX(-12deg); margin-inline: var(--space-6);
}
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-4);
  min-height: 112px; padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md); border: 1px solid var(--border-default);
  background: var(--bg-surface); color: var(--text-primary); text-decoration: none; overflow: hidden;
  transition: border-color 150ms var(--ease-out), transform 200ms var(--ease-out);
}
.tile > * { transform: skewX(12deg); }
.tile:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.tile .icon { width: 24px; height: 24px; color: var(--accent); }
.tile-label { font-weight: 700; font-size: var(--fs-lg); line-height: 1.2; }
.tile:nth-child(1) { grid-column: 1 / span 7; }
.tile:nth-child(2) { grid-column: 8 / span 5; background: var(--text-primary); color: var(--bg-primary); border-color: transparent; }
.tile:nth-child(2) .icon { color: var(--bg-primary); }
.tile:nth-child(3) { grid-column: 1 / span 5; }
.tile:nth-child(4) { grid-column: 6 / span 7; background: var(--accent-bg); color: var(--on-accent); border-color: transparent; }
.tile:nth-child(4) .icon { color: var(--on-accent); }
.tile:nth-child(4)::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #00000033, transparent 60%); pointer-events: none;
}
@media (min-width: 640px) { .tile { min-height: 144px; } }

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 400ms var(--ease-out) both; }
  .reveal-2 { animation-delay: 80ms; }
  .reveal-3 { animation-delay: 160ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* About strip */
.about-grid { display: grid; gap: var(--space-6); }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 5fr 7fr; gap: var(--space-16); align-items: start; } }
.about-grid .lead { color: var(--text-primary); }

.spotlight-inner { display: grid; gap: var(--space-6); align-items: center; justify-items: start; }
@media (min-width: 768px) { .spotlight-inner { grid-template-columns: auto 1fr; gap: var(--space-12); } }
.spotlight-logo { width: 96px; height: 96px; object-fit: contain; border-radius: var(--radius-md); background: var(--bg-elevated); border: 1px solid var(--border-default); padding: var(--space-4); }

/* Cards */
.grid-3 { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }

.card {
  position: relative; display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-6); border-radius: var(--radius-md);
  background: var(--bg-elevated); border: 1px solid var(--border-default);
  transition: border-color 150ms var(--ease-out), transform 200ms var(--ease-out);
}
.card p { color: var(--text-muted); }
.card-num { font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-2); }
.card-top .icon { color: var(--accent); }
.card .link-arrow { margin-top: auto; }
.card-link:hover { border-color: var(--text-primary); transform: translateY(-2px); }
/* whole card clickable via its link */
.card-link .link-arrow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link .link-arrow:focus-visible { outline: none; }
.card-link:has(.link-arrow:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (min-width: 640px) { .grid-3 > .card-cta:nth-child(5) { grid-column: span 2; } }
.card-cta { background: var(--invert-bg); color: var(--invert-text); border-color: var(--invert-border); }
.card-cta p { color: var(--invert-muted); }
.card-cta .link-arrow { color: var(--invert-accent); }
.card-cta:hover { border-color: var(--invert-accent); }

/* Why us — inverted band */
.band-invert { background: var(--invert-bg); color: var(--invert-text); }
.band-invert .kicker { color: var(--invert-accent); }
.band-invert .lead, .band-invert p { color: var(--invert-muted); }
.band-invert :focus-visible { outline-color: var(--invert-accent); }
.why-list { display: grid; gap: var(--space-8) var(--space-6); }
@media (min-width: 640px) { .why-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-list { grid-template-columns: repeat(3, 1fr); gap: var(--space-12) var(--space-8); } }
.why-item { display: grid; gap: var(--space-3); padding-top: var(--space-6); border-top: 1px solid var(--invert-border); }
.why-item .icon { color: var(--invert-accent); width: 24px; height: 24px; }
.why-item h3 { color: var(--invert-text); }

/* How we work */
.steps { display: grid; gap: var(--space-4); counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); align-content: start; padding: var(--space-6) 0; border-top: 2px solid var(--text-primary); }
.step-num {
  grid-row: span 2; font-size: var(--fs-title); font-weight: 800; line-height: 1;
  color: var(--accent); font-variant-numeric: tabular-nums; min-width: 2ch;
}
.step p { color: var(--text-muted); }

/* CTA band */
.cta-band { padding-block: var(--space-16); }
.cta-box {
  position: relative; overflow: hidden; display: grid; gap: var(--space-6);
  padding: var(--space-8) var(--space-6); border-radius: var(--radius-md);
  background: var(--invert-bg); color: var(--invert-text); border: 1px solid var(--invert-border);
}
@media (min-width: 768px) { .cta-box { padding: var(--space-16); } }
.cta-box p { color: var(--invert-muted); max-width: 56ch; }
.cta-box .btn-secondary { color: var(--invert-text); border-color: var(--invert-border); }
.cta-box .btn-secondary:hover { border-color: var(--invert-text); }
.cta-box :focus-visible { outline-color: var(--invert-accent); }
.cta-box::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 240px; height: 120px;
  background: linear-gradient(90deg, transparent, var(--brand)); opacity: .9;
  transform: skewX(-14deg); border-radius: var(--radius-md); pointer-events: none;
}
.cta-box > * { position: relative; z-index: 1; }

/* ---------- Inner pages ---------- */
.page-hero { padding-block: var(--space-12); border-bottom: 1px solid var(--border-default); }
@media (min-width: 1024px) { .page-hero { padding-block: var(--space-16); } }
.page-hero .container { display: grid; gap: var(--space-4); justify-items: start; }
.h-page { font-size: var(--fs-h2); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; max-width: 22ch; text-wrap: balance; }
@media (min-width: 768px) { .h-page { font-size: var(--fs-hero); } }
:lang(te) .h-page { letter-spacing: 0; line-height: 1.4; max-width: 28ch; }
@media (min-width: 768px) { :lang(te) .h-page { font-size: var(--fs-title); } }
.section-tight { padding-block: var(--space-12); }
@media (min-width: 1024px) { .section-tight { padding-block: var(--space-16); } }
.stack-top { margin-top: var(--space-4); }
.prose { display: grid; gap: var(--space-4); }
.about-grid .prose .lead { color: var(--text-primary); }

/* Services */
.service-row { display: grid; gap: var(--space-8); padding-block: var(--space-12); border-top: 1px solid var(--border-default); }
.service-row:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 1024px) { .service-row { grid-template-columns: 7fr 5fr; gap: var(--space-16); align-items: start; } }
.service-main { display: grid; gap: var(--space-4); justify-items: start; }
.service-meta { display: flex; align-items: center; gap: var(--space-4); color: var(--accent); }
.service-list { padding: var(--space-6); border-radius: var(--radius-md); background: var(--bg-surface); border: 1px solid var(--border-default); }
.list-title { font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); margin-bottom: var(--space-4); }
.check-list { display: grid; gap: var(--space-3); }
.check-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.check-list .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }

/* Our work */
.work-grid { display: grid; gap: var(--space-6); }
@media (min-width: 768px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-card { display: flex; flex-direction: column; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-elevated); border: 1px solid var(--border-default); transition: border-color 150ms var(--ease-out); }
.work-card:hover { border-color: var(--border-strong); }
.work-media { position: relative; aspect-ratio: 16 / 9; background: var(--bg-surface); overflow: hidden; display: grid; place-items: center; }
.work-media img { width: 100%; height: 100%; object-fit: cover; }
.work-media::before { content: ""; position: absolute; left: -10%; bottom: -30%; width: 60%; height: 70%; background: linear-gradient(90deg, transparent, var(--brand)); opacity: .18; transform: skewX(-14deg); border-radius: var(--radius-md); }
.work-media-logo img { position: relative; width: 112px; height: 112px; object-fit: contain; }
.work-initial { position: relative; font-size: var(--fs-h2); font-weight: 800; letter-spacing: -.02em; }
.work-body { display: grid; gap: var(--space-3); padding: var(--space-6); justify-items: start; }
.work-body p { color: var(--text-muted); }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 var(--space-3); border-radius: var(--radius-pill); background: transparent; border: 1px solid currentColor; color: var(--accent); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
:lang(te) .badge { text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); }
.work-empty { padding-block: var(--space-6); }
.work-next { margin-top: var(--space-12); }
.skeleton { background: linear-gradient(90deg, var(--bg-surface), var(--border-default), var(--bg-surface)); background-size: 200% 100%; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: no-preference) { .skeleton { animation: shimmer 1.5s ease-in-out infinite; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* About */
.mv-grid { display: grid; gap: var(--space-6); }
@media (min-width: 1024px) { .mv-grid { grid-template-columns: 1fr 1fr; } }
.mv-card { display: grid; gap: var(--space-4); align-content: start; padding: var(--space-8) var(--space-6); border-radius: var(--radius-md); border: 1px solid var(--border-default); background: var(--bg-surface); }
@media (min-width: 768px) { .mv-card { padding: var(--space-12); } }
.mv-text { font-size: var(--fs-h3); font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
:lang(te) .mv-text { font-size: var(--fs-lg); line-height: 1.7; letter-spacing: 0; }
.mv-invert { background: var(--invert-bg); color: var(--invert-text); border-color: var(--invert-border); }
.mv-invert .kicker { color: var(--invert-accent); }
.founder { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); }
.founder-mark { display: grid; place-items: center; width: 96px; height: 96px; border-radius: var(--radius-md); background: var(--text-primary); color: var(--bg-primary); font-weight: 800; font-size: var(--fs-h3); letter-spacing: .02em; transform: skewX(-8deg); }
.founder img { width: 96px; height: 96px; border-radius: var(--radius-md); object-fit: cover; }

/* Contact */
.contact-grid { display: grid; gap: var(--space-8); }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 7fr 5fr; gap: var(--space-12); align-items: start; } }
.form-card { display: grid; gap: var(--space-6); padding: var(--space-6) var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--border-default); background: var(--bg-elevated); }
@media (min-width: 768px) { .form-card { padding: var(--space-8); } }
#enquiry-form, #apply-form, #status-form { display: grid; gap: var(--space-6); }
.form-fields { display: grid; gap: var(--space-4); }
@media (min-width: 640px) {
  .form-fields { grid-template-columns: 1fr 1fr; }
  .field[data-field="service"], .field[data-field="message"], .char-count { grid-column: 1 / -1; }
}
.field { display: grid; gap: var(--space-2); align-content: start; }
.field label { font-weight: 600; font-size: var(--fs-body); }
.field-tag { font-weight: 400; font-size: var(--fs-sm); color: var(--text-muted); }
.field-tag::before { content: "("; }
.field-tag::after { content: ")"; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: var(--space-3); font: inherit; font-size: 16px; color: var(--text-primary);
  background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
.field textarea { resize: vertical; min-height: 128px; }
.field select {
  appearance: none; padding-right: var(--space-12);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-subtle); }
.field [aria-invalid="true"] { border-color: var(--status-error); }
.field-hint { font-size: var(--fs-sm); color: var(--text-muted); }
.field-error { font-size: var(--fs-sm); font-weight: 600; color: var(--status-error); }
.char-count { font-size: var(--fs-sm); color: var(--text-muted); text-align: right; margin-top: calc(var(--space-2) * -1); font-variant-numeric: tabular-nums; }
.char-count.is-over { color: var(--status-error); font-weight: 600; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--fs-sm); }
.form-note a { color: var(--text-primary); text-underline-offset: 3px; }
.btn-block { width: 100%; }
.form-status { padding: var(--space-4); border-radius: var(--radius-sm); border: 1px solid; font-weight: 500; }
.form-status:focus { outline: none; }
.form-status.is-success { border-color: var(--status-success); color: var(--text-primary); background: color-mix(in srgb, var(--status-success) 12%, transparent); }
.form-status.is-error { border-color: var(--status-error); color: var(--text-primary); background: color-mix(in srgb, var(--status-error) 10%, transparent); }
.form-status strong { display: block; margin-bottom: var(--space-1); }
.direct { display: grid; gap: var(--space-4); }
@media (min-width: 1024px) { .direct { position: sticky; top: calc(var(--header-h) + var(--space-6)); } }
.direct-list { display: grid; gap: var(--space-2); }
.direct-item { display: flex; align-items: center; gap: var(--space-4); min-height: 64px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--border-default); background: var(--bg-elevated); text-decoration: none; color: var(--text-primary); transition: border-color 150ms var(--ease-out); }
a.direct-item:hover { border-color: var(--text-primary); }
.direct-item > .icon { color: var(--accent); }
.direct-item > span { display: grid; min-width: 0; }
.direct-label { font-size: var(--fs-sm); color: var(--text-muted); }
.direct-value { font-weight: 600; overflow-wrap: anywhere; }

/* Privacy */
.prose-page { display: grid; gap: var(--space-4); max-width: 72ch; }
.prose-page h2 { margin-top: var(--space-6); }
.prose-page p { color: var(--text-muted); }
.prose-page .lead { color: var(--text-primary); }
.prose-page .h-sub { font-size: var(--fs-body); font-weight: 700; line-height: 1.4; margin-top: var(--space-2); }
.prose-list { display: grid; gap: var(--space-3); padding-left: 1.25em; list-style: disc; color: var(--text-muted); }
.prose-list li::marker { color: var(--accent); }

/* 404 */
.notfound { border-bottom: 0; padding-block: var(--space-16) var(--space-24); }
.notfound .btn-row { margin-top: var(--space-4); }
.nf-code { font-size: 96px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--accent); }

/* Careers */
.narrow { max-width: 720px; }
.role-grid { display: grid; gap: var(--space-12); }
@media (min-width: 1024px) { .role-grid { grid-template-columns: 7fr 5fr; gap: var(--space-16); align-items: start; } }
.role-card { display: grid; gap: var(--space-4); justify-items: start; }
.role-meta { font-weight: 600; color: var(--text-muted); }
.role-card .list-title { margin: var(--space-4) 0 0; }
.steps-stack { grid-template-columns: 1fr !important; gap: 0; margin-top: var(--space-4); }
.apply-wrap { max-width: 880px; }
.form-fields-1 { grid-template-columns: 1fr !important; }
@media (min-width: 640px) {
  .choice-field, .file-field, .consent-field, .field[data-field="joining"] { grid-column: 1 / -1; }
}
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { font-weight: 600; padding: 0; margin-bottom: var(--space-2); }
.choice-group { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.choice {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-surface);
  cursor: pointer; font-weight: 500; transition: border-color 150ms var(--ease-out);
}
.choice:hover { border-color: var(--text-muted); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-subtle); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent-bg); flex: none; }
.choice-block { display: flex; align-items: flex-start; background: transparent; border: 0; padding: 0; font-weight: 400; }
.choice-block:has(input:checked) { background: transparent; }
.choice-block input { margin-top: 3px; }
.has-error .choice, .has-error .file-drop { border-color: var(--status-error); }
.field-label { font-weight: 600; }
.field-tag-plain { font-weight: 400; font-size: var(--fs-sm); color: var(--text-muted); }
.file-drop {
  display: flex; align-items: center; justify-content: center; gap: var(--space-3); min-height: 64px; padding: var(--space-4);
  border: 2px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-surface);
  font-weight: 600; text-align: center; cursor: pointer; overflow-wrap: anywhere;
  transition: border-color 150ms var(--ease-out);
}
.file-drop:hover { border-color: var(--text-primary); }
.file-field:has(input:focus-visible) .file-drop { outline: 2px solid var(--accent); outline-offset: 2px; }
.file-drop .icon { color: var(--accent); }
.apply-result { display: grid; gap: var(--space-4); }
.apply-result:focus { outline: none; }
.apply-result .h-title { font-size: var(--fs-h2); }
.pitch-link { display: grid; gap: var(--space-3); }
.copy-row { display: flex; gap: var(--space-2); }
.copy-row input {
  flex: 1; min-width: 0; min-height: 40px; padding: var(--space-2) var(--space-3); font: inherit; font-size: var(--fs-sm);
  color: var(--text-primary); background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}

/* Pitch recorder */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-1); padding: var(--space-1); border-radius: var(--radius-sm); background: var(--bg-surface); border: 1px solid var(--border-default); }
.seg-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; border: 0; border-radius: 6px; background: transparent; color: var(--text-muted); font-weight: 600; cursor: pointer; }
.seg-btn[aria-pressed="true"] { background: var(--bg-elevated); color: var(--text-primary); box-shadow: 0 1px 2px #0000001F; }
.rec-panel { display: grid; justify-items: center; gap: var(--space-4); padding-block: var(--space-6); text-align: center; }
#panel-upload { justify-items: stretch; text-align: left; }
.rec-time { font-size: var(--fs-title); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.rec-live { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--accent); font-weight: 600; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
@media (prefers-reduced-motion: no-preference) { .rec-dot { animation: blink 1.2s ease-in-out infinite; } }
@keyframes blink { 50% { opacity: .2; } }
.rec-preview { display: grid; justify-items: center; gap: var(--space-2); width: 100%; }
.rec-preview audio, .drawer audio { width: 100%; }
#p-file { font: inherit; font-size: var(--fs-sm); }

/* Admin */
.container-wide { max-width: 1400px; }
.admin-tag { font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); padding-left: var(--space-3); border-left: 1px solid var(--border-strong); margin-right: auto; }
body.admin .brand { margin-right: 0; }
.admin-main { padding-block: var(--space-8) var(--space-16); }
.admin-loading { padding-block: var(--space-12); }
.admin-center { max-width: 420px; margin: var(--space-12) auto; display: grid; gap: var(--space-4); text-align: center; }
.admin-center .form-card { text-align: left; }
.admin-head { display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-6); }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin-bottom: var(--space-6); }
@media (min-width: 768px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { display: grid; padding: var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--border-default); background: var(--bg-elevated); }
.stat-num { font-size: var(--fs-h2); font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-label { font-size: var(--fs-sm); color: var(--text-muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.toolbar input, .toolbar select, .bulk-bar select, .score-row select {
  min-height: 40px; padding: var(--space-2) var(--space-3); font: inherit; font-size: var(--fs-sm); color: var(--text-primary);
  background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
.toolbar input { flex: 1 1 220px; }
.bulk-bar { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-4); margin-bottom: var(--space-4); border-radius: var(--radius-sm); background: var(--accent-subtle); font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border-default); border-radius: var(--radius-md); }
.data-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: var(--fs-sm); }
.data-table th { text-align: left; font-weight: 600; color: var(--text-muted); background: var(--bg-surface); }
.data-table th, .data-table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-default); white-space: nowrap; }
.data-table tbody tr:hover { background: var(--bg-surface); }
.data-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent-bg); }
.row-open { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--text-primary); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.row-open:hover { color: var(--accent); }
.empty-cell { text-align: center; color: var(--text-muted); padding-block: var(--space-12) !important; }
.pill { display: inline-flex; padding: 2px var(--space-2); border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 600; background: var(--bg-surface); border: 1px solid var(--border-default); }
.pill-shortlisted_round3, .pill-hired { background: color-mix(in srgb, var(--status-success) 15%, transparent); border-color: transparent; }
.pill-pitch_submitted { background: var(--accent-subtle); border-color: transparent; }
.pill-knocked_out, .pill-rejected { color: var(--text-muted); }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); margin-top: var(--space-4); }
.drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(560px, 100vw); max-width: 100vw;
  padding: var(--space-6); border: 0; border-left: 1px solid var(--border-default);
  background: var(--bg-primary); color: var(--text-primary); overflow-y: auto;
}
.drawer::backdrop { background: #09090B80; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); }
.drawer-head .h-title { font-size: var(--fs-h2); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-4); margin: var(--space-6) 0; }
.detail-grid dt { font-size: var(--fs-xs); color: var(--text-muted); }
.detail-grid dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.drawer-block { display: grid; gap: var(--space-3); padding-block: var(--space-4); border-top: 1px solid var(--border-default); }
.score-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.score-total { text-align: right; }

.tabs { display: flex; gap: var(--space-1); margin-bottom: var(--space-8); border-bottom: 1px solid var(--border-default); }
.tab { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-4); border: 0; background: none; color: var(--text-muted); font-weight: 600; cursor: pointer; box-shadow: inset 0 -2px 0 transparent; }
.tab:hover { color: var(--text-primary); }
.tab[aria-selected="true"] { color: var(--text-primary); box-shadow: inset 0 -2px 0 var(--brand); }
.tab-count { padding: 0 var(--space-2); border-radius: var(--radius-pill); background: var(--accent-bg); color: var(--on-accent); font-size: var(--fs-xs); line-height: 20px; }
#tab-panel:focus { outline: none; }
.data-table tr.is-new td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.data-table tr.is-new .row-open { color: var(--text-primary); }
.pill-enq-new { background: transparent; border-color: currentColor; color: var(--accent); }
.pill-enq-contacted { background: color-mix(in srgb, var(--status-success) 15%, transparent); border-color: transparent; }
.pill-enq-closed { color: var(--text-muted); }
.pill-pilot-new { background: transparent; border-color: currentColor; color: var(--accent); }
.pill-pilot-contacted, .pill-pilot-scheduled { background: var(--accent-subtle); border-color: transparent; }
.pill-pilot-running { background: color-mix(in srgb, var(--status-success) 15%, transparent); border-color: transparent; }
.pill-pilot-closed { color: var(--text-muted); }
.enq-message { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.wa-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.btn.danger { color: var(--status-error); }
.btn.danger:hover { background: color-mix(in srgb, var(--status-error) 10%, transparent); }
/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-default); padding-block: var(--space-12) var(--space-24); font-size: var(--fs-sm); }
@media (min-width: 1024px) { .site-footer { padding-bottom: var(--space-12); } }
.footer-grid { display: grid; gap: var(--space-8); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1.5fr; } }
.footer-grid h2 { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-3); }
:lang(te) .footer-grid h2 { letter-spacing: 0; font-size: var(--fs-sm); }
.footer-grid li a, .footer-contact a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; text-decoration: none; color: var(--text-primary); }
.footer-grid li a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact .icon { width: 16px; height: 16px; color: var(--text-muted); }
.footer-contact li { display: flex; align-items: center; gap: var(--space-2); min-height: 40px; }
.footer-brand img { height: 32px; width: auto; margin-bottom: var(--space-4); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--border-default); color: var(--text-muted); }
.footer-bottom a { color: var(--text-muted); text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--text-primary); }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }

/* Floating WhatsApp (mobile-first; WhatsApp is how most people here reach a business) */
.wa-float {
  position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 40;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); color: #FFFFFF; box-shadow: var(--shadow-lg);
  transition: transform 150ms var(--ease-out);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .icon { width: 26px; height: 26px; }
.wa-float:focus-visible { outline: 3px solid var(--text-primary); outline-offset: 3px; border-radius: 50%; }
body.nav-open .wa-float { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- SchoolOS pilot invitation (schoolos-pilot.html) ---------- */
.pilot-hero-grid { display: grid; gap: var(--space-8); align-items: center; }
.pilot-hero-copy { display: grid; gap: var(--space-4); justify-items: start; }
@media (min-width: 1024px) { .pilot-hero-grid { grid-template-columns: 7fr 5fr; gap: var(--space-16); } }
.invite-card {
  display: grid; gap: var(--space-6); width: 100%; max-width: 440px; justify-self: center;
  padding: var(--space-6); border-radius: var(--radius-md); border: 1px solid var(--border-default);
  border-top: 4px solid var(--accent); background: var(--bg-elevated);
  box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 12px 32px -12px rgb(0 0 0 / .18);
}
.invite-top { display: flex; align-items: center; gap: var(--space-3); }
.invite-top img { border-radius: 50%; flex: none; }
.invite-title { font-weight: 700; }
.invite-label, .invite-facts dt { font-size: var(--fs-sm); color: var(--text-muted); }
.invite-school { font-size: var(--fs-h3); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
.invite-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-block: 1px solid var(--border-default); }
.invite-facts > div { padding: var(--space-3) var(--space-2); text-align: center; }
.invite-facts > div + div { border-left: 1px solid var(--border-default); }
.invite-facts dd { margin: var(--space-1) 0 0; font-weight: 700; }
.invite-from { font-size: var(--fs-sm); color: var(--text-muted); }
.pilot-offer { padding: var(--space-6); border-radius: var(--radius-md); background: var(--bg-surface); }
#pilot-form { display: grid; gap: var(--space-4); }
#pilot-form .choice-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
