/* ==========================================================================
   AR Muthiah — main stylesheet
   ========================================================================== */

@font-face {
  font-family: "Northwell";
  src: url("../Northwell.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mending";
  src: url("../Mending.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --c-bg: #ffffff;
  --c-surface: #f6f5f3;
  --c-text: #1a1a1a;
  --f-display-features: "cv03", "cv04", "cv09", "cv11";
  --c-muted: #6b6b6b;
  --c-line: #e8e6e2;
  --c-accent: #c9933a;
  --c-btn: #6f675e;
  --c-btn-hover: #5a534b;

  --f-sans: "InterVariable", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-script: "Northwell", cursive;
  --f-name: "Mending", var(--f-sans);

  --container: 87.5rem;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --header-h: 5.25rem;
  --vh: 1vh;
  --radius: 0.625rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }
@supports (height: 1svh) { :root { --vh: 1svh; } }

/* Large screens: the design is built at 1920px; above that the whole page
   (all sizes are in rem) scales proportionally with the viewport width. */
@media (min-width: 1921px) {
  html { font-size: calc(100vw / 120); }
}

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--c-accent); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.muted { color: var(--c-muted); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.6875rem 1rem 0.6875rem 1.125rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(0.1875rem); }

.btn--dark { background: var(--c-btn); color: #fff; }
.btn--dark:hover { background: var(--c-btn-hover); }
.btn--lg { padding: 0.875rem 1.125rem 0.875rem 1.25rem; font-size: 1rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 0.25rem;
  transition: border-color .2s;
}
.link-arrow svg { width: 1rem; height: 1rem; }
.link-arrow:hover { border-color: var(--c-text); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0);
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(0.75rem);
  -webkit-backdrop-filter: saturate(180%) blur(0.75rem);
  box-shadow: 0 1px 0 var(--c-line);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
}

.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-script);
  font-size: 2.125rem;
  line-height: 1;
  /* script font sits high in its box — nudge ink onto the header centre line */
  transform: translateY(0.14em);
  color: var(--c-accent);
  position: relative;
  z-index: 2;
}

.main-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.main-nav__list {
  display: flex;
  align-items: center;
  gap: 2.125rem;
}
.main-nav__list a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2b2b2b;
  transition: color .2s;
}
.main-nav__list a:hover,
.main-nav__list a[aria-current="page"] { color: var(--c-accent); }
.main-nav__num,
.main-nav__foot { display: none; }
.main-nav .main-nav__social { display: none; }

.nav-toggle { display: none; }


/* ---------- Hero ---------- */
/* Hero stays pinned; the following sections slide up over it like a shutter */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  height: calc(100 * var(--vh));
  min-height: 37.5rem;
  overflow: hidden;
  display: flex;
  /* shared top line: heading top == portrait top */
  --hero-top: clamp(1.5rem, calc(13 * var(--vh)), 9rem);
}

/* Two columns: copy (vertically centred) | portrait (fills the column, sits on the bottom edge) */
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding-top: var(--header-h);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  column-gap: clamp(1.5rem, 4vw, 5rem);
}

.hero__content {
  align-self: start;
  margin-top: var(--hero-top);
  max-width: 41.25rem;
  padding-bottom: clamp(0px, calc(3 * var(--vh)), 2.5rem);
}

.hero__title {
  /* scales with width AND height so it always fits the viewport */
  font-size: clamp(2.5rem, min(5.4vw, calc(10.5 * var(--vh))), 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-feature-settings: var(--f-display-features);
  font-variation-settings: "opsz" 32;
  color: var(--c-text);
}

.hero__name {
  font-family: var(--f-name);
  font-weight: 400;
  font-size: 1em;
  letter-spacing: 0;
  color: var(--c-accent);
  white-space: nowrap;
}

.hero__text {
  margin-top: clamp(1.125rem, calc(3 * var(--vh)), 1.75rem);
  max-width: 37.5rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #666666;
  font-feature-settings: var(--f-display-features);
  font-variation-settings: "opsz" 32;
}

.hero .btn { margin-top: clamp(1.375rem, calc(3.4 * var(--vh)), 2rem); }

.hero__media {
  position: relative;
  margin: 0;
  min-height: 0;
  pointer-events: none;
}
.hero__media img {
  position: absolute;
  left: 0;
  top: var(--hero-top);
  width: 100%;
  height: calc(100% - var(--hero-top));
  /* fill the column height (head on the heading line, body to the bottom edge);
     only the faint swoosh tips at the sides get trimmed */
  object-fit: cover;
  object-position: top center;
}

/* ---------- Hero on large desktops / TVs (>=1600px) ----------
   No viewport-height fit here: a content-sized, side-by-side row.
   The portrait keeps its natural ratio and the copy is centred against it. */
@media (min-width: 1600px) {
  .hero {
    height: auto;
    min-height: 0;
  }
  .hero__inner {
    height: auto;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    column-gap: 4rem;
    padding-top: calc(var(--header-h) + 3rem);
  }
  .hero__content { align-self: start; margin-top: 0.5rem; max-width: 45rem; padding-bottom: 0; }
  .hero__title { font-size: 5rem; }
  .hero__text { margin-top: 1.75rem; font-size: 1.0625rem; }
  .hero .btn { margin-top: 2rem; }
  .hero__media {
    align-self: end;
    display: flex;
    justify-content: center;
  }
  .hero__media img {
    position: static;
    top: auto;
    width: 100%;
    max-width: 38rem;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top center;
  }
}

/* ---------- Sections ---------- */
main > .section {
  position: relative;
  z-index: 1;
  background: var(--c-bg);
}
.section { padding-block: clamp(5rem, 10vw, 8rem); }
.section--tight { padding-top: 0; }
/* CTA block sits just above the footer: keep only a small gap below it */
main > .section#contact { padding-bottom: clamp(2rem, 4vw, 3rem); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-feature-settings: var(--f-display-features);
  font-variation-settings: "opsz" 32;
}

/* ---------- Highlights ---------- */
main > .highlights { background: #f4f3ef; }

.highlights__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.highlights__head .section-title { max-width: 43.75rem; }
.highlights__intro {
  max-width: 22.5rem;
  padding-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #4a4a4a;
}

.highlights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.h-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  min-height: 21.875rem;
  padding: 1.875rem 1.75rem 2rem;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 0.625rem 1.875rem -0.75rem rgba(0, 0, 0, .12);
}

.h-card__stat {
  font-size: 3.25rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
  font-feature-settings: var(--f-display-features);
  font-variation-settings: "opsz" 32;
  color: #2b2b2b;
}
.h-card__text {
  margin-top: 1rem;
  max-width: 20.625rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #555;
}

.h-card__label {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 32;
  color: #2b2b2b;
}

.h-card__logo {
  margin-top: 0.75rem;
  width: auto;
  max-width: 11.25rem;
  max-height: 5.625rem;
  object-fit: contain;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.tags li {
  padding: 0.3125rem 0.6875rem;
  border: 1px solid #555;
  border-radius: 62.4375rem;
  font-size: 0.75rem;
  line-height: 1.3;
  color: #333;
}

.h-card--dark { background: var(--c-btn); color: #fff; }
.h-card--dark .h-card__stat { color: #fff; }
.h-card__caption {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
}
.h-card__quote {
  font-size: 1.3125rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

/* ---------- Post cards ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.post-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--c-surface);
}
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.post-card:hover .post-card__media img { transform: scale(1.04); }

.post-card__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: var(--f-script);
  font-size: 3rem;
  color: var(--c-accent);
}

.post-card__body { padding-top: 1.25rem; }

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.875rem;
  font-size: 0.8125rem;
  color: var(--c-muted);
}
.post-card__meta span:first-child { color: var(--c-accent); font-weight: 500; }

.post-card__title {
  margin-top: 0.625rem;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.post-card__title a { transition: color .2s; }
.post-card__title a:hover { color: var(--c-accent); }

.post-card__excerpt {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  color: var(--c-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- CTA ---------- */
.cta {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  column-gap: 4rem;
  row-gap: 3.5rem;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  background: #1a1a1a;
  color: #fff;
  border-radius: 1.5rem;
}

.cta__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-accent);
}
.cta__eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.cta__title {
  margin-top: 1.25rem;
  font-size: clamp(2.125rem, 3.8vw, 3.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-feature-settings: var(--f-display-features);
  font-variation-settings: "opsz" 32;
}
.cta__title span { color: var(--c-accent); }

.cta__side {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.75rem;
}
.cta__text {
  max-width: 25rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .65);
}
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn--light { background: #fff; color: #1a1a1a; }
.btn--light:hover { background: #ece9e4; }
.btn--ghost {
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px #fff; }

.cta__foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 0.9375rem;
}
.cta__email { color: #fff; transition: color .2s; }
.cta__email:hover { color: var(--c-accent); }

/* ---------- Footer ---------- */
.site-footer { padding-top: 1.5rem; }

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding-block: 2rem;
}
.site-footer .logo { font-size: 2rem; transform: none; }

.footer-nav { display: flex; gap: 2rem; }
.footer-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2b2b2b;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--c-accent); }

.back-top {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #2b2b2b;
  transition: color .2s;
}
.back-top svg { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }
.back-top:hover { color: var(--c-accent); }
.back-top:hover svg { transform: translateY(-3px); }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem 1.75rem;
  border-top: 1px solid var(--c-line);
  font-size: 0.8125rem;
  color: var(--c-muted);
}

/* Social icons (contact panel) */
.social { display: flex; gap: 0.625rem; }
.social a {
  display: grid;
  place-items: center;
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 50%;
  transition: color .2s, background-color .2s, border-color .2s;
}
.social svg { width: 1.0625rem; height: 1.0625rem; }

.social--dark a {
  color: rgba(255, 255, 255, .75);
  border: 1px solid rgba(255, 255, 255, .18);
}
.social--dark a:hover {
  color: #1a1a1a;
  background: #fff;
  border-color: #fff;
}

.social--light a {
  color: #2b2b2b;
  border: 1px solid var(--c-line);
}
.social--light a:hover {
  color: #fff;
  background: var(--c-text);
  border-color: var(--c-text);
}

/* ==========================================================================
   Inner pages
   ========================================================================== */

/* ---------- Shared page hero ---------- */
.page-hero {
  /* same top gap below the header on every inner page */
  padding-top: calc(var(--header-h) + clamp(1.5rem, calc(5 * var(--vh)), 4.5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.page-hero__title {
  max-width: 56.25rem;
  font-size: clamp(2.5rem, 5.2vw, 4.75rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-feature-settings: var(--f-display-features);
  font-variation-settings: "opsz" 32;
}
.page-hero__title em { font-style: normal; color: var(--c-accent); }
.page-hero__lead {
  margin-top: 1.5rem;
  max-width: 35rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--c-muted);
}

main > .section.surface { background: #f4f3ef; }

/* ---------- About ---------- */
.about-intro {
  display: grid;
  margin-top: clamp(3rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.about-intro__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1.25rem;
}
.about-intro__body p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--c-muted);
}
.about-intro__body p + p { margin-top: 1.125rem; }
.about-intro__body .about-intro__lead {
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: var(--c-text);
  font-variation-settings: "opsz" 32;
}
.about-intro__body .btn { margin-top: 2rem; }

/* Desktop: the whole intro (title + full photo) fits in the first viewport */
@media (min-width: 1024px) {
  .page-hero--about {
    padding-bottom: clamp(2rem, calc(5 * var(--vh)), 4.5rem);
  }
  .page-hero--about .page-hero__title { font-size: clamp(2.5rem, min(5.2vw, calc(9 * var(--vh))), 4.75rem); }
  .page-hero--about .about-intro {
    margin-top: clamp(1.5rem, calc(4 * var(--vh)), 3.5rem);
    grid-template-columns: auto minmax(0, 1fr);
  }
  .page-hero--about .about-intro__photo img {
    width: auto;
    height: clamp(18.75rem, calc(calc(100 * var(--vh)) - var(--header-h) - 9.375rem - calc(14 * var(--vh))), 47.5rem);
    max-width: 100%;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.stats__item { padding: 2rem 0; }
.stats__item + .stats__item { padding-left: 2rem; border-left: 1px solid var(--c-line); }
.stats__value {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-feature-settings: var(--f-display-features);
  font-variation-settings: "opsz" 32;
}
.stats__label { margin-top: 0.625rem; font-size: 0.875rem; color: var(--c-muted); }

.section-head--center { justify-content: center; text-align: center; }

/* Vertical timeline: centre line, entries alternate left / right */
.timeline {
  position: relative;
  max-width: 57.5rem;
  margin-inline: auto;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0.375rem;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #dcd8d1;
  transform: translateX(-50%);
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.timeline__item + .timeline__item { margin-top: 3rem; }
.timeline__item::after {
  content: "";
  position: absolute;
  top: 0.25rem;
  left: 50%;
  width: 0.6875rem;
  height: 0.6875rem;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 0.3125rem #f4f3ef;
  transform: translateX(-50%);
}
.timeline__content { padding-right: 3.5rem; text-align: right; }
.timeline__item:nth-child(even) .timeline__content {
  grid-column: 2;
  padding-right: 0;
  padding-left: 3.5rem;
  text-align: left;
}
.timeline__year {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-accent);
}
.timeline__title {
  margin-top: 0.375rem;
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 32;
}
.timeline__text {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--c-muted);
}


.quote-block {
  max-width: 61.25rem;
  margin-inline: auto;
  text-align: center;
}
.quote-block p {
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
  font-feature-settings: var(--f-display-features);
  font-variation-settings: "opsz" 32;
}
.quote-block cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--f-script);
  font-style: normal;
  font-size: 2.125rem;
  color: var(--c-accent);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact-info { display: grid; gap: 2rem; }
.contact-info__label {
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-muted);
}
.contact-info__value {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  transition: color .2s;
}
a.contact-info__value:hover { color: var(--c-accent); }
.contact-info__note { font-size: 0.9375rem; line-height: 1.6; color: var(--c-muted); }

.form-card {
  padding: clamp(1.75rem, 4vw, 3rem);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 1.25rem;
  box-shadow: 0 1.25rem 2.5rem -1.5rem rgba(0, 0, 0, .12);
}
.form { display: grid; gap: 1.375rem; }
.form[hidden] { display: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.375rem; }
.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #2b2b2b;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8125rem 1rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--c-text);
  background-color: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%236b6b6b%27 stroke-width=%272%27%3E%3Cpath d=%27M6 9l6 6 6-6%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}
.field textarea { resize: vertical; min-height: 8.75rem; }
.field input::placeholder,
.field textarea::placeholder { color: #a3a3a3; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-text);
  box-shadow: 0 0 0 0.1875rem rgba(26, 26, 26, .06);
}
.form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--c-muted);
  cursor: pointer;
}
.form__check input { margin-top: 0.1875rem; width: 1rem; height: 1rem; accent-color: var(--c-text); }
.form .btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.form .btn:disabled { opacity: .6; cursor: progress; }

.form-success { text-align: center; padding-block: 2rem; }
.form-success[hidden] { display: none; }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: #f4f3ef;
  color: var(--c-accent);
}
.form-success__icon svg { width: 1.625rem; height: 1.625rem; }
.form-success h2 { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.03em; }
.form-success p { margin-top: 0.5rem; color: var(--c-muted); }
.form-success button {
  margin-top: 1.25rem;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 500;
  color: var(--c-accent);
  cursor: pointer;
}

/* ---------- Links page (/me) ---------- */
.links-page {
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 3rem) var(--gutter) 4rem;
  background: #f4f3ef;
}
.links-page__inner {
  max-width: 28.75rem;
  margin-inline: auto;
  text-align: center;
}
.links-page__photo {
  position: relative;
  width: 7rem;
  margin-inline: auto;
}
.verified-badge {
  position: absolute;
  right: 0;
  bottom: 0.25rem;
  width: 1.875rem;
  height: 1.875rem;
  filter: drop-shadow(0 2px 0.25rem rgba(0, 0, 0, .15));
}
.verified-badge path:first-child { stroke: #fff; stroke-width: 0.15rem; paint-order: stroke; }
.links-page__avatar {
  width: 7rem;
  height: 7rem;
  margin-inline: auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 0.25rem #fff, 0 0.75rem 1.875rem -0.75rem rgba(0, 0, 0, .25);
}
.links-page__name {
  margin-top: 1.25rem;
  font-family: var(--f-script);
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--c-accent);
}
.links-page__tagline { margin-top: 0.375rem; font-size: 0.875rem; font-weight: 500; }
.links-page__bio { margin-top: 0.375rem; font-size: 0.875rem; color: var(--c-muted); }

.link-list { display: grid; gap: 0.75rem; margin-top: 2.25rem; text-align: left; }
.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 0.875rem;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.link-card:hover {
  border-color: #cfccc6;
  transform: translateY(-2px);
  box-shadow: 0 0.75rem 1.5rem -1rem rgba(0, 0, 0, .2);
}
.link-card__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.625rem;
  background: var(--c-text);
  color: #fff;
}
.link-card__icon svg { width: 1.25rem; height: 1.25rem; }
.link-card__text { flex: 1; min-width: 0; }
.link-card__title { display: block; font-size: 0.9375rem; font-weight: 500; }
.link-card__handle { display: block; font-size: 0.8125rem; color: var(--c-muted); }
.link-card__arrow { width: 1.125rem; height: 1.125rem; color: var(--c-muted); transition: transform .2s var(--ease); }
.link-card:hover .link-card__arrow { transform: translateX(0.1875rem); color: var(--c-text); }

.links-page__foot { margin-top: 2.5rem; font-size: 0.8125rem; color: var(--c-muted); }
.links-page__foot a { font-weight: 500; color: var(--c-text); }

/* ---------- Blogs listing ---------- */
.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.pills { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex-shrink: 0;
  padding: 0.5625rem 1rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: #2b2b2b;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 62.4375rem;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.pill:hover { border-color: #bdb9b2; }
.pill.is-active { background: var(--c-text); border-color: var(--c-text); color: #fff; }

.search {
  position: relative;
  flex-shrink: 0;
  width: 18.75rem;
}
.search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  color: var(--c-muted);
  pointer-events: none;
}
.search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.625rem;
  font: inherit;
  font-size: 0.875rem;
  border: 1px solid var(--c-line);
  border-radius: 62.4375rem;
  background: #fff;
  transition: border-color .2s;
}
.search input:focus { outline: none; border-color: var(--c-text); }

.featured-post {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}
.featured-post__media {
  display: block;
  aspect-ratio: 16 / 11;
  border-radius: 1rem;
  overflow: hidden;
  background: #f4f3ef;
}
.featured-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.featured-post:hover .featured-post__media img { transform: scale(1.03); }
.featured-post__badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3125rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--c-accent);
  background: #f7f0e4;
  border-radius: 62.4375rem;
}
.featured-post__title {
  margin-top: 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.625rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-feature-settings: var(--f-display-features);
  font-variation-settings: "opsz" 32;
}
.featured-post__title a { transition: color .2s; }
.featured-post__title a:hover { color: var(--c-accent); }
.featured-post__excerpt { margin-top: 1rem; font-size: 1rem; line-height: 1.65; color: var(--c-muted); }
.featured-post .link-arrow { margin-top: 1.75rem; }

.post-grid--2 { grid-template-columns: repeat(2, 1fr); }
.post-card.is-hidden,
.featured-post.is-hidden { display: none; }
.empty-state { padding-block: 4rem; text-align: center; color: var(--c-muted); }
.empty-state[hidden] { display: none; }

/* ---------- Article (blog post) ---------- */
.article-hero {
  max-width: 53.75rem;
  margin-inline: auto;
  text-align: center;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-muted);
  transition: color .2s;
}
.back-link svg { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }
.back-link:hover { color: var(--c-text); }
.back-link:hover svg { transform: translateX(-3px); }

.article-hero .page-hero__title { margin-inline: auto; font-size: clamp(2.25rem, 4.6vw, 4rem); }
.article-hero .page-hero__lead { margin-inline: auto; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.875rem;
  margin-top: 1.75rem;
  font-size: 0.875rem;
  color: var(--c-muted);
}
.article-meta__author { display: inline-flex; align-items: center; gap: 0.625rem; font-weight: 500; color: var(--c-text); }
.article-meta__author img { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; }
.article-meta__dot { width: 0.1875rem; height: 0.1875rem; border-radius: 50%; background: #c4c1bb; }

.article-cover {
  max-width: 70rem;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #f4f3ef;
}
.article-cover img { width: 100%; height: clamp(16.25rem, 40vw, 33.75rem); object-fit: cover; }
.article-cover__placeholder {
  display: grid;
  place-items: center;
  height: clamp(16.25rem, 40vw, 33.75rem);
  font-family: var(--f-script);
  font-size: 4.5rem;
  color: var(--c-accent);
}

.article { max-width: 45rem; margin-inline: auto; }
.article-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--c-line);
  font-size: 0.875rem;
  color: var(--c-muted);
}
.article-bar strong { font-weight: 500; color: var(--c-text); }
.share { display: flex; align-items: center; gap: 0.75rem; }
.share .social a { width: 2.25rem; height: 2.25rem; }
.share .social svg { width: 0.9375rem; height: 0.9375rem; }

.prose { font-size: 1.125rem; line-height: 1.75; color: #333; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 {
  margin-top: 2em;
  font-size: clamp(1.625rem, 2.6vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--c-text);
  font-variation-settings: "opsz" 32;
}
.prose h3 {
  margin-top: 1.75em;
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--c-text);
}
.prose h2 + *,
.prose h3 + * { margin-top: .6em; }
.prose ul,
.prose ol { padding-left: 1.25em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--c-accent); }
.prose strong { font-weight: 600; color: var(--c-text); }
.prose a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 0.1875rem; }
.prose blockquote {
  margin-block: 2em;
  padding-left: 1.5rem;
  border-left: 2px solid var(--c-accent);
  font-size: 1.375rem;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--c-text);
}
.prose img { border-radius: 0.875rem; }

.article .tags { margin-top: 2.5rem; }
.tags:empty { display: none; }

.author-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3rem;
  padding: 1.5rem;
  background: #f4f3ef;
  border-radius: 1rem;
}
.author-card img { flex-shrink: 0; width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; }
.author-card__name { font-weight: 500; }
.author-card__role { font-size: 0.8125rem; color: var(--c-accent); }
.author-card__bio { margin-top: 0.375rem; font-size: 0.875rem; line-height: 1.6; color: var(--c-muted); }

/* ---------- Inner pages: responsive ---------- */
@media (max-width: 1023px) {
  .about-intro { grid-template-columns: 1fr; }
  .about-intro__photo { max-width: 26.25rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .blog-toolbar { flex-direction: column-reverse; align-items: stretch; }
  .search { width: 100%; }
}

@media (max-width: 860px) {
  .page-hero { padding-top: calc(var(--header-h) + 2rem); }
  .page-hero__title { font-size: clamp(2.25rem, 9.6vw, 3.25rem); }
  .page-hero__lead { font-size: 1rem; }

  .stats { grid-template-columns: 1fr; }
  .stats__item { padding: 1.5rem 0; }
  .stats__item + .stats__item { padding-left: 0; border-left: 0; border-top: 1px solid var(--c-line); }

  .section-head--center { align-items: center; }
  .timeline::before { left: 0.3125rem; transform: none; }
  .timeline__item { grid-template-columns: 1fr; }
  .timeline__item + .timeline__item { margin-top: 2.25rem; }
  .timeline__item::after { left: 0; transform: none; }
  .timeline__content,
  .timeline__item:nth-child(even) .timeline__content { grid-column: 1; padding: 0 0 0 2.25rem; text-align: left; }

  .quote-block cite { font-size: 1.75rem; }

  .form__row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; justify-content: center; }

  .links-page { padding-top: calc(var(--header-h) + 2rem); }

  .post-grid--2 { grid-template-columns: 1fr; }

  .prose { font-size: 1.0625rem; }
  .prose blockquote { font-size: 1.1875rem; }
  .article-bar { flex-direction: column; align-items: flex-start; }
  .author-card { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Short desktop screens: keep everything inside one viewport */
@media (min-width: 1024px) and (max-height: 760px) {
  .hero__text { margin-top: 1.125rem; }
  .hero .btn { margin-top: 1.375rem; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .hero__title { font-size: clamp(2.375rem, min(5.2vw, calc(10 * var(--vh))), 4rem); }
}

@media (max-width: 1023px) {
  .highlights__head { flex-direction: column; gap: 1rem; }
  .highlights__intro { max-width: 35rem; padding-top: 0; }
  .highlights__grid { grid-template-columns: repeat(2, 1fr); }
  .h-card--dark { grid-column: 1 / -1; min-height: 17.5rem; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; row-gap: 2.5rem; }
}

/* ---------- Mobile navigation + layout ---------- */
@media (max-width: 860px) {
  :root { --header-h: 4.25rem; }

  /* Header */
  .site-header__cta { display: none; }
  .logo { font-size: 1.875rem; }
  .nav-open .site-header {
    background: var(--c-bg);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Hamburger */
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 0.375rem;
    position: relative;
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: -0.625rem;
    padding: 0 0.625rem;
    border: 0;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle__bar {
    display: block;
    width: 1.5rem;
    height: 1.5px;
    border-radius: 2px;
    background: var(--c-text);
    transition: transform .4s var(--ease), width .4s var(--ease);
  }
  .nav-toggle__bar:last-child { width: 1rem; }
  .nav-toggle:hover .nav-toggle__bar:last-child { width: 1.5rem; }
  .nav-open .nav-toggle__bar:first-child { transform: translateY(0.2344rem) rotate(45deg); }
  .nav-open .nav-toggle__bar:last-child { width: 1.5rem; transform: translateY(-3.75px) rotate(-45deg); }

  /* Full-screen menu panel */
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    transform: none;
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-h) + 2rem) var(--gutter) max(2rem, env(safe-area-inset-bottom));
    background: var(--c-bg);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .55s var(--ease), visibility 0s linear .55s;
    overflow-y: auto;
  }
  .nav-open .main-nav {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition: clip-path .55s var(--ease), visibility 0s;
  }

  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav__list li { border-bottom: 1px solid var(--c-line); }
  .main-nav__list a {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding-block: 1.125rem;
    font-size: clamp(1.875rem, 9vw, 2.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-feature-settings: var(--f-display-features);
    font-variation-settings: "opsz" 32;
    color: var(--c-text);
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity .45s var(--ease), transform .45s var(--ease), color .2s;
  }
  .main-nav__num {
    display: inline;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--c-muted);
  }
  .main-nav__list a[aria-current="page"] .main-nav__num { color: var(--c-accent); }

  .nav-open .main-nav__list a { opacity: 1; transform: none; }
  .nav-open .main-nav__list li:nth-child(1) a { transition-delay: .15s; }
  .nav-open .main-nav__list li:nth-child(2) a { transition-delay: .2s; }
  .nav-open .main-nav__list li:nth-child(3) a { transition-delay: .25s; }
  .nav-open .main-nav__list li:nth-child(4) a { transition-delay: .3s; }

  .main-nav__foot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
    margin-top: auto;
    padding-top: 2.5rem;
    opacity: 0;
    transition: opacity .4s var(--ease);
  }
  .nav-open .main-nav__foot { opacity: 1; transition-delay: .35s; }

  .main-nav .main-nav__social {
    display: flex;
    margin-top: 1.75rem;
    opacity: 0;
    transform: translateY(0.75rem);
    transition: opacity .45s var(--ease), transform .45s var(--ease);
  }
  .nav-open .main-nav .main-nav__social { opacity: 1; transform: none; transition-delay: .35s; }
  .main-nav__cta { width: 100%; justify-content: center; }
  .main-nav__email { margin-top: 0.625rem; font-size: 0.9375rem; font-weight: 500; }
  .main-nav__tagline { font-size: 0.8125rem; color: var(--c-muted); }

  body.nav-open { overflow: hidden; }

  /* Hero: text first, portrait below, no pinning */
  .hero {
    position: relative;
    height: auto;
    min-height: 0;
    max-height: none;
    flex-direction: column;
    align-items: stretch;
  }
  .hero__inner {
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding-top: calc(var(--header-h) + 2.25rem);
  }
  .hero__content { padding-bottom: 0; margin-top: 0; }
  .hero__content { max-width: none; }
  .hero__title { font-size: clamp(2.125rem, 9.4vw, 3.5rem); line-height: 1.06; }
  .hero__title br { display: none; }
  .hero__name {
    display: block;
    margin: .22em 0 .14em;
    line-height: 1;
  }
  .hero__text { margin-top: 1.25rem; font-size: 1rem; }
  .hero .btn { margin-top: 1.625rem; }
  .hero__media {
    position: relative;
    right: auto;
    width: 100%;
    height: auto;
    margin-top: 2.25rem;
    display: flex;
    justify-content: center;
  }
  .hero__media img { position: static; width: min(88%, 26.25rem); height: auto; }

  /* Sections */
  .section { padding-block: 4.5rem; }
  .section--tight { padding-top: 0; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 2rem; }
  .section-title { font-size: clamp(1.875rem, 8vw, 2.5rem); }

  .highlights__head { margin-bottom: 1.75rem; }
  .highlights__grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .h-card { min-height: 0; gap: 2.25rem; padding: 1.625rem 1.375rem 1.75rem; }
  .h-card--dark { min-height: 0; }
  .h-card__stat { font-size: 2.875rem; }
  .h-card__quote { font-size: 1.1875rem; }

  .post-grid { grid-template-columns: 1fr; gap: 2.25rem; }

  .cta { padding: 2.25rem 1.5rem; border-radius: 1.25rem; row-gap: 2rem; }
  .cta__title { font-size: clamp(1.875rem, 8.4vw, 2.5rem); }
  .cta__actions .btn { flex: 1 1 auto; justify-content: center; }
  .cta__foot { flex-direction: column; align-items: flex-start; gap: 1.125rem; }

  /* Footer */
  .site-footer { padding-top: 0.5rem; }
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    row-gap: 1.25rem;
    padding-block: 1.75rem 1.5rem;
  }
  .footer-nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; gap: 0.625rem 1.5rem; }
  .back-top { justify-self: end; }
  .site-footer__bottom { flex-direction: column; gap: 0.375rem; }
}

@media (max-width: 380px) {
  .cta__actions { flex-direction: column; }
}
