/* ==========================================================================
   Dr. Ashwin Nithish — Personal brand website
   style.css | Mobile-first | Pure CSS, no frameworks

   Design direction: "Panchabootha" — the five elements.
   Two grounds alternate through the site: roasted SOIL (dark) and
   lime PLASTER (light), separated by a hairline horizon.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Eczar:wght@400;500;600;700;800&family=Hind:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Grounds */
  --soil-900: #1E1712;
  --soil-800: #2A211A;
  --soil-700: #3A2E24;
  --plaster: #E9E9E0;
  --plaster-2: #DEDFD2;

  /* Accents */
  --ochre: #C08A2E;
  --ochre-lt: #DDA94A;
  --peacock: #14625F;
  --peacock-lt: #1E8A85;

  /* Ink */
  --ink: #171310;
  --ink-70: rgba(23, 19, 16, .72);
  --ink-50: rgba(23, 19, 16, .55);
  --bone: #F0EDE6;
  --bone-70: rgba(240, 237, 230, .72);
  --bone-50: rgba(240, 237, 230, .52);

  /* Hairlines */
  --rule-dark: rgba(240, 237, 230, .16);
  --rule-light: rgba(23, 19, 16, .16);

  /* The five elements — used only by the glyph and element tags */
  --el-earth: #C08A2E;
  --el-water: #14625F;
  --el-fire: #B24A2B;
  --el-air: #7E9A86;
  --el-space: #4B4A6A;

  /* Type */
  --display: 'Eczar', 'Georgia', serif;
  --body: 'Hind', 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Space */
  --gutter: 1.375rem;
  --maxw: 1220px;
  --band: clamp(4.5rem, 10vw, 8.5rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --radius: 2px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--bone);
  background: var(--soil-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--ochre); color: var(--soil-900); }

:focus-visible {
  outline: 2px solid var(--ochre-lt);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ochre);
  color: var(--soil-900);
  padding: .75rem 1.25rem;
  font-weight: 600;
}
.skip-link:focus { left: .75rem; top: .75rem; }

/* Paper grain — sits above the grounds, below the content */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - (var(--gutter) * 2), 780px); }

.band {
  position: relative;
  z-index: 2;
  padding-block: var(--band);
}
.band--soil { background: var(--soil-900); color: var(--bone); }
.band--soil-2 { background: var(--soil-800); color: var(--bone); }
.band--plaster { background: var(--plaster); color: var(--ink); }
.band--plaster-2 { background: var(--plaster-2); color: var(--ink); }

/* The horizon: hairline that divides one ground from the next */
.band + .band { border-top: 1px solid var(--rule-light); }
.band--soil + .band--soil-2,
.band--soil-2 + .band--soil,
.band--soil + .band--soil { border-top-color: var(--rule-dark); }

.grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.75rem, 11vw, 6.5rem);
  font-weight: 600;
  line-height: .96;
  letter-spacing: -.03em;
}

h2, .h2 { font-size: clamp(1.95rem, 5.4vw, 3.35rem); }
h3, .h3 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); line-height: 1.25; }

p { text-wrap: pretty; }
p + p { margin-top: 1.15rem; }

.lead {
  font-size: clamp(1.125rem, 2.4vw, 1.375rem);
  line-height: 1.7;
  font-weight: 300;
}

.muted { color: var(--bone-70); }
.band--plaster .muted,
.band--plaster-2 .muted { color: var(--ink-70); }

/* Eyebrow — mono label that names the section */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 1.1rem;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: .35;
  max-width: 5rem;
}
.band--plaster .eyebrow,
.band--plaster-2 .eyebrow { color: var(--peacock); }

.section-head { max-width: 62ch; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head p { margin-top: 1.1rem; }

/* Link with an underline that draws itself */
.ulink {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ochre);
  padding-bottom: .3rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .45s var(--ease);
}
.ulink:hover, .ulink:focus-visible { background-size: 100% 1px; }
.ulink span { transition: transform .35s var(--ease); }
.ulink:hover span { transform: translateX(4px); }
.band--plaster .ulink,
.band--plaster-2 .ulink { color: var(--peacock); }

/* --------------------------------------------------------------------------
   5. The Panchabootha glyph — the site's signature mark
   -------------------------------------------------------------------------- */
.glyph { width: 3rem; height: 3rem; flex: none; }
.glyph path { fill: none; stroke-width: 3.25; stroke-linecap: round; }
.glyph .a1 { stroke: var(--el-earth); }
.glyph .a2 { stroke: var(--el-water); }
.glyph .a3 { stroke: var(--el-fire); }
.glyph .a4 { stroke: var(--el-air); }
.glyph .a5 { stroke: var(--el-space); }

.glyph--lg { width: clamp(7rem, 22vw, 12rem); height: clamp(7rem, 22vw, 12rem); }

/* Divider that carries the mark */
.divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-block: clamp(2.5rem, 6vw, 4rem);
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule-dark);
}
.band--plaster .divider::before,
.band--plaster .divider::after,
.band--plaster-2 .divider::before,
.band--plaster-2 .divider::after { background: var(--rule-light); }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--solid { background: var(--ochre); color: var(--soil-900); }
.btn--solid:hover { background: var(--ochre-lt); }

.btn--outline { border-color: var(--rule-dark); color: var(--bone); }
.btn--outline:hover { border-color: var(--ochre); color: var(--ochre); }
.band--plaster .btn--outline,
.band--plaster-2 .btn--outline { border-color: var(--rule-light); color: var(--ink); }
.band--plaster .btn--outline:hover,
.band--plaster-2 .btn--outline:hover { border-color: var(--peacock); color: var(--peacock); }

.btn--ink { background: var(--peacock); color: var(--plaster); }
.btn--ink:hover { background: var(--peacock-lt); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   7. Media slots — deliberately empty, ready for client assets
   -------------------------------------------------------------------------- */
.slot {
  position: relative;
  display: grid;
  place-content: center;
  gap: .5rem;
  text-align: center;
  padding: 1.5rem;
  aspect-ratio: var(--ar, 4 / 5);
  border: 1px dashed rgba(240, 237, 230, .3);
  border-radius: var(--radius);
  background-color: rgba(240, 237, 230, .035);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0 11px,
    rgba(240, 237, 230, .045) 11px 12px
  );
  overflow: hidden;
}
.slot__icon { width: 2rem; height: 2rem; margin-inline: auto; stroke: var(--ochre); opacity: .85; }
.slot__label {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bone-70);
}
.slot__meta {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .1em;
  color: var(--bone-50);
}
.band--plaster .slot,
.band--plaster-2 .slot {
  border-color: rgba(23, 19, 16, .25);
  background-color: rgba(23, 19, 16, .025);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0 11px,
    rgba(23, 19, 16, .04) 11px 12px
  );
}
.band--plaster .slot__icon,
.band--plaster-2 .slot__icon { stroke: var(--peacock); }
.band--plaster .slot__label,
.band--plaster-2 .slot__label { color: var(--ink-70); }
.band--plaster .slot__meta,
.band--plaster-2 .slot__meta { color: var(--ink-50); }

.slot--wide { --ar: 16 / 9; }
.slot--square { --ar: 1 / 1; }
.slot--book { --ar: 2 / 3; }

/* Logo slot */
.logo-slot {
  display: grid;
  place-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border: 1px dashed rgba(240, 237, 230, .35);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: .5rem;
  letter-spacing: .1em;
  color: var(--bone-50);
}

/* --------------------------------------------------------------------------
   8. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1rem;
  background: transparent;
  transition: background-color .4s var(--ease), padding .4s var(--ease),
              box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  padding-block: .55rem;
  background: rgba(30, 23, 18, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--rule-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: .75rem; }
.brand__name {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--bone);
}
.brand__role {
  display: block;
  font-family: var(--mono);
  font-size: .55rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-top: .2rem;
}

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 1.6rem; }
.nav__link {
  position: relative;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--bone-70);
  padding-block: .4rem;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ochre);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__link:hover { color: var(--bone); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ochre); }

.header-cta { display: none; }

/* Hamburger */
.burger {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--bone);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile panel */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--gutter) 2.5rem;
  background: var(--soil-900);
  background-image: radial-gradient(120% 80% at 100% 0%, rgba(192, 138, 46, .14), transparent 60%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1.5rem);
  transition: opacity .4s var(--ease), transform .5s var(--ease), visibility .4s;
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }

.mobile-nav__list { display: flex; flex-direction: column; gap: .15rem; }
.mobile-nav__list li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(var(--i, 0) * 45ms);
  border-bottom: 1px solid var(--rule-dark);
}
.mobile-nav.is-open .mobile-nav__list li { opacity: 1; transform: none; }
.mobile-nav__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .9rem 0;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--bone);
}
.mobile-nav__link i {
  font-family: var(--mono);
  font-size: .6rem;
  font-style: normal;
  letter-spacing: .1em;
  color: var(--ochre);
}
.mobile-nav__link[aria-current="page"] { color: var(--ochre); }
.mobile-nav .btn { margin-top: 2rem; align-self: flex-start; }

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  z-index: 2;
  padding-top: clamp(8rem, 20vw, 11rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(90% 70% at 85% 10%, rgba(20, 98, 95, .22), transparent 62%),
    radial-gradient(80% 60% at 5% 90%, rgba(192, 138, 46, .16), transparent 60%),
    var(--soil-900);
  overflow: hidden;
}

.hero__grid { display: grid; gap: clamp(2rem, 6vw, 3.5rem); align-items: end; }

.hero__roles {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .9rem;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone-50);
  margin-bottom: 1.5rem;
}
.hero__roles span { display: inline-flex; align-items: center; gap: .9rem; }
.hero__roles span::after {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ochre);
}
.hero__roles span:last-child::after { display: none; }

.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em {
  display: block;
  font-family: var(--mono);
  font-size: clamp(.7rem, 1.8vw, .85rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 1.1rem;
}
.hero .lead { max-width: 54ch; color: var(--bone-70); }

.hero__media { position: relative; }
.hero__media .slot { --ar: 4 / 5; }
.hero__media .glyph {
  position: absolute;
  right: -.75rem;
  bottom: -1.25rem;
  width: 5.5rem;
  height: 5.5rem;
  background: var(--soil-900);
  padding: .65rem;
  border-radius: var(--radius);
}

/* Horizon rule under the hero */
.hero__horizon {
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-dark);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bone-50);
}

/* --------------------------------------------------------------------------
   10. Page header (interior pages)
   -------------------------------------------------------------------------- */
.page-head {
  position: relative;
  z-index: 2;
  padding-top: clamp(7.5rem, 17vw, 10rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(80% 70% at 90% 0%, rgba(20, 98, 95, .2), transparent 60%),
    var(--soil-900);
}
.page-head h1 { font-size: clamp(2.35rem, 7.5vw, 4.5rem); line-height: 1.02; }
.page-head .lead { max-width: 58ch; margin-top: 1.35rem; color: var(--bone-70); }

.crumbs {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone-50);
  margin-bottom: 1.25rem;
}
.crumbs a:hover { color: var(--ochre); }
.crumbs span { color: var(--ochre); }

/* --------------------------------------------------------------------------
   11. Role marquee
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  z-index: 2;
  padding-block: 1.1rem;
  background: var(--ochre);
  color: var(--soil-900);
  overflow: hidden;
  border-block: 1px solid rgba(30, 23, 18, .2);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__group i { font-style: normal; opacity: .5; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   12. Stats
   -------------------------------------------------------------------------- */
.stats { display: grid; gap: 0; }
.stat {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule-light);
}
.stat:last-child { border-bottom: 0; }
.stat__num {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--peacock);
}
.stat__label {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-top: .6rem;
}
.band--soil .stat, .band--soil-2 .stat { border-bottom-color: var(--rule-dark); }
.band--soil .stat__num, .band--soil-2 .stat__num { color: var(--ochre); }
.band--soil .stat__label, .band--soil-2 .stat__label { color: var(--bone-50); }

/* --------------------------------------------------------------------------
   13. Split feature
   -------------------------------------------------------------------------- */
.split { display: grid; gap: clamp(2rem, 6vw, 4rem); align-items: center; }
.split__body > .eyebrow { margin-bottom: 1.1rem; }
.split__body p { margin-top: 1.15rem; }

/* --------------------------------------------------------------------------
   14. Cards & flip cards
   -------------------------------------------------------------------------- */
.cards { display: grid; gap: 1.25rem; }

.card {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--rule-light);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .4);
  transition: transform .4s var(--ease), border-color .4s var(--ease),
              background-color .4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--peacock);
  background: rgba(255, 255, 255, .72);
}
.card__no {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .18em;
  color: var(--peacock);
}
.card h3 { margin: .75rem 0 .6rem; }
.card p { font-size: .97rem; color: var(--ink-70); }

.band--soil .card,
.band--soil-2 .card {
  border-color: var(--rule-dark);
  background: rgba(240, 237, 230, .035);
}
.band--soil .card:hover,
.band--soil-2 .card:hover {
  border-color: var(--ochre);
  background: rgba(240, 237, 230, .06);
}
.band--soil .card__no,
.band--soil-2 .card__no { color: var(--ochre); }
.band--soil .card p,
.band--soil-2 .card p { color: var(--bone-70); }

/* Flip cards */
.flip {
  height: 330px;
  perspective: 1400px;
  cursor: pointer;
}
.flip__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .8s var(--ease);
  transform-style: preserve-3d;
}
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .6rem;
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--rule-light);
  border-radius: var(--radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.flip__face--front { background: var(--plaster-2); color: var(--ink); }

/* Concentric rings — a quiet echo of the Panchabootha arcs */
.flip__face--front::before,
.flip__face--front::after {
  content: "";
  position: absolute;
  border: 1px solid var(--peacock);
  border-radius: 50%;
  opacity: .22;
  pointer-events: none;
  transition: transform .9s var(--ease);
}
.flip__face--front::before { width: 200px; height: 200px; right: -74px; top: -74px; }
.flip__face--front::after { width: 128px; height: 128px; right: -38px; top: -38px; }
.flip:hover .flip__face--front::before,
.flip:focus .flip__face--front::before { transform: scale(1.1); }
.flip__face--back {
  background: var(--soil-800);
  color: var(--bone);
  border-color: var(--rule-dark);
  transform: rotateY(180deg);
  justify-content: center;
}
.flip__face h3 { font-size: 1.35rem; }
.flip__face p { font-size: .93rem; line-height: 1.65; color: var(--bone-70); }
.flip__no {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .18em;
  color: var(--peacock);
  margin-bottom: auto;
}
.flip__hint {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.flip__face--back .flip__no { color: var(--ochre); }

/* --------------------------------------------------------------------------
   15. List of themes / topics
   -------------------------------------------------------------------------- */
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.tag {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  padding: .45rem .85rem;
  border: 1px solid var(--rule-light);
  border-radius: 100px;
  color: var(--ink-70);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.tag:hover { border-color: var(--peacock); color: var(--peacock); }
.band--soil .tag,
.band--soil-2 .tag { border-color: var(--rule-dark); color: var(--bone-70); }
.band--soil .tag:hover,
.band--soil-2 .tag:hover { border-color: var(--ochre); color: var(--ochre); }

/* Ordered list of deliverables */
.checklist { display: grid; gap: .85rem; margin-top: 1.75rem; }
.checklist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .85rem;
  align-items: start;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--rule-light);
  font-size: .98rem;
}
.checklist li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: .65rem;
  border-radius: 50%;
  border: 1.5px solid var(--peacock);
}
.band--soil .checklist li,
.band--soil-2 .checklist li { border-bottom-color: var(--rule-dark); }
.band--soil .checklist li::before,
.band--soil-2 .checklist li::before { border-color: var(--ochre); }

/* --------------------------------------------------------------------------
   16. Element ledger (Panchabootha) — environment page
   -------------------------------------------------------------------------- */
.elements { display: grid; gap: 0; margin-top: 2.5rem; }
.element {
  display: grid;
  gap: .5rem 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule-light);
  transition: padding-left .4s var(--ease);
}
.element:last-child { border-bottom: 1px solid var(--rule-light); }
.element:hover { padding-left: .75rem; }
.element__key {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.element__key::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot, var(--ochre));
}
.element h3 { font-size: 1.3rem; }
.element p { font-size: .97rem; color: var(--ink-70); margin-top: .4rem; }

/* --------------------------------------------------------------------------
   17. Timeline (awards & recognition)
   -------------------------------------------------------------------------- */
.timeline { position: relative; padding-left: 1.75rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .5rem;
  bottom: .5rem;
  width: 1px;
  background: var(--rule-dark);
}
.timeline li { position: relative; padding-bottom: 2.25rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: .55rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--soil-900);
  border: 1.5px solid var(--ochre);
}
.timeline h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.timeline p { font-size: .96rem; color: var(--bone-70); }
.timeline .card__no { display: block; margin-bottom: .3rem; }

/* --------------------------------------------------------------------------
   18. Pull quote
   -------------------------------------------------------------------------- */
.quote { text-align: left; }
.quote blockquote {
  font-family: var(--display);
  font-size: clamp(1.5rem, 4.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.quote cite {
  display: block;
  margin-top: 1.75rem;
  font-family: var(--mono);
  font-style: normal;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ochre);
}

/* --------------------------------------------------------------------------
   19. Book feature
   -------------------------------------------------------------------------- */
.book { display: grid; gap: clamp(2rem, 6vw, 4rem); align-items: center; }
.book__cover { max-width: 300px; }
.book__title {
  font-family: var(--display);
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  line-height: .95;
  letter-spacing: -.02em;
}
.book__title small {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: .9rem;
}

/* --------------------------------------------------------------------------
   20. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  z-index: 2;
  padding-block: clamp(4rem, 9vw, 6.5rem);
  background:
    radial-gradient(70% 100% at 50% 0%, rgba(192, 138, 46, .16), transparent 65%),
    var(--soil-800);
  text-align: center;
  border-top: 1px solid var(--rule-dark);
}
.cta-band .glyph { margin: 0 auto 1.5rem; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { max-width: 52ch; margin: 1.15rem auto 0; color: var(--bone-70); }
.cta-band .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   21. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .45rem; }
.field label {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone-70);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .85rem 1rem;
  background: rgba(240, 237, 230, .04);
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius);
  color: var(--bone);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--bone-50); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ochre);
  background: rgba(240, 237, 230, .07);
}
.field select option { background: var(--soil-800); }

.field .error {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .06em;
  color: #E0895F;
  min-height: 1rem;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #E0895F; }

.form__note {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .08em;
  color: var(--bone-50);
  line-height: 1.7;
}

.form-status {
  padding: .9rem 1.1rem;
  border: 1px solid var(--peacock-lt);
  border-radius: var(--radius);
  background: rgba(20, 98, 95, .18);
  font-size: .95rem;
}
.form-status[hidden] { display: none; }

/* Contact details list */
.contact-list { display: grid; gap: 1.5rem; }
.contact-list dt {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: .35rem;
}
.contact-list dd { font-size: 1.05rem; }

/* Placeholder for details the client still needs to supply */
.tbd {
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--bone-50);
  border-bottom: 1px dashed var(--bone-50);
  padding-bottom: 1px;
}
.band--plaster .tbd,
.band--plaster-2 .tbd { color: var(--ink-50); border-bottom-color: var(--ink-50); }

/* --------------------------------------------------------------------------
   22. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--soil-900);
  border-top: 1px solid var(--rule-dark);
  padding-top: clamp(3.5rem, 8vw, 5rem);
}
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand .brand { margin-bottom: 1.25rem; }
.footer-brand p { font-size: .95rem; color: var(--bone-70); max-width: 34ch; }

.footer-col h4 {
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 1.1rem;
}
.footer-col li { margin-bottom: .6rem; }
.footer-col a, .footer-col span {
  font-size: .95rem;
  color: var(--bone-70);
  transition: color .3s var(--ease);
}
.footer-col a:hover { color: var(--ochre); }

.socials { display: flex; gap: .6rem; margin-top: 1.25rem; }
.socials a {
  display: grid;
  place-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius);
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.socials a:hover { border-color: var(--ochre); color: var(--ochre); transform: translateY(-2px); }
.socials svg { width: 1rem; height: 1rem; }

.footer-bottom {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule-dark);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .1em;
  color: var(--bone-50);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom a:hover { color: var(--ochre); }

/* --------------------------------------------------------------------------
   23. Floating widgets — WhatsApp + enquiry chat
   -------------------------------------------------------------------------- */
.float-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.float-btn {
  display: grid;
  place-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .3s var(--ease);
}
.float-btn:hover { transform: scale(1.06); }
.float-btn svg { width: 1.5rem; height: 1.5rem; }
.float-btn--wa { background: #1FA855; color: #fff; }
.float-btn--chat { background: var(--ochre); color: var(--soil-900); }

.chat {
  position: fixed;
  right: 1rem;
  bottom: 5.25rem;
  z-index: 95;
  width: min(calc(100vw - 2rem), 340px);
  background: var(--soil-800);
  border: 1px solid var(--rule-dark);
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.97);
  transform-origin: bottom right;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  overflow: hidden;
}
.chat.is-open { opacity: 1; visibility: visible; transform: none; }

.chat__head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.1rem;
  background: var(--ochre);
  color: var(--soil-900);
}
.chat__head strong { font-family: var(--display); font-size: 1rem; }
.chat__head p { font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; }
.chat__close {
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}
.chat__body { padding: 1.1rem; display: grid; gap: .85rem; }
.chat__msg {
  font-size: .9rem;
  line-height: 1.6;
  background: rgba(240, 237, 230, .05);
  border: 1px solid var(--rule-dark);
  border-radius: 2px 12px 12px 12px;
  padding: .75rem .9rem;
  color: var(--bone-70);
}
.chat .field label { font-size: .6rem; }
.chat .field input,
.chat .field textarea { padding: .65rem .8rem; font-size: .92rem; }
.chat .field textarea { min-height: 76px; }

/* --------------------------------------------------------------------------
   24. Legal / utility pages
   -------------------------------------------------------------------------- */
.prose h2 { font-size: clamp(1.35rem, 3.2vw, 1.7rem); margin-top: 2.75rem; margin-bottom: .85rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--bone-70); }
.prose ul { display: grid; gap: .6rem; margin-top: 1rem; padding-left: 1.15rem; list-style: disc; }
.prose a { color: var(--ochre); text-decoration: underline; text-underline-offset: 3px; }

.sitemap-group { margin-bottom: 2.5rem; }
.sitemap-group h2 { font-size: 1.2rem; margin-bottom: .9rem; }
.sitemap-group li { border-bottom: 1px solid var(--rule-dark); }
.sitemap-group a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 0;
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.sitemap-group a:hover { color: var(--ochre); padding-left: .5rem; }
.sitemap-group a span {
  font-family: var(--mono);
  font-size: .66rem;
  color: var(--bone-50);
  text-align: right;
}

.error-page {
  min-height: 78vh;
  display: grid;
  align-content: center;
  padding-top: 7rem;
}
.error-page .display { color: var(--ochre); }

/* --------------------------------------------------------------------------
   25. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   26. Breakpoints
   -------------------------------------------------------------------------- */
@media (min-width: 560px) {
  :root { --gutter: 2rem; }
  .stats { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; }
  .stat:nth-last-child(2) { border-bottom: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .form--split { grid-template-columns: repeat(2, 1fr); }
  .form--split .field--full,
  .form--split .form__foot { grid-column: 1 / -1; }
}

@media (min-width: 860px) {
  .hero__grid { grid-template-columns: 1.35fr .85fr; }
  .hero__media { order: 2; }
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-first .split__media { order: -1; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: 0; border-right: 1px solid var(--rule-light); padding: 0 1.75rem; }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { border-right: 0; }
  .band--soil .stat, .band--soil-2 .stat { border-right-color: var(--rule-dark); }
  .element { grid-template-columns: 190px 1fr; align-items: start; }
  .book { grid-template-columns: 320px 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 3rem; }
  .contact-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(2.5rem, 6vw, 4.5rem); }
  .quote blockquote { max-width: 22ch; }
  .quote--wide blockquote { max-width: none; }
}

@media (min-width: 1100px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .burger { display: none; }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
  .flip { height: 350px; }
}

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

@media print {
  .site-header, .float-stack, .chat, .marquee, .mobile-nav { display: none !important; }
  body { background: #fff; color: #000; }
  .band { padding-block: 1.5rem; }
}
