:root {
  color-scheme: light;
  --ink: #181716;
  --muted: #625f59;
  --soft: #f5f2ec;
  --paper: #fffdfa;
  --line: #ded8ce;
  --teal: #0f6f6a;
  --teal-dark: #084c49;
  --berry: #8f2d56;
  --gold: #b7811f;
  --coal: #242424;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(33, 30, 25, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

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

p,
h1,
h2,
h3 {
  margin: 0;
}

ul {
  margin: 20px 0 0;
  padding-left: 18px;
}

li + li {
  margin-top: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(255, 253, 250, 0.9);
  border-bottom: 1px solid rgba(222, 216, 206, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  font-size: 0.78rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a {
  padding: 10px 0;
}

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

.section {
  width: min(1120px, 90vw);
  margin: 0 auto;
  padding: 96px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.64fr);
  align-items: center;
  gap: 72px;
  min-height: 720px;
  padding-top: 56px;
  padding-bottom: 72px;
}

.eyebrow {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin-top: 14px;
  font-size: clamp(2.55rem, 4.4vw, 4.45rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-intro {
  max-width: 650px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
  font-weight: 720;
  white-space: nowrap;
  cursor: pointer;
}

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

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button.tertiary {
  border-color: transparent;
  color: var(--muted);
}

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

.product-visual {
  align-self: center;
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.visual-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
  text-transform: uppercase;
}

.visual-list {
  display: grid;
  gap: 0;
  margin-top: 18px;
}

.visual-list div {
  padding: 20px 0;
  border-top: 1px solid rgba(98, 95, 89, 0.22);
}

.visual-list span {
  display: block;
  color: var(--teal-dark);
  font-size: 0.84rem;
  font-weight: 760;
  text-transform: uppercase;
}

.visual-list p {
  margin-top: 6px;
  color: var(--muted);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 36px;
}

.section-heading h2,
.contact h2 {
  margin-top: 10px;
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  gap: 36px;
  max-width: none;
  align-items: end;
}

.section-heading.split > p {
  color: var(--muted);
}

.metrics {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric-grid article,
.focus-grid article,
.work-card,
.timeline article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.metric-grid article {
  min-height: 172px;
  padding: 22px;
}

.metric-grid strong {
  display: block;
  color: var(--teal-dark);
  font-size: 2.2rem;
  line-height: 1;
}

.metric-grid span {
  display: block;
  margin-top: 18px;
  color: var(--muted);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.focus-grid article {
  min-height: 220px;
  padding: 24px;
}

.focus-grid h3,
.work-card h3,
.timeline h3 {
  font-size: 1.22rem;
  line-height: 1.18;
}

.focus-grid p,
.work-card p,
.sample-card p,
.timeline p {
  margin-top: 14px;
  color: var(--muted);
}

.product-samples {
  border-top: 1px solid var(--line);
}

.sample-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.9fr));
  gap: 16px;
}

.sample-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sample-card.live {
  background: var(--ink);
  color: var(--white);
}

.sample-card.live p,
.sample-card.live .card-meta {
  color: rgba(255, 255, 255, 0.72);
}

.sample-link {
  width: fit-content;
  margin-top: auto;
  color: var(--teal-dark);
  font-weight: 760;
  border-bottom: 1px solid currentColor;
}

.sample-card.live .sample-link {
  color: var(--white);
}

.selected-work {
  width: min(1240px, 90vw);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: 24px;
}

.work-card.featured {
  grid-column: span 2;
  background: var(--ink);
  color: var(--white);
}

.work-card.featured p,
.work-card.featured li,
.work-card.featured .card-meta {
  color: rgba(255, 255, 255, 0.72);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 720;
  text-transform: uppercase;
}

.work-card li {
  color: var(--muted);
}

.case-facts {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
}

.case-facts div {
  padding-top: 16px;
  border-top: 1px solid rgba(98, 95, 89, 0.22);
}

.work-card.featured .case-facts div {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.case-facts dt {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.work-card.featured .case-facts dt {
  color: rgba(255, 255, 255, 0.82);
}

.case-facts dd {
  margin: 7px 0 0;
  color: var(--muted);
}

.work-card.featured .case-facts dd {
  color: rgba(255, 255, 255, 0.72);
}

.work-card.sample {
  min-height: 300px;
  background: var(--soft);
}

.work-card.sample a {
  width: fit-content;
  margin-top: auto;
  color: var(--teal-dark);
  font-weight: 760;
  border-bottom: 1px solid currentColor;
}

.case-link {
  width: fit-content;
  margin-top: auto;
  padding-top: 22px;
  color: var(--teal-dark);
  font-weight: 760;
  border-bottom: 1px solid currentColor;
}

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

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.timeline article {
  padding: 24px;
}

.timeline span {
  display: block;
  margin-bottom: 12px;
  color: var(--teal-dark);
  font-size: 0.85rem;
  font-weight: 760;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 36px;
  padding-top: 72px;
  border-top: 1px solid var(--line);
}

.contact-copy {
  max-width: 660px;
  margin-top: 14px;
  color: var(--muted);
}

.contact-actions {
  justify-content: end;
  margin-top: 0;
}

.case-study-page {
  background: var(--paper);
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.46fr);
  gap: 48px;
  width: min(1120px, 90vw);
  margin: 0 auto;
  padding: 78px 0 64px;
  align-items: end;
}

.case-hero h1 {
  max-width: 780px;
  font-size: clamp(2.45rem, 4vw, 4.05rem);
}

.case-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.4vw, 1.18rem);
}

.case-summary {
  padding: 24px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
}

.case-summary dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.case-summary div {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.case-summary div:first-child {
  padding-top: 0;
  border-top: 0;
}

.case-summary dt {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
  font-weight: 760;
  text-transform: uppercase;
}

.case-summary dd {
  margin: 6px 0 0;
}

.case-section {
  width: min(1120px, 90vw);
  margin: 0 auto;
  padding: 68px 0;
  border-top: 1px solid var(--line);
}

.case-band {
  width: 100%;
  padding-right: max(5vw, calc((100vw - 1120px) / 2));
  padding-left: max(5vw, calc((100vw - 1120px) / 2));
  background: var(--soft);
}

.case-section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.case-section-heading h2 {
  margin-top: 10px;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.08;
}

.case-copy {
  display: grid;
  gap: 18px;
  max-width: 820px;
  color: var(--muted);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.case-grid article {
  min-height: 250px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.case-grid span {
  color: var(--berry);
  font-weight: 760;
}

.case-grid h3 {
  margin-top: 36px;
  font-size: 1.18rem;
}

.case-grid p {
  margin-top: 12px;
  color: var(--muted);
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.58fr);
  gap: 42px;
  align-items: center;
}

.case-product-map {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.map-node {
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 760;
}

.map-node.active {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}

.map-line {
  width: 2px;
  height: 18px;
  margin-left: 18px;
  background: var(--line);
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.case-metrics article {
  min-height: 170px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.case-metrics strong {
  display: block;
  color: var(--teal-dark);
  font-size: 2.2rem;
  line-height: 1;
}

.case-metrics span {
  display: block;
  margin-top: 16px;
  color: var(--muted);
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.resume-page {
  background: var(--paper);
}

.resume-main {
  width: min(920px, 90vw);
  margin: 0 auto;
  padding: 64px 0 96px;
}

.resume-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.resume-hero h1 {
  max-width: none;
  font-size: clamp(2.35rem, 4.4vw, 4.1rem);
}

.resume-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
}

.resume-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.resume-section h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
}

.resume-section > p {
  max-width: 780px;
  margin-top: 14px;
  color: var(--muted);
}

.resume-job {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.resume-job h3 {
  font-size: 1.1rem;
}

.resume-job span {
  color: var(--muted);
}

.resume-job ul {
  max-width: 820px;
  color: var(--muted);
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.skill-cloud span {
  padding: 8px 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero,
  .section-heading.split,
  .contact,
  .case-hero,
  .case-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 40px;
  }

  .product-visual {
    min-height: auto;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-grid,
  .sample-grid,
  .work-grid,
  .case-grid,
  .case-metrics {
    grid-template-columns: 1fr;
  }

  .work-card.featured {
    grid-column: auto;
  }

  .contact-actions {
    justify-content: start;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.88rem;
  }

  .section {
    width: min(100% - 32px, 1120px);
    padding: 68px 0;
  }

  .case-hero,
  .case-section {
    width: min(100% - 32px, 1120px);
  }

  .hero {
    padding-top: 46px;
  }

  .product-visual {
    min-height: auto;
    padding: 14px;
  }

  .metric-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .work-card {
    min-height: auto;
  }

  .resume-hero {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .print-button {
    display: none;
  }

  body,
  .resume-page {
    background: #ffffff;
  }

  .resume-main {
    width: 100%;
    padding: 0;
  }

  .resume-section {
    break-inside: avoid;
    padding: 22px 0;
  }

  .resume-job {
    break-inside: avoid;
  }

  .skill-cloud span {
    border-color: #cccccc;
  }
}
