/* ==========================================================================
   praveenmanne.com — design system
   Hand-built. No frameworks, no images, no shortcuts.
   Type: Fraunces (display) + Space Grotesk (text)
   ========================================================================== */

:root {
  --paper: #f6f1e7;
  --paper-2: #efe8d9;
  --ink: #181410;
  --ink-2: #2a241d;
  --muted: #6e6557;
  --accent: #e1551f;
  --accent-deep: #b23e12;
  --line: rgba(24, 20, 16, 0.16);
  --line-soft: rgba(24, 20, 16, 0.09);
  --paper-line: rgba(246, 241, 231, 0.2);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-text: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  --size-display: clamp(2.75rem, 8.5vw, 7.75rem);
  --size-h1: clamp(2.5rem, 6.5vw, 5.5rem);
  --size-h2: clamp(2rem, 4.5vw, 3.75rem);
  --size-h3: clamp(1.35rem, 2.2vw, 1.85rem);
  --size-body: clamp(1rem, 1.05vw, 1.125rem);
  --size-small: 0.875rem;
  --size-label: 0.78rem;

  --space-section: clamp(5rem, 12vw, 10rem);
  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
  --header-h: 4.5rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 1.25rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--size-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

::selection {
  background: var(--accent);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Grain — pure SVG noise, no image files */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: 84rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 300;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 0.75rem 0.75rem;
  text-decoration: none;
  font-size: var(--size-small);
}

.skip-link:focus {
  top: 0;
}

.label {
  font-size: var(--size-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.label--accent {
  color: var(--accent-deep);
}

.section {
  padding-block: var(--space-section);
}

.section + .section {
  padding-top: 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.section-head .label {
  display: flex;
  align-items: baseline;
  gap: 0.85em;
}

.section-head .label .index {
  color: var(--accent-deep);
  font-feature-settings: "tnum";
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 480;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 {
  font-size: var(--size-h2);
}

h3 {
  font-size: var(--size-h3);
  line-height: 1.2;
}

em, .swash {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 420;
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  max-width: 42ch;
  text-wrap: pretty;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.6em;
  border: 1.5px solid var(--ink);
  border-radius: 100rem;
  font-size: var(--size-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  color: var(--ink);
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

.btn .icon {
  width: 1em;
  height: 1em;
  transition: transform 0.35s var(--ease-out);
}

.btn:hover,
.btn:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.btn:hover .icon,
.btn:focus-visible .icon {
  transform: translateX(0.25em);
}

.btn--solid {
  background: var(--ink);
  color: var(--paper);
}

.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.btn--ghost {
  border-color: var(--line);
}

/* On dark */
.on-dark .btn {
  border-color: var(--paper);
  color: var(--paper);
}

.on-dark .btn:hover,
.on-dark .btn:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s;
}

/* Blur lives on a pseudo-element: backdrop-filter on the header itself
   would become the containing block for the fixed mobile nav overlay. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  z-index: 120;
}

.brand .mark {
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
}

.brand .mark .spin {
  transform-origin: 50% 50%;
  transition: transform 0.8s var(--ease-out);
}

.brand:hover .mark .spin {
  transform: rotate(90deg);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  list-style: none;
  padding: 0;
}

.site-nav a {
  position: relative;
  font-size: var(--size-small);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 0.4rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav a[aria-current="page"] {
  color: var(--accent-deep);
}

.header-cta {
  padding: 0.65em 1.3em;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.nav-toggle .bars {
  display: block;
  position: relative;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  transition: background-color 0.2s;
}

.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}

.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }

@media (max-width: 56em) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: var(--ink);
    color: var(--paper);
    display: grid;
    place-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out), visibility 0s 0.4s;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }

  .site-nav a {
    font-family: var(--font-display);
    font-size: clamp(2rem, 9vw, 3rem);
    font-weight: 460;
    text-transform: none;
    letter-spacing: -0.01em;
  }

  .site-nav a[aria-current="page"] {
    color: var(--accent);
  }

  body.nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.4s var(--ease-out);
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .brand {
    color: var(--paper);
  }

  body.nav-open .nav-toggle {
    border-color: var(--paper);
    color: var(--paper);
  }

  body.nav-open .nav-toggle .bars {
    background: transparent;
  }

  body.nav-open .nav-toggle .bars::before {
    top: 0;
    transform: rotate(45deg);
  }

  body.nav-open .nav-toggle .bars::after {
    top: 0;
    transform: rotate(-45deg);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6.5rem));
  padding-bottom: clamp(3rem, 8vw, 6rem);
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero h1 {
  font-size: var(--size-display);
  margin-block: 0.35em 0;
}

.ht-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.ht-line-inner {
  display: block;
  will-change: transform;
}

.hero .lede {
  margin-top: 1.6em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero-art {
  position: relative;
}

.hero-art svg {
  width: 100%;
  height: auto;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  margin-top: clamp(3rem, 7vw, 5.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.hero-meta dt {
  font-size: var(--size-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.hero-meta dd {
  font-family: var(--font-display);
  font-size: 1.3rem;
}

@media (max-width: 56em) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    max-width: 24rem;
    order: -1;
  }
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 1.1rem;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 3rem;
  padding-right: 3rem;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-style: italic;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}

.marquee-track .star {
  width: 0.85em;
  height: 0.85em;
  color: var(--accent);
  flex: none;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* ---------- Capability cards ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.cap {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  transition: background-color 0.4s var(--ease-out);
}

.cap:hover {
  background: var(--paper-2);
}

.cap .icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent-deep);
}

.cap h3 {
  margin-bottom: 0.5rem;
}

.cap p {
  color: var(--muted);
  font-size: var(--size-small);
  line-height: 1.6;
  max-width: 30ch;
}

@media (max-width: 56em) {
  .cap-grid {
    grid-template-columns: 1fr;
  }

  .cap {
    gap: 1.25rem;
  }
}

/* ---------- Experience rows ---------- */
.xp-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}

.xp {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1rem 2.5rem;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left 0.4s var(--ease-out);
}

.xp::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%) scale(0);
  transition: transform 0.35s var(--ease-out);
}

.xp:hover {
  padding-left: 1.5rem;
}

.xp:hover::before {
  transform: translateY(-50%) scale(1);
}

.xp-years {
  font-feature-settings: "tnum";
  font-size: var(--size-small);
  color: var(--muted);
  padding-top: 0.3rem;
}

.xp-role h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.xp-role .company {
  display: block;
  margin-top: 0.3rem;
  color: var(--accent-deep);
  font-size: var(--size-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xp-desc {
  color: var(--muted);
  font-size: var(--size-small);
  line-height: 1.65;
}

.xp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.tag {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3em 0.85em;
  border: 1px solid var(--line);
  border-radius: 100rem;
  color: var(--ink-2);
}

@media (max-width: 56em) {
  .xp {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .xp:hover {
    padding-left: 0;
  }

  .xp::before {
    display: none;
  }
}

/* ---------- Blog cards ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.post-grid--index {
  grid-template-columns: repeat(2, 1fr);
}

.post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.post-card:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 1.5rem 3rem -1.5rem rgba(24, 20, 16, 0.35);
}

.post-thumb {
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.post-thumb svg {
  width: 100%;
  height: 100%;
  transition: transform 0.6s var(--ease-out);
}

.post-card:hover .post-thumb svg {
  transform: scale(1.045);
}

.post-body {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.post-meta {
  display: flex;
  gap: 0.75em;
  align-items: center;
  font-size: var(--size-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

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

.post-card .excerpt {
  color: var(--muted);
  font-size: var(--size-small);
  line-height: 1.6;
}

.post-card .read-more {
  margin-top: auto;
  padding-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--size-small);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.read-more .icon {
  width: 1em;
  height: 1em;
  transition: transform 0.35s var(--ease-out);
}

.post-card:hover .read-more .icon {
  transform: translateX(0.3em);
}

@media (max-width: 64em) {
  .post-grid,
  .post-grid--index {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 44em) {
  .post-grid,
  .post-grid--index {
    grid-template-columns: 1fr;
  }
}

/* ---------- Article (blog post) ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 110;
  background: transparent;
  pointer-events: none;
}

.progress .bar {
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.article-hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem));
  text-align: center;
}

.article-hero .post-meta {
  justify-content: center;
}

.article-hero h1 {
  font-size: var(--size-h1);
  max-width: 18ch;
  margin: 0.5em auto 0;
}

.article-hero .standfirst {
  max-width: 48ch;
  margin: 1.5em auto 0;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--muted);
  text-wrap: pretty;
}

.article-art {
  max-width: 40rem;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
}

.article-art svg {
  width: 100%;
  height: auto;
}

.prose {
  max-width: 42rem;
  margin-inline: auto;
  padding-block: clamp(3rem, 7vw, 5rem);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.75;
}

.prose > * + * {
  margin-top: 1.4em;
}

.prose h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-top: 2em;
  line-height: 1.15;
}

.prose h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  margin-top: 1.8em;
}

.prose a {
  color: var(--accent-deep);
  text-decoration-color: color-mix(in srgb, var(--accent-deep) 45%, transparent);
  transition: text-decoration-color 0.25s;
}

.prose a:hover {
  text-decoration-color: var(--accent-deep);
}

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5em;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15em;
  color: var(--ink-2);
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li + li {
  margin-top: 0.5em;
}

.prose strong {
  font-weight: 600;
}

.prose hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin-block: 2.5em;
}

.prose .pullout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: 1.5em 1.75em;
  font-size: 0.95em;
}

.article-footer {
  max-width: 42rem;
  margin-inline: auto;
  padding-bottom: var(--space-section);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.article-footer .next-label {
  font-size: var(--size-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.article-footer .next-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-decoration: none;
}

.article-footer .next-title:hover {
  color: var(--accent-deep);
}

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.about-portrait {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
}

.about-portrait svg {
  width: 100%;
  height: auto;
}

.about-copy > p + p {
  margin-top: 1.3em;
}

.about-copy .drop {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.55;
  font-family: var(--font-display);
}

@media (max-width: 56em) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-portrait {
    position: static;
    max-width: 22rem;
  }
}

.toolbox {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.tool-col h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.tool-col h3 .icon {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--accent-deep);
}

.tool-col ul {
  list-style: none;
  padding: 0;
}

.tool-col li {
  padding-block: 0.45rem;
  color: var(--ink-2);
  font-size: var(--size-small);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.tool-col li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-2px);
}

@media (max-width: 56em) {
  .toolbox {
    grid-template-columns: 1fr;
  }
}

.edu-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}

.edu-list li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.5rem 2.5rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.edu-list .years {
  color: var(--muted);
  font-size: var(--size-small);
  font-feature-settings: "tnum";
}

.edu-list h3 {
  font-size: 1.25rem;
}

.edu-list p {
  color: var(--muted);
  font-size: var(--size-small);
  margin-top: 0.25rem;
}

@media (max-width: 44em) {
  .edu-list li {
    grid-template-columns: 1fr;
  }
}

/* ---------- Principles ---------- */
.principles {
  counter-reset: principle;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.principles li {
  counter-increment: principle;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper);
  transition: background-color 0.4s var(--ease-out);
}

.principles li:hover {
  background: var(--paper-2);
}

.principles li::before {
  content: "0" counter(principle);
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent-deep);
  margin-bottom: 1.25rem;
}

.principles h3 {
  margin-bottom: 0.6rem;
}

.principles p {
  color: var(--muted);
  font-size: var(--size-small);
  line-height: 1.65;
}

@media (max-width: 44em) {
  .principles {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact ---------- */
.contact-hero {
  padding-top: calc(var(--header-h) + clamp(3rem, 9vw, 7rem));
  padding-bottom: var(--space-section);
}

.contact-hero h1 {
  font-size: var(--size-display);
  margin-top: 0.4em;
}

.mail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 3rem);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.15em;
  transition: color 0.3s;
  word-break: break-all;
}

.mail-link:hover {
  color: var(--accent-deep);
}

.contact-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(3rem, 7vw, 5rem);
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.contact-card .icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent-deep);
  margin-bottom: 1.25rem;
}

.contact-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--muted);
  font-size: var(--size-small);
  line-height: 1.65;
}

.contact-card a {
  color: var(--accent-deep);
}

@media (max-width: 56em) {
  .contact-cols {
    grid-template-columns: 1fr;
  }
}

/* ---------- Dark band / footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: var(--space-section);
  position: relative;
  overflow: clip;
}

.footer-cta {
  padding-block: clamp(4rem, 10vw, 7.5rem) clamp(3rem, 7vw, 5rem);
  text-align: center;
  border-bottom: 1px solid var(--paper-line);
}

.footer-cta .label {
  color: color-mix(in srgb, var(--paper) 60%, transparent);
}

.footer-cta h2 {
  font-size: var(--size-h1);
  margin-top: 0.4em;
}

.footer-cta h2 em {
  color: var(--accent);
}

.footer-cta .btn {
  margin-top: 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.footer-grid h3 {
  font-family: var(--font-text);
  font-size: var(--size-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 55%, transparent);
  margin-bottom: 1.1rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
}

.footer-grid li + li {
  margin-top: 0.6rem;
}

.footer-grid a {
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: opacity 0.25s, color 0.25s;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  opacity: 1;
  color: var(--accent);
}

.footer-grid .sig {
  width: clamp(9rem, 14vw, 12rem);
  color: var(--paper);
  margin-bottom: 1.25rem;
}

.footer-grid .sig .stroke {
  stroke-dasharray: 600;
  stroke-dashoffset: 0;
}

.footer-blurb {
  font-size: var(--size-small);
  color: color-mix(in srgb, var(--paper) 65%, transparent);
  max-width: 32ch;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--paper-line);
  font-size: var(--size-small);
  color: color-mix(in srgb, var(--paper) 60%, transparent);
}

.footer-bottom .clock {
  font-feature-settings: "tnum";
}

@media (max-width: 56em) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Page heroes (inner pages) ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.page-hero h1 {
  font-size: var(--size-h1);
  margin-top: 0.4em;
  max-width: 16ch;
}

.page-hero .lede {
  margin-top: 1.4em;
}

/* ---------- 404 ---------- */
.lost {
  min-height: 80svh;
  display: grid;
  place-content: center;
  text-align: center;
  padding-top: var(--header-h);
}

.lost svg {
  width: clamp(8rem, 18vw, 12rem);
  margin-inline: auto;
  margin-bottom: 2rem;
}

.lost h1 {
  font-size: var(--size-h2);
}

.lost p {
  color: var(--muted);
  margin-top: 1rem;
}

.lost .btn {
  margin-top: 2.25rem;
  justify-self: center;
}

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .progress,
  body::after {
    display: none;
  }
}
