:root {
  --plum: #3c2834;
  --plum-deep: #321f2b;
  --slot: #624555;
  --slot-deep: #4a3340;
  --cream: #f4efe8;
  --cream-card: #f7f3ee;
  --ink: #2a2226;
  --muted: #6d6168;
  --line: #e4dbd3;
  --cream-text: #f6f1eb;
  --serif: "Bodoni Moda", "Didot", "Bodoni MT", "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --pad: clamp(20px, 3vw, 56px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

section,
footer {
  scroll-margin-top: 12px;
}

body.nav-open {
  overflow: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

h1, h2, h3, p {
  margin: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--cream);
  color: var(--ink);
  transform: translateY(-140%);
}

.skip:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-light {
  color: rgba(246, 241, 235, 0.72);
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-width: 210px;
  padding: 13px 20px 13px 24px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--cream-text);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  width: fit-content;
  text-transform: uppercase;
  white-space: nowrap;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: var(--cream-text);
  color: var(--plum);
}

.btn-dark {
  color: var(--ink);
}

.btn-dark:hover {
  background: var(--plum);
  color: var(--cream-text);
}

.btn-light:hover {
  background: var(--cream-text);
  color: var(--plum);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: 100vh;
  background: var(--plum);
  color: var(--cream-text);
}

.hero-panel,
.hero-visual {
  position: relative;
  min-height: 100vh;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  padding: 112px 48px 48px 40px;
  background: var(--plum);
}

.hero-bar {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
  padding: 28px 40px 0;
}

.hero-bar .btn {
  flex: 0 0 auto;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-mark {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.logo-sub {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.hero-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

.hero-links a:hover {
  opacity: 0.7;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 1;
  max-width: 560px;
  padding: 28px 8px 12px 0;
}

.hero-content .eyebrow {
  max-width: none;
  margin-bottom: 28px;
  font-size: 11px;
  letter-spacing: 0.11em;
  line-height: 1.7;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(84px, 8.4vw, 128px);
  line-height: 0.82;
  letter-spacing: -0.03em;
}

.hero-media {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 14px 0 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.42em;
}

.hero-media span {
  flex: 1;
  height: 1px;
  background: rgba(246, 241, 235, 0.55);
}

.hero-tag {
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 460px;
  margin-bottom: 32px;
  color: rgba(246, 241, 235, 0.84);
  font-size: 15px;
  line-height: 1.65;
}

.hero-visual {
  color: var(--cream-text);
}

.media-slot {
  background: var(--slot);
  overflow: hidden;
}

.media-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-slot--hero,
.media-slot--footer {
  position: absolute;
  inset: 0;
}

.media-slot--hero {
  background:
    radial-gradient(ellipse at 62% 42%, rgba(255, 236, 226, 0.16), transparent 58%),
    var(--slot);
}

.media-slot--about {
  background:
    radial-gradient(ellipse at 40% 45%, rgba(255, 236, 226, 0.1), transparent 60%),
    var(--slot-deep);
}

.media-slot--footer {
  left: 40%;
  background:
    linear-gradient(90deg, var(--plum) 0%, rgba(60, 40, 52, 0) 22%),
    radial-gradient(ellipse at 70% 50%, rgba(255, 236, 226, 0.14), transparent 62%),
    var(--slot);
}

.media-slot--project {
  position: relative;
  aspect-ratio: 3 / 3.7;
  background: #e5dcd4;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: 36px;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--cream-text);
}

.scroll-label {
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.scroll-orb {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(246, 241, 235, 0.8);
  border-radius: 50%;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 40;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}

.nav-toggle-lines {
  margin: 0 auto;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }

.nav-mobile {
  position: fixed;
  z-index: 30;
  inset: 76px 0 0;
  background: var(--plum-deep);
  color: var(--cream-text);
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 8px 24px 28px;
}

.nav-mobile a {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-mobile .btn {
  align-self: flex-start;
  margin-top: 8px;
}

.section {
  padding: 92px var(--pad) 80px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 32px 48px;
  align-items: start;
  margin-bottom: 48px;
}

.section-head-single {
  grid-template-columns: 1fr;
}

.section-note {
  max-width: 320px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  justify-self: end;
}

.services .section-note {
  padding-top: 42px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  background: transparent;
}

.card-num {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #a8989e;
}

.card-body {
  margin-top: 56px;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.card-arrow {
  margin-top: auto;
  padding-top: 28px;
  font-size: 18px;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 680px;
  background: var(--cream);
}

.media-slot--about {
  position: relative;
  min-height: 520px;
  height: 100%;
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 20px;
  padding: 72px 36px 72px 56px;
}

.about-copy h2 {
  margin-bottom: 28px;
}

.about-copy p + p {
  margin-top: 16px;
}

.about-copy .btn {
  margin-top: 32px;
}

.about-copy p {
  max-width: 460px;
  color: #4d4448;
  font-size: 15px;
}

.pillars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  margin: 0;
  padding: 0 0 0 28px;
  list-style: none;
  border-left: 1px solid var(--line);
}

.pillars li {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.process,
.why {
  border-top: 1px solid var(--line);
}

.portfolio-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.portfolio-intro {
  min-width: 0;
}

.portfolio-intro h2 {
  margin-bottom: 18px;
  font-size: clamp(36px, 3vw, 48px);
  overflow-wrap: normal;
}

.portfolio-intro .section-note {
  justify-self: start;
  margin-bottom: 28px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.text-link:hover {
  opacity: 0.65;
}

.portfolio-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.project-kicker,
.project-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.project h3 {
  margin: 6px 0 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.project-kicker {
  margin-top: 14px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 22px;
}

.why-item {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.why-item h3 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(22px, 1.7vw, 28px);
  font-weight: 500;
  line-height: 1.15;
}

.plus {
  font-family: var(--sans);
  font-weight: 500;
}

.why-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.7fr) minmax(220px, 0.85fr);
  gap: 28px;
  align-items: center;
  min-height: 460px;
  padding: 72px var(--pad);
  overflow: hidden;
  background: var(--plum);
  color: var(--cream-text);
}

.footer-copy,
.footer-brand,
.footer-actions {
  position: relative;
  z-index: 1;
}

.footer-copy h2 {
  max-width: 420px;
  margin-bottom: 18px;
}

.footer-copy p:last-child {
  max-width: 380px;
  color: rgba(246, 241, 235, 0.8);
  font-size: 15px;
}

.footer-brand {
  text-align: center;
}

.footer-name {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.socials {
  display: flex;
  gap: 16px;
  margin-top: 22px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
}

.socials a:hover {
  opacity: 0.65;
}

@media (max-width: 1100px) {
  .card-grid,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-layout {
    display: block;
    width: 100%;
  }

  .portfolio-row {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .project {
    flex: 0 0 240px;
    scroll-snap-align: start;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-panel,
  .hero-visual,
  .hero-content,
  .hero-bar,
  .section,
  .about,
  .footer,
  .card-grid,
  .why-grid,
  .portfolio-layout {
    min-width: 0;
    max-width: 100%;
  }

  .hero-panel,
  .hero-visual {
    min-height: auto;
  }

  .hero-content {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
  }

  .hero-bar {
    top: 20px;
    right: 20px;
    left: 20px;
    width: auto;
    max-width: none;
    padding: 0;
  }

  .hero-content .eyebrow,
  .hero-lead {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-content .eyebrow {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .hero-panel {
    min-height: auto;
    padding: 20px 20px 48px;
  }

  .hero-visual {
    min-height: 52vh;
  }

  .hero-links,
  .hero-bar > .btn {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: auto;
    border: 1px solid currentColor;
    border-radius: 50%;
  }

  .section-head,
  .about,
  .about-panel,
  .footer {
    grid-template-columns: 1fr;
  }

  .section-note {
    justify-self: start;
  }

  .about-panel {
    padding: 48px 20px 56px;
  }

  .pillars {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px 28px;
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .media-slot--footer {
    left: 0;
    top: 42%;
  }

  .footer {
    min-height: 0;
    padding-bottom: 220px;
  }

  .footer-brand,
  .footer-actions {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .card-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 0;
  }

  .hero-title {
    font-size: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
