:root {
  /* stone carries white text (4.5:1); the light and mid tints are for non-text surfaces and controls */
  --taupe: #7a766a;
  --taupe-mid: #8f8b7f;
  --taupe-light: #aca99e;
  --ink: #111111;
  --white: #ffffff;
  --muted: #6b6b6b;
  --accent: #f47a32;
  --accent-deep: #b34d16;
  --display: "Jost", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-color: var(--taupe) var(--white); }
::selection { background: var(--accent-deep); color: var(--white); }
input, textarea { caret-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }
.hero :focus-visible, .services :focus-visible, .cta :focus-visible,
.footer :focus-visible, .project-cta:focus-visible, .nav.open :focus-visible { outline-color: var(--white); }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

.eyebrow {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 48px);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 40px;
  text-wrap: balance;
}
.eyebrow.light { color: var(--white); }

.link-underline {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: opacity .3s;
}
.link-underline:hover { opacity: .6; }
.link-underline.light { color: var(--white); }

/* ---------- HEADER ---------- */
.header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  display: flex; align-items: flex-start; justify-content: space-between;
  pointer-events: none;
}
.header > * { pointer-events: auto; }
.logo {
  width: 88px; height: 88px;
  background: var(--white);
  display: grid; place-items: center;
  transform-origin: top left;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.logo img { width: 56px; }
.header.scrolled .logo { transform: scale(.78); }
.header-right { display: flex; align-items: flex-start; }
.nav {
  display: flex; gap: 40px;
  padding: 24px 28px 24px var(--gutter);
  font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--white);
  transition: color .3s, background .3s;
}
.nav a { position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.header.scrolled .nav { background: var(--white); color: var(--ink); }
.lang {
  display: flex; align-items: center; gap: 6px;
  padding: 24px var(--gutter) 24px 0;
  font-size: 13px; font-weight: 500; letter-spacing: .04em;
  color: var(--white);
  transition: color .3s, background .3s;
}
.lang span { opacity: .6; }
.lang button { padding: 0 2px 2px; opacity: .65; border-bottom: 1px solid transparent; transition: opacity .2s; }
.lang button:hover { opacity: 1; }
.lang button[aria-pressed="true"] { opacity: 1; border-bottom-color: currentColor; }
.header.scrolled .lang { background: var(--white); color: var(--ink); }
.nav-mobile-only { display: none; }
.burger { display: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh; min-height: 560px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--taupe);
}
.hero-bg {
  position: absolute; inset: -5%;
  background-size: cover; background-position: center;
  transform: scale(1.08);
  animation: heroZoom 2.4s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-video.active { opacity: 1; }
/* hero-1.mp4 has white borders (~10% each side) baked into the file; zoom past them */
.hero-video--framed { transform: scale(1.42); }
/* the clips are bright interiors, so the shade is stronger at the bottom where the text sits */
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,0) 80%),
    linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.15) 30%, rgba(0,0,0,.3) 55%, rgba(0,0,0,.7) 100%);
}
.hero-title, .hero-info { text-shadow: 0 1px 24px rgba(0,0,0,.25); }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-content {
  position: relative;
  width: 100%;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 48px;
  padding: 0 var(--gutter) max(16vh, 150px);
}
.hero-info {
  max-width: 380px; color: var(--white);
  padding-bottom: 12px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 1s .5s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.hero-title .line { white-space: nowrap; }
@media (max-width: 1100px) {
  .hero-content { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero-info { max-width: 460px; }
}
.hero-lead {
  font-size: 15px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .03em; line-height: 1.5; margin-bottom: 14px;
}
.hero-sub { font-size: 15px; line-height: 1.65; opacity: .9; }
.hero-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.5);
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
}
.hero-meta a:hover { color: var(--accent); }
.hero-title {
  position: relative;
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(48px, 9vw, 150px);
  line-height: .95;
  text-transform: uppercase;
  color: var(--white);
}
/* extra top room so accents (ê, é, à) aren't clipped by the reveal mask */
.hero-title .line { display: block; overflow: hidden; padding-top: .18em; margin-top: -.18em; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: .15s; }
@keyframes rise { to { transform: none; } }
.hero-cta {
  position: absolute; right: 0; bottom: 64px;
  background: var(--ink); color: var(--white);
  padding: 22px 28px;
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  transition: background .3s;
}
.hero-cta:hover { background: var(--accent-deep); }
/* ---------- INTRO ---------- */
.intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8vw;
  padding: 72px var(--gutter);
}
.intro-lead {
  font-size: 15px; font-weight: 500; text-transform: uppercase; line-height: 1.6;
  letter-spacing: .02em; max-width: 440px; text-wrap: balance;
}
.intro-text { font-size: 15px; line-height: 1.7; color: #333; max-width: 520px; }

/* ---------- STORY ---------- */
.story {
  position: relative;
  display: grid; grid-template-columns: 58% 42%;
  min-height: 620px;
  margin-bottom: 0;
}
.story-img {
  background-size: cover; background-position: center;
  min-height: 520px;
}
.story-card {
  position: relative; z-index: 2;
  background: var(--white);
  padding: 64px var(--gutter) 64px;
  margin-right: -10%;
  align-self: center;
}
.story-lines {
  position: absolute; inset: 10% 20% auto auto;
  width: 60%; color: #ddd; z-index: -1;
}
.story-text {
  font-size: 17px; line-height: 1.75; color: #2a2a2a;
  max-width: 60ch; margin-bottom: 40px;
}

/* ---------- SERVICES ---------- */
.services {
  background: var(--taupe);
  padding: 110px var(--gutter);
  color: var(--white);
}
.accordion { list-style: none; }
.acc-item { border-bottom: 1px solid rgba(255,255,255,.6); }
.acc-head {
  width: 100%;
  display: grid; grid-template-columns: 70px 1fr 32px; align-items: center;
  padding: 26px 0;
  text-align: left;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(17px, 1.6vw, 22px);
  text-transform: uppercase; letter-spacing: .03em;
}
.acc-num { font-weight: 300; }
.acc-icon {
  position: relative; width: 30px; height: 30px;
  border: 1px solid rgba(255,255,255,.8); border-radius: 50%;
  transition: transform .4s, background .3s;
}
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 1px; background: currentColor;
  transform: translate(-50%, -50%);
}
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s; }
.acc-item.open .acc-icon { background: rgba(255,255,255,.15); }
.acc-item.open .acc-icon::after { transform: translate(-50%, -50%) rotate(0); }
.acc-head:hover .acc-title { opacity: .75; }
.acc-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .45s ease;
}
.acc-body > p {
  overflow: hidden;
  padding-left: 70px; max-width: 760px;
  font-size: 15px; line-height: 1.7;
}
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-item.open .acc-body > p { padding-bottom: 28px; }

/* ---------- PROJECTS ---------- */
.projects { position: relative; height: 320vh; background: var(--white); }
.projects-sticky {
  position: sticky; top: 0;
  height: 100vh; overflow: hidden;
  display: flex; align-items: center;
}
.projects-sticky::after {
  /* black block, as on the reference site */
  content: ""; position: absolute; top: 9vh; right: 0;
  width: 30vw; height: 82vh; background: var(--ink); z-index: 0;
}
.projects-label {
  position: absolute; top: 8vh; left: var(--gutter); z-index: 3;
}
.projects-track {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 28px;
  margin-top: 14vh;
  padding-left: calc(var(--gutter) + 6vw);
  will-change: transform;
}
.project { flex: 0 0 auto; width: clamp(180px, min(21vw, 30vh), 320px); display: flex; flex-direction: column; gap: 14px; }
.project-img {
  aspect-ratio: 3 / 4.6;
  background-size: cover; background-position: center;
  filter: saturate(.9);
  transition: filter .5s, transform .6s;
}
.project:hover .project-img { filter: saturate(1.1); transform: scale(1.02); }
.project-img { overflow: hidden; background: var(--taupe-light); }
.project-img video { display: block; width: 100%; height: 100%; object-fit: cover; }
.project-meta h3 { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; }
.project-place { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.project-num { display: block; font-family: var(--display); font-size: 40px; font-weight: 300; margin-top: 6px; }
.p-low { transform: translateY(6vh); }
.p-high { transform: translateY(-4vh); }
.p-mid { transform: translateY(2vh); }
.project-cta {
  flex: 0 0 auto;
  width: clamp(180px, min(21vw, 30vh), 320px); aspect-ratio: 3 / 4.6;
  margin-right: 18vw;
  background: var(--taupe); color: var(--white);
  padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  font-family: var(--display); font-size: 26px; font-weight: 300; text-transform: uppercase;
  transition: background .3s;
}
.project-cta:hover { background: var(--accent-deep); }
.project-cta .link-underline { font-family: var(--body); align-self: flex-start; }

/* ---------- STATS ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;
}
.stat { padding: 64px var(--gutter); border-right: 1px solid #e5e5e5; }
.stat:last-child { border-right: 0; }
.stat-num { display: block; font-family: var(--display); font-weight: 200; font-variant-numeric: tabular-nums; font-size: clamp(54px, 6vw, 96px); line-height: 1; }
.stat-label { display: block; margin-top: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ---------- PROCESS ---------- */
.process { padding: 120px var(--gutter); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.step { border-top: 1px solid var(--ink); padding-top: 24px; }
.step-num { font-family: var(--display); font-weight: 300; font-size: 40px; display: block; margin-bottom: 18px; color: var(--taupe); }
.step h3 { font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.step p { font-size: 14px; line-height: 1.7; color: #444; }

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  position: relative;
  padding: 120px var(--gutter) 100px;
  background: #f4f3f0;
}
.quote-mark {
  font-family: Georgia, serif; font-size: 160px; line-height: .6;
  color: var(--taupe); margin-bottom: 20px;
}
.slider { position: relative; min-height: 220px; max-width: 980px; }
.slide {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s, transform .6s;
  pointer-events: none;
}
.slide.active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.slide blockquote {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(20px, 2.2vw, 30px); line-height: 1.45;
}
.slide figcaption { margin-top: 28px; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.slider-dots { display: flex; gap: 8px; margin-top: 36px; }
/* 24px-tall hit area around a 2px bar */
.slider-dots button { position: relative; width: 44px; height: 24px; }
.slider-dots button::before {
  content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px;
  background: var(--taupe-mid); transition: background .3s;
}
.slider-dots button:hover::before { background: var(--taupe); }
.quote-note { margin-top: 20px; font-size: 12px; color: var(--muted); }
.quote-note:empty { display: none; }
.slider-dots button.active::before { background: var(--ink); }

/* ---------- CTA ---------- */
.cta { background: var(--taupe); color: var(--white); padding: 120px var(--gutter); }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: start; }
.cta-title {
  font-family: var(--display); font-weight: 200;
  font-size: clamp(40px, 5.4vw, 88px); line-height: 1; text-transform: uppercase;
  text-wrap: balance;
}
.contact-form { display: grid; gap: 26px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0;
  border-bottom: 1px solid rgba(255,255,255,.7);
  padding: 22px 0 10px; color: var(--white);
  font: 15px var(--body); outline: none; resize: vertical;
}
.field label {
  position: absolute; left: 0; top: 20px;
  font-size: 13px; text-transform: uppercase; letter-spacing: .05em;
  transition: top .25s, font-size .25s, opacity .25s; pointer-events: none;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: 0; font-size: 11px;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--white); }
.btn-dark {
  justify-self: start;
  background: var(--ink); color: var(--white);
  padding: 20px 36px;
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em;
  transition: background .3s;
}
.btn-dark:hover { background: var(--accent-deep); }

.form-note { font-size: 14px; line-height: 1.6; max-width: 460px; user-select: text; }
.form-note[hidden] { display: none; }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: #cfcfcf; padding: 80px var(--gutter) 32px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px; align-items: start; }
.footer-logo { width: 150px; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; line-height: 1.6; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 64px; padding-top: 24px; border-top: 1px solid #2a2a2a;
  font-size: 12px; color: #888;
}

/* ---------- REVEAL ---------- */
/* hidden-until-seen only when the script is running, so the page is complete without it */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .typed .ch { opacity: 0; transition: opacity .05s; }
.js .typed .ch.on { opacity: 1; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .intro, .cta-inner { grid-template-columns: 1fr; gap: 28px; }
  .story { grid-template-columns: 1fr; }
  .story-card { margin-right: 0; padding: 56px var(--gutter); }
  .story-img { min-height: 360px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .logo { width: 68px; height: 68px; }
  .logo img { width: 44px; }
  .header.scrolled .logo { transform: none; }
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 68px; height: 68px; background: var(--ink); padding: 0 22px;
  }
  .burger span { display: block; height: 1px; background: var(--white); transition: transform .3s; }
  .lang, .header.scrolled .lang {
    height: 68px; padding: 0 10px 0 18px;
    background: var(--ink); color: var(--white);
  }
  .lang button { padding: 10px 2px; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 28px;
    background: var(--taupe) !important; color: var(--white) !important;
    font-family: var(--display); font-size: 34px; font-weight: 300;
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav-mobile-only { display: block; }

  .hero-content { flex-direction: column; align-items: flex-start; gap: 24px; padding-bottom: 130px; }
  .hero-info { max-width: none; padding-bottom: 0; }
  .hero-lead, .hero-sub { font-size: 14px; }
  .hero-cta { bottom: 40px; }
  .acc-head { grid-template-columns: 48px 1fr 32px; }
  .acc-body > p { padding-left: 48px; }

  .projects { height: auto; }
  .projects-sticky { position: static; height: auto; display: block; padding: 90px 0 60px; }
  .projects-sticky::after { display: none; }
  .projects-label { position: static; padding: 0 var(--gutter); }
  .projects-track { flex-direction: column; align-items: stretch; gap: 48px; padding: 0 var(--gutter); transform: none !important; }
  .project, .project-cta { width: 100%; }
  .project.meta-top { flex-direction: column-reverse; }
  .p-low, .p-high, .p-mid { transform: none; }
  .project-cta { margin-right: 0; aspect-ratio: auto; min-height: 220px; }

  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid #e5e5e5; padding: 40px var(--gutter); }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-title .line > span, .hero-bg { transform: none; }
  .js .reveal, .js .typed .ch, .hero-info { opacity: 1; transform: none; }
  .hero-video { display: none; }
}
