:root {
  --canvas: #f4f1ea;
  --paper: #fcfbf8;
  --ink: #20201e;
  --muted: #68685f;
  --coral: #c95f47;
  --coral-dark: #a94734;
  --olive: #74765c;
  --line: rgba(32, 32, 30, 0.14);
  --shadow: 0 24px 60px rgba(41, 39, 33, 0.10);
  --radius-sm: 18px;
  --radius-md: 20px;
  --radius-lg: 22px;
  --max: 1240px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Manrope, Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: rgba(201,95,71,.22); }

.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 9999;
  transform: translateY(-200%); background: var(--ink); color: white;
  padding: .75rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.section { padding: clamp(4.75rem, 8vw, 8.5rem) 0; }
.section-tight { padding: clamp(3.25rem, 6vw, 5.5rem) 0; }
.grid { display: grid; gap: 1.5rem; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four-col { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700;
  color: var(--olive);
}
.eyebrow::before { content: ''; width: 1.8rem; height: 1px; background: currentColor; }
.display {
  margin: .6rem 0 1.25rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3.4rem, 8vw, 7.6rem);
  line-height: .92; letter-spacing: -.055em; font-weight: 500;
}
.h1 { font-size: clamp(3rem, 6.5vw, 6.4rem); }
.h2 { font-size: clamp(2.35rem, 4.5vw, 4.7rem); line-height: .98; }
.h3 { font-size: clamp(1.55rem, 2.4vw, 2.35rem); line-height: 1.08; }
.lede { font-size: clamp(1.05rem, 1.65vw, 1.35rem); color: var(--muted); max-width: 680px; }
.copy { color: var(--muted); max-width: 720px; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(244,241,234,.86);
  border-bottom: 1px solid rgba(32,32,30,.08);
}
.nav-wrap { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo img { width: clamp(176px, 18vw, 230px); height: auto; max-height: 58px; object-fit: contain; object-position: left center; }
.brand-logo-footer img { width: min(230px, 100%); max-height: none; }
.main-nav { display: flex; align-items: center; gap: 1.65rem; }
.main-nav a:not(.btn) {
  font-size: .93rem; font-weight: 650; position: relative;
  transition: color .4s var(--ease), transform .4s var(--ease);
}
.main-nav a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: -.45rem; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
@media (min-width: 981px) and (hover: hover) {
  .main-nav a:not(.btn):hover { color: #C95F47; transform: translateY(-1rem); }
}
.menu-toggle { display: none; width: 48px; height: 48px; border: 0; background: var(--paper); border-radius: var(--radius-sm); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 50px; padding: .78rem 1.25rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; font-weight: 750; font-size: .92rem;
  transition: transform .25s var(--ease), background .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: white; background: var(--ink); box-shadow: 0 12px 24px rgba(32,32,30,.14); }
.btn-primary:hover { background: var(--coral); }
.btn-accent { background: var(--coral); color: white; }
.btn-accent:hover { background: var(--coral-dark); }
.btn-secondary { border-color: var(--line); background: rgba(252,251,248,.62); }
.btn-secondary:hover { background: var(--paper); }
.button-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

.hero {
  min-height: calc(100svh - 84px);
  padding: clamp(2.75rem, 5vw, 4.75rem) 0;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-copy { max-width: 800px; }
.hero-title {
  font-size: clamp(3.15rem, 6.25vw, 6.35rem);
  line-height: 1.01;
  letter-spacing: -.038em;
  text-wrap: balance;
}
.hero-orbit {
  min-height: clamp(400px, 56vh, 500px); position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(145deg, #1e1f1d, #34362f);
  box-shadow: var(--shadow);
}
.orbit-shape { position: absolute; border-radius: 999px; filter: saturate(.9); }
.orbit-a { width: 320px; height: 320px; background: var(--coral); right: -70px; top: -60px; }
.orbit-b { width: 240px; height: 240px; border: 58px solid #d9d1bd; left: 10%; bottom: 8%; }
.orbit-c { width: 155px; height: 280px; background: var(--olive); right: 14%; bottom: -40px; border-radius: 100px 100px 22px 22px; }
.orbit-label { position: absolute; left: 2rem; top: 2rem; color: white; max-width: 240px; font-size: .9rem; }
.orbit-caption { position: absolute; left: 2rem; bottom: 2rem; color: white; font-family: Georgia, serif; font-size: 2rem; line-height: 1.05; max-width: 300px; }

.marquee { border-block: 1px solid var(--line); overflow: hidden; background: rgba(252,251,248,.45); }
.marquee-track { display: flex; width: max-content; gap: 3rem; padding: 1rem 0; animation: marquee 28s linear infinite; }
.marquee span { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

.card { background: var(--paper); border: 1px solid rgba(32,32,30,.08); border-radius: var(--radius-lg); overflow: hidden; }
.card-pad { padding: clamp(1.25rem, 2.5vw, 2rem); }
.project-card {
  position: relative;
  transform: perspective(1100px) translate3d(var(--card-x, 0), var(--card-y, 0), 0) rotateX(var(--card-rx, 0deg)) rotateY(var(--card-ry, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .28s var(--ease), box-shadow .45s var(--ease);
}
.project-card:hover { box-shadow: var(--shadow); }
.project-card.cursor-tilt .project-thumb,
.project-card.cursor-tilt .card-pad { transform: translateZ(12px); }
.project-card.cursor-tilt .project-thumb,
.project-card.cursor-tilt .card-pad { transition: transform .35s var(--ease); }
.project-thumb { aspect-ratio: 4/3; overflow: hidden; background: #ddd; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover img { transform: scale(1.035); }
.project-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .76rem; text-transform: uppercase; letter-spacing: .11em; color: var(--olive); }
.project-card h3 { margin: .65rem 0 .4rem; font-family: Georgia, serif; font-size: clamp(1.55rem, 2vw, 2.15rem); line-height: 1.05; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.25rem; }
.section-head p { max-width: 540px; color: var(--muted); }
.section-title-relaxed {
  line-height: 1.08;
  letter-spacing: -.032em;
  text-wrap: balance;
}

.services-stagger .service-card {
  transition-property: opacity, transform;
  transition-duration: 400ms;
  transition-timing-function: var(--ease);
}
.services-stagger .service-card:nth-child(1) { transition-delay: 0ms; }
.services-stagger .service-card:nth-child(2) { transition-delay: 120ms; }
.services-stagger .service-card:nth-child(3) { transition-delay: 240ms; }
.services-stagger .service-card:nth-child(4) { transition-delay: 360ms; }

.service-card { min-height: 310px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.5rem; }
.service-number { font-family: Georgia, serif; font-size: 3.8rem; color: rgba(32,32,30,.16); }
.service-card h3 { margin: 0 0 .65rem; font-size: 1.35rem; }
.service-card p { color: var(--muted); margin: 0; }

.split-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.5rem; }
.panel-dark { background: var(--ink); color: white; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 4.5rem); }
.panel-light { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 4.5rem); }
.panel-dark .copy { color: rgba(255,255,255,.72); }

.process-list { counter-reset: process; }
.process-item { display: grid; grid-template-columns: 80px 1fr; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.process-item::before { counter-increment: process; content: '0' counter(process); font-family: Georgia, serif; font-size: 1.6rem; color: var(--coral); }
.process-item h3 { margin: 0 0 .35rem; }
.process-item p { margin: 0; color: var(--muted); }

.quote { font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 4.3rem); line-height: 1.02; letter-spacing: -.035em; }

.cta-panel {
  border-radius: var(--radius-lg); padding: clamp(2rem, 6vw, 5.5rem);
  background: var(--coral); color: white; overflow: hidden; position: relative;
}
.cta-panel::after { content: ''; position: absolute; width: 260px; height: 260px; border: 55px solid rgba(255,255,255,.18); border-radius: 50%; right: -55px; top: -80px; }
.cta-panel .btn { background: white; color: var(--ink); }

.page-hero { padding: clamp(4.5rem, 9vw, 8rem) 0 3rem; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 2.5rem; }
.filter-btn { border: 1px solid var(--line); background: transparent; padding: .65rem 1rem; border-radius: 999px; }
.filter-btn.active, .filter-btn:hover { background: var(--ink); color: white; }

.case-hero-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.case-hero-image img { width: 100%; }
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0 4rem; }
.case-meta div { border-top: 1px solid var(--line); padding-top: 1rem; }
.case-meta small { display: block; text-transform: uppercase; letter-spacing: .12em; color: var(--olive); margin-bottom: .35rem; }
.article-body, .case-body { max-width: 780px; margin-inline: auto; }
.article-body h2, .case-body h2 { font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; margin-top: 3.5rem; }
.article-body p, .case-body p { font-size: 1.08rem; color: #4f4f49; }
.article-body ul, .case-body ul { color: #4f4f49; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; margin-top: 3rem; }
.gallery figure { margin: 0; grid-column: span 6; overflow: hidden; border-radius: var(--radius-lg); }
.gallery figure:first-child { grid-column: 1 / -1; }

.form-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.5rem; align-items: start; }
.form-card { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 3rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field.full { grid-column: 1 / -1; }
label { font-size: .86rem; font-weight: 750; }
input, textarea, select {
  width: 100%; border: 1px solid rgba(32,32,30,.18); background: white; color: var(--ink);
  border-radius: var(--radius-sm); padding: .9rem 1rem; min-height: 52px; outline: none;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(201,95,71,.12); }
.field-error { color: #9c2d20; font-size: .78rem; min-height: 1.15rem; }
.form-status { margin-top: 1rem; padding: 1rem; border-radius: var(--radius-sm); display: none; }
.form-status.show { display: block; }
.form-status.success { background: #e7efe3; color: #315332; }
.form-status.error { background: #f8e5e2; color: #7f2d24; }
.honeypot { position: absolute !important; left: -9999px !important; }

.site-footer { background: var(--ink); color: white; margin-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2rem; padding: 4rem 0; }
.footer-title { font-family: Georgia, serif; font-size: 2rem; max-width: 340px; }
.footer-col h4 { font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.55); }
.footer-col a { display: block; margin: .65rem 0; color: rgba(255,255,255,.82); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 1.25rem 0; display: flex; justify-content: space-between; gap: 1rem; color: rgba(255,255,255,.55); font-size: .82rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero-grid, .split-panel, .form-wrap { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-orbit { min-height: 420px; }
  .selected-work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .three-col, .four-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav { position: fixed; inset: 84px 1rem auto; flex-direction: column; align-items: stretch; padding: 1rem; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); transform: translateY(-20px); opacity: 0; pointer-events: none; transition: .3s var(--ease); }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .case-meta { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 1.25rem), var(--max)); }
  .section { padding: 4rem 0; }
  .two-col, .three-col, .four-col, .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.25rem 0; }
  .hero-title { font-size: clamp(2.8rem, 13vw, 4.6rem); line-height: 1.04; }
  .hero-orbit { min-height: 340px; }
  .section-head { align-items: start; flex-direction: column; }
  .case-meta { grid-template-columns: 1fr; }
  .gallery figure, .gallery figure:first-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .display { font-size: clamp(3rem, 16vw, 5rem); }
}


@media (max-width: 640px) {
  .brand-logo img { width: 168px; max-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .project-card { transform: none !important; }
}

/* Homepage revision 02: full-bleed slider, tighter work-to-services rhythm, brand footer */
.hero-slider {
  position: relative;
  width: 100%;
  min-height: calc(100svh - 84px);
  overflow: hidden;
  background: var(--ink);
  color: white;
}
.hero-slides { position: relative; min-height: inherit; }
.hero-slide {
  position: absolute;
  inset: 0;
  min-height: inherit;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.025);
  transition: opacity 700ms var(--ease), visibility 700ms var(--ease), transform 1100ms var(--ease);
}
.hero-slide.is-active { opacity: 1; visibility: visible; transform: scale(1); z-index: 1; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18,18,17,.78) 0%, rgba(18,18,17,.42) 48%, rgba(18,18,17,.16) 100%), linear-gradient(0deg, rgba(18,18,17,.48), transparent 44%);
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 3rem), 1500px);
  min-height: calc(100svh - 84px);
  margin-inline: auto;
  padding: clamp(4rem, 10vh, 8rem) 0 8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero-slide-content .eyebrow { color: rgba(255,255,255,.78); }
.hero-slider-title {
  max-width: 980px;
  font-size: clamp(3.2rem, 7.3vw, 7.4rem);
  line-height: .94;
  letter-spacing: -.045em;
  text-wrap: balance;
  margin-bottom: 1.25rem;
}
.hero-slide-content > p { max-width: 700px; margin: 0; font-size: clamp(1.05rem, 1.45vw, 1.32rem); color: rgba(255,255,255,.82); }
.btn-light { background: white; color: var(--ink); }
.btn-light:hover { background: var(--coral); color: white; }
.btn-glass { border-color: rgba(255,255,255,.5); color: white; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.18); }
.hero-slide-caption { position: absolute; z-index: 3; left: max(1.5rem, calc((100vw - 1500px)/2)); bottom: 2rem; display: grid; gap: .15rem; font-size: .84rem; color: rgba(255,255,255,.8); }
.hero-slide-caption strong { color: white; font-size: .95rem; }
.hero-slider-controls { position: absolute; z-index: 5; right: max(1.5rem, calc((100vw - 1500px)/2)); bottom: 2rem; display: flex; align-items: center; gap: .9rem; }
.hero-dots { display: flex; gap: .55rem; }
.hero-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); transition: transform 250ms ease, background 250ms ease; }
.hero-dot.is-active { background: white; transform: scale(1.35); }
.hero-arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.42); color: white; background: rgba(20,20,19,.26); backdrop-filter: blur(8px); transition: background 250ms ease, transform 250ms ease; }
.hero-arrow:hover { background: var(--coral); transform: translateY(-2px); }
.selected-work-section { padding-bottom: 2rem; }
.selected-work-section .button-row { margin-top: 1.25rem; }
.home-services-section { padding-top: 1.35rem; }
.service-number { color: #C95F47; }
.site-footer { background: #C95F47; margin-top: 5rem; overflow: hidden; }
.site-footer .footer-full { width: 100%; padding-inline: clamp(1.25rem, 4vw, 4.5rem); }
.site-footer .footer-grid { width: 100%; max-width: none; margin: 0; padding-top: clamp(3.5rem, 7vw, 7rem); padding-bottom: 2rem; grid-template-columns: 1.5fr repeat(3, minmax(130px, .7fr)); }
.site-footer .footer-col h4 { color: rgba(255,255,255,.7); }
.site-footer .footer-col a { color: rgba(255,255,255,.94); }
.site-footer .footer-wordmark { margin: .5rem 0 1rem; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(4.5rem, 13vw, 13rem); line-height: .75; letter-spacing: -.07em; color: white; white-space: nowrap; }
.site-footer .footer-bottom { width: 100%; max-width: none; margin: 0; padding-inline: clamp(1.25rem, 4vw, 4.5rem); color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.3); }
.site-footer .brand-logo-footer img { filter: brightness(0) invert(1); }
@media (max-width: 760px) {
  .hero-slider, .hero-slides, .hero-slide { min-height: calc(100svh - 76px); }
  .hero-slide-content { min-height: calc(100svh - 76px); width: min(calc(100% - 2rem), 1500px); padding: 3rem 0 8.5rem; }
  .hero-slider-title { font-size: clamp(2.8rem, 13vw, 4.7rem); line-height: .98; }
  .hero-slide-caption { left: 1rem; bottom: 1.25rem; max-width: 55%; }
  .hero-slider-controls { right: 1rem; bottom: 1.25rem; }
  .hero-arrow { display: none; }
  .site-footer .footer-wordmark { font-size: clamp(3.7rem, 19vw, 7rem); white-space: normal; line-height: .85; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; transform: none; }
}

/* Revision 03 — tighter rhythm, dark footer, precise intro spacing */
:root {
  --section-space: clamp(3rem, 5vw, 5.25rem);
  --section-space-tight: clamp(2.25rem, 3.75vw, 3.75rem);
}

/* Reduce vertical spacing consistently across all pages. */
.section { padding-block: var(--section-space); }
.section-tight { padding-block: var(--section-space-tight); }
.page-hero {
  padding-top: clamp(3.5rem, 6.5vw, 6rem);
  padding-bottom: 0;
}

/* Keep a deliberate 100px bridge between page-intro copy and its next content block. */
.page-hero + .section,
.page-hero + .section-tight {
  padding-top: 100px;
}

/* Tighter spacing for stacked sections elsewhere. */
.section + .section,
.section + .section-tight,
.section-tight + .section,
.section-tight + .section-tight {
  padding-top: clamp(2.5rem, 4vw, 4.25rem);
}

/* Approved dark full-bleed footer. */
.site-footer {
  background: #20201E;
  margin-top: clamp(3rem, 5vw, 5rem);
}

/* Navigation hover: 10px lift, not 1rem. */
@media (min-width: 981px) and (hover: hover) {
  .main-nav a:not(.btn):hover {
    color: #C95F47;
    transform: translateY(-10px);
  }
}

@media (max-width: 980px) {
  :root {
    --section-space: 3.5rem;
    --section-space-tight: 2.75rem;
  }
  .page-hero { padding-top: 3.75rem; }
  .page-hero + .section,
  .page-hero + .section-tight { padding-top: 80px; }
}

@media (max-width: 640px) {
  :root {
    --section-space: 3rem;
    --section-space-tight: 2.25rem;
  }
  .page-hero { padding-top: 3rem; }
  .page-hero + .section,
  .page-hero + .section-tight { padding-top: 64px; }
  .section + .section,
  .section + .section-tight,
  .section-tight + .section,
  .section-tight + .section-tight { padding-top: 2.25rem; }
  .site-footer { margin-top: 3rem; }
}
