:root {
  color-scheme: light;
  --ink: #1c2528;
  --muted: #617073;
  --paper: #f7f4ef;
  --paper-strong: #fffdf8;
  --line: #d8d2c8;
  --teal: #1f766f;
  --teal-dark: #0e504c;
  --amber: #c18132;
  --moss: #6a7d48;
  --charcoal: #192024;
  --shadow: 0 22px 70px rgb(28 37 40 / 14%);
  --radius: 8px;
  --max: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px clamp(20px, 5vw, 56px);
  color: var(--paper-strong);
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgb(255 253 248 / 94%);
  color: var(--ink);
  box-shadow: 0 12px 42px rgb(25 32 36 / 9%);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.78rem;
}

.site-nav {
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a {
  opacity: 0.88;
}

.site-nav a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  padding: 10px;
}

.nav-toggle span[aria-hidden="true"] {
  display: block;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: clip;
  padding: 144px clamp(20px, 5vw, 56px) 82px;
  background: var(--charcoal);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgb(15 19 20 / 86%) 0%, rgb(15 19 20 / 58%) 42%, rgb(15 19 20 / 16%) 100%),
    linear-gradient(0deg, rgb(15 19 20 / 72%) 0%, rgb(15 19 20 / 0%) 46%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  color: var(--paper-strong);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

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

h1 {
  max-width: 980px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 5.7vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
  word-break: keep-all;
}

h1 span {
  display: block;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 34px;
  color: rgb(255 253 248 / 84%);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.1;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

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

.button-primary:hover {
  background: var(--teal-dark);
}

.button-secondary {
  border-color: rgb(255 253 248 / 48%);
  color: white;
  background: rgb(255 253 248 / 8%);
}

.intro-band {
  background: var(--paper-strong);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  background: var(--line);
}

.intro-grid > div {
  min-height: 190px;
  padding: clamp(28px, 4vw, 42px);
  background: var(--paper-strong);
}

.intro-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(82px, 10vw, 128px) 0;
}

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

.section-heading h2,
.contact-section h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: 0;
}

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

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  line-height: 1.45;
}

.profile-panel,
.work-card,
.process-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.profile-panel {
  padding: 8px 26px;
}

dl,
dd {
  margin: 0;
}

.profile-panel div {
  padding: 22px 0;
}

.profile-panel div + div {
  border-top: 1px solid var(--line);
}

dt {
  margin-bottom: 6px;
  color: var(--teal-dark);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

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

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

.card-index {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--teal-dark);
  font-weight: 850;
}

.work-card h3,
.process-list h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  line-height: 1.2;
}

.work-card p,
.process-list p {
  color: var(--muted);
}

.work-card span {
  margin-top: auto;
  color: var(--moss);
  font-size: 0.82rem;
  font-weight: 850;
}

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

.process-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0;
  margin: 0;
  counter-reset: none;
}

.process-list li {
  min-height: 245px;
  padding: 28px;
}

.process-list span {
  display: block;
  margin-bottom: 48px;
  color: var(--amber);
  font-weight: 850;
}

.contact-section {
  padding: clamp(76px, 10vw, 112px) clamp(20px, 5vw, 56px);
  background: var(--charcoal);
  color: var(--paper-strong);
}

.contact-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.contact-actions p {
  max-width: 420px;
  margin: 0;
  color: rgb(255 253 248 / 68%);
  font-size: 0.96rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 56px);
  background: var(--charcoal);
  color: rgb(255 253 248 / 68%);
  border-top: 1px solid rgb(255 253 248 / 12%);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--paper-strong);
  font-weight: 760;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 1px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-strong);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 12px;
  }

  .hero {
    min-height: 88svh;
  }

  .intro-grid,
  .profile-layout,
  .work-grid,
  .process-list,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .intro-grid > div,
  .work-card,
  .process-list li {
    min-height: auto;
  }

  .card-index,
  .process-list span {
    margin-bottom: 26px;
  }
}

@media (max-width: 600px) {
  .site-header {
    min-height: 64px;
    padding: 12px 16px;
  }

  .brand {
    max-width: calc(100% - 56px);
  }

  .hero {
    min-height: 86svh;
    padding: 112px 20px 58px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgb(15 19 20 / 90%) 0%, rgb(15 19 20 / 70%) 56%, rgb(15 19 20 / 30%) 100%),
      linear-gradient(0deg, rgb(15 19 20 / 76%) 0%, rgb(15 19 20 / 0%) 52%);
  }

  h1 {
    font-size: clamp(2.05rem, 10.7vw, 3rem);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .button {
    width: 100%;
  }

  .intro-grid,
  .section {
    width: min(100% - 32px, var(--max));
  }

  .section {
    padding: 72px 0;
  }

  .profile-panel,
  .work-card,
  .process-list li {
    padding: 22px;
  }

  .contact-section {
    padding: 72px 20px;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 20px;
  }
}
