:root {
  --bg: #F5F2EA;
  --bg-2: #ECE7DA;
  --ink: #14110E;
  --muted: #6B6459;
  --accent: #2B4FFF;
  --hair: rgba(20, 17, 14, .13);
  --display: "Archivo Black", "Arial Black", sans-serif;
  --mono: "Space Mono", monospace;
  --body: "Inter", -apple-system, sans-serif;
}

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

::selection { background: var(--accent); color: #fff; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}

.outline {
  color: transparent;
  -webkit-text-stroke: 1.6px var(--ink);
}

/* ---------- overlays ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%; height: 200%;
  z-index: 999;
  pointer-events: none;
  opacity: .38;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px; width: 0;
  background: var(--accent);
  z-index: 1001;
}

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  z-index: 1000;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s;
  mix-blend-mode: multiply;
}

@media (hover: none) { .cursor-dot { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px clamp(16px, 4vw, 48px);
  background: linear-gradient(var(--bg) 40%, rgba(245, 242, 234, 0));
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }

.nav-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  font-family: var(--display);
  font-size: 19px;
}

.nav-dot { position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.nav-name { font-family: var(--display); color: var(--ink); font-size: 17px; }
.nav-name sup { font-size: 9px; }

.nav-right { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); }

.nav-status { display: flex; align-items: center; gap: 7px; color: var(--muted); }

.rec {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.4s infinite;
  margin-right: 4px;
}

@keyframes pulse { 50% { opacity: .25; } }

.nav-link { color: var(--ink); text-decoration: none; }
.nav-link:hover { color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px clamp(16px, 4vw, 48px) 90px;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: clamp(28px, 5vh, 56px);
}

.hero-meta em { font-style: normal; color: var(--accent); }

.hero-title {
  font-family: var(--display);
  font-size: clamp(40px, 8.4vw, 122px);
  line-height: .96;
  letter-spacing: -.015em;
  text-transform: uppercase;
}

.hero-title em { font-style: normal; color: var(--accent); }

.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line .w { display: inline-block; will-change: transform; }
.line-2 { margin-left: clamp(24px, 8vw, 140px); }

.cursor {
  display: inline-block;
  width: .12em; height: .8em;
  margin-left: .06em;
  background: var(--accent);
  transform: translateY(.08em);
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-note { margin: 18px 0 0 clamp(26px, 8.2vw, 144px); color: var(--accent); }

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 7vh, 80px);
}

.hero-sub { color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 16px 30px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .1em;
  position: relative;
  overflow: hidden;
  transition: color .3s, border-color .3s;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  z-index: -1;
}

.btn:hover::before { transform: translateY(0); }
.btn:hover { color: #fff; border-color: var(--accent); }

.btn-blue { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-blue::before { background: var(--ink); }
.btn-blue:hover { color: var(--bg); border-color: var(--ink); }

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: clamp(16px, 4vw, 48px);
}

.hero-scroll .arrow { display: inline-block; animation: bob 1.4s infinite; }

@keyframes bob { 50% { transform: translateY(4px); } }

.ghost-num {
  position: absolute;
  bottom: -0.18em;
  right: clamp(8px, 3vw, 40px);
  font-family: var(--display);
  font-size: clamp(120px, 22vw, 320px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(20, 17, 14, .1);
  pointer-events: none;
  user-select: none;
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: clamp(14px, 2.5vw, 26px) 0;
  position: relative;
  z-index: 2;
  background: var(--accent);
}

.marquee-track { display: flex; white-space: nowrap; animation: scroll 24s linear infinite; }

.marquee-track span {
  font-family: var(--display);
  font-size: clamp(22px, 3.4vw, 44px);
  letter-spacing: .02em;
  color: #fff;
  padding-right: 12px;
}

.marquee-track b { font-weight: 400; color: transparent; -webkit-text-stroke: 1.5px #fff; }
.marquee-track i { font-style: normal; color: var(--ink); }

@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(90px, 13vw, 180px) clamp(16px, 4vw, 48px); max-width: 1400px; margin: 0 auto; position: relative; }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 22px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.sec-index { color: var(--accent); }

.sec-title {
  font-family: var(--display);
  font-size: clamp(34px, 6vw, 84px);
  line-height: 1;
  text-transform: uppercase;
}

/* ---------- work list ---------- */
.work-list { display: flex; flex-direction: column; }

.work-row {
  display: grid;
  grid-template-columns: 60px 1fr auto 50px;
  align-items: center;
  gap: clamp(12px, 3vw, 40px);
  padding: clamp(22px, 3.5vw, 40px) 6px;
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: padding-left .35s cubic-bezier(.2, .8, .2, 1), background .35s;
}

.work-row:first-child { border-top: 1px solid var(--hair); }

.work-row:hover { padding-left: 26px; background: var(--bg-2); }

.w-index { color: var(--muted); }

.w-name {
  font-family: var(--display);
  font-size: clamp(22px, 4.4vw, 58px);
  line-height: 1.05;
  transition: color .3s, transform .35s;
}

.work-row:hover .w-name { color: var(--accent); transform: skewX(-6deg); }

.w-cat { text-align: right; }

.w-arrow {
  font-size: clamp(20px, 2.6vw, 34px);
  text-align: right;
  transition: transform .35s;
}

.work-row:hover .w-arrow { transform: translate(6px, -6px) rotate(45deg); color: var(--accent); }

.work-note { margin-top: 26px; }

/* floating preview */
.preview-float {
  position: fixed;
  top: 0; left: 0;
  width: 340px;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
}

.pf-inner { display: none; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px rgba(20, 17, 14, .22); }
.pf-inner.on { display: block; }

.pf-chrome { display: flex; gap: 5px; padding: 10px 12px; background: rgba(0,0,0,.28); }
.pf-chrome i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.4); }

.pf-shot { display: block; width: 100%; height: 210px; object-fit: cover; }

.pf-olea {
  height: 210px;
  background: #0B0D0A;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
}

.pf-olea span { font-family: Georgia, serif; font-size: 46px; color: #E9E7DE; letter-spacing: .06em; }
.pf-olea i { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .3em; color: #9DAF6B; }

.fs-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--bg);
  background: var(--accent);
  padding: 5px 10px;
  border-radius: 99px;
}

.work-row.flagship:hover .w-name { color: var(--accent); }

.pf-body { height: 190px; padding: 26px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.pf-body b { display: block; width: 65%; height: 13px; border-radius: 3px; background: currentColor; }
.pf-body b.s { width: 40%; }
.pf-body u { display: block; width: 90px; height: 26px; border-radius: 99px; margin-top: 8px; }

.pf-dark { background: #1d2226; color: #e8ecef; }
.pf-dark u { background: #e8b13c; }
.pf-warm { background: #4a2c1d; color: #f3e5d3; }
.pf-warm u { background: #c96f3b; }
.pf-light { background: #ece7e1; color: #2b2724; }
.pf-light u { background: #b58ea1; }

/* ---------- services ---------- */
.services {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}

.serv-side { position: sticky; top: 120px; }

.serv-note { font-size: clamp(17px, 1.8vw, 21px); color: var(--ink); margin-bottom: 22px; }

.serv-fine { color: var(--accent); }

.serv-list { display: flex; flex-direction: column; }

.serv-row {
  position: relative;
  padding: clamp(26px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--hair);
}

.serv-row:first-child { border-top: 1px solid var(--hair); }

.serv-row.featured { padding-left: 22px; border-left: 3px solid var(--accent); }

.serv-flag { color: var(--accent); display: block; margin-bottom: 12px; }

.serv-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}

.serv-top h3 {
  font-family: var(--display);
  font-size: clamp(24px, 3.6vw, 46px);
  line-height: .98;
  text-transform: uppercase;
}

.serv-price {
  font-family: var(--display);
  font-size: clamp(20px, 2.6vw, 34px);
  color: var(--accent);
  white-space: nowrap;
}

.serv-spec { line-height: 1.9; }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.step { border-top: 2px solid var(--hair); padding-top: 20px; transition: border-color .3s; }
.step:hover { border-color: var(--accent); }

.step-num { color: var(--accent); }

.step h3 { font-family: var(--display); font-size: 20px; margin: 12px 0 8px; }

.step p { color: var(--muted); font-size: 15px; }

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}

.stamp { position: relative; width: clamp(170px, 18vw, 230px); aspect-ratio: 1; }

.stamp svg { width: 100%; height: 100%; animation: spin 14s linear infinite; }

.stamp text {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 4.5px;
  fill: var(--accent);
}

@keyframes spin { to { transform: rotate(360deg); } }

.stamp-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: clamp(48px, 5vw, 64px);
  color: var(--ink);
}

.stamp-core i {
  position: absolute;
  top: 32%; right: 32%;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.about-title {
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 80px);
  text-transform: uppercase;
  margin: 14px 0 20px;
}

.about-title em { font-style: normal; color: var(--accent); }

.about-text { color: var(--muted); font-size: clamp(16px, 1.8vw, 20px); max-width: 560px; margin-bottom: 26px; }

.about-facts { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.about-facts li { border-left: 2px solid var(--accent); padding-left: 12px; }

/* ---------- contact ---------- */
.contact {
  padding: clamp(100px, 15vw, 200px) clamp(16px, 4vw, 48px);
  text-align: center;
  border-top: 1px solid var(--hair);
}

.contact .sec-index { display: inline-flex; align-items: center; }

.contact-title {
  font-family: var(--display);
  font-size: clamp(64px, 15vw, 220px);
  line-height: .92;
  text-transform: uppercase;
  margin: 26px 0 40px;
}

.contact-title .q { color: var(--accent); }

.contact-mail {
  display: inline-block;
  font-family: var(--mono);
  font-size: clamp(15px, 2.6vw, 28px);
  letter-spacing: .06em;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: clamp(18px, 2.6vw, 30px) clamp(24px, 4vw, 56px);
  position: relative;
  overflow: hidden;
  transition: color .3s, border-color .3s;
}

.contact-mail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  z-index: -1;
}

.contact-mail:hover::before { transform: translateY(0); }
.contact-mail:hover { border-color: var(--accent); color: #fff; }

.contact-mail span { color: var(--accent); transition: color .3s; }
.contact-mail:hover span { color: #fff; }

.contact-links { display: flex; justify-content: center; gap: clamp(14px, 3vw, 36px); margin-top: 34px; flex-wrap: wrap; }

.contact-links a { color: var(--muted); text-decoration: none; }
.contact-links a:hover { color: var(--accent); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--hair);
  padding: 34px clamp(16px, 4vw, 48px) 0;
  overflow: hidden;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.footer-giant {
  font-family: var(--display);
  font-size: clamp(90px, 19vw, 300px);
  line-height: .78;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(20, 17, 14, .17);
  transform: translateY(18%);
  user-select: none;
}

/* ---------- reveal ---------- */
.reveal-y { opacity: 0; transform: translateY(34px); }

@media (max-width: 760px) {
  .work-row { grid-template-columns: 44px 1fr 34px; }
  .w-cat { display: none; }
  .services, .about { grid-template-columns: 1fr; }
  .serv-side { position: static; }
  .preview-float { display: none; }
  .nav-status { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .marquee-track, .rec, .cursor, .stamp svg, .hero-scroll .arrow { animation: none; }
  .reveal-y { opacity: 1; transform: none; }
}
