:root {
  /* Concept D2 design tokens — edit these to recolor the entire site. */
  --oatmeal: #f7f4ec;
  --paper: #ffffff;
  --sage: #a8b5a0;
  --slate: #3d6b85;
  --forest: #1f5240;
  --ink: #14110f;
  --muted: #4a463d;
  --muted-soft: #6b6658;
  --ochre: #c99a2e;
  --ochre-hover: #b58821;
  --mist: #e8eae5;
  --line: rgba(20, 17, 15, 0.1);
  --line-strong: rgba(20, 17, 15, 0.25);
  --shadow: 0 16px 26px rgba(20, 17, 15, 0.18);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: 1080px;
  --gutter: 48px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--oatmeal);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
blockquote {
  margin-top: 0;
}

.svg-defs {
  position: absolute;
}

.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-180%);
  border-radius: 999px;
  background: var(--ink);
  color: var(--oatmeal);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: relative;
  z-index: 20;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding-block: 44px 36px;
}

.wordmark {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
}

.site-nav a:not(.nav-cta) {
  padding-block: 6px;
  background-image: linear-gradient(var(--ochre), var(--ochre));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: background-size 180ms ease;
}

.site-nav a:not(.nav-cta):hover,
.site-nav a:not(.nav-cta):focus-visible {
  background-size: 100% 2px;
}

.nav-cta {
  padding: 9px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background-color 180ms ease, color 180ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--ink);
  color: var(--oatmeal);
}

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

.hero {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  align-items: center;
  gap: clamp(36px, 5vw, 50px);
  padding-block: 10px 70px;
}

.portrait-stage {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 470px;
  aspect-ratio: 1000 / 1050;
}

.portrait-shape--blue {
  position: absolute;
  z-index: 1;
  top: 12%;
  left: -10%;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--slate);
}

/* Sage blob holding the body of the portrait. */
.portrait-blob {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 86%;
  overflow: hidden;
  background: var(--sage);
  clip-path: url(#heroBlob);
  filter: drop-shadow(var(--shadow));
}

/* The blob is 86% of the stage, so the image is scaled back up to fill the full stage height. */
.portrait-blob .portrait-img {
  top: -16.28%;
  height: 116.28%;
}

/* Head layer: the top 42% of the portrait, drawn above the blob edge. */
.portrait-head {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 0 58% 0);
  pointer-events: none;
}

.portrait-head .portrait-img {
  top: 0;
  height: 100%;
}

.portrait-img {
  position: absolute;
  left: 0;
  width: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}

.location-badge {
  position: absolute;
  z-index: 4;
  bottom: 2%;
  left: 2%;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 9px 16px;
  border: 1px solid rgba(20, 17, 15, 0.13);
  border-radius: 999px;
  background: var(--oatmeal);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  font-size: 0.8125rem;
  font-weight: 600;
}

.location-badge svg {
  flex: none;
  color: var(--ochre);
}

.hero-copy {
  max-width: 620px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--forest);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ochre);
}

h1 {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.hero-lede {
  max-width: 46ch;
  margin-bottom: 30px;
  color: var(--muted);
  line-height: 1.7;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--ochre);
  color: var(--ink);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--ochre-hover);
}

.button--secondary {
  border-color: var(--line-strong);
  font-weight: 600;
}

.button--secondary:hover,
.button--secondary:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--oatmeal);
}

.button--ghost {
  border-color: rgba(247, 244, 236, 0.35);
  color: var(--oatmeal);
  font-weight: 600;
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: var(--oatmeal);
  background: var(--oatmeal);
  color: var(--ink);
}

/* ---------- Capability band ---------- */

.capability-band {
  background: var(--mist);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-block: 44px;
}

.capability {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.capability-mark {
  display: grid;
  flex: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--oatmeal);
  color: var(--forest);
}

.capability h2 {
  margin: 0 0 5px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 600;
}

.capability p {
  margin: 0;
  color: #43473e;
  font-size: 0.84375rem;
  line-height: 1.6;
}

/* ---------- Apps ---------- */

.section {
  padding-block: clamp(44px, 6vw, 56px);
}

.section > h2 {
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: clamp(1.625rem, 3vw, 1.875rem);
  font-weight: 600;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.app-card {
  padding: 26px 22px;
  border: 1px solid rgba(20, 17, 15, 0.1);
  border-radius: 14px;
  background: var(--paper);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(20, 17, 15, 0.08);
}

.app-swatch {
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 9px;
}

.app-swatch--ochre {
  background: var(--ochre);
}

.app-swatch--slate {
  background: var(--slate);
}

.app-swatch--sage {
  background: var(--sage);
}

.app-card h3 {
  margin-bottom: 6px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.app-card p {
  margin: 0;
  color: var(--muted-soft);
  font-size: 0.8125rem;
  line-height: 1.6;
}

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

.contact-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 36px 40px;
  border-radius: 16px;
  background: var(--ink);
  scroll-margin-top: 24px;
}

.section-kicker--onDark {
  margin-bottom: 6px;
  color: var(--ochre);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
}

.contact-banner h2 {
  margin: 0;
  color: var(--oatmeal);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.375rem);
  font-weight: 600;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 32px;
}

.footer-grid .wordmark {
  font-size: 1.125rem;
}

.footer-grid p {
  margin: 0;
  color: var(--muted-soft);
  font-size: 0.8125rem;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  :root {
    --gutter: 32px;
  }

  .hero {
    grid-template-columns: 0.9fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 820px) {
  :root {
    --gutter: 24px;
  }

  .nav-shell {
    padding-block: 28px 24px;
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 48px;
  }

  .hero-copy {
    order: -1;
  }

  .portrait-stage {
    max-width: 420px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 18px;
  }

  .capability {
    padding-block: 22px;
    border-bottom: 1px solid var(--line);
  }

  .capability:last-child {
    border-bottom: 0;
  }

  .app-grid {
    grid-template-columns: 1fr;
    margin-bottom: 40px;
  }

  .contact-banner {
    padding: 30px 28px;
  }
}

@media (max-width: 560px) {
  .wordmark {
    font-size: 1.25rem;
  }

  .nav-cta {
    padding: 8px 14px;
  }

  .portrait-stage {
    max-width: none;
  }

  .location-badge {
    padding: 8px 13px;
    font-size: 0.75rem;
  }

  .button {
    flex: 1 1 100%;
  }

  .contact-banner {
    padding: 28px 22px;
  }

  .contact-actions {
    width: 100%;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
