@import url('/fonts/fonts.css');

:root {
  --ink: #171512;
  --paper: #efeeeb;
  --warm: #d0a16c;
  --orange: #ef5b13;
  --line: rgba(23, 21, 18, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.menu-open, html.menu-open body { overflow: hidden; }
body { margin: 0; background: #f8f8f6; color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }

.site-header {
  position: fixed; z-index: 30; inset: 0 0 auto 0; height: 88px; padding: 0 clamp(22px, 4vw, 64px);
  display: flex; align-items: center; justify-content: space-between; pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { display: block; width: 108px; height: 70px; object-fit: contain; object-position: left center; }
.brand-name { font-size: 14px; font-weight: 700; letter-spacing: .18em; }
.brand-mark { position: relative; width: 30px; height: 32px; display: block; transform: rotate(-8deg); }
.brand-mark i { position: absolute; display: block; border-radius: 2px; }
.brand-mark i:nth-child(1) { left: 2px; top: 0; width: 6px; height: 27px; background: #c8973e; }
.brand-mark i:nth-child(2) { left: 12px; top: 4px; width: 17px; height: 7px; background: var(--orange); }
.brand-mark i:nth-child(3) { left: 9px; bottom: 1px; width: 20px; height: 6px; background: #c8973e; }

.menu-toggle { width: 50px; height: 50px; border: 1px solid var(--ink); border-radius: 50%; background: rgba(248,248,246,.76); cursor: pointer; display: grid; place-content: center; gap: 6px; }
.menu-toggle span { display: block; width: 19px; height: 1px; background: var(--ink); transition: transform .3s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.drawer { position: fixed; z-index: 25; top: 0; right: 0; width: min(470px, 90vw); height: 100dvh; background: #171512; color: #f4f1ea; transform: translateX(102%); transition: transform .55s cubic-bezier(.77,0,.18,1); }
.drawer.open { transform: translateX(0); }
.drawer-inner { height: 100%; padding: 110px clamp(28px, 5vw, 64px) 45px; display: flex; flex-direction: column; }
.drawer-label, .section-kicker { text-transform: uppercase; letter-spacing: .18em; font-size: 11px; }
.drawer nav { display: grid; margin-top: 30px; }
.drawer nav a { padding: 10px 0; font-family: 'Advent Pro', sans-serif; font-size: clamp(38px, 4.2vw, 52px); font-weight: 300; line-height: 1; letter-spacing: .01em; text-decoration: none; white-space: nowrap; border-bottom: 1px solid rgba(255,255,255,.12); }
.drawer-contact { margin-top: auto; font-size: 12px; line-height: 1.6; }
.drawer-contact a { color: #f08a50; }
.drawer-backdrop { position: fixed; z-index: 20; inset: 0; background: rgba(0,0,0,.28); opacity: 0; visibility: hidden; transition: .35s; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }

.hero { position: relative; min-height: 100svh; overflow: hidden; background: var(--paper); isolation: isolate; }
.canvas-wrap { position: absolute; inset: 0 0 0 42%; width: 58%; overflow: hidden; }
.model-loader { position: absolute; z-index: 8; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; background: rgba(239,238,235,.9); text-align: center; transition: opacity .45s, visibility .45s; }
.model-loader.is-complete { opacity: 0; }
.model-loader.is-hidden { visibility: hidden; pointer-events: none; }
.model-loader__label { margin: 0 0 22px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.model-loader__track { position: relative; width: min(260px, 72%); height: 2px; overflow: hidden; background: rgba(23,21,18,.16); }
.model-loader__track span { position: absolute; inset: 0 auto 0 -42%; width: 42%; background: var(--ink); animation: loader-slide 1.15s cubic-bezier(.65,0,.35,1) infinite; }
.model-loader__message { margin: 18px 0 0; font: italic 15px/1.5 Georgia, serif; }
@keyframes loader-slide { 50% { left: 100%; } 100% { left: 100%; } }
#chair-scene { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s ease; }
#chair-scene.ready { opacity: 1; }
.scene-fallback { position: absolute; width: 54vmin; height: 54vmin; top: 51%; left: 60%; transform: translate(-50%,-50%); border-radius: 45% 50% 48% 40%; background: radial-gradient(circle at 40% 35%, #dfbb8a, #9d693c 66%, transparent 67%); opacity: .2; z-index: -1; }
.hero-copy { position: relative; z-index: 2; min-height: 100svh; width: min(720px, 72vw); margin-left: clamp(26px, 10vw, 168px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; pointer-events: none; }
.eyebrow { margin: 0 0 16px 4px; text-transform: uppercase; letter-spacing: .2em; font-size: 11px; }
.eyebrow span { color: var(--orange); }
.hero h1 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(78px, 11.2vw, 174px); font-weight: 400; line-height: .77; letter-spacing: -.075em; }
.hero h1 em { margin-left: .45em; font-weight: 400; }
.tagline { align-self: center; margin: 38px 0 30px; font-family: Georgia, serif; font-size: clamp(17px, 1.8vw, 26px); font-style: italic; }
.outline-button { align-self: center; pointer-events: auto; min-width: 205px; padding: 15px 20px; border: 1px solid currentColor; border-radius: 100px; text-align: center; text-transform: uppercase; letter-spacing: .11em; font-size: 10px; text-decoration: none; transition: background .25s, color .25s; }
.outline-button:hover { color: white; background: var(--ink); }
.outline-button span { margin-left: 14px; }
.hero-index { position: absolute; z-index: 2; right: clamp(24px, 4vw, 60px); bottom: 38px; font-size: 10px; letter-spacing: .14em; }
.scroll-cue { position: absolute; z-index: 2; left: clamp(24px, 4vw, 60px); bottom: 32px; text-transform: uppercase; font-size: 9px; letter-spacing: .14em; }
.scroll-cue span { display: inline-block; width: 34px; height: 1px; margin: 0 9px 3px 0; background: currentColor; }

.intro { min-height: 80vh; padding: 15vh clamp(28px, 10vw, 160px); background: #171512; color: #f4f1ea; }
.intro h2 { max-width: 960px; margin: 8vh 0 40px; font: 400 clamp(44px, 7vw, 102px)/.98 Georgia, serif; letter-spacing: -.045em; }
.intro > p:last-child { max-width: 550px; margin-left: auto; font-size: 16px; line-height: 1.8; color: #c9c5bc; }
.placeholder-section { min-height: 55vh; padding: 10vh clamp(28px, 10vw, 160px); display: grid; grid-template-columns: 80px 1fr auto; align-items: center; border-bottom: 1px solid var(--line); }
.placeholder-section span, .placeholder-section p { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.placeholder-section h2 { font: 400 clamp(64px, 9vw, 130px) Georgia, serif; margin: 0; }
.contact { min-height: 60vh; padding: 12vh clamp(28px, 10vw, 160px); display: flex; flex-direction: column; justify-content: center; background: #df6a2c; }
.contact a { margin: 60px 0 30px; font: 400 clamp(28px, 5vw, 76px)/1.1 Georgia, serif; overflow-wrap: anywhere; }

@media (max-width: 700px) {
  .site-header { height: 72px; }
  .brand-logo { width: 88px; height: 58px; }
  .menu-toggle { width: 44px; height: 44px; margin-right: 12px; }
  .hero-copy { z-index: 5; width: 100%; margin: 0; padding: 11vh 22px 15vh; justify-content: flex-start; }
  .eyebrow { margin-top: 8vh; }
  .hero h1 {
    font-size: clamp(66px, 24vw, 108px);
    line-height: .82;
    -webkit-text-stroke: 1px rgba(239, 238, 235, .92);
    paint-order: stroke fill;
    text-shadow: 0 0 7px #efeeeb, 0 0 16px rgba(239, 238, 235, .92);
  }
  .hero h1 em { margin-left: .2em; }
  .tagline {
    align-self: flex-start;
    max-width: 220px;
    margin-top: 24px;
    font-size: 17px;
    -webkit-text-stroke: 1px rgba(239, 238, 235, .98);
    paint-order: stroke fill;
    text-shadow: 0 0 5px #efeeeb, 0 0 11px #efeeeb, 0 0 18px rgba(239, 238, 235, .9);
  }
  .outline-button { align-self: flex-start; background: rgba(239, 238, 235, .82); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
  .canvas-wrap { inset: 28% 0 auto 0; width: 100%; height: 72%; }
  .hero-index { bottom: 22px; }
  .scroll-cue { display: none; }
  .placeholder-section { grid-template-columns: 45px 1fr; }
  .placeholder-section p { grid-column: 2; }
}

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