/* Home page styles, moved out of index.html on 2026-11-17. Palette and
   type tokens live in assets/brand.css, which loads first. */

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

/* Skip-to-content link (a11y) — visible only on focus */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.6rem 1rem;
  background: var(--teal, var(--pp-accent));
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0 0 6px 0;
  transform: translateY(-110%);
  transition: transform 0.15s ease;
  z-index: 1000;
  text-decoration: none;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--teal, var(--pp-accent));
  outline-offset: 2px;
}



/* Dark mode: explicit toggle */


/* Dark mode: device preference (only if user hasn't explicitly chosen light) */

}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rule-md);
  border-radius: 999px;
  padding: 2px;
  background: var(--white);
  margin-left: 1rem;
}
.theme-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-dim);
  font-size: 0.95rem;
  transition: background 0.18s ease, color 0.18s ease;
  font-family: inherit;
}
.theme-toggle button:hover { color: var(--ink); }
.theme-toggle button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--teal);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 200;
  background: var(--pp-header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  padding: 0.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
:root[data-theme="dark"] nav { background: var(--pp-header-bg); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) nav { background: var(--pp-header-bg); }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--teal); }

.nav-cta {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-teal);
  background: var(--teal);
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 1.25rem;
}
.nav-cta:hover { background: var(--teal-md); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding-top: 5rem;
}

.hero-left {
  padding: 13rem 4rem 6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-right: 1px solid var(--rule);
}

.hero-right {
  padding: 13rem 4rem 6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--white);
}

.hero-overline {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 2rem;
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 2.5rem;
}

.hero-heading em {
  font-style: italic;
  color: var(--violet);
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--ink-mid);
  line-height: 1.75;
  max-width: 42ch;
  margin-bottom: 3rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-primary {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-teal);
  background: var(--teal);
  text-decoration: none;
  padding: 0.8rem 2rem;
  transition: background 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--teal-md); }

.btn-ghost {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid var(--teal);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--teal-md); border-color: var(--teal-md); }

/* Right panel */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-bottom: 3rem;
  background: var(--rule);
}

.hero-stat {
  background: var(--white);
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
}

.stat-num span { color: var(--teal); }

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.hero-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.method-pill {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--rule-md);
  color: var(--ink-mid);
  transition: border-color 0.2s, color 0.2s;
}
.method-pill:hover { border-color: var(--teal); color: var(--teal); }

/* ─── SECTION SHELL ─── */
section { border-bottom: 1px solid var(--rule); }

.section-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 7rem 4rem;
}

.section-label {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 3.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule-md);
  max-width: 200px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--ink);
}
.section-heading em { font-style: italic; color: var(--violet); }

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 6rem;
  margin-top: 5rem;
  align-items: start;
}

.about-stats { display: flex; flex-direction: column; gap: 0; }

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-pillar {
  padding: 1.8rem 0 1.8rem 1.5rem;
  border-left: 3px solid var(--teal-lt);
  border-bottom: 1px solid var(--rule);
  transition: border-left-color 0.2s;
}
.about-pillar:hover { border-left-color: var(--teal); }
.about-pillar:last-child { border-bottom: none; }

.pillar-num {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.pillar-desc {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--ink-mid);
}

.about-stat {
  padding: 1.8rem 0 1.8rem 1.5rem;
  border-left: 3px solid var(--teal-lt);
  border-bottom: 1px solid var(--rule);
  transition: border-left-color 0.2s;
}
.about-stat:hover { border-left-color: var(--teal); }
.about-stat:last-child { border-bottom: none; }

.about-stat-num {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.about-stat-num em { font-style: normal; color: var(--teal); }

.about-stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.about-text p {
  font-size: 1.1rem;
  color: var(--ink-mid);
  line-height: 1.82;
  margin-bottom: 1.6rem;
}
.about-text p strong { color: var(--ink); font-weight: 600; }
.about-text a { color: var(--teal); text-decoration: none; border-bottom: 1px solid var(--teal-lt); transition: border-color 0.2s; }
.about-text a:hover { border-color: var(--teal); }

/* ─── SERVICES ─── */
.services-bg { background: var(--white); }

.services-table { margin-top: 5rem; border-top: 1px solid var(--rule-md); }

.svc-row {
  display: grid;
  grid-template-columns: 3.5rem 1.3fr 2.2fr 7rem;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition: background 0.15s;
  cursor: default;
}
.svc-row:hover { background: var(--paper); }
.svc-row:hover .svc-num { color: var(--teal); }
.svc-row:hover .svc-name { color: var(--teal-md); }

.svc-num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--ink-dim);
  transition: color 0.2s;
  padding-top: 0.15rem;
}

.svc-name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  transition: color 0.2s;
}

.svc-desc {
  font-size: 0.88rem;
  color: var(--ink-mid);
  line-height: 1.72;
}

.svc-pill {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 2px;
  margin-top: 0.2rem;
  width: fit-content;
}
.pill-teal  { background: var(--teal-lt); color: var(--teal-md); }
.pill-violet { background: var(--violet-lt); color: var(--violet-md); }
.pill-green { background: var(--green-lt); color: var(--green); }
.pill-grey  { background: var(--grey-lt); color: var(--grey); }

/* ─── SECTORS ─── */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 5rem;
  border: 1px solid var(--rule-md);
}

.sector-cell {
  padding: 2.5rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}
.sector-cell:nth-child(3n) { border-right: none; }
.sector-cell:nth-child(n+4) { border-bottom: none; }
.sector-cell:hover { background: var(--white); }

.sector-stripe {
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--teal-lt);
  transition: background 0.2s;
}
.sector-cell:hover .sector-stripe { background: var(--teal); }
.sector-cell:nth-child(2n) .sector-stripe { background: var(--violet-lt); }
.sector-cell:nth-child(2n):hover .sector-stripe { background: var(--violet); }
.sector-cell:nth-child(3n) .sector-stripe { background: var(--green-lt); }
.sector-cell:nth-child(3n):hover .sector-stripe { background: var(--green); }

.sector-label-tag {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 1.2rem;
}

.sector-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.7rem;
  line-height: 1.2;
}

.sector-desc {
  font-size: 0.82rem;
  color: var(--ink-mid);
  line-height: 1.65;
}

/* ─── PORTFOLIO ─── */
.portfolio-bg { background: var(--paper); }
.portfolio-bg .section-label { color: var(--teal); }
.portfolio-bg .section-label::after { background: var(--rule); }
.portfolio-bg .section-heading { color: var(--ink); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 5rem;
  background: var(--rule);
}

.portfolio-card {
  background: var(--white);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}
.portfolio-card:hover { background: var(--paper); }

.portfolio-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--teal);
  transition: width 0.4s ease;
}
.portfolio-card:nth-child(2n)::before { background: var(--violet); }
.portfolio-card:hover::before { width: 100%; }

.port-year {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--teal);
  margin-bottom: 1.2rem;
}
.portfolio-card:nth-child(2n) .port-year { color: var(--violet); }

.port-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.port-desc {
  font-size: 0.86rem;
  color: var(--ink-mid);
  line-height: 1.72;
  margin-bottom: 2rem;
}

.port-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.port-tag {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--rule-md);
  padding: 0.2rem 0.6rem;
}

/* ─── CONTACT ─── */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 7rem;
  margin-top: 5rem;
  align-items: start;
}

.contact-lede {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 2.5rem;
}

.contact-meta { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-item-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.contact-item-value {
  font-size: 0.92rem;
  color: var(--ink-mid);
}

.contact-item-value a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid var(--teal-lt);
  transition: border-color 0.2s;
}
.contact-item-value a:hover { border-color: var(--teal); }

/* Form */
form { display: flex; flex-direction: column; gap: 1.8rem; }

.field label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.5rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--rule-md);
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--teal); }
.field textarea { height: 100px; resize: none; }
.field select option { background: #fff; }

.btn-submit {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-teal);
  background: var(--teal);
  border: none;
  padding: 0.9rem 2.5rem;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s, transform 0.15s;
}
.btn-submit:hover { background: var(--teal-md); transform: translateY(-1px); }

/* ─── FOOTER ─── */
footer {
  background: var(--paper);
  color: var(--ink-mid);
  padding: 5rem 4rem 0;
  border-top: 1px solid var(--rule);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--rule);
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
}

.footer-brand-desc {
  font-size: 0.82rem;
  line-height: 1.75;
  max-width: 30ch;
  color: var(--ink-mid);
  margin-bottom: 1.5rem;
}

.footer-badge {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(16, 137, 177,0.4);
  color: var(--teal);
  padding: 0.25rem 0.7rem;
}

.footer-col h4 {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.3rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }

.footer-col a {
  font-size: 0.85rem;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
}

/* ─── CONVERSATION MODAL (typeform-style) ─── */
.conv-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.conv-modal[hidden] { display: none; }
.conv-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  animation: convOverlayIn 0.25s ease;
}
@keyframes convOverlayIn { from { opacity: 0; } to { opacity: 1; } }
.conv-panel {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 3rem 2.5rem 2.5rem;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  animation: convPanelIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes convPanelIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.conv-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  background: none;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-mid);
  cursor: pointer;
  padding: 0.4rem 0.6rem;
}
.conv-close:hover { color: var(--ink); }
.conv-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 2rem;
}
.conv-dot {
  width: 30px;
  height: 3px;
  background: var(--rule);
  border-radius: 2px;
  transition: background 0.3s, opacity 0.3s;
}
.conv-dot.active { background: var(--teal); }
.conv-dot.done { background: var(--teal); opacity: 0.4; }
.conv-step { display: none; }
.conv-step.active { display: block; animation: convStepIn 0.35s ease; }
@keyframes convStepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.conv-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  font-weight: 600;
}
.conv-q {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 0.85rem;
}
.conv-help {
  font-size: 0.92rem;
  color: var(--ink-mid);
  margin-bottom: 1.75rem;
  line-height: 1.65;
}
.conv-input,
.conv-textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  border-radius: 0;
  margin-bottom: 0.5rem;
}
.conv-input:focus,
.conv-textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.conv-textarea { min-height: 130px; resize: vertical; }
.conv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.conv-chips label { cursor: pointer; position: relative; }
.conv-chips input { position: absolute; opacity: 0; pointer-events: none; }
.conv-chips span {
  display: inline-block;
  padding: 0.6rem 1rem;
  border: 1px solid var(--rule);
  background: var(--white);
  font-size: 0.85rem;
  color: var(--ink);
  transition: all 0.18s;
}
.conv-chips label:hover span { border-color: var(--ink-dim); }
.conv-chips input:checked + span {
  border-color: var(--teal);
  background: var(--teal-lt);
  color: var(--teal-md);
}
.conv-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.75rem;
  align-items: center;
  justify-content: space-between;
}
.conv-btn {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-teal);
  background: var(--teal);
  border: 0;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
}
.conv-btn:hover { background: var(--teal-md); }
.conv-btn-secondary {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ink-mid);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.7rem 0;
}
.conv-btn-secondary:hover { color: var(--ink); }
.conv-success-icon {
  font-size: 2rem;
  color: var(--teal);
  margin-bottom: 1rem;
}

@media (max-width: 480px) {
  .conv-panel { padding: 2.5rem 1.5rem 2rem; }
  .conv-q { font-size: 1.5rem; }
  .conv-actions { flex-direction: column-reverse; gap: 0.75rem; }
  .conv-btn, .conv-btn-secondary { width: 100%; text-align: center; }
}

/* ─── FEATURED INSIGHT (homepage rotating card) ─── */
.featured-insight-bg {
  background: var(--white);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.featured-insight-bg .section-heading em {
  font-style: italic;
  color: var(--teal);
}
.featured-card {
  display: block;
  margin-top: 4rem;
  padding: 3rem 3.5rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, transform 0.3s ease;
  max-width: 760px;
}
.featured-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}
.featured-meta {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.featured-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.featured-excerpt {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-mid);
  margin-bottom: 1.75rem;
}
.featured-cta {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
}
.featured-all {
  margin-top: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.featured-all a {
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.featured-all a:hover { color: var(--teal); }

@media (max-width: 768px) {
  .featured-card { padding: 2rem 1.75rem !important; margin-top: 2rem; }
  .featured-title { font-size: 1.5rem; }
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}
.latest-card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.latest-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}
.latest-meta {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  font-weight: 600;
}
.latest-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}
.latest-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-mid);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.latest-cta {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
}

@media (max-width: 900px) {
  .latest-grid { grid-template-columns: 1fr; gap: 1rem; margin-top: 2.5rem; }
  .latest-card { padding: 1.5rem 1.25rem; }
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-overline { animation: fadeUp 0.7s ease 0.1s both; }
.hero-heading  { animation: fadeUp 0.7s ease 0.25s both; }
.hero-tagline  { animation: fadeUp 0.7s ease 0.4s both; }
.hero-actions  { animation: fadeUp 0.7s ease 0.55s both; }
.hero-right    { animation: fadeUp 0.7s ease 0.35s both; }

/* ─── MOBILE NAV (always present, hidden on desktop) ─── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  line-height: 1;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #F6F4F0;
  background-image: none;
  border-bottom: 1px solid var(--rule);
  padding: 1rem 1.5rem;
  flex-direction: column;
  gap: 0;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(30,32,40,0.08);
}
:root[data-theme="dark"] .mobile-nav { background-color: var(--pp-paper); }
.mobile-nav.open { display: flex !important; }
.mobile-nav-close {
  align-self: flex-end;
  background: none;
  border: 0;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ink-mid);
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.3rem;
}
.mobile-nav-close:hover { color: var(--ink); }
.mobile-nav a {
  display: block;
  padding: 0.9rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  letter-spacing: 0.05em;
}
.mobile-nav a:last-child { border-bottom: none; }

/* ─── RESPONSIVE: mid-range laptop / tablet ─── */
@media (max-width: 1200px) and (min-width: 769px) {
  nav { padding: 0.5rem 1.5rem; }
  .hero-left, .hero-right { padding: 12rem 2.5rem 4rem; }
  .nav-cta { margin-left: 0.85rem; padding: 0.45rem 0.85rem; font-size: 0.64rem; letter-spacing: 0.1em; }
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 0.68rem; letter-spacing: 0.1em; }
  .theme-toggle button { width: 26px !important; height: 26px !important; }
}

/* ─── RESPONSIVE: mobile ─── */
@media (max-width: 768px) {
  html { font-size: 17px; }
  nav {
    padding: 0.6rem 1rem !important;
    position: relative !important;
  }

  .nav-links { display: none !important; }
  .nav-cta { display: none !important; }
  .theme-toggle { margin-left: 0.4rem !important; }
  .theme-toggle button { width: 28px !important; height: 28px !important; font-size: 0.85rem; }
  .nav-toggle { display: inline-flex !important; align-items: center; justify-content: center; }

  /* Hero stacks */
  .hero {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    padding-top: 0 !important;
  }
  .hero-left {
    padding: 2.5rem 1.5rem 2rem !important;
    border-right: none !important;
    border-bottom: 1px solid var(--rule);
  }
  .hero-right { padding: 2.5rem 1.5rem 3rem !important; }
  .hero-heading { font-size: clamp(2.25rem, 10vw, 3.25rem) !important; line-height: 1.1; }
  .hero-tagline { font-size: 1.05rem !important; line-height: 1.55; }
  .hero-overline { font-size: 0.72rem !important; margin-bottom: 1.2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; text-align: center; font-size: 0.8rem; padding: 0.9rem 1.2rem; }

  .hero-stats {
    grid-template-columns: 1fr 1fr !important;
    margin-bottom: 2rem;
  }
  .hero-stat { padding: 1.1rem 1rem !important; }
  .stat-num { font-size: 2.1rem !important; }
  .stat-label { font-size: 0.68rem !important; }

  .hero-methods { gap: 0.4rem; flex-wrap: wrap; }
  .method-pill { font-size: 0.68rem; padding: 0.35rem 0.65rem; }

  /* Section padding */
  section .section-inner { padding: 4rem 1.25rem !important; }
  .section-label { font-size: 0.72rem; }
  .section-heading { font-size: clamp(1.85rem, 7vw, 2.5rem) !important; line-height: 1.15; }

  /* About */
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  .about-pillar { padding: 1.5rem 0 1.5rem 1rem; }
  .pillar-title { font-size: 1.5rem; }
  .pillar-desc { font-size: 0.95rem; line-height: 1.6; }

  /* Services table → stacked rows */
  .services-table { display: flex; flex-direction: column; gap: 0; }
  .svc-row {
    display: grid !important;
    grid-template-columns: 2.5rem 1fr !important;
    grid-template-rows: auto auto auto !important;
    gap: 0.4rem 0.6rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--rule);
  }
  .svc-num { grid-row: 1; grid-column: 1; font-size: 0.78rem; }
  .svc-name { grid-row: 1; grid-column: 2; font-size: 1.15rem; }
  .svc-desc { grid-row: 2; grid-column: 1 / -1; font-size: 0.9rem; line-height: 1.6; }
  .svc-pill { grid-row: 3; grid-column: 1 / -1; justify-self: start; font-size: 0.65rem; }

  /* Sectors → 1 column */
  .sectors-grid { grid-template-columns: 1fr !important; }
  .sector-cell { padding: 1.5rem 1rem; }
  .sector-name { font-size: 1.2rem; }
  .sector-desc { font-size: 0.9rem; }

  /* Portfolio → 1 column */
  .portfolio-grid { grid-template-columns: 1fr !important; margin-top: 2.5rem; }
  .portfolio-card { padding: 2rem 1.5rem; }
  .port-title { font-size: 1.45rem; }
  .port-desc { font-size: 0.9rem; line-height: 1.6; }

  /* Contact */
  .contact-inner {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
    margin-top: 2.5rem;
  }
  .contact-lede { font-size: 1.5rem; }
  form { width: 100%; }
  .field input, .field textarea { font-size: 1rem; }

  /* Footer */
  footer { padding: 3rem 1.25rem 0 !important; }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
    padding-bottom: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
    padding: 1.25rem 0 2rem;
  }
}

@media (max-width: 480px) {
  .theme-toggle button { width: 24px !important; height: 24px !important; font-size: 0.75rem; }
  .hero-stats { grid-template-columns: 1fr !important; }
  .hero-heading { font-size: clamp(2rem, 9vw, 2.6rem) !important; }
  .stat-num { font-size: 2.2rem !important; }
  section .section-inner { padding: 3rem 1rem !important; }
}

/* ─── Floating WhatsApp button ─── */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #075E54;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.35), 0 2px 6px rgba(0,0,0,0.15);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37,211,102,0.45), 0 3px 8px rgba(0,0,0,0.2);
}
.wa-float svg { width: 28px; height: 28px; fill: #ffffff; }
@media (max-width: 480px) {
  .wa-float { width: 52px; height: 52px; right: 1rem; bottom: 1rem; }
  .wa-float svg { width: 26px; height: 26px; }
}

/* Phone tightening, 2026-11-17. The page was 16,214px tall at 390px wide.
   Moving eight older engagements to work.html took it to 13,507; these rules
   take out spacing, not content. */
@media (max-width: 768px) {
  section .section-inner { padding: 3rem 1.25rem !important; }
  .hero-left { padding: 2rem 1.25rem 1.75rem !important; }
  .hero-right { padding: 1.75rem 1.25rem 2rem !important; }
  .svc-row { padding: 1.1rem 0; }
  .svc-pill { display: none; }
  .sectors-grid { grid-template-columns: 1fr 1fr !important; }
  .sector-cell { padding: 1.1rem 0.75rem; }
  .sector-name { font-size: 1.02rem; }
  .sector-desc { font-size: 0.85rem; line-height: 1.5; }
  .portfolio-grid { margin-top: 1.75rem; }
  .portfolio-card { padding: 1.5rem 1.25rem; }
  .port-title { font-size: 1.25rem; }
  .about-pillar { padding: 1.1rem 0 1.1rem 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 1.75rem 1.25rem; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* Display headings in Marcellus (see --font-display in assets/brand.css). */
.hero-heading, .section-heading, .stat-num, .contact-lede {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  font-synthesis: none;
}
.hero-heading em, .section-heading em { font-style: normal; }

/* The "New Delhi · South Asia · Est. 2016" line on narrow phones. At 0.22em
   tracking it broke "Est." from "2016" at 320px. The words are joined with
   no-break spaces in the markup, so a line can only break between items, and
   the tracking is tighter below 480px so it fits on one line at 320px. */
@media (max-width: 480px) {
  .hero-overline { letter-spacing: 0.1em; font-size: 0.68rem !important; }
}
