/* =========================================================================
   Kajalben Vallabhbhai Shingala — Kajal Creation
   Design system: deep navy + cobalt, modern professional.
   Sections alternate between a dark "ink" surface and a light slate surface.
   ========================================================================= */

/* ----- Tokens ----------------------------------------------------------- */
:root {
  /* Ink / dark surfaces */
  --ink-900: #070c17;
  --ink-800: #0b1220;
  --ink-700: #111b2e;
  --ink-600: #1a2740;
  --ink-line: rgba(255, 255, 255, 0.10);

  /* Light surfaces */
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef2f9;
  --line: #dde4f0;
  --line-soft: #e8edf6;

  /* Text */
  --text: #0e1626;
  --text-muted: #55617a;
  --text-faint: #8a94a8;
  --on-dark: #eef3fb;
  --on-dark-muted: #a3b0c7;

  /* Accent */
  --accent: #2f5fe0;
  --accent-strong: #1f47bd;
  --accent-soft: #e8eeff;
  --accent-glow: rgba(47, 95, 224, 0.35);
  --cyan: #22c7d6;

  /* Shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow-sm: 0 1px 2px rgba(14, 22, 38, 0.06), 0 2px 8px rgba(14, 22, 38, 0.05);
  --shadow-md: 0 4px 10px rgba(14, 22, 38, 0.06), 0 14px 34px rgba(14, 22, 38, 0.08);
  --shadow-lg: 0 10px 20px rgba(14, 22, 38, 0.08), 0 30px 70px rgba(14, 22, 38, 0.14);

  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --header-h: 74px;
  --maxw: 1160px;
}

/* ----- Reset ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 14px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.021em;
  margin: 0;
  color: var(--text);
}

p { margin: 0 0 1.05rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
address { font-style: normal; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-strong);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }

/* On dark surfaces */
.on-ink .btn-ghost,
.hero .btn-ghost,
.site-header .btn-ghost {
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}
.on-ink .btn-ghost:hover,
.hero .btn-ghost:hover,
.site-header .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* ----- Header ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.86);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  background: rgba(7, 12, 23, 0.95);
  border-bottom-color: var(--ink-line);
  box-shadow: 0 10px 30px rgba(7, 12, 23, 0.28);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--on-dark);
}
.brand:hover { color: #fff; }

.brand-badge {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 140%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 16px rgba(47, 95, 224, 0.45);
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.93rem;
  letter-spacing: 0.005em;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.nav-links a {
  display: block;
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--on-dark-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-cta .btn { padding: 11px 20px; font-size: 0.89rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--on-dark);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(60px, 9vw, 108px) 0 clamp(96px, 12vw, 148px);
  background:
    radial-gradient(900px 520px at 82% -10%, rgba(34, 199, 214, 0.18), transparent 62%),
    radial-gradient(760px 480px at 14% 8%, rgba(47, 95, 224, 0.34), transparent 64%),
    linear-gradient(170deg, var(--ink-700) 0%, var(--ink-800) 48%, var(--ink-900) 100%);
  color: var(--on-dark);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(1000px 620px at 30% 20%, #000 15%, transparent 82%);
  -webkit-mask-image: radial-gradient(1000px 620px at 30% 20%, #000 15%, transparent 82%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.88fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: center;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 7px 15px 7px 12px;
  border: 1px solid rgba(34, 199, 214, 0.35);
  border-radius: 999px;
  background: rgba(34, 199, 214, 0.1);
  color: #bdf4fa;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.status-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35e0ef;
  box-shadow: 0 0 0 4px rgba(53, 224, 239, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}

.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  color: #fff;
  margin-bottom: 20px;
}
.accent-text {
  background: linear-gradient(100deg, #7aa2ff 0%, #35e0ef 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 56ch;
  font-size: clamp(1.02rem, 1.5vw, 1.14rem);
  color: var(--on-dark-muted);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.hero-aside {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(3, 7, 15, 0.45);
}
.hero-aside h2 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8ea6d8;
  margin-bottom: 18px;
}

.fact-list { display: grid; gap: 2px; }
.fact-list li {
  display: grid;
  gap: 3px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.fact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.fact-key {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7f8fae;
}
.fact-val {
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 600;
  color: #fff;
  overflow-wrap: anywhere;
}
a.fact-val { color: #9dbcff; }
a.fact-val:hover { color: #fff; text-decoration: underline; }

/* ----- Stat band (lifted card over the hero) ---------------------------- */
.statband { position: relative; z-index: 2; margin-top: clamp(-80px, -7vw, -56px); }
.statband .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.statband .container {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 0;
  max-width: calc(var(--maxw) - 48px);
  overflow: hidden;
}
.stat {
  display: grid;
  gap: 4px;
  padding: 28px 26px;
  border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: 0; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.72rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  color: var(--text);
}
.stat-label {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ----- Tech rail (marquee) ---------------------------------------------- */
.tech-rail {
  position: relative;
  margin: 46px auto 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.tech-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: rail 34s linear infinite;
}
.tech-rail:hover .tech-track { animation-play-state: paused; }
.tech-track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 26px;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.tech-track span::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.45;
}
@keyframes rail {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ----- Section shell ---------------------------------------------------- */
.section { padding: clamp(64px, 8.5vw, 112px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 760px; margin-bottom: clamp(34px, 5vw, 56px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.78rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section-title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.section-title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.03em;
  height: 0.28em;
  background: var(--accent-soft);
  border-radius: 3px;
  z-index: -1;
}
.section-title { isolation: isolate; }

.section-lead {
  margin-top: 16px;
  font-size: 1.04rem;
  color: var(--text-muted);
  max-width: 62ch;
}

/* ----- About ------------------------------------------------------------ */
.about-intro {
  max-width: 58ch;
  margin-bottom: 40px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.34rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.018em;
  color: var(--text);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: start;
}
.about-copy p { color: var(--text-muted); }
.about-copy strong { color: var(--text); font-weight: 600; }

.work-panel {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--ink-700), var(--ink-900));
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.work-panel::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 95, 224, 0.55), transparent 68%);
}
.work-panel h3 {
  position: relative;
  font-size: 1.12rem;
  color: #fff;
  margin-bottom: 18px;
}
.work-list { position: relative; display: grid; gap: 14px; counter-reset: wl; }
.work-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 13px;
  align-items: start;
  font-size: 0.95rem;
  color: var(--on-dark-muted);
  counter-increment: wl;
}
.work-list li::before {
  content: counter(wl, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: #9dbcff;
}

/* ----- Services --------------------------------------------------------- */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.service-row {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  counter-increment: svc;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.services-list { counter-reset: svc; }
.service-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-row:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #c6d3ec;
}
.service-row:hover::before { transform: scaleX(1); }

.service-num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.service-num::before { content: counter(svc, decimal-leading-zero); }

.service-row h3 { font-size: 1.22rem; }
.service-body p { color: var(--text-muted); font-size: 0.97rem; }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.service-tags li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ----- Skills ----------------------------------------------------------- */
.skill-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}
.skill-group {
  padding: 28px 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.skill-group:hover {
  border-color: #c6d3ec;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.skill-group h3 { font-size: 1.1rem; margin-bottom: 7px; }
.skill-group > p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 20px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.chip svg { color: var(--accent); flex: 0 0 auto; }
.chip:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-2px); }

/* ----- Contact ---------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.contact-panel {
  display: grid;
  gap: 4px;
  padding: 32px 30px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(520px 320px at 100% 0%, rgba(34, 199, 214, 0.16), transparent 64%),
    linear-gradient(165deg, var(--ink-700), var(--ink-900));
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
}
.contact-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  align-items: start;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.contact-row:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-row:first-child { padding-top: 0; }

.ci-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #9dbcff;
}
.ci-body { min-width: 0; }
.ci-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7f8fae;
  margin-bottom: 3px;
}
.ci-value {
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 600;
  color: #fff;
  overflow-wrap: anywhere;
}
a.ci-value { color: #9dbcff; }
a.ci-value:hover { color: #fff; text-decoration: underline; }
.contact-row address { font-size: 0.95rem; color: var(--on-dark-muted); line-height: 1.6; }

.contact-form {
  padding: 32px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.field textarea { min-height: 142px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 95, 224, 0.13);
}

.form-note { font-size: 0.85rem; color: var(--text-faint); margin-bottom: 18px; }
.form-status {
  margin: 14px 0 0;
  font-size: 0.89rem;
  font-weight: 500;
  color: var(--accent-strong);
  min-height: 1.2em;
}

/* ----- Business details (ownership) ------------------------------------ */
.ownership {
  padding: clamp(64px, 8.5vw, 108px) 0;
  background:
    radial-gradient(760px 460px at 86% 4%, rgba(34, 199, 214, 0.13), transparent 62%),
    linear-gradient(175deg, var(--ink-800), var(--ink-900));
  color: var(--on-dark);
}
.ownership .eyebrow {
  background: rgba(157, 188, 255, 0.12);
  border-color: rgba(157, 188, 255, 0.26);
  color: #bdd3ff;
}
.ownership .section-title { color: #fff; }
.ownership .section-title em { color: #7aa2ff; }
.ownership .section-title em::after { background: rgba(122, 162, 255, 0.16); }

.ownership-head { max-width: 820px; margin-bottom: 40px; }
.ownership-head > p { margin-top: 18px; color: var(--on-dark-muted); font-size: 1.02rem; }
.ownership-head strong { color: #fff; font-weight: 600; }

.ledger {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--r-md);
  overflow: hidden;
}
.ledger-row {
  display: grid;
  gap: 6px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.025);
}
.ledger-row.is-wide { grid-column: 1 / -1; }
.ledger dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #7f8fae;
}
.ledger dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.99rem;
  font-weight: 600;
  color: #fff;
  overflow-wrap: anywhere;
}
.ledger dd a { color: #9dbcff; }
.ledger dd a:hover { color: #fff; text-decoration: underline; }
.ledger dd address { font-weight: 500; color: var(--on-dark); line-height: 1.6; }

.ownership-note {
  max-width: 70ch;
  margin-top: 30px;
  font-size: 0.97rem;
  color: var(--on-dark-muted);
}

/* ----- Footer ----------------------------------------------------------- */
.site-footer {
  padding: clamp(48px, 6vw, 76px) 0 28px;
  background: var(--ink-900);
  color: var(--on-dark-muted);
  border-top: 1px solid var(--ink-line);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(28px, 4vw, 54px);
  padding-bottom: 40px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand-text { white-space: normal; font-size: 0.95rem; }
.footer-brand p { font-size: 0.93rem; max-width: 46ch; }
.footer-owner { margin-top: 14px; }
.footer-owner strong { color: var(--on-dark); font-weight: 600; }
.footer-gst {
  margin-top: 12px;
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.site-footer h4 {
  margin-bottom: 16px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
}
.footer-contact, .footer-links { display: grid; gap: 11px; }
.footer-contact li, .footer-links li { font-size: 0.93rem; }
.footer-contact a, .footer-links a { color: var(--on-dark-muted); overflow-wrap: anywhere; }
.footer-contact a:hover, .footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-contact address { font-size: 0.92rem; line-height: 1.62; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-line);
}
.footer-bottom p { margin: 0; font-size: 0.86rem; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom-links a { font-size: 0.86rem; color: var(--on-dark-muted); }
.footer-bottom-links a:hover { color: #fff; text-decoration: underline; }

/* ----- Legal pages ------------------------------------------------------ */
.legal { padding: clamp(42px, 6vw, 72px) 0 clamp(56px, 7vw, 92px); }
.legal .container { max-width: 880px; }

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  padding: 8px 16px 8px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.back-home:hover { color: var(--accent); border-color: var(--accent); transform: translateX(-3px); }

.legal-head {
  padding-bottom: 26px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.legal-head h1 {
  font-size: clamp(1.95rem, 4.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.legal-head .updated {
  margin: 14px 0 0;
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 600;
}

.legal-body { font-size: 1.01rem; color: var(--text-muted); }
.legal-body h2 {
  margin: 40px 0 13px;
  padding-left: 15px;
  border-left: 3px solid var(--accent);
  font-size: 1.22rem;
  color: var(--text);
}
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body ul {
  display: grid;
  gap: 9px;
  margin: 0 0 1.05rem;
  padding-left: 2px;
}
.legal-body ul li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.legal-body ul li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.62em;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}
.legal-body address {
  margin-top: 8px;
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--text);
}
.legal-body address strong { font-family: var(--font-display); }

/* ----- Reveal on scroll ------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.services-list .reveal:nth-child(2),
.skill-groups .reveal:nth-child(2) { transition-delay: 0.08s; }
.services-list .reveal:nth-child(3),
.skill-groups .reveal:nth-child(3) { transition-delay: 0.16s; }
.services-list .reveal:nth-child(4) { transition-delay: 0.24s; }
.services-list .reveal:nth-child(5) { transition-delay: 0.32s; }

/* ----- Responsive ------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-aside { max-width: 520px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 24px;
    left: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
    background: rgba(9, 15, 27, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--ink-line);
    border-radius: var(--r-md);
    box-shadow: 0 24px 60px rgba(3, 7, 15, 0.5);
  }
  .nav-menu.open { display: flex; }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .nav-links a { padding: 12px 14px; border-radius: var(--r-sm); font-size: 0.97rem; }
  .nav-cta .btn { width: 100%; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .statband { margin-top: -44px; }
  .statband .container { grid-template-columns: 1fr; }
  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    padding: 20px 22px;
  }
  .stat:last-child { border-bottom: 0; }
  .contact-panel, .contact-form, .hero-aside, .work-panel { padding: 24px 20px; }
  .service-row { padding: 26px 22px; }
  .legal-body address { padding: 20px; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .brand-text { max-width: 148px; font-size: 0.86rem; }
  .nav-menu { right: 18px; left: 18px; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .contact-row { grid-template-columns: 1fr; gap: 10px; }
}

/* ----- Motion / print --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .hero-actions, .contact-form, .back-home { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero, .ownership, .work-panel, .contact-panel, .site-footer {
    background: #fff !important;
    color: #000 !important;
  }
  .hero h1, .ownership .section-title, .ci-value, .ledger dd, .fact-val { color: #000 !important; }
}
