/* Home page refresh. Loaded only on index.html, after style.css.
   1. One container: every section's content sits on the header's edges
      (max 1440px, 24px side padding; 20px on phones).
   2. One vertical rhythm between sections.
   3. Readable muted text (AA contrast on the cream grounds).
   4. Quiet hover / press feedback on every card, link and button. */

.kg-site{
  --home-max:1440px;
  --home-pad:var(--site-edge,24px);
  --sec-y:clamp(80px,8.5vw,128px);
  --muted:#4f555c;          /* body grey: ~7:1 on cream */
  --label:#5d6058;          /* eyebrows, numbers: ~6:1 */
  --gold-text:#7a5f32;      /* gold used as text: ~5.3:1 */
  --kg-gold:#987844;
  --ease-out:cubic-bezier(.22,1,.36,1);
}
@media(max-width:600px){.kg-site{--sec-y:72px}}

/* ---------- 1. Container + rhythm ---------- */
.kg-site .kg-section,
.kg-site .kg-sectors-inner,
.kg-site .purpose-section > *{
  box-sizing:border-box;max-width:var(--home-max);margin-left:auto;margin-right:auto;
}
.kg-site .kg-section{padding:var(--sec-y) var(--home-pad)}
.kg-site .kg-sectors{padding:var(--sec-y) 0;border:0}
.kg-site .kg-sectors-inner{padding:0 var(--home-pad)}
.kg-site .purpose-section{padding:var(--sec-y) var(--home-pad);margin:0}

/* Grounds, top to bottom: cream, sand (services), Kaveri green (sectors),
   cream (purpose), sand (FAQ), then the dark footer. Each section reads as its own chapter.
   The border-image paints a full-bleed ground behind a centred section. */
.kg-site{--ground-cream:#faf9f6;--ground-sand:#f2ede3;--ground-green:#22332b}
.kg-site .kg-services-section,
.kg-site .kg-faq{border-image:conic-gradient(var(--ground-sand) 0 0) fill 0//0 100vw}

/* ---------- 2. Section headings: one scale ---------- */
.kg-site .eyebrow{
  display:flex;align-items:center;gap:12px;
  font-size:11px;font-weight:700;letter-spacing:.14em;color:var(--label);margin:0 0 18px;
}
.kg-site .eyebrow span{width:24px;height:2px;background:var(--kg-gold)}
.kg-site .kg-section-heading h2,
.kg-site .kg-sectors h2,
.kg-site .kg-faq h2,
.kg-site .purpose-heading h2{
  font-size:clamp(36px,4.2vw,60px);line-height:1.04;letter-spacing:-.045em;margin:0;
}
.kg-site .kg-section-heading h2 em,
.kg-site .kg-sectors h2 em,
.kg-site .kg-faq h2 em,
.kg-site .purpose-heading h2 em{color:var(--kg-gold)}
.kg-site .kg-section-heading{gap:48px;margin-bottom:48px;padding-bottom:32px;align-items:end}
.kg-site .kg-section-heading > p,
.kg-site .kg-sectors-heading > p,
.kg-site .purpose-intro{
  font-size:16px;line-height:1.7;color:var(--muted);max-width:36ch;
}
.kg-site .kg-sectors-heading{margin-bottom:40px;align-items:end}
.kg-site .purpose-heading{max-width:900px}
.kg-site .purpose-intro{max-width:52ch;margin-top:22px;color:#454b52}

/* Centred heading: label framed by a line on each side. */
.kg-site .kg-heading-center{justify-content:center;text-align:center;border-bottom:0;padding-bottom:0;margin-bottom:56px}
.kg-site .kg-heading-center > div{display:flex;flex-direction:column;align-items:center}
.kg-site .kg-heading-center .eyebrow{justify-content:center}
.kg-site .kg-heading-center .eyebrow span,
.kg-site .purpose-heading .eyebrow span{flex:0 0 32px;width:32px}

/* ---------- 3. Hero ---------- */
/* Hero → page: no muddy band and no seam. The bottom fade ends on the next section's exact
   ground (#faf9f6) over a taller, eased band, and the dark bottom shade (needed only for the
   old copy block) is gone, so the clouds stay white as they melt into the page. */
.hero-homy .hero-shade{
  background:
    radial-gradient(ellipse 72% 46% at 50% 50%,rgba(7,11,13,.52),rgba(7,11,13,.22) 55%,transparent 80%),
    linear-gradient(180deg,rgba(7,11,13,.42),transparent 30%);
}
.hero-homy::after{
  height:clamp(200px,30vh,320px);
  background:linear-gradient(180deg,
    rgba(250,249,246,0) 0%,rgba(250,249,246,.18) 28%,rgba(250,249,246,.55) 55%,
    rgba(250,249,246,.86) 76%,#faf9f6 92%,#faf9f6 100%);
}

/* Two words in capitals, centred in the hero, each word in a mask it rolls up out of.
   Display face for these two words only: Cinzel (Roman inscription capitals). */
.hero-homy .hero-content{padding-top:0;padding-bottom:0;max-width:none;width:100%;box-sizing:border-box}
.hero-homy #hero-title.hero-word-title{
  max-width:none;width:100%;margin:0 auto;text-align:center;text-transform:uppercase;
  font-family:"Cinzel","Trajan Pro",Georgia,serif;font-weight:600;
  font-size:clamp(36px,9vw,168px);line-height:1.04;letter-spacing:.04em;text-wrap:initial;
  text-shadow:0 2px 28px rgba(0,0,0,.38),0 1px 2px rgba(0,0,0,.28);
}
/* Flex centring keeps each word on the true centre line even if it is wider than its box. */
.hero-homy .hero-word{display:flex;justify-content:center;white-space:nowrap;padding:.02em 0 .08em;overflow:visible}
.hero-homy .hero-word-inner{display:block;flex:0 0 auto;will-change:transform;margin-right:-.04em}
.hero-homy .hero-word-gold{color:#e0c48e}
/* "From" / "to": small centred connectors framed by a line on each side, so the two main
   words stay exactly centred and the brand line still reads whole. */
.hero-homy .hero-link-line{
  display:flex;justify-content:center;
  font-size:clamp(12px,1.1vw,18px);font-weight:600;letter-spacing:.42em;line-height:1;
  color:rgba(255,255,255,.86);margin:0 0 clamp(6px,.9vw,14px);padding:.2em 0;
}
.hero-homy .hero-link-line .hero-word-inner{display:flex;align-items:center;gap:1.1em;margin-right:-.42em}
.hero-homy .hero-link-line .hero-word-inner::before,
.hero-homy .hero-link-line .hero-word-inner::after{content:"";width:clamp(28px,3.2vw,60px);height:1px;background:currentColor;opacity:.65}
.hero-homy .hero-link-line .hero-word-inner::after{margin-left:.42em}
.hero-homy .hero-link-gold{color:#e0c48e;margin-top:clamp(10px,1.4vw,22px)}
@media(max-width:600px){.hero-homy #hero-title.hero-word-title{font-size:12vw;letter-spacing:.01em}.hero-homy .hero-content{padding-left:16px;padding-right:16px}}
/* Intro start state for the words only (sky, clouds and K mark are in place from the start),
   painted while the preloader still covers the page, so nothing jumps. */
html.hero-intro .hero-homy .hero-word-inner{transform:translateY(135%)}
/* The roll-up mask exists only while the words rise (start state + GSAP roll); it reaches a little
   below each line so the 3D depth and shadow are never cut, then it is removed. */
html.hero-intro .hero-homy .hero-word,html.hero-intro .hero-homy .hero-link-line,
.hero-homy .hero-word-title.is-rolling .hero-word,.hero-homy .hero-word-title.is-rolling .hero-link-line{clip-path:inset(-50% -100vw -.22em -100vw)}

/* 3D lettering: the real text is the extruded edge (dark metal with stacked depth shadows) and a
   copy on top (data-text) carries the metallic face, a gradient clipped to the letters.
   VISION in platinum, LANDMARK in gold. */
.hero-homy .hero-word-silver .hero-word-inner,
.hero-homy .hero-word-gold .hero-word-inner{position:relative}
.hero-homy .hero-word-silver .hero-word-inner{
  color:#5f6b76;
  text-shadow:0 .01em 0 #7a8691,0 .02em 0 #707d88,0 .03em 0 #66737e,0 .04em 0 #5c6974,0 .05em 0 #535f6a,
    0 .09em .16em rgba(0,0,0,.42),0 .02em .05em rgba(0,0,0,.28);
}
.hero-homy .hero-word-gold .hero-word-inner{
  color:#6f5121;
  text-shadow:0 .01em 0 #94702f,0 .02em 0 #88662b,0 .03em 0 #7c5c27,0 .04em 0 #705322,0 .05em 0 #64491e,
    0 .09em .16em rgba(0,0,0,.45),0 .02em .05em rgba(0,0,0,.3);
}
.hero-homy .hero-word-silver .hero-word-inner::after,
.hero-homy .hero-word-gold .hero-word-inner::after{
  content:attr(data-text);content:attr(data-text) / "";
  position:absolute;left:0;top:0;right:0;bottom:0;text-shadow:none;
  -webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;
  transform:translateY(-.012em);
}
.hero-homy .hero-word-silver .hero-word-inner::after{
  background-image:linear-gradient(180deg,#ffffff 0%,#f4f6f8 36%,#c9d2d9 53%,#f1f4f6 70%,#b3bec7 100%);
}
.hero-homy .hero-word-gold .hero-word-inner::after{
  background-image:linear-gradient(180deg,#fff3cf 0%,#f3d899 30%,#cda65e 52%,#efd49a 68%,#ad823d 100%);
}
html.hero-intro .hero-homy .hero-sky{transform:scale(1.14)}

/* Hero depth. main.js sets --px/--py (pointer, -1..1) and --sp (scroll progress, 0..1);
   every layer reads them at its own depth, so the sky, the Kaveri mark, two cloud banks,
   the copy and a foreground cloud bank move apart like a 3D scene. At rest (and under
   reduced motion) all values stay 0 and the hero is still. */
.hero-3d{--px:0;--py:0;--sp:0}
.hero-3d .hero-depth{
  position:absolute;inset:0;pointer-events:none;will-change:transform,translate;
  translate:calc(var(--px) * var(--d,0) * 22px) calc(var(--py) * var(--d,0) * 12px);
}
.hero-3d .hero-depth-mark{--d:-.6;z-index:2;perspective:1100px}
.hero-3d .hero-depth-back{--d:-.5;transform:translate3d(0,calc(var(--sp) * -70px),0)}
.hero-3d .hero-depth-front{--d:1;transform:translate3d(0,calc(var(--sp) * -170px),0)}
.hero-3d .hero-clouds-fore{z-index:6;-webkit-mask-image:linear-gradient(180deg,#000 72%,transparent 100%);mask-image:linear-gradient(180deg,#000 72%,transparent 100%)}
.hero-3d .hero-depth-fore{--d:1.8;transform:translate3d(0,calc(var(--sp) * -46vh),0)}
.hero-3d .hero-cloud-back{transform:scaleX(-1)}
.hero-3d .hero-cloud-front{transform:none}
.hero-3d .hero-cloud-fore{position:absolute;max-width:none;width:170%;left:-35%;bottom:-80%;opacity:.95}
.hero-3d .hero-drift{position:absolute;inset:0;animation:heroDrift 48s ease-in-out infinite alternate}
.hero-3d .hero-drift-slow{animation-duration:70s;animation-direction:alternate-reverse}
.hero-3d .hero-drift-fast{animation-duration:34s}
@keyframes heroDrift{from{transform:translate3d(-3%,0,0)}to{transform:translate3d(3%,0,0)}}
/* The Kaveri mark as an extruded badge: it turns with the pointer and tips back on scroll. */
.hero-3d .hero-mark{
  opacity:.13;transform-origin:50% 55%;
  transform:rotateX(calc(var(--py) * -9deg + var(--sp) * 24deg)) rotateY(calc(var(--px) * 13deg)) scale(calc(1 + var(--sp) * .14));
  filter:drop-shadow(0 1px 0 rgba(255,255,255,.55)) drop-shadow(0 2px 0 rgba(255,255,255,.45)) drop-shadow(0 3px 0 rgba(255,255,255,.35)) drop-shadow(0 4px 0 rgba(255,255,255,.25)) drop-shadow(0 26px 40px rgba(0,0,0,.45));
}
/* The copy recedes as the foreground clouds rise past it. */
.hero-3d .hero-content{translate:0 calc(var(--sp) * -110px);opacity:calc(1 - var(--sp) * 1.15)}
@media(prefers-reduced-motion:reduce){.hero-3d .hero-drift{animation:none}}

/* ---------- 4. Buttons + links: step on hover, press on click ---------- */
.kg-site .button{transition:background-color .25s ease,color .25s ease,border-color .25s ease,transform .2s var(--ease-out),box-shadow .2s ease}
.kg-site .button .ti{transition:transform .25s var(--ease-out)}
.kg-site .button:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(0,0,0,.16)}
.kg-site .button:hover .ti-arrow-right{transform:translateX(3px)}
.kg-site .button:active{transform:translateY(0) scale(.98);box-shadow:none}

.kg-site .kg-simple-link{position:relative;font-size:14px;color:var(--ink)}
.kg-site .kg-simple-link::after{
  content:"";position:absolute;left:0;right:26px;bottom:6px;height:1px;background:currentColor;
  transform:scaleX(0);transform-origin:right;transition:transform .35s var(--ease-out);
}
.kg-site .kg-simple-link:hover{color:var(--gold-text)}
.kg-site .kg-simple-link:hover::after{transform:scaleX(1);transform-origin:left}
.kg-site .kg-simple-link .ti{color:var(--kg-gold);transition:transform .25s var(--ease-out)}
.kg-site .kg-simple-link:hover .ti{transform:translate(2px,-2px)}

.kg-site a:focus-visible,.kg-site summary:focus-visible{outline:2px solid var(--kg-gold);outline-offset:4px;border-radius:6px}

/* ---------- 5. Sectors: one row of five ---------- */
.kg-site .kg-sectors{
  background-color:var(--ground-green);color:#fff;
  background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:56px 56px;background-position:center top;
}
.kg-site .kg-sectors h2{color:#fff}
.kg-site .kg-sectors h2 em{color:#d9bf8c}
.kg-site .kg-sectors .eyebrow{color:rgba(255,255,255,.72)}
.kg-site .kg-sectors .eyebrow span{background:#d9bf8c}
.kg-site .kg-sectors .kg-sector-grid{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;
  background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.14);border-radius:16px;overflow:hidden;
}
.kg-site .kg-sectors .kg-sector-tile{
  display:flex;flex-direction:column;min-height:220px;padding:28px 24px 26px;
  border:0;border-left:1px solid rgba(255,255,255,.14);background:transparent;
  transition:background-color .3s ease;
}
.kg-site .kg-sectors .kg-sector-tile:first-child{border-left:0}
.kg-site .kg-sectors .kg-sector-tile:hover{background:rgba(255,255,255,.06)}
.kg-site .kg-sectors .kg-sector-top{margin-bottom:auto}
.kg-site .kg-sectors .kg-sector-icon{
  width:52px;height:52px;border-radius:14px;color:#d9bf8c;
  background:rgba(217,191,140,.1);border:1px solid rgba(217,191,140,.3);
  transition:background-color .3s ease,color .3s ease,border-color .3s ease,transform .3s var(--ease-out);
}
.kg-site .kg-sectors .kg-sector-tile:hover .kg-sector-icon{background:#d9bf8c;border-color:#d9bf8c;color:#1f2c26;transform:translateY(-2px)}
.kg-site .kg-sectors .kg-sector-tile h3{margin-top:32px;font-size:17px;line-height:1.4;font-weight:650;letter-spacing:-.02em;color:#fff}

/* ---------- 6. Brand cards ---------- */
.kg-site .kg-brand-grid{gap:24px}
.kg-site .kg-brand-card{min-height:440px;padding:40px;transition:transform .3s var(--ease-out),box-shadow .3s ease}
/* Kaveri Constructions: the whole card is the link (its link stretches over it). */
.kg-site .kg-construction-brand{cursor:pointer}
.kg-site .kg-construction-brand:hover{transform:translateY(-2px);box-shadow:0 20px 44px rgba(25,22,18,.14)}
.kg-site .kg-construction-brand:has(.kg-card-stretch:focus-visible){outline:2px solid var(--kg-gold);outline-offset:4px}
.kg-site .kg-card-stretch{align-items:center;font-size:15px;font-weight:650;color:#fff}
.kg-site .kg-card-stretch::after{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit}
.kg-site .kg-card-stretch:focus-visible{outline:none}
.kg-site .kg-card-arrow{
  display:grid;place-items:center;flex:0 0 auto;width:44px;height:44px;border-radius:50%;
  border:1px solid rgba(255,255,255,.28);color:#fff;
  transition:background-color .3s ease,border-color .3s ease,color .3s ease;
}
.kg-site .kg-card-arrow .ti{font-size:20px;transition:transform .3s var(--ease-out)}
.kg-site .kg-construction-brand:hover .kg-card-arrow{background:#d9bf8c;border-color:#d9bf8c;color:#1f2c26}
.kg-site .kg-construction-brand:hover .kg-card-arrow .ti{transform:translate(2px,-2px)}
/* Design N Desire Studio is not a link yet: no hover lift, no pointer. */
.kg-site .kg-studio-brand,
.kg-site .kg-studio-brand:hover{cursor:default;transform:none;box-shadow:none}
.kg-site .kg-brand-card h3{font-size:clamp(36px,3.4vw,50px)}
.kg-site .kg-brand-card > p:not(.kg-kicker){font-size:16px;line-height:1.7}
.kg-site .kg-kicker{font-size:10.5px;letter-spacing:.14em}
.kg-site .kg-brand-tags span{font-size:12px;padding:7px 12px;border-radius:8px}
.kg-site .kg-studio-brand .kg-kicker,
.kg-site .kg-studio-brand .kg-studio-note{color:#6b5838}
.kg-site .kg-studio-brand > p:not(.kg-kicker){color:#4f4430}
.kg-site .kg-studio-note{font-size:13px}
.kg-site .kg-studio-lines{transform:none;right:-60px;bottom:-90px}

/* ---------- 7. Service cards ---------- */
.kg-site .kg-service-grid{gap:24px}
.kg-site .kg-service{transition:transform .3s var(--ease-out),box-shadow .3s ease,border-color .3s ease}
.kg-site .kg-service:hover{transform:translateY(-2px);box-shadow:0 18px 40px rgba(32,41,29,.1);border-color:#d9d3c6}
.kg-site .kg-service-art{height:240px}
/* One consistent set of isometric illustrations (scripts/render-service-illustrations.py). */
.kg-site .kg-service-art.kg-art-3d{display:block;background:#ebe3d4;border-bottom:1px solid var(--line)}
.kg-site .kg-art-3d img{display:block;width:100%;height:100%;object-fit:cover;margin:0}
.kg-site .kg-service-art > svg,
.kg-site .kg-service-art > img{transition:transform .6s var(--ease-out)}
.kg-site .kg-service:hover .kg-service-art > svg,
.kg-site .kg-service:hover .kg-service-art > img{transform:scale(1.03)}
.kg-site .kg-service-art > span{display:none}     /* tiny labels on the pictures read as captions */
.kg-site .kg-service-content{padding:28px 28px 24px}
.kg-site .kg-service-content .kg-kicker{color:var(--gold-text);font-size:11px;font-weight:700;letter-spacing:.14em}
.kg-site .kg-service-content h3{margin:14px 0 12px;font-size:24px;font-weight:650;line-height:1.22;letter-spacing:-.03em}
.kg-site .kg-service-content p{margin:0 0 24px;font-size:15.5px;line-height:1.7;color:var(--muted)}
/* The whole card is the link; its footer row reads as the button. */
.kg-site .kg-service-content .kg-card-link{
  display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;
  margin-top:auto;padding-top:20px;border-top:1px solid var(--line);
  font-size:15px;font-weight:650;color:var(--ink);transition:color .25s ease;
}
.kg-site .kg-service-content .kg-card-arrow{border-color:#ddd4c1;color:var(--ink)}
.kg-site .kg-service:hover .kg-card-link{color:var(--gold-text)}
.kg-site .kg-service:hover .kg-card-arrow{background:var(--ink);border-color:var(--ink);color:#fff}
.kg-site .kg-service:hover .kg-card-arrow .ti{transform:translate(2px,-2px)}
.kg-site .kg-service:focus-visible{outline:2px solid var(--kg-gold);outline-offset:4px}

/* ---------- 8. Purpose ---------- */
.kg-site .purpose-section{background:var(--ground-cream)}
.kg-site .purpose-grid{margin-top:56px;max-width:var(--home-max);border-radius:16px}
.kg-site .purpose-card{padding:36px 32px 32px;transition:background-color .3s ease}
.kg-site .purpose-card:hover{background:#fdfcf9}
.kg-site .purpose-icon{transition:background-color .3s ease,color .3s ease,transform .3s var(--ease-out)}
.kg-site .purpose-card:hover .purpose-icon{background:var(--kg-gold);border-color:var(--kg-gold);color:#fff;transform:translateY(-2px)}
.kg-site .purpose-card h3{font-size:24px}
.kg-site .purpose-card p{font-size:15px;line-height:1.7;color:var(--muted);margin:0}
.kg-site .purpose-card-top{margin-bottom:28px}

/* ---------- 9. FAQ ---------- */
.kg-site .kg-faq{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(40px,6vw,104px);align-items:start}
.kg-site .kg-faq-lead{margin:24px 0 0;font-size:16px;line-height:1.7;color:var(--muted);max-width:38ch}
.kg-site .kg-faq-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}
.kg-site .kg-faq-actions .button{min-height:50px;padding:0 22px;border-radius:12px;font-size:14px;font-weight:650;gap:10px}
.kg-site .kg-faq-actions .ti{font-size:18px}
.kg-site .kg-faq-actions .button-outline{background:#fff;border:1px solid #d9d2c3;color:var(--ink)}
.kg-site .kg-faq-actions .button-outline:hover{background:#fff;border-color:var(--ink);color:var(--ink)}
.kg-site .kg-faq-actions .button-outline .ti{color:var(--gold-text)}

/* One card per question, the same full border on every side. */
.kg-site .kg-accordion{display:grid;gap:12px;interpolate-size:allow-keywords}
.kg-site .kg-accordion details,
.kg-site .kg-accordion details:first-child,
.kg-site .kg-accordion details + details{
  margin:0;padding:0;border:1px solid #e3ddd1;border-radius:16px;background:#fcfbf8;
  transition:border-color .25s ease,background-color .25s ease,box-shadow .25s ease;
}
.kg-site .kg-accordion details:hover{border-color:#d3c9b6}
.kg-site .kg-accordion details[open]{background:#fff;border-color:#d6c9ae;box-shadow:0 14px 36px rgba(32,28,20,.06)}
.kg-site .kg-accordion summary{
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  padding:20px 20px 20px 24px;font-size:17px;font-weight:650;line-height:1.45;letter-spacing:-.01em;
  color:var(--ink);cursor:pointer;list-style:none;border-radius:16px;
}
.kg-site .kg-accordion summary::-webkit-details-marker{display:none}
.kg-site .kg-accordion summary::after{content:none;display:none}
.kg-site .kg-acc-icon{
  flex:0 0 auto;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;
  border:1px solid #d9cdb5;background:#fff;color:var(--gold-text);
  transition:background-color .25s ease,border-color .25s ease,color .25s ease;
}
/* Plus when closed, minus when open: two Tabler icons stacked in one cell, cross-fading with a quarter turn. */
.kg-site .kg-acc-icon .ti{grid-area:1/1;font-size:18px;line-height:1;transition:transform .35s var(--ease-out),opacity .25s ease}
.kg-site .kg-acc-icon .ti-minus{opacity:0;transform:rotate(-90deg)}
.kg-site .kg-accordion summary:hover .kg-acc-icon{border-color:var(--kg-gold)}
.kg-site .kg-accordion details[open] .kg-acc-icon{background:var(--kg-gold);border-color:var(--kg-gold);color:#fff}
.kg-site .kg-accordion details[open] .kg-acc-icon .ti-plus{opacity:0;transform:rotate(90deg)}
.kg-site .kg-accordion details[open] .kg-acc-icon .ti-minus{opacity:1;transform:none}
.kg-site .kg-acc-body{padding:0 84px 24px 24px}
.kg-site .kg-acc-body p{margin:0;font-size:15.5px;line-height:1.75;color:var(--muted)}
.kg-site .kg-acc-body a{color:var(--ink);text-decoration:underline;text-decoration-color:#cdbf9f;text-underline-offset:3px}
.kg-site .kg-acc-body a:hover{color:var(--gold-text)}
/* Smooth open / close where the browser can animate to auto height. */
.kg-site .kg-accordion details::details-content{
  block-size:0;overflow:clip;
  transition:block-size .4s var(--ease-out),content-visibility .4s allow-discrete;
}
.kg-site .kg-accordion details[open]::details-content{block-size:auto}

/* ---------- 10. Responsive ---------- */
@media(max-width:1100px){
  .kg-site .kg-sectors .kg-sector-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
  .kg-site .kg-sectors .kg-sector-tile{grid-column:span 2;min-height:190px;border-top:1px solid rgba(255,255,255,.14)}
  .kg-site .kg-sectors .kg-sector-tile:nth-child(-n+3){border-top:0}
  .kg-site .kg-sectors .kg-sector-tile:nth-child(4){grid-column:span 3;border-left:0}
  .kg-site .kg-sectors .kg-sector-tile:nth-child(5){grid-column:span 3}
  .kg-site .kg-brand-card{min-height:0}
}
@media(max-width:1024px){
  .kg-site .kg-section-heading,.kg-site .kg-sectors-heading{flex-direction:column;align-items:flex-start;gap:20px}
  .kg-site .kg-heading-center{align-items:center}
  .kg-site .kg-section-heading > p,.kg-site .kg-sectors-heading > p{text-align:left;max-width:52ch}
  .kg-site .kg-faq{grid-template-columns:1fr;gap:40px}
  .kg-site .kg-service-grid{max-width:none;grid-template-columns:repeat(2,minmax(0,1fr))}
  .kg-site .kg-service-grid > :last-child{grid-column:1/-1}
}
@media(max-width:760px){
  .kg-site .kg-service-grid{grid-template-columns:1fr}
  .kg-site .purpose-grid{max-width:none}
}
@media(max-width:640px){
  .kg-site .kg-sectors .kg-sector-grid{grid-template-columns:1fr}
  .kg-site .kg-sectors .kg-sector-tile,
  .kg-site .kg-sectors .kg-sector-tile:nth-child(n){
    grid-column:auto;min-height:0;flex-direction:row;align-items:center;gap:16px;
    padding:18px 20px;border-left:0;border-top:1px solid rgba(255,255,255,.14);
  }
  .kg-site .kg-sectors .kg-sector-tile:first-child{border-top:0}
  .kg-site .kg-sectors .kg-sector-top{margin:0;flex:0 0 auto}
  .kg-site .kg-sectors .kg-sector-icon{width:46px;height:46px}
  .kg-site .kg-sectors .kg-sector-tile h3{margin:0;font-size:16px}
  .kg-site .kg-sectors .kg-sector-tile h3 br{display:none}
  .kg-site .kg-brand-card{padding:28px 24px}
  .kg-site .kg-section-heading{margin-bottom:32px;padding-bottom:24px}
  .kg-site .kg-accordion summary{padding:18px 16px 18px 20px;font-size:16px;gap:16px}
  .kg-site .kg-acc-body{padding:0 20px 20px}
  .kg-site .kg-faq-actions .button{flex:1 1 100%;justify-content:center}

  /* Phone: one heading scale that fits a narrow screen without awkward breaks. */
  .kg-site .kg-section-heading h2,
  .kg-site .kg-sectors h2,
  .kg-site .kg-faq h2,
  .kg-site .purpose-heading h2{font-size:clamp(28px,8.4vw,36px);line-height:1.08;letter-spacing:-.04em}
  .kg-site .kg-section-heading h2 br,
  .kg-site .purpose-heading h2 br{display:none}
  .kg-site .kg-section-heading > p,
  .kg-site .purpose-intro{font-size:15px}

  /* Phone: cards show title and action only; descriptions are hidden to keep the scroll short. */
  .kg-site .kg-service-content > p,
  .kg-site .kg-brand-card > p:not(.kg-kicker),
  .kg-site .purpose-card p{display:none}
  .kg-site .kg-service-art{height:200px}
  .kg-site .kg-service-content{padding:22px 20px 18px}
  .kg-site .kg-service-content h3{font-size:21px;margin:10px 0 18px}
  .kg-site .kg-service-content h3 br{display:none}
  .kg-site .kg-service-content .kg-card-link{font-size:14px;white-space:nowrap;padding-top:16px}
  .kg-site .kg-card-arrow{width:40px;height:40px}
  .kg-site .kg-brand-card{min-height:0}
  .kg-site .kg-brand-card h3{font-size:clamp(30px,9vw,38px);margin-bottom:18px}
  .kg-site .kg-brand-tags{margin:0 0 24px}
  .kg-site .purpose-grid{margin-top:32px}
  .kg-site .purpose-card{flex-direction:row;align-items:center;gap:16px;padding:20px}
  .kg-site .purpose-card-top{width:auto;margin:0}
  .kg-site .purpose-card h3{margin:0;font-size:19px}
}
@media(prefers-reduced-motion:reduce){
  .kg-site *,.kg-site *::before,.kg-site *::after{transition:none!important}
  .kg-site .kg-service:hover,.kg-site .kg-brand-card:hover,.kg-site .button:hover{transform:none}
}

/* No strip of page colour between the last section (FAQ, sand) and the footer. */
.kg-site ~ .site-footer{margin-top:0}

/* ============================================================
   About page: built on the home page system (same edges, headings, grounds, cards).
   ============================================================ */
.about-v2 .about-intro{text-align:center}
.about-v2 .about-intro .kg-heading-center{margin-bottom:28px}
.about-v2 .about-lead{max-width:60ch;margin:0 auto;font-size:clamp(17px,1.4vw,20px);line-height:1.7;color:var(--muted)}
.about-v2 .about-intro + .about-story{padding-top:var(--sec-y)}

/* Story: copy beside the site video, on sand. */
.about-v2 .about-story{
  display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:clamp(40px,6vw,96px);align-items:center;
  border-image:conic-gradient(var(--ground-sand) 0 0) fill 0//0 100vw;
}
.about-v2 .about-story h2{font-size:clamp(36px,4.2vw,60px);line-height:1.04;letter-spacing:-.045em;margin:0 0 24px}
.about-v2 .about-story h2 em{color:var(--kg-gold)}
.about-v2 .about-story-copy > p:not(.eyebrow){max-width:48ch;margin:0 0 16px;font-size:16.5px;line-height:1.75;color:var(--muted)}
.about-v2 .about-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}
.about-v2 .about-actions .button{min-height:50px;padding:0 22px;border-radius:12px;font-size:14px;font-weight:650;gap:10px}
.about-v2 .about-actions .button-outline{background:#fff;border:1px solid #d9d2c3;color:var(--ink)}
.about-v2 .about-actions .button-outline:hover{background:#fff;border-color:var(--ink);color:var(--ink)}
.about-v2 .about-story-media{margin:0;border-radius:20px;overflow:hidden;aspect-ratio:4/3;background:#1f2c26;box-shadow:0 24px 60px rgba(32,28,20,.12)}
.about-v2 .about-story-media video{display:block;width:100%;height:100%;object-fit:cover}

/* Track record: numbers on the Kaveri-green band. */
.about-v2 .about-numbers{
  padding:var(--sec-y) 0;color:#fff;background-color:var(--ground-green);
  background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:56px 56px;background-position:center top;
}
.about-v2 .about-numbers-inner{box-sizing:border-box;max-width:var(--home-max);margin:0 auto;padding:0 var(--home-pad)}
.about-v2 .about-numbers h2{color:#fff}
.about-v2 .about-numbers h2 em{color:#d9bf8c}
.about-v2 .about-numbers .eyebrow{color:rgba(255,255,255,.72)}
.about-v2 .about-numbers .eyebrow span{background:#d9bf8c}
.about-v2 .about-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;border:1px solid rgba(255,255,255,.14);border-radius:16px;overflow:hidden;background:rgba(255,255,255,.03)}
.about-v2 .about-metrics > div{display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:12px;padding:36px 28px;border-left:1px solid rgba(255,255,255,.14)}
.about-v2 .about-metrics > div:first-child{border-left:0}
.about-v2 .about-metrics dd{margin:0;font-size:clamp(44px,4.6vw,68px);font-weight:600;line-height:1;letter-spacing:-.04em;color:#fff}
.about-v2 .about-metrics dd span{color:#d9bf8c}
.about-v2 .about-metrics dt{font-size:15px;line-height:1.5;color:rgba(255,255,255,.72)}

/* Vision and mission: two quiet cards on sand. */
.about-v2 .about-vm{border-image:conic-gradient(var(--ground-sand) 0 0) fill 0//0 100vw}
.about-v2 .about-vm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.about-v2 .about-vm-grid article{padding:clamp(28px,3.4vw,48px);border:1px solid #e3ddd1;border-radius:20px;background:#fff}
.about-v2 .about-vm-grid .kg-kicker{margin:0 0 18px;color:var(--gold-text);font-size:11px;font-weight:700}
.about-v2 .about-vm-grid h3{margin:0 0 16px;font-size:clamp(24px,2.2vw,32px);font-weight:650;line-height:1.18;letter-spacing:-.03em}
.about-v2 .about-vm-grid p:not(.kg-kicker){margin:0;font-size:16px;line-height:1.75;color:var(--muted)}

/* Capabilities: one bordered grid of six, icon cells like the home purpose cards. */
.about-v2 .about-cap-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff}
.about-v2 .about-cap-grid article{padding:36px 32px;border-left:1px solid var(--line);border-top:1px solid var(--line);transition:background-color .3s ease}
.about-v2 .about-cap-grid article:nth-child(3n+1){border-left:0}
.about-v2 .about-cap-grid article:nth-child(-n+3){border-top:0}
.about-v2 .about-cap-grid article:hover{background:#fdfcf9}
.about-v2 .about-cap-icon{display:grid;place-items:center;width:52px;height:52px;margin-bottom:28px;border-radius:14px;border:1px solid #e9dfcd;background:#f6f1e8;color:var(--gold-text);transition:background-color .3s ease,color .3s ease,transform .3s var(--ease-out)}
.about-v2 .about-cap-icon .ti{width:auto;height:auto;font-size:26px}
.about-v2 .about-cap-grid article:hover .about-cap-icon{background:var(--kg-gold);border-color:var(--kg-gold);color:#fff;transform:translateY(-2px)}
.about-v2 .about-cap-grid h3{margin:0 0 12px;font-size:22px;font-weight:650;line-height:1.25;letter-spacing:-.025em}
.about-v2 .about-cap-grid p{margin:0;font-size:15px;line-height:1.7;color:var(--muted)}

@media(max-width:1024px){
  .about-v2 .about-story{grid-template-columns:1fr}
  .about-v2 .about-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .about-v2 .about-metrics > div:nth-child(3){border-left:0}
  .about-v2 .about-metrics > div:nth-child(n+3){border-top:1px solid rgba(255,255,255,.14)}
  .about-v2 .about-vm-grid{grid-template-columns:1fr}
  .about-v2 .about-cap-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .about-v2 .about-cap-grid article:nth-child(n){border-left:1px solid var(--line);border-top:1px solid var(--line)}
  .about-v2 .about-cap-grid article:nth-child(2n+1){border-left:0}
  .about-v2 .about-cap-grid article:nth-child(-n+2){border-top:0}
}
@media(max-width:640px){
  .about-v2 .about-metrics > div{padding:24px 18px}
  .about-v2 .about-cap-grid{grid-template-columns:1fr}
  .about-v2 .about-cap-grid article:nth-child(n){border-left:0;border-top:1px solid var(--line);padding:28px 22px}
  .about-v2 .about-cap-grid article:first-child{border-top:0}
  .about-v2 .about-actions .button{flex:1 1 100%;justify-content:center}
}

/* 404 page */
.notfound-page .notfound-body{text-align:center}
.notfound-page .notfound-actions{justify-content:center;margin-top:36px}
.notfound-page .title-banner .eyebrow{justify-content:center}
.notfound-page .title-banner .eyebrow span{width:32px}
