:root,
[data-theme='light'] {
  --font-display: 'Cabinet Grotesk', 'Arial', sans-serif;
  --font-body: 'Switzer', 'Inter', sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --color-bg: #f4efe7;
  --color-surface: #fffaf1;
  --color-surface-2: #ebe0d0;
  --color-surface-offset: #ded0bd;
  --color-border: #cabca9;
  --color-divider: #d8cbb9;
  --color-text: #241f19;
  --color-text-muted: #675d50;
  --color-text-faint: #948775;
  --color-text-inverse: #fff8ee;
  --color-primary: #263d32;
  --color-primary-hover: #17261f;
  --color-accent: #c86b2a;
  --color-accent-hover: #a7531d;
  --color-accent-soft: #f2d8c4;
  --color-utility: #54684b;
  --color-success: #386b35;
  --color-error: #a33a31;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgb(36 31 25 / 0.06);
  --shadow-md: 0 8px 24px rgb(36 31 25 / 0.1);
  --shadow-lg: 0 18px 60px rgb(36 31 25 / 0.16);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --content-wide: 1180px;
  --content-default: 960px;
}

[data-theme='dark'] {
  --color-bg: #151411;
  --color-surface: #1d1b17;
  --color-surface-2: #28241e;
  --color-surface-offset: #332d24;
  --color-border: #494137;
  --color-divider: #39332b;
  --color-text: #efe4d3;
  --color-text-muted: #b8ab99;
  --color-text-faint: #817565;
  --color-text-inverse: #181512;
  --color-primary: #8fa58c;
  --color-primary-hover: #a6b99f;
  --color-accent: #f09b59;
  --color-accent-hover: #ffc08a;
  --color-accent-soft: #4b3324;
  --color-utility: #aab89c;
  --color-success: #8ec884;
  --color-error: #e47b73;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.28);
  --shadow-md: 0 8px 24px rgb(0 0 0 / 0.32);
  --shadow-lg: 0 18px 60px rgb(0 0 0 / 0.44);
}

body {
  background:
    radial-gradient(circle at 10% 0%, color-mix(in oklab, var(--color-accent-soft) 55%, transparent), transparent 34rem),
    linear-gradient(180deg, var(--color-bg), color-mix(in oklab, var(--color-bg) 78%, var(--color-surface-2)));
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: var(--space-4);
  left: var(--space-4);
  transform: translateY(-150%);
  background: var(--color-accent);
  color: #1b120c;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-full);
  font-weight: 700;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid color-mix(in oklab, var(--color-border) 80%, transparent);
}

.nav-wrap,
.section-inner,
.footer-inner {
  width: min(calc(100% - clamp(var(--space-5), 5vw, var(--space-12))), var(--content-wide));
  margin-inline: auto;
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-logo {
  width: clamp(72px, 8vw, 96px);
  max-height: 64px;
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  max-height: 62px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.05);
}

[data-theme='dark'] .brand-logo img,
.site-footer .brand-logo img {
  mix-blend-mode: normal;
  background: #fffaf1;
  border-radius: var(--radius-md);
  padding: var(--space-1);
}

.footer-logo {
  width: 118px;
  max-height: 92px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.site-nav a {
  font-size: var(--text-sm);
  font-weight: 650;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--color-text);
  background: color-mix(in oklab, var(--color-surface-2) 70%, transparent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.theme-toggle,
.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  background: color-mix(in oklab, var(--color-surface) 72%, transparent);
}

.menu-toggle {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 46px;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.button-primary {
  color: #1b120c;
  background: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.button-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.button-secondary {
  color: var(--color-text);
  border: 1px solid var(--color-border);
  background: color-mix(in oklab, var(--color-surface) 76%, transparent);
}

.button-secondary:hover {
  background: var(--color-surface-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 34px;
  height: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: calc(100dvh - 76px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  color: #fff8ee;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgb(13 15 12 / 0.88) 0%, rgb(13 15 12 / 0.58) 43%, rgb(13 15 12 / 0.2) 100%),
    linear-gradient(0deg, rgb(13 15 12 / 0.85), transparent 55%),
    var(--hero-image) center / cover no-repeat;
}

.hero::after,
.page-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 9px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-accent) 0 34px,
    var(--color-primary) 34px 68px
  );
}

.hero-content {
  width: min(calc(100% - clamp(var(--space-5), 5vw, var(--space-12))), var(--content-wide));
  margin-inline: auto;
  padding-block: clamp(var(--space-16), 10vw, var(--space-32)) var(--space-20);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  gap: clamp(var(--space-8), 6vw, var(--space-20));
  align-items: end;
}

.hero h1,
.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  max-width: 13ch;
  letter-spacing: -0.06em;
  line-height: 0.95;
  margin-top: var(--space-4);
}

.hero p {
  color: rgb(255 248 238 / 0.86);
  margin-top: var(--space-5);
  font-size: var(--text-base);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.hero-card {
  background: rgb(255 248 238 / 0.1);
  border: 1px solid rgb(255 248 238 / 0.18);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  backdrop-filter: blur(12px);
}

.hero-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: -0.03em;
}

.hero-card ul {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-3);
  color: rgb(255 248 238 / 0.82);
}

.hero-card li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.hero-card li::before {
  content: '';
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--color-accent);
  margin-top: 0.45rem;
  flex: 0 0 auto;
}

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.section-header {
  display: grid;
  gap: var(--space-4);
  max-width: 760px;
  margin-bottom: var(--space-10);
}

.section-header h2,
.cta-panel h2,
.split-copy h2,
.quote-card h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: -0.055em;
}

.section-header p,
.split-copy p {
  color: var(--color-text-muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.service-card,
.project-card,
.value-card,
.process-step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.service-card img,
.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card-body,
.project-card-body {
  padding: var(--space-6);
}

.service-card h3,
.project-card h3,
.value-card h3,
.process-step h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: -0.03em;
}

.service-card p,
.project-card p,
.value-card p,
.process-step p {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(var(--space-8), 6vw, var(--space-20));
  align-items: center;
}

.split-media {
  position: relative;
}

.split-media img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.image-note {
  position: absolute;
  right: var(--space-5);
  bottom: var(--space-5);
  width: min(70%, 310px);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  color: #fff8ee;
  background: rgb(22 24 18 / 0.84);
  border: 1px solid rgb(255 248 238 / 0.16);
  backdrop-filter: blur(10px);
}

.image-note span {
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-list {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.feature-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--space-3);
}

.check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: var(--text-xs);
  font-weight: 900;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-8);
  padding: clamp(var(--space-8), 6vw, var(--space-16));
  border-radius: var(--radius-xl);
  color: #fff8ee;
  background:
    linear-gradient(135deg, rgb(24 38 31 / 0.96), rgb(47 57 42 / 0.94)),
    url('./assets/images/work-04-thumb.webp') center / cover;
  box-shadow: var(--shadow-lg);
}

.cta-panel p {
  color: rgb(255 248 238 / 0.78);
  margin-top: var(--space-3);
}

.page-hero {
  position: relative;
  color: #fff8ee;
  background:
    linear-gradient(90deg, rgb(14 17 13 / 0.88), rgb(14 17 13 / 0.42)),
    var(--page-hero-image) center / cover no-repeat;
  padding-block: clamp(var(--space-16), 12vw, var(--space-32)) var(--space-20);
  overflow: hidden;
}

.page-hero-inner {
  width: min(calc(100% - clamp(var(--space-5), 5vw, var(--space-12))), var(--content-wide));
  margin-inline: auto;
}

.page-hero p {
  color: rgb(255 248 238 / 0.82);
  margin-top: var(--space-5);
}

.values-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.value-card,
.process-step {
  padding: var(--space-6);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-full);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 900;
}

.service-detail {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
  padding-block: var(--space-12);
  border-top: 1px solid var(--color-divider);
}

.service-detail:nth-child(even) {
  grid-template-columns: 1.08fr 0.92fr;
}

.service-detail:nth-child(even) .service-detail-media {
  order: 2;
}

.service-detail-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.service-detail-copy h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: -0.04em;
}

.service-detail-copy p {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
}

.mini-list {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.mini-list li {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--color-surface-2) 72%, transparent);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.project-card.featured {
  grid-column: span 2;
}

.project-card.featured img {
  aspect-ratio: 16 / 9;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.tag {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 800;
}

.contact-grid {
  display: grid;
  max-width: 850px;
  margin-inline: auto;
}

.contact-card,
.quote-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.contact-card {
  padding: var(--space-6);
}

.contact-list {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.contact-list a,
.contact-list span {
  display: block;
  color: var(--color-text-muted);
}

.contact-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.contact-strip a {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: color-mix(in oklab, var(--color-bg) 48%, var(--color-surface));
}

.contact-strip a:hover {
  border-color: color-mix(in oklab, var(--color-accent) 58%, var(--color-border));
  transform: translateY(-1px);
}

.contact-strip strong {
  color: var(--color-accent);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-strip span {
  color: var(--color-text);
  font-weight: 800;
}

.quote-card {
  padding: clamp(var(--space-6), 5vw, var(--space-10));
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.field {
  display: grid;
  gap: var(--space-2);
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: var(--text-sm);
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--color-bg) 54%, var(--color-surface));
  padding: var(--space-3) var(--space-4);
  min-height: 48px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  min-height: 32px;
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.form-status.success {
  color: var(--color-success);
}

.form-status.error {
  color: var(--color-error);
}

.site-footer {
  margin-top: var(--space-16);
  color: #fff8ee;
  background: #141912;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--space-8);
  padding-block: var(--space-12);
}

.footer-inner p,
.footer-inner a {
  color: rgb(255 248 238 / 0.72);
  font-size: var(--text-sm);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom {
  border-top: 1px solid rgb(255 248 238 / 0.12);
  padding-block: var(--space-5);
  color: rgb(255 248 238 / 0.58);
  font-size: var(--text-xs);
}

.footer-bottom .section-inner {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
}

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    inset: 76px var(--space-4) auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
  }

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

  .site-nav a {
    padding: var(--space-3) var(--space-4);
  }

  .menu-toggle {
    display: grid;
  }

  .desktop-quote {
    display: none;
  }

  .hero-grid,
  .split,
  .service-detail,
  .service-detail:nth-child(even),
  .contact-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .service-detail:nth-child(even) .service-detail-media {
    order: 0;
  }

  .service-grid,
  .values-grid,
  .process-grid,
  .project-grid,
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card.featured {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    width: 74px;
    max-height: 56px;
  }

  .hero,
  .page-hero {
    min-height: auto;
  }

  .hero h1,
  .page-hero h1 {
    font-size: var(--text-2xl);
  }

  .hero-grid {
    gap: var(--space-8);
  }

  .service-grid,
  .values-grid,
  .process-grid,
  .project-grid,
  .form-grid,
  .contact-strip,
  .footer-inner,
  .footer-bottom .section-inner,
  .mini-list {
    grid-template-columns: 1fr;
  }

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

  .project-card.featured img,
  .service-card img,
  .project-card img {
    aspect-ratio: 4 / 3;
  }

  .image-note {
    position: static;
    margin-top: var(--space-4);
    width: auto;
  }
}
