/* ==========================================================================
   Deepa Garments — main stylesheet
   Brand: deep navy + thread gold (from the logo) on warm cream.
   Signature motif: the dashed "stitch" line and the gold thread curve.
   ========================================================================== */

:root {
  --navy: #021F41;
  --navy-2: #0B2F5E;
  --navy-3: #13407A;
  --gold: #E9AE3D;
  --gold-2: #F5CB6E;
  --gold-soft: #FBEBC4;
  --maroon: #8E1B3A;
  --cream: #FBF7F0;
  --cream-2: #F4ECDD;
  --surface: #FFFFFF;
  --ink: #14213D;
  --ink-soft: #55607A;
  --line: #E6DCCB;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Hind Madurai", "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Great Vibes", "Brush Script MT", cursive;

  --max: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(2, 31, 65, .06);
  --shadow: 0 18px 50px -18px rgba(2, 31, 65, .28);
  --shadow-lg: 0 30px 80px -24px rgba(2, 31, 65, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-size: 1.5rem; }
strong { font-weight: 600; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.lede { color: var(--ink-soft); font-size: 1.15rem; max-width: 62ch; }
.small { font-size: .95rem; color: var(--ink-soft); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: .6rem 1rem; z-index: 999; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- Eyebrow, stitch, section head ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--maroon); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 28px; height: 0; border-top: 2px dashed currentColor; }
.eyebrow-light { color: var(--gold-2); }
.eyebrow .dot { display: none; }

.stitch { width: 120px; height: 0; border-top: 2px dashed var(--gold); margin: 1.25rem 0 1.75rem; position: relative; }
.stitch::after { content: ""; position: absolute; right: -10px; top: -6px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--gold); }
.stitch.center { margin-inline: auto; }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { text-align: center; }
.section-head.center .lede { margin-inline: auto; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 0; border-top: 2px dashed currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1 var(--font-body);
  padding: 1.05rem 1.75rem; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .7rem 1.25rem; font-size: .95rem; }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px -10px rgba(233, 174, 61, .8); }
.btn-gold:hover { background: var(--gold-2); box-shadow: 0 14px 30px -10px rgba(233, 174, 61, .9); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); box-shadow: var(--shadow); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header.scrolled {
  background: rgba(2, 31, 65, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 8px 30px -12px rgba(0,0,0,.4);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 50px; width: auto; border-radius: 6px; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) {
  color: #fff; text-decoration: none; font-weight: 500; font-size: .98rem;
  position: relative; padding-block: .4rem; opacity: .88; transition: opacity .2s;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0;
  border-top: 2px dashed var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:not(.btn):hover, .nav-links a.active { opacity: 1; }
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 60; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 55;
    flex-direction: column; justify-content: center; gap: 1.4rem;
    background: var(--navy);
    background-image: radial-gradient(circle at 80% 10%, rgba(233,174,61,.18), transparent 50%);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) { font-family: var(--font-display); font-size: 2rem; font-weight: 600; }
  body.nav-open { overflow: hidden; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 7rem;
  color: #fff; overflow: hidden; isolation: isolate;
  background: var(--navy);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(2,31,65,.97) 0%, rgba(2,31,65,.88) 42%, rgba(2,31,65,.55) 75%, rgba(2,31,65,.35) 100%),
    radial-gradient(circle at 15% 85%, rgba(233,174,61,.22), transparent 45%);
}
.hero-inner { display: grid; grid-template-columns: 1.35fr .8fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(3rem, 8vw, 6.2rem); font-weight: 600; line-height: .98; margin-bottom: 1.6rem; }
.hero h1 .script { font-family: var(--font-script); font-weight: 400; color: var(--gold); font-size: .78em; margin-right: .08em; }
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero-lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 54ch; color: rgba(255,255,255,.85); }
.hero-lede strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }

.hero-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius); padding: .75rem; box-shadow: var(--shadow-lg);
  rotate: 2deg;
}
.hero-card figure { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-body { padding: 1.1rem .75rem .6rem; display: flex; align-items: center; gap: 1rem; }
.hero-card-num { font-family: var(--font-display); font-size: 2.8rem; font-weight: 700; color: var(--gold); line-height: 1; }
.hero-card-body p:last-child { font-size: .95rem; color: rgba(255,255,255,.85); line-height: 1.4; }

.hero-thread { position: absolute; left: 0; right: 0; bottom: 2.5rem; height: 60px; pointer-events: none; opacity: .65; }
.hero-thread svg { width: 100%; height: 100%; }
.hero-thread path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 10 8; animation: threadRun 30s linear infinite; }
@keyframes threadRun { to { stroke-dashoffset: -900; } }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 420px; rotate: none; }
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { position: relative; z-index: 2; margin-top: -4rem; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stat { padding: clamp(1.5rem, 3vw, 2.4rem) 1.25rem; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; border-left: 2px dashed var(--line); }
.stat-num { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; color: var(--navy); line-height: 1; }
.stat-label { margin-top: .5rem; color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 2px dashed var(--line); }
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about-media { position: relative; padding: 0 3rem 4rem 0; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img-main { aspect-ratio: 4 / 5; }
.about-img-small {
  position: absolute; right: 0; bottom: 0; width: 62%; aspect-ratio: 16 / 10;
  border: 6px solid var(--cream);
}
.about-badge {
  position: absolute; left: -1rem; top: 2rem;
  background: var(--navy); color: #fff; border-radius: 50%;
  width: 128px; height: 128px; display: grid; place-content: center; text-align: center;
  font-family: var(--font-display); box-shadow: var(--shadow);
  outline: 2px dashed var(--gold); outline-offset: -9px;
}
.about-badge span { display: inline; font-size: 2rem; font-weight: 700; line-height: 1; }
.about-badge-to { color: var(--gold); }
.about-badge-arrow { font-size: 1.2rem !important; margin: 0 .2rem; opacity: .7; }
.about-badge small { display: block; font-family: var(--font-body); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-top: .25rem; }

.about-copy p { color: var(--ink-soft); margin-bottom: 1rem; }
.about-copy p strong { color: var(--ink); }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0 1.5rem; }
.vm { background: var(--surface); border-radius: var(--radius-sm); padding: 1.4rem 1.4rem 1.2rem; border-top: 4px solid var(--gold); box-shadow: var(--shadow-sm); }
.vm h3 { font-size: 1.35rem; color: var(--navy); margin-bottom: .35rem; }
.vm p { font-size: .97rem; margin: 0 !important; }
.motto { font-family: var(--font-display); font-style: italic; font-size: 1.45rem; line-height: 1.35; color: var(--maroon) !important; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; }
}
@media (max-width: 520px) {
  .vm-grid { grid-template-columns: 1fr; }
  .about-badge { width: 104px; height: 104px; left: -.25rem; }
  .about-badge span { font-size: 1.6rem; }
  .about-media { padding: 0 1.5rem 3rem 0; }
}

/* ==========================================================================
   Training
   ========================================================================== */
.training { background: var(--surface); }
.training::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(var(--line) 1px, transparent 1.2px); background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 40%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 40%);
}
.training .wrap { position: relative; }
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.course {
  background: var(--cream); border-radius: var(--radius); padding: 2rem 1.6rem;
  border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s;
}
.course::after {
  content: ""; position: absolute; inset: 10px; border: 2px dashed transparent; border-radius: 12px;
  transition: border-color .35s; pointer-events: none;
}
.course:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: var(--navy); color: #fff; }
.course:hover::after { border-color: rgba(233,174,61,.5); }
.course:hover p { color: rgba(255,255,255,.8); }
.course:hover .course-icon { background: var(--gold); }
.course:hover .course-icon svg { stroke: var(--navy); }
.course-icon {
  width: 60px; height: 60px; border-radius: 16px; background: var(--navy);
  display: grid; place-items: center; margin-bottom: 1.4rem; transition: background-color .35s;
}
.course-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s; }
.course h3 { margin-bottom: .5rem; }
.course p { color: var(--ink-soft); font-size: .98rem; transition: color .35s; }

.extra {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch;
  background: var(--navy); color: #fff; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.extra-media { min-height: 320px; }
.extra-media img { width: 100%; height: 100%; object-fit: cover; }
.extra-copy { padding: clamp(2rem, 4vw, 3.25rem); }
.extra-copy h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .75rem; }
.extra-copy > p { color: rgba(255,255,255,.8); }
.extra-copy .small { color: rgba(255,255,255,.65); margin: 1.25rem 0 1.75rem; }
.extra-copy .btn-navy { background: var(--gold); color: var(--navy); }
.extra-copy .btn-navy:hover { background: var(--gold-2); }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.1rem; }
.chips li { border: 1.5px dashed rgba(233,174,61,.65); color: var(--gold-2); padding: .4rem .95rem; border-radius: 999px; font-size: .92rem; font-weight: 500; }

@media (max-width: 1000px) { .course-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) { .extra { grid-template-columns: 1fr; } .extra-media { min-height: 0; aspect-ratio: 16 / 10; } }
@media (max-width: 540px) { .course-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Pathway
   ========================================================================== */
.pathway { background: var(--navy); color: #fff; overflow: hidden; }
.pathway::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 10% 0%, rgba(233,174,61,.16), transparent 40%), radial-gradient(circle at 95% 100%, rgba(142,27,58,.35), transparent 45%);
}
.pathway .wrap { position: relative; }
.path { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; counter-reset: p; position: relative; }
.path::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 34px; border-top: 2px dashed rgba(233,174,61,.5);
}
.path li { text-align: center; position: relative; }
.path-num {
  display: grid; place-items: center; margin: 0 auto 1.1rem;
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--navy-2); border: 2px solid var(--gold); color: var(--gold);
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; position: relative;
  transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.path li:hover .path-num { background: var(--gold); color: var(--navy); transform: scale(1.08); }
.path li:last-child .path-num { background: var(--gold); color: var(--navy); }
.path strong { display: block; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.15; }
.path small { display: block; color: rgba(255,255,255,.65); font-size: .88rem; margin-top: .3rem; }
.pathway-quote { margin-top: clamp(3rem, 6vw, 4.5rem); text-align: center; font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 3.4vw, 2.4rem); color: var(--gold-2); }

@media (max-width: 900px) {
  .path { grid-template-columns: 1fr 1fr 1fr; row-gap: 2.5rem; }
  .path::before { display: none; }
}
@media (max-width: 520px) {
  .path { grid-template-columns: 1fr; gap: 0; }
  .path li { display: grid; grid-template-columns: 56px 1fr; column-gap: 1rem; text-align: left; padding-bottom: 1.5rem; position: relative; }
  .path li:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; border-left: 2px dashed rgba(233,174,61,.5); }
  .path-num { width: 56px; height: 56px; font-size: 1.15rem; margin: 0; grid-row: span 2; }
  .path strong { align-self: end; }
}

/* ==========================================================================
   Uniforms / products
   ========================================================================== */
.uniforms-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; margin-bottom: 2.5rem; }
.cat-grid li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem .9rem; text-align: center; font-size: .9rem; color: var(--ink-soft);
  transition: border-color .25s, transform .25s var(--ease);
}
.cat-grid li:hover { border-color: var(--gold); transform: translateY(-3px); }
.cat-grid span { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .cat-grid { grid-template-columns: 1fr 1fr; } }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.filter {
  padding: .6rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: .92rem; color: var(--ink-soft); transition: all .25s;
}
.filter:hover { border-color: var(--navy); color: var(--navy); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.product { transition: opacity .35s, transform .35s var(--ease); }
.product.is-hidden { display: none; }
.product .zoom {
  display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  background: var(--cream-2); position: relative; box-shadow: var(--shadow-sm);
}
.product img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.product .zoom::after {
  content: "View"; position: absolute; left: 50%; bottom: 1rem; transform: translate(-50%, 10px);
  background: rgba(2,31,65,.85); color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .45rem 1rem; border-radius: 999px; opacity: 0; transition: opacity .3s, transform .3s var(--ease);
}
.product .zoom:hover img { transform: scale(1.06); }
.product .zoom:hover::after, .product .zoom:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.product figcaption { padding: .9rem .2rem 0; }
.product figcaption strong { display: block; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.2; }
.product figcaption span { color: var(--ink-soft); font-size: .9rem; }
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem .9rem; }
  .product figcaption strong { font-size: 1.12rem; }
  .product figcaption span { font-size: .82rem; }
}

/* ==========================================================================
   Clients mosaic
   ========================================================================== */
.clients { background: var(--cream-2); }
.client-mosaic {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1rem;
}
.cm { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.cm .zoom { display: block; width: 100%; height: 100%; }
.cm img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cm:hover img { transform: scale(1.05); }
.cm figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.2rem 1rem;
  background: linear-gradient(to top, rgba(2,31,65,.88), transparent);
  color: #fff; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; pointer-events: none;
}
.cm-wide { grid-column: span 2; }
.cm-tall { grid-row: span 2; }
.cm-full { grid-column: span 2; }
.client-mosaic > :nth-child(1) { grid-column: 1 / span 2; grid-row: 1; }
.client-mosaic > :nth-child(2) { grid-column: 3; grid-row: 1 / span 2; }
.client-mosaic > :nth-child(3) { grid-column: 4; grid-row: 1 / span 2; }
.client-mosaic > :nth-child(4) { grid-column: 1 / span 2; grid-row: 2; }
.client-mosaic > :nth-child(5) { grid-column: 1 / span 4; grid-row: 3 / span 2; }
.client-mosaic > :nth-child(5) img { object-position: center 60%; }

@media (max-width: 820px) {
  .client-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .client-mosaic > * { grid-column: auto !important; grid-row: auto !important; }
  .client-mosaic > :nth-child(1), .client-mosaic > :nth-child(4), .client-mosaic > :nth-child(5) { grid-column: 1 / -1 !important; }
  .client-mosaic > :nth-child(2), .client-mosaic > :nth-child(3) { grid-row: span 2 !important; }
}

/* ==========================================================================
   Infrastructure
   ========================================================================== */
.infra-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.infra-list { display: grid; gap: 1rem; margin-top: 2rem; }
.infra-list > div { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: var(--surface); border-radius: var(--radius-sm); border-left: 4px solid var(--gold); box-shadow: var(--shadow-sm); }
.infra-list dt { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--navy); line-height: 1; }
.infra-list dd { color: var(--ink-soft); font-size: .98rem; }
.machine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.machine { border-radius: var(--radius-sm); overflow: hidden; position: relative; aspect-ratio: 3 / 4; box-shadow: var(--shadow-sm); }
.machine-grid { padding-bottom: 1.75rem; }
.machine:nth-child(3n+2) { translate: 0 1.75rem; }
.machine .zoom { display: block; width: 100%; height: 100%; }
.machine img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.machine:hover img { transform: scale(1.06); }
.machine figcaption {
  position: absolute; left: .6rem; bottom: .6rem; pointer-events: none;
  background: var(--navy); color: #fff; font-size: .8rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px;
}
@media (max-width: 900px) {
  .infra-grid { grid-template-columns: 1fr; }
  .machine-grid { padding-bottom: 0; }
  .machine:nth-child(3n+2) { translate: none; }
}
@media (max-width: 480px) { .machine-grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Founder
   ========================================================================== */
.founder { background: linear-gradient(180deg, var(--cream) 0%, var(--gold-soft) 100%); overflow: hidden; }
.founder-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.founder-photo { position: relative; }
.founder-frame {
  position: relative; border-radius: 220px 220px var(--radius) var(--radius); overflow: hidden;
  aspect-ratio: 4 / 5.4; box-shadow: var(--shadow-lg); z-index: 1;
}
.founder-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.founder-photo::before {
  content: ""; position: absolute; inset: -18px 18px 18px -18px; z-index: 0;
  border: 2px dashed var(--gold); border-radius: 220px 220px var(--radius) var(--radius);
}
.founder-tamil {
  position: absolute; right: -1rem; bottom: -1.5rem; z-index: 2;
  font-size: clamp(3rem, 7vw, 5rem); font-weight: 700; color: var(--navy); line-height: 1;
  text-shadow: 0 2px 0 var(--gold-soft);
  background: var(--gold); padding: .5rem 1.1rem .2rem; border-radius: 14px; box-shadow: var(--shadow);
}
.founder-copy blockquote {
  position: relative; margin: 0 0 1.75rem; padding-left: 1.75rem; border-left: 4px solid var(--maroon);
}
.founder-copy blockquote p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.3; color: var(--navy); }
.founder-copy > p { color: var(--ink-soft); margin-bottom: 1rem; }
.founder-copy > p strong { color: var(--maroon); }
.sign { margin: 1.75rem 0 2rem; }
.sign-name { display: block; font-family: var(--font-script); font-size: 2.8rem; color: var(--navy); line-height: 1; }
.sign-role { display: block; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-top: .4rem; }
.values { display: flex; flex-wrap: wrap; gap: .5rem; }
.values li { background: var(--surface); padding: .4rem .9rem; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--navy); border: 1px solid var(--line); }
@media (max-width: 900px) {
  .founder-grid { grid-template-columns: 1fr; }
  .founder-photo { max-width: 380px; margin: 0 auto 1.5rem; }
}
@media (max-width: 480px) { .founder-tamil { right: 0; } .founder-photo::before { inset: -12px 12px 12px -12px; } }

/* ==========================================================================
   Milestones
   ========================================================================== */
.milestones { background: var(--navy); color: #fff; }
.milestones::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.2px); background-size: 24px 24px;
}
.milestones .wrap { position: relative; }
.timeline { position: relative; max-width: 920px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 140px; top: 8px; bottom: 8px; border-left: 2px dashed rgba(233,174,61,.55); }
.tl { display: grid; grid-template-columns: 140px 1fr; gap: 2.5rem; padding-bottom: 2.25rem; position: relative; }
.tl::before {
  content: ""; position: absolute; left: 133px; top: 10px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 6px rgba(233,174,61,.2);
}
.tl-date { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--gold); text-align: right; padding-right: 1.5rem; line-height: 1.2; padding-top: .1rem; }
.tl-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 1.5rem 1.6rem; transition: background-color .3s, transform .3s var(--ease);
}
.tl-card:hover { background: rgba(255,255,255,.1); transform: translateX(4px); }
.tl-card h3 { font-size: 1.6rem; margin-bottom: .4rem; color: #fff; }
.tl-card p { color: rgba(255,255,255,.78); font-size: .98rem; }
.tl-card strong { color: var(--gold-2); }
.tl-card-media { display: grid; grid-template-columns: 220px 1fr; gap: 1.4rem; align-items: center; }
.tl-card-media img { border-radius: var(--radius-sm); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 680px) {
  .timeline::before { left: 7px; }
  .tl { grid-template-columns: 1fr; gap: .5rem; padding-left: 2.25rem; }
  .tl::before { left: 0; top: 6px; }
  .tl-date { text-align: left; padding: 0; }
  .tl-card-media { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.masonry { columns: 4 240px; column-gap: 1rem; }
.m-item {
  display: block; width: 100%; margin-bottom: 1rem; break-inside: avoid;
  border-radius: var(--radius-sm); overflow: hidden; position: relative; box-shadow: var(--shadow-sm);
}
.m-item img { width: 100%; height: auto; transition: transform .7s var(--ease), filter .4s; }
.m-item::after {
  content: attr(data-caption); position: absolute; inset: auto 0 0 0; padding: 2rem 1rem .85rem;
  background: linear-gradient(to top, rgba(2,31,65,.9), transparent); color: #fff; text-align: left;
  font-size: .9rem; font-weight: 500; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease);
}
.m-item:hover img { transform: scale(1.05); }
.m-item:hover::after, .m-item:focus-visible::after { opacity: 1; transform: none; }

.gallery-wide { margin-top: 1rem; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.gallery-wide img { width: 100%; aspect-ratio: 823 / 307; object-fit: cover; }
.gallery-wide figcaption {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem;
  background: linear-gradient(to top, rgba(2,31,65,.75), rgba(2,31,65,.1) 70%);
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 4vw, 3rem); color: #fff; align-content: end; padding-bottom: clamp(1rem, 3vw, 2rem);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: stretch; }
.contact address { font-style: normal; font-size: 1.12rem; line-height: 1.75; margin-bottom: 1.5rem; }
.contact-lines { display: grid; gap: 1rem; margin-bottom: 2.25rem; }
.contact-lines li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-lines a { color: var(--navy); font-weight: 600; text-decoration: none; }
.contact-lines a:hover { color: var(--maroon); text-decoration: underline; }
.ci { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); display: grid; place-items: center; }
.ci svg { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.enquiry { background: var(--cream); border-radius: var(--radius); padding: 1.75rem; border: 2px dashed var(--line); }
.enquiry h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--navy); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.field-row > label { min-width: 0; }
.enquiry input, .enquiry select, .enquiry textarea { box-sizing: border-box; min-width: 0; }
.enquiry label { display: grid; gap: .35rem; font-size: .88rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 1rem; }
.enquiry input, .enquiry select, .enquiry textarea {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: .75rem .9rem;
  transition: border-color .2s, box-shadow .2s;
}
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(2,31,65,.08); }
.enquiry .invalid { border-color: var(--maroon); }
.enquiry textarea { resize: vertical; }
.enquiry select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  padding-right: 2.6rem; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23021F41' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 1.1rem;
}
.enquiry input, .enquiry select, .enquiry textarea { font-weight: 400; }
.enquiry select { height: 3.1rem; }
.enquiry input[type="text"] { height: 3.1rem; }
.enquiry .dd-native { display: none; }
.dd { position: relative; min-width: 0; width: 100%; }
.dd-btn, .dd-list li { white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
.dd-btn {
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); text-align: left; cursor: pointer;
  width: 100%; min-height: 3.1rem; box-sizing: border-box; padding: .7rem 2.6rem .7rem .9rem;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23021F41' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .85rem center / 1.1rem;
  border: 1.5px solid var(--line); border-radius: 10px; transition: border-color .2s, box-shadow .2s;
}
.dd-btn:hover { border-color: var(--gold); }
.dd-btn:focus, .dd-btn[aria-expanded="true"] { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(2,31,65,.08); }
.dd-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: .35rem; list-style: none;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.dd-list[hidden] { display: none; }
.dd-list li { padding: .6rem .75rem; border-radius: 8px; cursor: pointer; font-size: 1rem; font-weight: 400; color: var(--ink); }
.dd-list li:hover { background: var(--gold-soft); color: var(--navy); }
.dd-list li[aria-selected="true"] { background: var(--navy); color: #fff; }
.enquiry select:hover { border-color: var(--gold); }
.enquiry select option { font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--surface); padding: .5rem; }
.enquiry select option:checked { background: var(--gold-soft); color: var(--navy); }
.form-note { margin-top: .75rem; font-size: .9rem; color: var(--maroon); min-height: 1.2em; }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; } }

.map {
  position: relative; border-radius: calc(var(--radius) + 4px); overflow: hidden; min-height: 460px;
  box-shadow: var(--shadow); border: 8px solid var(--cream);
  outline: 2px dashed var(--gold); outline-offset: 6px;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-link {
  position: absolute; right: 1rem; bottom: 1rem; background: var(--navy); color: #fff; text-decoration: none;
  padding: .7rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow);
  transition: background-color .2s;
}
.map-link:hover { background: var(--maroon); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .map { min-height: 360px; margin: 8px; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #01152D; color: rgba(255,255,255,.72); padding: 4.5rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0px)); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px dashed rgba(255,255,255,.15); }
.footer-brand img { height: 70px; width: auto; border-radius: 8px; margin-bottom: 1rem; }
.footer-brand p { max-width: 34ch; }
.site-footer h4 { color: #fff; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: .88rem; }
.footer-motto { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--gold-2); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */
.fab-wa {
  position: fixed; right: max(1.25rem, env(safe-area-inset-right)); bottom: max(1.25rem, env(safe-area-inset-bottom)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,.7); transition: transform .25s var(--ease);
}
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 30px; height: 30px; fill: #fff; }
.fab-wa::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(1, 15, 32, .94); padding: 4rem 4.5rem;
  animation: fadeIn .25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(1100px, 100%); max-height: 100%; display: grid; gap: .8rem; justify-items: center; }
.lightbox img { max-height: calc(100vh - 10rem); max-height: calc(100svh - 10rem); width: auto; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: rgba(255,255,255,.85); text-align: center; font-family: var(--font-display); font-size: 1.3rem; }
.lb-close { position: absolute; top: max(1rem, env(safe-area-inset-top)); right: 1.25rem; color: #fff; font-size: 2.6rem; line-height: 1; width: 48px; height: 48px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 3rem; width: 52px; height: 72px; border-radius: 12px; transition: background-color .2s; }
.lb-nav:hover { background: rgba(255,255,255,.1); }
.lb-prev { left: .75rem; }
.lb-next { right: .75rem; }
@media (max-width: 600px) { .lightbox { padding: 4rem .75rem 5.5rem; } .lb-nav { top: auto; bottom: 1rem; transform: none; } .lb-prev { left: 30%; } .lb-next { right: 30%; } }
@keyframes fadeIn { from { opacity: 0; } }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img, .hero-thread path, .fab-wa::before { animation: none; }
}
