*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#work,
#approach,
#about,
#contact {
  scroll-margin-top: 88px;
}

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

  .modal-overlay,
  .modal-panel {
    transition: none;
  }
}

:root {
  --bg: oklch(0.965 0.006 220);
  --border: oklch(0.87 0.012 220);
  --border-strong: oklch(0.7 0.02 220);
  --ink: oklch(0.23 0.014 235);
  --ink-muted: oklch(0.47 0.016 235);
  --accent: oklch(0.46 0.05 250);
  --accent-hover: oklch(0.38 0.05 250);
  --accent-dark-hover: oklch(0.32 0.06 250);
  --accent-tint: oklch(0.9 0.02 250);
  --card-bg: oklch(0.93 0.009 220);
  --off-white: oklch(0.98 0.006 220);
  --modal-bg: oklch(0.97 0.006 220);
  --modal-backdrop: oklch(0.15 0.01 235 / 0.5);
  --modal-shadow: oklch(0.1 0.01 235 / 0.35);
  --contact-bg: oklch(0.2 0.016 235);
  --contact-accent: oklch(0.72 0.05 250);
  --contact-btn-hover: oklch(0.82 0.02 220);
}

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Archivo', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
}

button {
  font: inherit;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark span {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -1.5px;
  color: var(--off-white);
}

.brand-name {
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.2px;
}

.main-nav {
  display: flex;
  gap: 36px;
}

.main-nav a {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
  color: var(--ink);
  transition: color 0.15s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */

.btn-primary {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--off-white);
  background: var(--accent);
  padding: 16px 28px;
  display: inline-block;
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  border: 1px solid var(--border-strong);
  padding: 15px 27px;
  display: inline-block;
  transition: border-color 0.15s ease, color 0.15s ease;
}

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

.text-link {
  margin-top: 18px;
  background: none;
  border: none;
  padding: 0;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
  transition: color 0.15s ease;
}

.text-link:hover {
  color: var(--accent-dark-hover);
}

/* Hero */

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 56px 100px;
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: center;
}

.hero-copy {
  flex: 1 1 480px;
  min-width: 320px;
}

.eyebrow {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-copy h1 {
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: 56px;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 24px;
  max-width: 600px;
}

.hero-copy p {
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0 0 36px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-photo {
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 420px;
  position: relative;
}

.hero-photo-backdrop {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  background: var(--accent-tint);
  z-index: 0;
}

.hero-photo-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

/* Positioning */

.positioning {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 56px 100px;
  text-align: center;
}

.positioning-rule {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 32px;
}

.positioning p {
  font-family: 'Source Serif 4', serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}

/* Work / Services */

.work {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 56px 100px;
}

.section-label {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.work h2 {
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: 34px;
  color: var(--ink);
  margin: 0 0 16px;
}

.work-intro {
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0 0 48px;
  max-width: 640px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--card-bg);
  padding: 40px;
  border: 1px solid var(--border);
}

.service-num {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 16px;
}

.service-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 12px;
}

.service-short {
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* Modal */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--modal-backdrop);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.25s ease;
  visibility: hidden;
}

.modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.modal-panel:focus {
  outline: none;
}

.modal-panel {
  background: var(--modal-bg);
  max-width: 640px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  padding: 48px;
  position: relative;
  box-shadow: 0 30px 80px var(--modal-shadow);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.modal-overlay.is-visible .modal-panel {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-family: 'Archivo', sans-serif;
  font-size: 24px;
  line-height: 1;
  color: oklch(0.55 0.016 235);
  cursor: pointer;
  padding: 6px;
  transition: color 0.15s ease;
}

.modal-close:hover {
  color: var(--ink);
}

.modal-num {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 16px;
}

.modal-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 16px;
  padding-right: 32px;
}

.modal-short {
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.modal-para {
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0 0 16px;
}

.modal-heading {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}

.modal-heading.accent {
  color: var(--accent);
}

.modal-block {
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.modal-block:last-child {
  margin-bottom: 0;
}

/* Approach */

.approach {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 56px;
}

.approach h2 {
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: 34px;
  color: var(--ink);
  margin: 0 0 32px;
}

.approach-item {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.approach-item:last-child {
  border-bottom: 1px solid var(--border);
}

.approach-num {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 32px;
  color: var(--accent);
  width: 56px;
  flex-shrink: 0;
}

.approach-item p {
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}

/* About */

.about {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 56px;
}

.about-mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.about-mark span {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -2px;
  color: var(--off-white);
}

.about .section-label {
  margin-bottom: 20px;
}

.about-lede {
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 24px;
}

.about-lede:last-of-type {
  margin-bottom: 0;
}

.about p.about-body {
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0 0 20px;
}

.about-expanded .about-lede {
  margin: 0 0 20px;
}

.about-expanded p.about-body:last-child {
  margin-bottom: 0;
}

[hidden] {
  display: none !important;
}

/* Contact */

.contact {
  background: var(--contact-bg);
  padding: 120px 56px;
  text-align: center;
}

.contact-inner {
  max-width: 680px;
  margin: 0 auto;
}

.contact p {
  font-family: 'Source Serif 4', serif;
  font-weight: 400;
  font-size: 25px;
  line-height: 1.55;
  color: var(--bg);
  margin: 0 0 32px;
}

.contact-signature {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.2px;
  color: var(--contact-accent);
  margin-bottom: 36px;
}

.btn-contact {
  display: inline-block;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--contact-bg);
  background: var(--bg);
  padding: 16px 32px;
  transition: background 0.15s ease;
}

.btn-contact:hover {
  background: var(--contact-btn-hover);
}

/* Footer */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 36px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer .footer-text {
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-muted);
}

.site-footer a {
  color: var(--ink-muted);
  text-decoration: underline;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer img {
  height: 24px;
  width: auto;
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .positioning,
  .work,
  .approach,
  .about,
  .contact,
  .site-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
  }

  .site-header.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
    font-size: 15px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}
