:root {
  --bg: #0d0d0d;
  --fg: #b7ab98;
  --accent: #eb5939;
  --dim: rgba(183, 171, 152, .18);
  --display: "Urbanist", "Avant Garde", "Century Gothic", sans-serif;
  --body: "Nunito Sans", system-ui, sans-serif;
  --spot: 0px;
  --x: -999px;
  --y: -999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--accent); }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 48px;
  transition: opacity .8s ease, visibility .8s;
}
.intro.is-gone { opacity: 0; visibility: hidden; }
.intro-btn {
  font: 600 13px/1 var(--display);
  letter-spacing: .45em; text-transform: uppercase; text-indent: .45em;
  color: var(--fg); background: transparent;
  border: 1px solid var(--fg); border-radius: 999px;
  padding: 16px 52px; cursor: pointer;
  transition: background .3s, color .3s;
}
.intro-btn:hover { background: var(--fg); color: var(--bg); }

.logo-mark {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--fg); position: relative; overflow: hidden;
}
.logo-mark span {
  position: absolute; left: 50%; bottom: -4px; width: 26px; height: 30px;
  transform: translateX(-50%);
  background: var(--bg);
  clip-path: polygon(0 100%, 8% 10%, 32% 32%, 68% 32%, 92% 10%, 100% 100%);
}
.logo-mark span::before, .logo-mark span::after {
  content: ""; position: absolute; top: 55%; width: 3px; height: 3px; border-radius: 50%; background: var(--fg);
}
.logo-mark span::before { left: 36%; }
.logo-mark span::after { right: 36%; }
.logo-mark.small { width: 30px; height: 30px; }
.logo-mark.small span { width: 16px; height: 19px; bottom: -3px; }
.logo-mark.small span::before, .logo-mark.small span::after { width: 2px; height: 2px; }

/* ---------- Fixed UI ---------- */
.brand { position: fixed; top: 28px; left: 28px; z-index: 50; }
.nav {
  position: fixed; top: 30px; right: 32px; z-index: 50;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  font-size: 13px; text-transform: uppercase; letter-spacing: .04em;
}
.nav a { opacity: .7; transition: opacity .2s, color .2s; }
.nav a:hover, .nav a.is-active { opacity: 1; color: var(--fg); }
.social {
  position: fixed; left: 28px; bottom: 40px; z-index: 50;
  list-style: none; display: flex; flex-direction: column; gap: 22px;
  font: 700 11px var(--display); letter-spacing: .05em;
}
.social a { opacity: .7; transition: opacity .2s, color .2s; }
.social a:hover { opacity: 1; color: var(--accent); }
.side-note {
  position: fixed; right: 30px; bottom: 48px; z-index: 50;
  writing-mode: vertical-rl; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .5;
}

/* Cursor dot (desktop only) */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 60; pointer-events: none;
  width: 14px; height: 14px; border-radius: 50%; background: var(--accent);
  transform: translate(-50%, -50%);
  transition: width .3s, height .3s, opacity .3s;
  opacity: 0;
}
.cursor.is-hidden { width: 0; height: 0; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Sections & spotlight ---------- */
.sec { position: relative; }
[data-spot] { position: relative; display: block; }
.layer.alt {
  position: absolute; inset: 0;
  background: var(--accent); color: var(--bg);
  clip-path: circle(var(--spot) at var(--x) var(--y));
  transition: clip-path .35s cubic-bezier(.2,.7,.3,1);
  pointer-events: none;
}
.layer.alt em { color: var(--bg); }
[data-spot].is-moving .layer.alt { transition: clip-path .35s cubic-bezier(.2,.7,.3,1), none; }

.label, .eyebrow {
  font: 600 13px var(--display); letter-spacing: .5em; text-transform: uppercase;
}
.pad { padding: 0 12vw 40px; }

/* Hero */
.hero .layer { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 100px 20px; overflow: hidden; }
.eyebrow { margin-bottom: 18px; opacity: .8; }
.mega {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(56px, 10.5vw, 150px); line-height: .9; letter-spacing: -.05em;
  display: flex; flex-direction: column; align-items: center;
}
.mega .accent { color: var(--accent); }
.layer.alt .mega .accent { color: var(--bg); }
.hero-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vw 50vh at 70% 45%, rgba(183,171,152,.13), transparent 70%),
    radial-gradient(30vw 40vh at 25% 70%, rgba(235,89,57,.08), transparent 70%);
}
.hero .base { position: relative; z-index: 0; }
.hero .base .mega span { opacity: 0; transform: translateY(40px); transition: opacity .9s, transform .9s cubic-bezier(.2,.7,.3,1); }
body.is-started .hero .base .mega span { opacity: 1; transform: none; }
body.is-started .hero .base .mega span:nth-child(2) { transition-delay: .08s; }
body.is-started .hero .base .mega span:nth-child(3) { transition-delay: .16s; }
body.is-started .hero .base .mega span:nth-child(4) { transition-delay: .24s; }
body.is-started .hero .base .mega span:nth-child(5) { transition-delay: .32s; }
.cite { margin-top: 28px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }

/* About / statements */
.about .layer { padding: 22vh 12vw; }
.about .label { margin-bottom: 32px; }
.statement {
  font: 700 clamp(30px, 4.6vw, 66px)/1.08 var(--display); letter-spacing: -.035em;
  max-width: 1100px;
}
.reveal .w { opacity: .15; transition: opacity .4s; }
.reveal .w.on { opacity: 1; }

/* Services */
.services { padding: 18vh 0 10vh; }
.service .layer {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 18px 12vw; border-top: 1px solid var(--dim);
}
.service:last-child .layer.base { border-bottom: 1px solid var(--dim); }
.service h2 {
  font: 700 clamp(56px, 9vw, 130px)/1 var(--display); text-transform: uppercase; letter-spacing: -.05em;
}
.service p { max-width: 260px; font-size: 14px; text-align: right; }

/* History */
.history { padding: 14vh 0; }
.row .layer {
  display: grid; grid-template-columns: 120px 1fr auto; align-items: baseline; gap: 24px;
  padding: 26px 12vw; border-top: 1px solid var(--dim);
}
.row:last-child .layer.base { border-bottom: 1px solid var(--dim); }
.year { font: 600 12px var(--display); letter-spacing: .3em; text-transform: uppercase; }
.role { font: 700 clamp(22px, 2.6vw, 32px) var(--display); letter-spacing: -.03em; }
.org { font-size: 14px; }

/* Contact */
.contact { padding: 14vh 0 0; }
.contact-row .layer {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap;
  padding: 30px 12vw; border-top: 1px solid var(--dim);
}
.contact-row:last-child .layer.base { border-bottom: 1px solid var(--dim); }
.contact-row .k { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
.contact-row .v { font: 700 clamp(26px, 4vw, 56px) var(--display); letter-spacing: -.04em; }
.foot { padding: 60px 12vw 50px; font-size: 12px; opacity: .6; }
.foot a { text-decoration: underline; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .brand { top: 18px; left: 16px; }
  .nav { top: 18px; right: 16px; font-size: 12px; }
  .social, .side-note { display: none; }
  .pad { padding: 0 16px 28px; }
  .about .layer { padding: 16vh 16px; }
  .service .layer { flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 16px; }
  .service p { text-align: left; }
  .row .layer { grid-template-columns: 1fr; gap: 4px; padding: 20px 16px; }
  .contact-row .layer { padding: 22px 16px; flex-direction: column; gap: 4px; }
  .contact-row .v { overflow-wrap: anywhere; }
  .foot { padding: 40px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .hero .base .mega span { opacity: 1; transform: none; }
}
