:root {
  --bg: #0E0F11;
  --bg-2: #141518;
  --line: rgba(242, 242, 240, 0.10);
  --text: #F2F2F0;
  --muted: #8A8D93;
  --accent: #C8A96A;
  --font-display: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: min(1200px, 100% - 48px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
em { font-style: normal; color: var(--accent); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--text); color: var(--bg); padding: 8px 14px;
}
.skip-link:focus { top: 16px; }

.container { width: var(--container); margin-inline: auto; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity 0.9s var(--ease-out), visibility 0.9s;
}
.loader__mark {
  font-size: clamp(22px, 4vw, 36px);
  letter-spacing: 0.3em;
  opacity: 0;
  animation: markIn 1.1s var(--ease-out) 0.1s forwards;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes markIn {
  from { opacity: 0; transform: translateY(12px); letter-spacing: 0.5em; }
  to { opacity: 1; transform: none; letter-spacing: 0.3em; }
}

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  transition: height 0.5s var(--ease), background-color 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  height: 68px;
  background: rgba(14, 15, 17, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header__inner {
  height: 100%;
  display: flex; align-items: center; gap: 40px;
}
.logo {
  font-size: 18px; font-weight: 600; letter-spacing: 0.24em;
  position: relative;
}
.logo sup { font-size: 0.6em; letter-spacing: 0; vertical-align: super; color: var(--accent); }
.nav { margin-left: auto; display: flex; gap: 32px; }
.nav__link {
  position: relative; font-size: 14px; color: var(--muted);
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--text);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1px; background: var(--text);
  transition: transform 0.5s var(--ease-out), opacity 0.3s;
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; font-size: 14px; letter-spacing: 0.04em;
  border: 1px solid var(--text); border-radius: 0;
  overflow: hidden; isolation: isolate; cursor: pointer;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--text);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--bg); }
.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary::before { background: var(--accent); }
.btn--primary:hover { color: var(--bg); border-color: var(--accent); }
.btn--outline { background: transparent; color: var(--text); }
.btn--small { padding: 10px 18px; font-size: 13px; }
.btn span { transition: transform 0.4s var(--ease-out); }
.btn:hover span { transform: translateX(4px); }
.header__cta { margin-left: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: -10% 0; pointer-events: none; will-change: transform; }
.hero__line {
  position: absolute; left: 0; right: 0; height: 1px; background: var(--line);
  transform: scaleX(0); transform-origin: left;
  animation: lineIn 2.2s var(--ease-out) forwards;
}
.hero__line--1 { top: 28%; animation-delay: 0.2s; }
.hero__line--2 { top: 72%; animation-delay: 0.45s; }
.hero__ring {
  position: absolute; right: -12vw; top: 12%;
  width: min(62vw, 720px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line);
  opacity: 0; animation: ringIn 2.6s var(--ease-out) 0.4s forwards;
}
.hero__ring::after {
  content: ""; position: absolute; inset: 14%; border-radius: 50%;
  border: 1px solid rgba(200, 169, 106, 0.18);
}
@keyframes lineIn { to { transform: scaleX(1); } }
@keyframes ringIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }

.hero__content { position: relative; z-index: 1; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 7.2vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 28px 0 56px;
}
.line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.line__inner {
  display: block;
  transform: translateY(105%);
  animation: lineUp 1.2s var(--ease-out) var(--d) forwards;
}
@keyframes lineUp { to { transform: none; } }

.hero__footer {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px;
  max-width: 900px;
}
.hero__lead { max-width: 440px; color: var(--muted); font-size: 17px; }
.hero__meta {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 36px; width: var(--container);
  display: flex; gap: 40px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px;
}
.scroll-hint { margin-left: auto; }

.reveal-up {
  opacity: 0; transform: translateY(32px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.hero .reveal-up.is-visible,
.hero__content .reveal-up,
.hero__meta.reveal-up { opacity: 1; transform: none; }
.hero__content .reveal-up { opacity: 0; transform: translateY(20px); animation: fadeUp 1.2s var(--ease-out) var(--d) forwards; }
.hero__meta.reveal-up { opacity: 0; animation: fadeUp 1.2s var(--ease-out) var(--d) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(96px, 14vw, 180px) 0; border-top: 1px solid var(--line); }
.section__head { margin-bottom: clamp(56px, 8vw, 96px); }
.section__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(34px, 5vw, 64px); line-height: 1.08; letter-spacing: -0.02em;
  margin-top: 18px;
}
.section__note { margin-top: 16px; color: var(--muted); font-size: 14px; }

/* ---------- Projects ---------- */
.project { margin-bottom: clamp(64px, 10vw, 120px); }
.project:last-child { margin-bottom: 0; }
.project__link {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.project--reverse .project__link { grid-template-columns: 1fr 1.4fr; }
.project--reverse .project__visual { order: 2; }
.project--reverse .project__info { order: 1; }

.project__visual {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-2);
}
.project__visual::before {
  content: ""; position: absolute; inset: 0;
  transform: scale(1.06);
  transition: transform 1.4s var(--ease-out);
}
.project__visual--noir::before { background: linear-gradient(160deg, #1b1c20, #0b0b0c); }
.project__visual--fleure::before { background: linear-gradient(200deg, #1a1d1b, #0c0d0c); }
.project__link:hover .project__visual::before { transform: scale(1); }
.project__num {
  position: absolute; left: 24px; top: 20px; font-size: 13px; color: var(--muted); letter-spacing: 0.15em;
}
.project__shape {
  position: absolute; left: 50%; top: 50%;
  width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%);
  transition: transform 1.2s var(--ease-out), border-radius 1.2s var(--ease-out);
  border: 1px solid var(--accent);
  border-radius: 50%;
}
.project__visual--fleure .project__shape { border-radius: 0; transform: translate(-50%, -50%) rotate(45deg); }
.project__link:hover .project__shape { transform: translate(-50%, -50%) scale(1.12); }
.project__link:hover .project__visual--fleure .project__shape { transform: translate(-50%, -50%) rotate(135deg); }

.project__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -0.02em;
  margin: 14px 0 20px;
}
.project__desc { color: var(--muted); max-width: 440px; margin-bottom: 32px; }
.project__cta {
  display: inline-flex; gap: 10px; font-size: 14px; letter-spacing: 0.04em;
  padding-bottom: 6px; border-bottom: 1px solid var(--line);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.project__link:hover .project__cta { border-color: var(--accent); color: var(--accent); }

/* ---------- About ---------- */
.about__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start;
}
.about__grid .section__title { margin-top: 18px; }
.about__text p { color: var(--muted); font-size: 18px; line-height: 1.75; }
.about__text p + p { margin-top: 24px; }

/* ---------- Services ---------- */
.services__list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.service {
  position: relative; padding: 48px 40px 48px 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.6s var(--ease-out);
}
.service:nth-child(even) { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--line); }
.service:hover { padding-left: 52px; }
.service:nth-child(even):hover { padding-left: 52px; }
.service__num { font-size: 13px; color: var(--accent); letter-spacing: 0.15em; }
.service__title {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.4vw, 30px);
  margin: 16px 0 12px;
}
.service p { color: var(--muted); max-width: 380px; }

/* ---------- Process ---------- */
.process__steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  position: relative;
}
.step { padding: 0 24px 0 0; position: relative; }
.step::before {
  content: ""; display: block; height: 1px; background: var(--line); margin-bottom: 32px;
  position: relative; overflow: hidden;
}
.step::after {
  content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease-out);
}
.step.is-visible::after { transform: scaleX(1); transition-delay: var(--delay, 0s); }
.step:nth-child(2) { --delay: 0.15s; }
.step:nth-child(3) { --delay: 0.3s; }
.step:nth-child(4) { --delay: 0.45s; }
.step__num {
  display: block; font-family: var(--font-display); font-weight: 200;
  font-size: clamp(48px, 6vw, 80px); line-height: 1; color: var(--muted);
  transition: color 0.6s var(--ease);
}
.step:hover .step__num { color: var(--text); }
.step__title { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin: 24px 0 12px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact { text-align: left; }
.contact__inner { max-width: 860px; }
.contact__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(40px, 7vw, 96px); line-height: 1.02; letter-spacing: -0.03em;
  margin: 24px 0 28px;
}
.contact__lead { color: var(--muted); font-size: 18px; max-width: 520px; margin-bottom: 40px; }
.contact__placeholder {
  border: 1px dashed var(--line); padding: 24px 28px; margin-bottom: 40px; color: var(--muted); font-size: 14px;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.footer__nav { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.footer__nav a:hover { color: var(--text); }
.footer__copy { font-size: 13px; color: var(--muted); width: 100%; }

/* ---------- Custom cursor (desktop with fine pointer only) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block; position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none;
    width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
    background: var(--accent); mix-blend-mode: difference;
    transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), margin 0.4s var(--ease-out);
  }
  .cursor.is-active { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  body { cursor: none; }
  a, button { cursor: none; }
}

/* ---------- Tablet & mobile ---------- */
@media (max-width: 960px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .nav.is-open {
    display: flex; position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: center; gap: 28px;
    background: var(--bg);
  }
  .nav.is-open .nav__link { font-size: 26px; color: var(--text); }
  .header.is-open { z-index: 120; }
  .about__grid, .project__link, .project--reverse .project__link { grid-template-columns: 1fr; }
  .project--reverse .project__visual, .project--reverse .project__info { order: initial; }
  .process__steps { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .hero__meta { gap: 24px; flex-wrap: wrap; }
  .scroll-hint { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .services__list { grid-template-columns: 1fr; }
  .service:nth-child(even) { border-left: 0; padding-left: 0; }
  .service, .service:hover, .service:nth-child(even):hover { padding-left: 0; padding-right: 0; }
  .process__steps { grid-template-columns: 1fr; }
  .hero__meta span:not(:first-child) { display: none; }
  .footer__nav { width: 100%; flex-wrap: wrap; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .loader { display: none; }
  .reveal-up, .hero__content .reveal-up, .hero__meta.reveal-up { opacity: 1; transform: none; }
  .line__inner { transform: none; }
  .hero__line { transform: none; }
  .step::after { transform: scaleX(1); }
  .hero__bg { transform: none !important; }
  .cursor { display: none !important; }
  body { cursor: auto; }
  a, button { cursor: pointer; }
}
