:root {
  color-scheme: light dark;
  --bg: #efefeb;
  --surface: #e4e4df;
  --surface-strong: #d9d9d2;
  --ink: #171715;
  --muted: #686861;
  --line: #c8c8c0;
  --dark: #171715;
  --dark-soft: #242421;
  --light: #f4f4ef;
  --accent: #d66a31;
  --radius: 14px;
  --max: 1380px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151513;
    --surface: #1e1e1b;
    --surface-strong: #292925;
    --ink: #f0f0ea;
    --muted: #a7a79e;
    --line: #383833;
    --dark: #eeeeE8;
    --dark-soft: #d9d9d2;
    --light: #171715;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #171715;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 56px), var(--max));
  height: 72px;
  margin: auto;
  color: var(--ink);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 650; letter-spacing: -.02em; }
.brand-mark {
  width: 19px;
  height: 19px;
  border: 2px solid currentColor;
  border-top-color: var(--accent);
  border-radius: 5px;
  transform: rotate(45deg);
}
.site-nav { display: flex; align-items: center; gap: 34px; font-size: 14px; }
.site-nav a { transition: color .25s ease; }
.site-nav a:hover { color: var(--accent); }
.nav-contact { padding: 10px 17px; border: 1px solid var(--line); border-radius: 999px; }
.menu-button { display: none; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  min-height: 100dvh;
  padding: 96px max(28px, calc((100vw - var(--max)) / 2)) 36px;
  background: var(--bg);
  color: var(--ink);
}
.hero-copy { position: relative; z-index: 2; max-width: 660px; padding-right: 6vw; }
.eyebrow { margin: 0 0 24px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 11ch;
  margin-bottom: 26px;
  font-size: clamp(48px, 5.35vw, 82px);
  line-height: .98;
  letter-spacing: -.058em;
  font-weight: 570;
}
.hero-text { max-width: 520px; margin-bottom: 34px; color: var(--muted); font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .25s var(--ease), background .25s ease;
}
.button:active { transform: translateY(1px) scale(.98); }
.button-primary { background: var(--accent); color: #171715; }
.button-primary:hover { background: #e47b43; transform: translateY(-2px); }
.text-link { border-bottom: 1px solid #676760; padding: 8px 0; font-size: 14px; }
.text-link span { display: inline-block; margin-left: 8px; color: var(--accent); transition: transform .25s var(--ease); }
.text-link:hover span { transform: translate(3px, 3px); }
.hero-visual { position: relative; margin: 0; height: min(68vw, 760px); max-height: calc(100dvh - 124px); overflow: hidden; border-radius: var(--radius); }
.hero-visual::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); border-radius: inherit; pointer-events: none; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }

.section-shell { width: min(calc(100% - 56px), var(--max)); margin-inline: auto; }
.statement { width: min(calc(100% - 56px), 1080px); margin: 0 auto; padding: 150px 0 170px; }
.statement > p { margin-bottom: 26px; color: var(--muted); font-size: 14px; }
.statement h2 { margin-bottom: 0; font-size: clamp(35px, 4.35vw, 68px); line-height: 1.08; letter-spacing: -.047em; font-weight: 540; }

.services { padding-bottom: 160px; }
.section-heading { margin-bottom: 54px; }
.section-heading h2, .work-heading h2, .about-copy h2, .contact h2 { margin-bottom: 16px; font-size: clamp(38px, 4.4vw, 66px); line-height: 1; letter-spacing: -.05em; font-weight: 560; }
.section-heading p, .work-heading > p:last-child { color: var(--muted); font-size: 17px; }
.service-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 14px; }
.service {
  display: grid;
  grid-template-columns: 60px 1fr;
  min-height: 370px;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius);
  background: var(--surface);
}
.service-featured { grid-row: span 2; min-height: 754px; align-items: end; background: var(--surface-strong); }
.service-dark { background: #242421; color: #efefe9; }
.service-index { color: var(--accent); font: 700 12px/1 "SFMono-Regular", Consolas, monospace; }
.service h3 { max-width: 10ch; margin-bottom: 20px; font-size: clamp(29px, 3vw, 46px); line-height: 1.02; letter-spacing: -.045em; font-weight: 570; }
.service p { max-width: 480px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.service-dark p { color: #aaa9a1; }
.service ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; }
.service li { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
.service-dark li { border-color: #494943; color: #c6c5bd; }

.work { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9vw; align-items: center; padding-bottom: 180px; }
.work-heading > p:last-child { max-width: 480px; line-height: 1.55; }
.work-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 500px;
  padding: clamp(26px, 4vw, 50px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface), var(--bg));
}
.work-placeholder::before { content: ""; position: absolute; right: -12%; bottom: -35%; width: 70%; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; opacity: .7; }
.placeholder-label { color: var(--muted); font-size: 13px; }
.work-placeholder strong { position: relative; font-size: clamp(42px, 6vw, 82px); line-height: .9; letter-spacing: -.06em; font-weight: 520; }
.placeholder-line { width: 42px; height: 3px; background: var(--accent); }

.about { display: grid; grid-template-columns: 1fr 1fr; min-height: 680px; padding: 0; margin-bottom: 160px; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.about-visual { position: relative; display: grid; place-items: center; overflow: hidden; background: #20201d; }
.about-word { position: relative; color: #e8e8e1; font-size: clamp(90px, 15vw, 230px); font-weight: 700; letter-spacing: -.1em; }
.ember { position: absolute; display: block; background: var(--accent); border-radius: 50%; filter: blur(1px); }
.ember-one { width: 210px; height: 210px; left: 10%; top: 16%; opacity: .7; }
.ember-two { width: 80px; height: 80px; right: 14%; bottom: 18%; opacity: .45; }
.ember-three { width: 18px; height: 18px; right: 24%; top: 20%; }
.about-copy { align-self: center; padding: clamp(42px, 6vw, 84px); }
.about-copy p { max-width: 560px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.principles { display: grid; gap: 12px; margin-top: 40px; }
.principles span { padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }

.contact { display: flex; align-items: flex-end; justify-content: space-between; min-height: 520px; margin-bottom: 28px; padding: clamp(36px, 7vw, 96px); border-radius: var(--radius); background: #d66a31; color: #171715; }
.contact h2 { max-width: 11ch; }
.contact-copy > p { margin-bottom: 34px; font-size: 18px; }
.button-light { background: #171715; color: #f3f3ed; }
.button-light:hover { background: #2a2a27; transform: translateY(-2px); }
.contact-note { margin: 0; text-align: right; font-size: 13px; line-height: 1.7; }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: min(calc(100% - 56px), var(--max)); min-height: 120px; margin: auto; color: var(--muted); font-size: 12px; }
.site-footer p { margin: 0; }
.site-footer p:last-child { text-align: right; }
.footer-brand { color: var(--ink); font-size: 14px; }
.footer-brand .brand-mark { width: 16px; height: 16px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 34px; min-height: 100dvh; padding-top: 114px; }
  .hero-copy { max-width: 720px; padding: 0; }
  h1 { max-width: 12ch; }
  .hero-visual { height: 44vh; min-height: 320px; max-height: none; }
  .service-grid { grid-template-columns: 1fr; }
  .service-featured { grid-row: auto; min-height: 480px; }
  .work { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-visual { min-height: 470px; }
}

@media (max-width: 700px) {
  .site-header, .section-shell, .site-footer, .statement { width: min(calc(100% - 32px), var(--max)); }
  .site-header { height: 64px; }
  .menu-button { display: block; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: transparent; color: inherit; }
  .site-nav { position: absolute; top: 58px; right: 0; display: none; width: 190px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 24px 50px rgb(23 23 21 / .18); }
  .site-nav.is-open { display: grid; gap: 6px; }
  .site-nav a { padding: 10px; }
  .nav-contact { border: 0; }
  .hero { padding: 94px 16px 16px; }
  h1 { font-size: clamp(44px, 13vw, 66px); }
  .hero-text { max-width: 32ch; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .hero-visual { min-height: 280px; height: 38vh; }
  .statement { padding: 100px 0 110px; }
  .services { padding-bottom: 110px; }
  .service { grid-template-columns: 1fr; gap: 40px; min-height: 410px; padding: 28px; }
  .service-featured { min-height: 480px; }
  .work { gap: 46px; padding-bottom: 110px; }
  .work-placeholder { min-height: 390px; }
  .about { margin-bottom: 110px; }
  .about-visual { min-height: 330px; }
  .about-copy { padding: 40px 26px 48px; }
  .contact { align-items: flex-start; flex-direction: column; justify-content: space-between; min-height: 550px; margin-bottom: 16px; padding: 38px 26px; }
  .contact-note { text-align: left; }
  .button-light { max-width: 100%; font-size: 13px; }
  .site-footer { grid-template-columns: 1fr; gap: 18px; padding: 36px 0; }
  .site-footer p:last-child { text-align: left; }
}

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