:root {
  --ink: #0c0e10;
  --ink-2: #15191e;
  --ink-3: #1e252d;
  --paper: #f2ece3;
  --muted: #9aa3ad;
  --text: #d8dde3;
  --copper: #c47a3a;
  --copper-bright: #e8964f;
  --line: rgba(242, 236, 227, 0.12);
  --font: "Sora", system-ui, sans-serif;
  --display: "Syne", system-ui, sans-serif;
  --header: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header); }

body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--copper), var(--copper-bright));
  z-index: 1000; transform-origin: left;
}

.cursor-glow {
  position: fixed; width: 420px; height: 420px; border-radius: 50%;
  pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(196,122,58,.16), transparent 65%);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  transition: opacity .4s;
  opacity: 0;
}
@media (pointer: fine) {
  .cursor-glow.is-on { opacity: 1; }
}

.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 100px 0; position: relative; z-index: 1; }

.header {
  position: fixed; inset: 0 0 auto; height: var(--header); z-index: 200;
  display: flex; align-items: center;
  transition: background .35s var(--ease), border-color .35s;
  border-bottom: 1px solid transparent;
}
.header.is-solid {
  background: rgba(12, 14, 16, .88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header__inner {
  width: min(1120px, calc(100% - 40px)); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo {
  font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.02em;
}
.logo em { font-style: normal; color: var(--copper-bright); }
.nav { display: flex; gap: 6px; }
.nav a {
  padding: 8px 12px; font-size: 13px; font-weight: 600; color: var(--muted);
  border-radius: 999px; transition: .25s;
}
.nav a:hover { color: var(--paper); background: rgba(255,255,255,.05); }
.header__cta {
  padding: 10px 18px; border: 1px solid rgba(196,122,58,.45);
  border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--copper-bright);
  transition: .3s var(--ease);
}
.header__cta:hover { background: var(--copper); color: #111; border-color: var(--copper); }
.burger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.burger span { width: 22px; height: 2px; background: var(--paper); transition: .25s; }

/* HERO — one composition, brand first, full-bleed */
.hero {
  min-height: 100vh; min-height: 100dvh;
  position: relative; display: grid; align-items: end;
  padding: calc(var(--header) + 40px) 0 64px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,14,16,.55) 0%, rgba(12,14,16,.35) 35%, rgba(12,14,16,.92) 100%),
    linear-gradient(90deg, rgba(12,14,16,.75) 0%, rgba(12,14,16,.25) 55%, transparent 100%);
}
.hero__grain {
  position: absolute; inset: 0; opacity: .18; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.hero__content { position: relative; z-index: 2; width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.hero__brand {
  font-family: var(--display);
  font-size: clamp(48px, 11vw, 128px);
  font-weight: 800; line-height: .92; letter-spacing: -.04em;
  color: var(--paper); margin-bottom: 22px;
  overflow: hidden;
}
.hero__brand .line {
  display: block; overflow: hidden;
}
.hero__brand .word {
  display: inline-block;
  transform: translateY(110%);
  animation: riseWord 1.1s var(--ease) forwards;
}
.hero__brand .word:nth-child(2) { animation-delay: .12s; }
@keyframes riseWord {
  to { transform: translateY(0); }
}
.hero__lead {
  max-width: 540px; font-size: clamp(16px, 2vw, 19px);
  color: rgba(242,236,227,.78); margin-bottom: 28px;
  opacity: 0; animation: fadeUp .9s .45s var(--ease) forwards;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  opacity: 0; animation: fadeUp .9s .6s var(--ease) forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 14px;
  transition: transform .35s var(--ease), background .25s, color .25s, box-shadow .35s;
}
.btn--primary {
  background: var(--copper); color: #111;
  box-shadow: 0 10px 30px rgba(196,122,58,.28);
}
.btn--primary:hover { background: var(--copper-bright); transform: translateY(-2px); }
.btn--ghost {
  border: 1px solid rgba(242,236,227,.28); color: var(--paper);
}
.btn--ghost:hover { border-color: var(--paper); background: rgba(255,255,255,.04); }

.hero__scroll {
  position: absolute; right: max(20px, calc((100% - 1120px) / 2));
  bottom: 36px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  opacity: 0; animation: fadeUp .8s .9s var(--ease) forwards;
}
.hero__scroll-line {
  width: 48px; height: 1px; background: var(--muted);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 40%;
  background: var(--copper-bright);
  animation: scan 1.6s ease-in-out infinite;
}
@keyframes scan {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

/* ABOUT */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.about__photo {
  position: relative; border-radius: 20px; overflow: hidden;
  aspect-ratio: 4/5; background: var(--ink-3);
}
.about__photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.9) contrast(1.05);
  transition: transform 1.2s var(--ease);
}
.about__photo:hover img { transform: scale(1.04); }
.about__frame {
  position: absolute; inset: 16px; border: 1px solid rgba(242,236,227,.25);
  border-radius: 12px; pointer-events: none;
}
.about__badge {
  position: absolute; left: 20px; bottom: 20px;
  background: rgba(12,14,16,.82); backdrop-filter: blur(8px);
  padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line);
  font-size: 13px;
}
.about__badge strong { display: block; color: var(--copper-bright); font-size: 18px; font-family: var(--display); }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--copper-bright);
  margin-bottom: 14px;
}
.h2 {
  font-family: var(--display); font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1; letter-spacing: -.03em; color: var(--paper); margin-bottom: 16px;
}
.about p { color: var(--muted); margin-bottom: 14px; max-width: 520px; }
.about__meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px;
}
.meta-cell {
  padding: 16px; border-radius: 14px; background: var(--ink-2);
  border: 1px solid var(--line);
}
.meta-cell strong {
  display: block; font-family: var(--display); font-size: 28px; color: var(--paper);
  line-height: 1; margin-bottom: 6px;
}
.meta-cell span { font-size: 12px; color: var(--muted); }

/* MARQUEE */
.marquee-wrap {
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, var(--ink), var(--ink-2), var(--ink));
  overflow: hidden; padding: 22px 0;
}
.marquee {
  display: flex; gap: 48px; width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--display); font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 700; color: var(--paper); letter-spacing: -.02em;
}
.marquee span { white-space: nowrap; }
.marquee span em { font-style: normal; color: var(--copper); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* PROCESS */
.process-head { max-width: 640px; margin-bottom: 48px; }
.timeline { display: grid; gap: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 18px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, var(--copper), transparent);
  transform: scaleY(0); transform-origin: top;
  transition: transform 1.4s var(--ease);
}
.timeline.is-in::before { transform: scaleY(1); }
.step {
  display: grid; grid-template-columns: 36px 1fr; gap: 20px;
  padding: 22px 0; opacity: 0; transform: translateX(-16px);
  transition: .7s var(--ease);
}
.step.is-in { opacity: 1; transform: none; }
.step__dot {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(196,122,58,.5);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: var(--copper-bright);
  background: var(--ink); position: relative; z-index: 1;
}
.step__body {
  padding: 18px 20px; border-radius: 16px;
  background: rgba(255,255,255,.02); border: 1px solid var(--line);
  transition: border-color .3s, background .3s;
}
.step:hover .step__body {
  border-color: rgba(196,122,58,.35);
  background: rgba(196,122,58,.06);
}
.step h3 {
  font-family: var(--display); font-size: 22px; color: var(--paper);
  margin-bottom: 6px; letter-spacing: -.02em;
}
.step p { color: var(--muted); font-size: 15px; max-width: 720px; }

.process-visual {
  margin-top: 48px; border-radius: 20px; overflow: hidden;
  position: relative; aspect-ratio: 21/9;
}
.process-visual img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05); transition: transform 1.6s var(--ease);
}
.process-visual.is-in img { transform: scale(1); }
.process-visual__cap {
  position: absolute; left: 20px; bottom: 20px;
  padding: 12px 16px; border-radius: 12px;
  background: rgba(12,14,16,.8); backdrop-filter: blur(8px);
  font-size: 13px; color: var(--paper);
}

/* QUALITY */
.quality {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.quality__list { display: grid; gap: 14px; margin-top: 24px; }
.q-item {
  display: grid; grid-template-columns: auto 1fr; gap: 14px;
  padding: 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--ink-2);
  transform: translateY(24px); opacity: 0; transition: .7s var(--ease);
}
.q-item.is-in { transform: none; opacity: 1; }
.q-item__n {
  font-family: var(--display); font-size: 20px; color: var(--copper);
  font-weight: 800;
}
.q-item h3 { font-size: 16px; color: var(--paper); margin-bottom: 4px; }
.q-item p { font-size: 14px; color: var(--muted); }
.quality__photo {
  border-radius: 20px; overflow: hidden; aspect-ratio: 4/5;
  position: relative;
}
.quality__photo img { width: 100%; height: 100%; object-fit: cover; }

/* TECH */
.tech-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px;
}
.tech {
  padding: 24px; border-radius: 18px; min-height: 180px;
  border: 1px solid var(--line); background: linear-gradient(160deg, var(--ink-2), var(--ink-3));
  position: relative; overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s;
}
.tech::after {
  content: ""; position: absolute; inset: auto -20% -40% auto; width: 160px; height: 160px;
  border-radius: 50%; background: radial-gradient(circle, rgba(196,122,58,.25), transparent 70%);
  transition: transform .5s var(--ease);
}
.tech:hover { transform: translateY(-6px); border-color: rgba(196,122,58,.4); }
.tech:hover::after { transform: translate(-20px, -20px) scale(1.2); }
.tech h3 {
  font-family: var(--display); font-size: 22px; color: var(--paper);
  margin-bottom: 8px; position: relative; z-index: 1;
}
.tech p { font-size: 14px; color: var(--muted); position: relative; z-index: 1; }

/* PRINCIPLES */
.principles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px;
}
.principle {
  padding: 28px 24px; border-radius: 18px;
  background: var(--paper); color: #1a1a1a;
  transform: rotateX(12deg) translateY(30px); opacity: 0;
  transform-origin: bottom; transition: .8s var(--ease);
}
.principle.is-in { transform: none; opacity: 1; }
.principle__n {
  font-family: var(--display); font-size: 48px; line-height: 1;
  color: rgba(196,122,58,.7); margin-bottom: 12px;
}
.principle h3 {
  font-family: var(--display); font-size: 22px; margin-bottom: 8px; letter-spacing: -.02em;
}
.principle p { font-size: 14px; color: #4a4a4a; }

/* CONTACT */
.contact {
  border-radius: 28px; padding: 48px;
  background:
    radial-gradient(circle at 85% 20%, rgba(196,122,58,.28), transparent 40%),
    linear-gradient(145deg, #1a1511, #121416 55%, #0c0e10);
  border: 1px solid rgba(196,122,58,.25);
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: end;
  position: relative; overflow: hidden;
}
.contact::before {
  content: ""; position: absolute; inset: -40% auto auto -20%;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,150,79,.2), transparent 70%);
  animation: floatOrb 8s ease-in-out infinite alternate;
}
@keyframes floatOrb {
  to { transform: translate(40px, 50px) scale(1.15); }
}
.contact > * { position: relative; z-index: 1; }
.contact .h2 { margin-bottom: 10px; }
.contact p { color: var(--muted); margin-bottom: 22px; max-width: 460px; }
.contact__links { display: grid; gap: 10px; justify-items: start; }
.contact__links a {
  font-size: 15px; font-weight: 600; color: var(--paper);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.contact__links a:hover { border-bottom-color: var(--copper-bright); color: var(--copper-bright); }

.footer {
  padding: 28px 0 40px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.footer a:hover { color: var(--copper-bright); }

/* reveal helpers */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .about, .quality, .contact { grid-template-columns: 1fr; }
  .tech-grid, .principles, .about__meta { grid-template-columns: 1fr; }
  .process-visual { aspect-ratio: 16/10; }
  .nav, .header__cta { display: none; }
  .burger { display: flex; }
  .nav.open {
    display: flex; position: fixed; inset: var(--header) 16px auto;
    flex-direction: column; background: rgba(18,20,24,.96);
    border: 1px solid var(--line); border-radius: 16px; padding: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important; transition: none !important;
  }
  .hero__brand .word, .hero__lead, .hero__actions, .hero__scroll { opacity: 1; transform: none; }
}
