:root {
  color-scheme: light;
  --bg: #f5f4ef;
  --bg-alt: #eeede6;
  --panel: #fffefa;
  --panel-2: #f8f7f1;
  --border: #d3d2c8;
  --border-soft: #e3e1d8;
  --fg: #17211b;
  --muted: #4d5b52;
  --muted-2: #59665d;
  --accent: #176b49;
  --accent-2: #0d5538;
  --accent-ink: #ffffff;
  --radius: 1rem;
  --wrap: 68rem;
  --font:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --mono:
    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono",
    monospace;
  --font-brand:
    "Fraunces", "Fraunces Fallback", ui-serif, Georgia, "Times New Roman", serif;
}

/* Self-hosted brand wordmark font (Fraunces 600, Latin subset).
   Preloaded per page; the metric-matched fallback below keeps the swap
   from shifting layout while the woff2 is being fetched. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-600.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces Fallback";
  src:
    local("Georgia"), local("Times New Roman"), local("DejaVu Serif"),
    local("Liberation Serif");
  size-adjust: 96.9%;
  ascent-override: 97.8%;
  descent-override: 25.5%;
  line-gap-override: 0%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-2);
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-brand);
  font-weight: 600;
  letter-spacing: -0.035em;
}

img {
  max-width: 100%;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.75rem 1rem;
  border-radius: 0 0 0.5rem 0;
  z-index: 100;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    radial-gradient(ellipse at 14% 0%, rgb(104 190 139 / 36%), transparent 48%),
    radial-gradient(ellipse at 88% 100%, rgb(240 197 138 / 19%), transparent 38%),
    linear-gradient(110deg, #20543d 0%, #3b5945 48%, #263f35 100%);
  border-bottom: 1px solid rgb(240 197 138 / 34%);
  box-shadow: 0 0.5rem 1.5rem rgb(18 32 23 / 18%);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #f4f3ec;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: block;
  border-radius: 0.5rem;
}

.brand-name {
  font-family: var(--font-brand);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1;
  font-variation-settings: "opsz" 40;
  position: relative;
  top: 3px;
}

.brand:hover .brand-name {
  animation: brand-gold-blink 1.2s ease-in-out infinite;
}

@keyframes brand-gold-blink {
  0%,
  100% {
    color: #f4f3ec;
  }

  50% {
    color: #f0c58a;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand:hover .brand-name {
    animation: none;
    color: #f0c58a;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.92rem;
}

.site-nav a {
  color: #d2ded4;
}

.site-nav a:hover {
  color: #fffefa;
}

.nav-cta {
  padding: 0.34rem 0.95rem;
  border: 1px solid #dfb973;
  border-radius: 999px;
  color: #10251a !important;
  background: #f0c58a;
  transition:
    transform 140ms ease,
    background 150ms ease,
    border-color 150ms ease;
}

.nav-cta:hover {
  border-color: #d3a85f;
  background: #f3cb93;
}

.nav-cta:active {
  background: #e9bb7d;
}

@media (max-width: 46rem) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition:
    transform 120ms ease,
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
}

.btn-primary:hover {
  color: var(--accent-ink);
  filter: brightness(1.05);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--fg);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--fg);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.link-arrow {
  font-weight: 600;
}

/* ---------- Sections ---------- */

.section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--border-soft);
}

.section-alt {
  background: linear-gradient(180deg, transparent, var(--bg-alt) 12%, var(--bg-alt) 88%, transparent);
}

.kicker,
.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  font-size: clamp(1.65rem, 3.6vw, 2.6rem);
  font-weight: 650;
  max-width: 46rem;
}

.section-lede {
  margin: 1.15rem 0 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.06rem;
}

.section-lede strong {
  color: var(--fg);
  font-weight: 600;
}

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

.hero {
  position: relative;
  isolation: isolate;
  padding: 6rem 0 5rem;
  overflow: hidden;
  background-color: #10251a;
  background-image:
    radial-gradient(38rem 28rem at 82% 18%, rgb(31 103 66 / 30%), transparent 72%),
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
  color: #f4f3ec;
}

.hero .eyebrow {
  color: #a4d5b7;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

@media (min-width: 60rem) {
  .hero .wrap {
    padding-right: 14rem;
  }
}

.hero-robot {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: max(2rem, calc((100vw - var(--wrap)) / 2 + 1.5rem));
  width: clamp(10rem, 16vw, 14rem);
  aspect-ratio: 160 / 190;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  transform: translateY(-50%);
  cursor: pointer;
}

@media (max-width: 60rem) {
  .hero {
    padding-top: 5.5rem;
  }

  .hero-robot {
    top: 0.75rem;
    right: auto;
    left: max(1.25rem, calc((100vw - var(--wrap)) / 2));
    width: clamp(3.5rem, 5.6vw, 4.9rem);
    transform: none;
  }
}

.hero-robot:focus-visible {
  outline: 2px solid #f0c58a;
  outline-offset: 0.35rem;
  border-radius: 1.25rem;
}

.robot-illustration {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 1.2rem 1.8rem rgb(0 0 0 / 24%));
  transform-origin: center bottom;
  transition: transform 280ms ease;
}

.hero-robot:not(.is-tired):is(:hover, :focus-visible) .robot-illustration {
  transform: translateY(-5px) scale(1.04);
}

.robot-shadow {
  fill: rgb(0 0 0 / 30%);
  transform-box: fill-box;
  transform-origin: center;
}

.robot-walk {
  transform-box: fill-box;
  transform-origin: center bottom;
}

.hero-robot:not(.is-tired):is(:hover, :focus-visible) .robot-shadow {
  animation: robot-shadow 1.1s ease-in-out infinite alternate;
}

.hero-robot:not(.is-tired):is(:hover, :focus-visible) .robot-walk {
  animation: robot-walk 1.1s ease-in-out infinite;
}

.robot-speech {
  opacity: 0;
  transform: translateY(5px) scale(0.8);
  transform-box: fill-box;
  transform-origin: left bottom;
  transition:
    opacity 140ms ease,
    transform 180ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.robot-speech path {
  fill: #fff3da;
  stroke: #f0c58a;
  stroke-width: 1.5;
}

.robot-speech text {
  fill: #183a2d;
  font: 700 11px ui-monospace, monospace;
}

.hero-robot:not(.is-tired):hover .robot-speech,
.hero-robot:not(.is-tired):focus-visible .robot-speech,
.hero-robot.is-reacting .robot-speech {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.robot-bob {
  transform-box: fill-box;
  transform-origin: center bottom;
}

.hero-robot:not(.is-tired):is(:hover, :focus-visible) .robot-bob {
  animation: robot-bob 0.55s ease-in-out infinite alternate;
}

.robot-head {
  fill: #d9e8d9;
  stroke: #f3f5e9;
  stroke-width: 2;
}

.robot-face {
  fill: #183a2d;
  stroke: #8bcba4;
  stroke-width: 1.5;
}

.robot-eye,
.robot-light {
  fill: #f0c58a;
  filter: drop-shadow(0 0 4px #f0c58a);
}

.robot-light-top {
  fill: #89938c;
  filter: none;
}

.robot-light-top.is-lit {
  fill: #f0c58a;
  filter: drop-shadow(0 0 4px #f0c58a);
}

.hero-robot.is-tired .robot-eye {
  fill: #ef5c5c;
  filter: drop-shadow(0 0 5px #ef5c5c);
}

.hero-robot.is-tired .robot-smile {
  opacity: 0;
}

.hero-robot.is-tired .robot-body {
  fill: #858b87;
  stroke: #c1c5c2;
}

.hero-robot.is-tired .robot-panel {
  fill: #555b58;
  stroke: #a4aaa6;
}

.hero-robot.is-tired .robot-core {
  fill: #a4aaa6;
  filter: none;
  animation: none;
}

.robot-eyes {
  animation: robot-blink 3.2s steps(1, end) infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.robot-smile,
.robot-antenna,
.robot-arm > path,
.robot-leg,
.robot-foot {
  fill: none;
  stroke: #d9e8d9;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.robot-antenna {
  stroke-width: 3;
}

.hero-robot:not(.is-tired):is(:hover, :focus-visible) .robot-light-top {
  animation: robot-signal 1.2s ease-in-out infinite alternate;
}

.robot-ear,
.robot-joint {
  fill: #6bb98a;
  stroke: #d9e8d9;
  stroke-width: 2;
}

.robot-ear {
  fill: #d98bce;
}

.robot-body {
  fill: #347b57;
  stroke: #9bd2aa;
  stroke-width: 2;
}

.robot-panel {
  fill: #183a2d;
  stroke: #80bf94;
  stroke-width: 1.5;
}

.robot-core {
  fill: #f0c58a;
}

.robot-core.is-lit {
  animation: robot-core-spectrum 5s linear infinite;
}

.robot-arm,
.robot-leg {
  transform-box: fill-box;
  transform-origin: 50% 0%;
}

.hero-robot:not(.is-tired):is(:hover, :focus-visible) .robot-arm-left,
.hero-robot:not(.is-tired):is(:hover, :focus-visible) .robot-leg-right {
  animation: robot-swing 0.55s ease-in-out infinite alternate;
}

.hero-robot:not(.is-tired):is(:hover, :focus-visible) .robot-arm-right,
.hero-robot:not(.is-tired):is(:hover, :focus-visible) .robot-leg-left {
  animation: robot-swing 0.55s ease-in-out infinite alternate-reverse;
}

@keyframes robot-walk {
  0%,
  100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-2px); }
}

@keyframes robot-bob {
  from { transform: translateY(0); }
  to { transform: translateY(-5px); }
}

@keyframes robot-shadow {
  from { transform: scaleX(1); opacity: 0.3; }
  to { transform: scaleX(0.82); opacity: 0.18; }
}

@keyframes robot-swing {
  from { transform: rotate(-19deg); }
  to { transform: rotate(19deg); }
}

@keyframes robot-blink {
  0%,
  46%,
  50%,
  94%,
  100% { transform: scaleY(1); }
  48%,
  96% { transform: scaleY(0.12); }
}

@keyframes robot-signal {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

@keyframes robot-core-spectrum {
  0%,
  100% { fill: #f0c58a; filter: drop-shadow(0 0 4px #f0c58a); }
  20% { fill: #ef5c5c; filter: drop-shadow(0 0 4px #ef5c5c); }
  40% { fill: #d98bce; filter: drop-shadow(0 0 4px #d98bce); }
  60% { fill: #8bcba4; filter: drop-shadow(0 0 4px #8bcba4); }
  80% { fill: #6bb98a; filter: drop-shadow(0 0 4px #6bb98a); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-robot:not(.is-tired):is(:hover, :focus-visible) .robot-shadow,
  .hero-robot:not(.is-tired):is(:hover, :focus-visible) .robot-walk,
  .hero-robot:not(.is-tired):is(:hover, :focus-visible) .robot-bob,
  .hero-robot:not(.is-tired):is(:hover, :focus-visible) .robot-light-top,
  .hero-robot:not(.is-tired):is(:hover, :focus-visible) .robot-core,
  .hero-robot:not(.is-tired):is(:hover, :focus-visible) .robot-arm,
  .hero-robot:not(.is-tired):is(:hover, :focus-visible) .robot-leg,
  .robot-shadow,
  .robot-walk,
  .robot-bob,
  .robot-eyes,
  .robot-light-top,
  .robot-core,
  .robot-arm,
  .robot-leg {
    animation: none;
  }
}

.hero-title {
  font-size: clamp(2.2rem, 6.2vw, 4rem);
  font-weight: 680;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 46rem;
}

.gold {
  background: linear-gradient(
    110deg,
    #f0c58a 0%,
    #f0c58a 42%,
    #fff3da 50%,
    #f0c58a 58%,
    #f0c58a 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gold-shimmer 5s ease-in-out infinite;
}

@keyframes gold-shimmer {
  0%,
  72%,
  100% {
    background-position: 100% 0;
  }

  32% {
    background-position: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gold {
    background: none;
    color: #f0c58a;
    animation: none;
  }
}

.hero-lede {
  margin: 1.5rem 0 0;
  max-width: 46rem;
  font-size: clamp(1.05rem, 2.4vw, 1.22rem);
  color: #c4d0c6;
}

.hero-lede strong {
  color: #fffefa;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-chips li {
  font-size: 0.82rem;
  color: #d2ded4;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgb(221 237 225 / 20%);
  border-radius: 999px;
  background: rgb(255 255 255 / 5%);
}

/* ---------- Grids & cards ---------- */

.grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 2.5rem;
}

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 60rem) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 46rem) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card,
.cap {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: 0 2px 4px rgb(23 33 27 / 3%), 0 12px 30px rgb(23 33 27 / 4%);
}

.card h3,
.cap h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.card p,
.cap p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Tags ---------- */

.tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  white-space: nowrap;
}

/* ---------- Case studies ---------- */

.cases {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.case {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1.75rem;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 2px 4px rgb(23 33 27 / 3%), 0 12px 30px rgb(23 33 27 / 4%);
}

@media (max-width: 46rem) {
  .case {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.case-side {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.case-co {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
}

.case-when {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted-2);
}

.case-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.case-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.case-body p strong {
  color: var(--fg);
  font-weight: 600;
}

/* ---------- In progress ---------- */

.is-building {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

@media (max-width: 52rem) {
  .is-building {
    grid-template-columns: 1fr;
  }
}

.is-building > li {
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.is-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.85rem;
}

.is-building p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Stack strip ---------- */

.stack-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-soft);
  list-style: none;
}

.stack-strip li {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted-2);
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--border-soft);
  border-radius: 0.45rem;
}

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

.principles {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem 2rem;
}

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

.principles h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
  padding-left: 1.1rem;
  position: relative;
}

.principles h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 2px;
  background: var(--accent);
}

.principles p {
  margin: 0 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- Metrics ---------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (max-width: 52rem) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 36rem) {
  .metrics {
    grid-template-columns: 1fr;
  }
}

.metric {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.metric-num {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 680;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric-label {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Studio ---------- */

.studio {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 52rem) {
  .studio {
    grid-template-columns: 1fr;
  }
}

.studio-copy p {
  color: var(--muted);
}

.studio-copy p strong {
  color: var(--fg);
}

.founder-link {
  color: var(--fg);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent);
  text-underline-offset: 0.18em;
}

.founder-link:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.studio-facts {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.6rem;
}

.studio-facts li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.studio-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.studio-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.studio-quote {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.studio-meta {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.contact {
  background: #10251a;
  color: #f4f3ec;
}

.contact .kicker {
  color: #a4d5b7;
}

.contact .section-lede {
  color: #c4d0c6;
}

.contact .btn-primary {
  background: #f0c58a;
  color: #10251a;
  border-color: #dfb973;
}

.contact .btn-primary:hover {
  color: #10251a;
  background: #f3cb93;
  border-color: #d3a85f;
}

.contact .btn-primary:active {
  background: #e9bb7d;
}

.contact-form {
  display: grid;
  gap: 0.65rem;
  max-width: 38rem;
  margin-top: 1.5rem;
}

.contact-form[hidden] {
  display: none;
}

.contact-form label {
  margin-top: 0.35rem;
  color: #f4f3ec;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid #718477;
  border-radius: 0.5rem;
  background: #f4f3ec;
  color: #17211b;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid #f0c58a;
  outline-offset: 2px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .btn-primary {
  justify-self: start;
  margin-top: 0.5rem;
}

.contact-form .btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.contact-form-status,
.contact-fallback {
  margin: 0.4rem 0 0;
  color: #c4d0c6;
}

.contact-form-status:empty {
  display: none;
}

.contact-form-status:not(:empty) {
  max-width: 38rem;
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font-weight: 650;
}

.contact-form-status[data-state="pending"] {
  color: #17211b;
  background: #f4f3ec;
}

.contact-form-status[data-state="success"] {
  color: #10251a;
  background: #c9ead4;
  border-color: #a4d5b7;
}

.contact-form-status[data-state="error"] {
  color: #54251f;
  background: #f8ded8;
  border-color: #e8b9ae;
}

.contact-success {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 38rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 2px solid #a4d5b7;
  border-radius: 0.75rem;
  background: #c9ead4;
  color: #10251a;
  box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 18%);
}

.contact-success[hidden] {
  display: none;
}

.contact-success-icon {
  display: grid;
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: #10251a;
  color: #c9ead4;
  font-size: 1.5rem;
  font-weight: 700;
}

.contact-success h3 {
  margin: 0;
  font-size: 1.4rem;
}

.contact-success p {
  margin: 0.4rem 0 0;
  line-height: 1.5;
}

.contact-fallback a {
  color: #f0c58a;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 3rem 0;
  background: #eeede6;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.footer-tag {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.footer-nav a {
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--fg);
}

.footer-legal {
  margin: 0.5rem 0 0;
  color: var(--muted-2);
  font-size: 0.82rem;
}

.footer-links a {
  color: var(--muted);
}

/* =========================================================
   Resume page
   ========================================================= */

.resume {
  padding: 3.5rem 0 5rem;
}

.resume-head {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-soft);
}

@media (max-width: 52rem) {
  .resume-head {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.resume-name {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 680;
  letter-spacing: -0.03em;
}

.resume-role {
  margin: 0.5rem 0 1.1rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 1.05rem;
}

.resume-summary {
  margin: 0;
  color: var(--muted);
  max-width: 44rem;
}

.resume-contact {
  list-style: none;
  padding: 1.1rem 1.25rem;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.resume-contact li {
  display: flex;
  gap: 0.6rem;
  color: var(--muted);
}

.resume-contact .k {
  color: var(--muted-2);
  min-width: 4.2rem;
}

.resume-section {
  padding: 2.75rem 0 0;
}

.resume-section-title {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-soft);
}

.role {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.role:last-child {
  border-bottom: none;
}

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

.role-when {
  color: var(--muted-2);
  font-size: 0.85rem;
  font-family: var(--mono);
  padding-top: 0.15rem;
}

.role-title {
  font-size: 1.12rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
}

.role-co {
  color: var(--accent);
  font-weight: 600;
}

.role-meta {
  color: var(--muted-2);
  font-size: 0.85rem;
  margin: 0.2rem 0 0.7rem;
}

.role ul {
  margin: 0.5rem 0 0.85rem;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

.role li {
  color: var(--muted);
  font-size: 0.94rem;
}

.stackline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
  padding-left: 0;
  list-style: none;
}

.stackline li {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted-2);
  border: 1px solid var(--border-soft);
  border-radius: 0.4rem;
  padding: 0.2rem 0.5rem;
}

.role-case {
  margin: 0.75rem 0 0;
  padding: 0.9rem 1rem;
  border-left: 2px solid var(--accent);
  background: var(--panel);
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.role-case strong {
  color: var(--fg);
}

.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding-left: 0;
  list-style: none;
}

.keywords li {
  font-size: 0.75rem;
  color: var(--muted-2);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
}

@media print {
  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
