/* Dr. Reji M. Pillai: site styles
   Palette: ink and paper, saffron as the single accent.
   Teal, green and rust appear only in the service cards, the chart and the principle bands. */

/* ---------- Fonts (self-hosted, SIL Open Font License; see assets/fonts) ---------- */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #14130F;
  --paper: #F4EFE4;
  --paper-2: #E8E1D0;
  --muted: #5A584E;
  --line: rgba(20, 19, 15, .16);
  --on-ink-muted: rgba(244, 239, 228, .72);
  --on-ink-line: rgba(244, 239, 228, .18);

  --saffron: #F2B01E;
  --green: #4E6F2E;
  --rust: #B3411F;
  --teal: #1C5460;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(4rem, 9vw, 7.5rem);
  --header-h: 64px;

  color-scheme: light;
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, dl, dd, ol, ul, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 20;
  background: var(--saffron);
  color: var(--ink);
  padding: .6rem 1rem;
  font-weight: 500;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.section { padding-block: var(--section); }
.on-ink { background: var(--ink); color: var(--paper); }
.on-paper-2 { background: var(--paper-2); }

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.05;
}

h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.2;
}

.label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.on-ink .label { color: var(--on-ink-muted); }

.lead {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -.01em;
}

.muted { color: var(--muted); }
.intro { margin-top: 1rem; max-width: 56ch; }
.on-ink .muted { color: var(--on-ink-muted); }

.note {
  font-size: .9rem;
  color: var(--muted);
}
.on-ink .note { color: var(--on-ink-muted); }

/* Two-column section layout: heading left, content right */
.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 5vw, 80px);
}
.split-head > * + * { margin-top: 1rem; }

@media (min-width: 861px) {
  .split-head {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    align-self: start;
  }
}

@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

.prose > * + * { margin-top: 1.25rem; }
.prose p:not(.lead) { max-width: 60ch; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.4rem;
  font: 500 .95rem/1 var(--sans);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    background-color 200ms ease,
    color 200ms ease,
    border-color 200ms ease;
}
.btn:active { transform: scale(.97); }
.btn .icon { width: 1.15rem; height: 1.15rem; }

.btn-primary { background: var(--saffron); color: var(--ink); }
.btn-outline { border-color: currentColor; }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--paper); }
  .btn-outline:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
  .card-saffron .btn-outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--on-ink-line);
  padding-top: env(safe-area-inset-top, 0px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.nav a {
  font-size: .92rem;
  text-decoration: none;
  color: var(--on-ink-muted);
  transition: color 150ms ease;
}
.nav a[aria-current="true"] { color: var(--paper); }

.nav .icon-link {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: -8px;
  color: var(--paper);
}
.nav .icon-link .icon { width: 20px; height: 20px; }

@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--paper); }
  .nav .icon-link:hover { color: var(--saffron); }
}

@media (max-width: 1000px) {
  .nav .opt { display: none; }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.eyebrow {
  color: var(--saffron);
  font-weight: 500;
  font-size: .95rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: .95;
  font-weight: 600;
  letter-spacing: -.035em;
}

.hero-lede {
  margin-top: 1.75rem;
  max-width: 44ch;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.4;
  font-weight: 350;
}

.hero-bio {
  margin-top: 1.25rem;
  max-width: 62ch;
  color: var(--on-ink-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.creds {
  margin-top: 1.25rem;
  color: var(--on-ink-muted);
  font-size: .95rem;
}

.actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.hero .btn { padding-inline: 1.05rem; }

/* Follows the scroll until the end of the hero text */
.hero-photo {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 58% 20%;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { position: static; max-width: 440px; }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: .6rem;
  padding-top: 1rem;
  border-top: 2px solid var(--saffron);
}

.stat dd {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}

.stat dt {
  max-width: 26ch;
  font-size: .92rem;
  line-height: 1.45;
  color: var(--on-ink-muted);
}

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
}

/* ---------- Photo band ---------- */

.photo-band img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: 50% 8%;
}

@media (max-width: 760px) {
  .photo-band img { aspect-ratio: 4 / 3; object-position: 42% 10%; }
}

/* ---------- Advisory and mentoring ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.75rem, 3.5vw, 3rem);
}

.card-teal { background: var(--teal); color: var(--paper); }
.card-saffron { background: var(--saffron); color: var(--ink); }

.card h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.card p { max-width: 46ch; }

.card ul {
  display: grid;
  gap: .6rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, currentColor 40%, transparent);
}

.card li {
  position: relative;
  padding-left: 1.25rem;
}
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .45rem;
  height: .45rem;
  background: currentColor;
}

.card .btn {
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 820px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Profile ---------- */

.facts {
  margin-top: 2.5rem;
  border-top: 2px solid var(--ink);
}

.facts div {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}

.facts dt { padding-top: .2rem; }
.facts dd { font-weight: 500; }

.on-ink .facts { border-top-color: var(--on-ink-line); border-top-width: 1px; }
.on-ink .facts div { border-bottom-color: var(--on-ink-line); }

@media (max-width: 520px) {
  .facts div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
}

/* ---------- Career ---------- */

.roles { border-top: 2px solid var(--ink); }

.role {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1.25fr) minmax(0, 1.25fr);
  gap: clamp(12px, 2.5vw, 32px);
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.role .years {
  font-size: .95rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.role h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

@media (max-width: 700px) {
  .role { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
}

/* ---------- Award ---------- */

.award {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

/* One award per view. Native scroll-snap handles swiping; main.js advances it. */
.award-track {
  display: flex;
  overflow: auto hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 3rem; /* room for the trophy, which hangs below the photo */
}
.award-track::-webkit-scrollbar { display: none; }

.award-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.award-nav {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}

.award-nav button {
  position: relative;
  padding: 1rem 0 .5rem;
  font: 500 .95rem/1.35 var(--sans);
  text-align: left;
  color: var(--on-ink-muted);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 200ms ease;
}
.award-nav button[aria-current] { color: var(--paper); }

.award-nav button::before,
.award-nav button::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--on-ink-line);
}
.award-nav button::after {
  background: var(--saffron);
  transform: scaleX(0);
  transform-origin: left;
}
.award-nav button[aria-current]::after { transform: none; }

@keyframes award-progress {
  from { transform: scaleX(0); }
  to { transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .awards.is-auto [aria-current]::after { animation: award-progress 7s linear both paused; }
  .awards.is-auto.is-visible [aria-current]::after { animation-play-state: running; }
  .awards.is-auto.is-visible:focus-within [aria-current]::after { animation-play-state: paused; }
}

@media (hover: hover) and (pointer: fine) {
  .awards.is-auto.is-visible:hover [aria-current]::after { animation-play-state: paused; }
  .award-nav button:hover { color: var(--paper); }
}

.award-photo { position: relative; }
.award-photo img { width: 100%; }
.award-photo .award-trophy {
  position: absolute;
  right: -5%;
  bottom: -5%;
  width: 15%;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5));
}

@media (max-width: 860px) {
  .award { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Kind words ---------- */

.kind-words-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.marquee-toggle {
  min-width: 6rem;
  padding: .7rem 1rem;
  font: 500 .9rem/1 var(--sans);
  color: var(--ink);
  background: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.marquee-toggle:active { transform: scale(.97); }

/* Port of Magic UI's Marquee (magicui.design/docs/components/marquee).
   main.js repeats the group; without it the row is a plain horizontal scroller. */
.marquee {
  --gap: clamp(12px, 1.5vw, 20px);
  --duration: 110s;
  display: flex;
  gap: var(--gap);
  margin-top: clamp(2rem, 4vw, 3rem);
  overflow-x: auto;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  gap: var(--gap);
}

@keyframes marquee {
  to { transform: translateX(calc(-100% - var(--gap))); }
}
@keyframes marquee-vertical {
  to { transform: translateY(calc(-100% - var(--gap))); }
}

@media (prefers-reduced-motion: no-preference) {
  .marquee.is-looping {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  }
  .is-looping .marquee-group { animation: marquee var(--duration) linear infinite; }
  .marquee.is-paused .marquee-group,
  .marquee:focus-visible .marquee-group { animation-play-state: paused; }
}

@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee-group { animation-play-state: paused; }
  .marquee-toggle:hover { background: var(--ink); color: var(--paper); }
}

.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
  width: min(23rem, 84vw);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  background: var(--paper-2);
}

.quote blockquote {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.3rem;
  line-height: 1.38;
  letter-spacing: -.01em;
}
.quote blockquote p + p { margin-top: .7em; }

.quote-long { width: min(38rem, 84vw); }
.quote-long blockquote {
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0;
}

.quote-short blockquote { font-size: 2rem; line-height: 1.15; }

.quote-by {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .85rem;
  line-height: 1.4;
  color: var(--muted);
}

.quote-by img,
.quote-initials {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
}
.quote-initials {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
}

.quote-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

/* Phones: Marquee's vertical mode, so long recommendations keep their full text */
@media (max-width: 620px) {
  .marquee, .marquee-group { flex-direction: column; }
  .marquee { padding-inline: var(--gutter); }
  .quote, .quote-long { width: 100%; }
  .quote blockquote { font-size: 1.15rem; }
  .quote-long blockquote { font-size: 1rem; }
  .quote-short blockquote { font-size: 1.75rem; }
}
@media (max-width: 620px) and (prefers-reduced-motion: no-preference) {
  .marquee.is-looping {
    height: min(36rem, 72vh);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  }
  .is-looping .marquee-group { animation-name: marquee-vertical; }
}

/* ---------- Results ---------- */

.results {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 72px);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.chart {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.chart .sub {
  margin-top: .25rem;
  font-size: .95rem;
  color: var(--muted);
}

.bars {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: clamp(24px, 6vw, 72px);
  height: 260px;
  margin-top: 3.5rem;
  padding-left: 2.25rem;
  border-bottom: 2px solid var(--ink);
}

.gridline {
  position: absolute;
  left: 2.25rem;
  right: 0;
  border-top: 1px solid var(--line);
}
.gridline span {
  position: absolute;
  left: -2.25rem;
  transform: translateY(-50%);
  font-size: .75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.bar {
  position: relative;
  flex: 1;
  max-width: 140px;
}
.bar b {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  padding-bottom: .4rem;
  text-align: center;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.bar-before { background: color-mix(in srgb, var(--ink) 22%, var(--paper)); }
.bar-after { background: var(--teal); }

.bar-labels {
  display: flex;
  gap: clamp(24px, 6vw, 72px);
  margin-top: .6rem;
  padding-left: 2.25rem;
}
.bar-labels span {
  flex: 1;
  max-width: 140px;
  text-align: center;
  font-size: .85rem;
  line-height: 1.35;
  color: var(--muted);
}

.chart-delta {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.chart-delta b {
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1;
  color: var(--green);
}

.figures div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: .5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--on-ink-line);
}
.figures div:first-child { border-top: 2px solid var(--saffron); padding-top: 1rem; }

.figures dd {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: lining-nums tabular-nums;
}

.figures dt {
  max-width: 36ch;
  color: var(--on-ink-muted);
}

.results-source { margin-top: 2rem; }

@media (max-width: 900px) {
  .results { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Expertise ---------- */

.skills { border-top: 2px solid var(--ink); }

.skill {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(12px, 2.5vw, 32px);
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.skill p { color: var(--muted); }

@media (max-width: 700px) {
  .skill { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
}

/* ---------- Principles ---------- */

.principles-head { padding-block: var(--section) clamp(2.5rem, 5vw, 4rem); }
.principles-head .note { margin-top: 1rem; }

.band { padding-block: clamp(2.5rem, 5vw, 4rem); }

.band .wrap {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(12px, 3vw, 48px);
  align-items: baseline;
}

.band-label {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.band-text > p:first-child {
  max-width: 24ch;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.band-text > p + p {
  margin-top: 1rem;
  max-width: 56ch;
  opacity: .9;
}

.band-saffron { background: var(--saffron); color: var(--ink); }
.band-green { background: var(--green); color: var(--paper); }
.band-rust { background: var(--rust); color: var(--paper); }
.band-teal { background: var(--teal); color: var(--paper); }

.values {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
  margin-top: 1.5rem;
  font-weight: 500;
}

@media (max-width: 760px) {
  .band .wrap { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
}

/* ---------- Recognition ---------- */

.ledger { border-top: 2px solid var(--ink); }

.ledger-row {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: clamp(12px, 2.5vw, 32px);
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.ledger-row dt { padding-top: .25rem; }
.ledger-row ul { display: grid; gap: .6rem; }
.ledger-row strong { font-weight: 700; }

@media (max-width: 620px) {
  .ledger-row { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
}

.press { margin-top: clamp(3rem, 6vw, 4.5rem); }
.press h3 { margin-bottom: 1rem; }

.press-list { border-top: 2px solid var(--ink); }

.press-list a {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) auto;
  gap: clamp(12px, 2.5vw, 32px);
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.press-list time {
  font-size: .9rem;
  color: var(--muted);
  white-space: nowrap;
}

.press-title {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.3;
  letter-spacing: -.01em;
}

.press-outlet {
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .press-list a:hover .press-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
}

@media (max-width: 620px) {
  .press-list a { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
}

/* ---------- Contact ---------- */

.contact .lead { max-width: 28ch; }
.contact .prose p:not(.lead) { color: var(--on-ink-muted); max-width: 52ch; }
.contact .actions { margin-top: 2rem; }
.contact .facts { margin-top: 3rem; }
.contact .facts a { text-decoration: none; }

@media (hover: hover) and (pointer: fine) {
  .contact .facts a:hover { color: var(--saffron); }
}

/* ---------- Floating WhatsApp button ---------- */

.wa-float {
  position: fixed;
  right: calc(clamp(16px, 2vw, 28px) + env(safe-area-inset-right, 0px));
  bottom: calc(clamp(16px, 2vw, 28px) + env(safe-area-inset-bottom, 0px));
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.35rem;
  border-radius: 999px;
  background: #25D366; /* WhatsApp green */
  color: var(--ink);
  font: 500 .95rem/1 var(--sans);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(20, 19, 15, .3);
  transition: transform 200ms var(--ease-out), opacity 200ms ease, visibility 200ms;
}
.wa-float .icon { width: 1.4rem; height: 1.4rem; }
.wa-float:active { transform: scale(.97); }
.wa-float.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

@media (hover: hover) and (pointer: fine) {
  .wa-float:hover:not(:active, .is-hidden) { transform: translateY(-2px); }
}

@media (max-width: 620px) {
  .wa-float { padding: 1rem; }
  .wa-float span { display: none; }
  .wa-float .icon { width: 1.6rem; height: 1.6rem; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--on-ink-muted);
  border-top: 1px solid var(--on-ink-line);
  padding-block: 1.75rem calc(1.75rem + env(safe-area-inset-bottom, 0px));
  font-size: .9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  transition: color 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .site-footer a:hover { color: var(--paper); }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active, .marquee-toggle:active { transform: none; }
  .wa-float, .wa-float:active, .wa-float.is-hidden, .wa-float:hover:not(:active, .is-hidden) { transform: none; }
  .marquee-toggle, .marquee-group[aria-hidden] { display: none; }
}
