:root {
  --ink: #0d0e11;
  --ink-2: #16181d;
  --paper: #f3efe7;
  --paper-2: #e9e3d8;
  --signal: #ff4d1a;
  --signal-soft: #ff4d1a22;
  --mute: #8a8a8f;
  --line: #ffffff1a;
  --line-dark: #0d0e1122;
  --display: "Commissioner", system-ui, sans-serif;
  --serif: "Noto Serif Display", Georgia, serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.label {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
}
.label b { color: var(--signal); font-weight: 500; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: #0d0e11e6; backdrop-filter: blur(10px); border-color: var(--line); }
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.logo-mark { width: 30px; height: 30px; }
.logo span { color: var(--signal); }
.nav-links { display: flex; gap: 2.2rem; font-size: .92rem; }
.nav-links a { position: relative; opacity: .8; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--signal); transition: width .3s; }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--paper); border-radius: 999px;
  padding: .55rem 1.1rem; font-size: .88rem; font-weight: 600;
  transition: background .25s, color .25s;
}
.nav-cta:hover { background: var(--paper); color: var(--ink); }
.nav-cta svg { width: 16px; height: 16px; }
.burger { display: none; background: none; border: 0; color: var(--paper); cursor: pointer; }
.burger svg { width: 28px; height: 28px; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh;
  padding: 8rem var(--pad) 3rem;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3rem;
  align-items: end;
  position: relative;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 80px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 80px 100%;
  mask-image: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 75% 40%, transparent 0%, var(--ink) 75%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 8.4vw, 8.2rem);
  line-height: .92;
  letter-spacing: -.045em;
  margin: 1.4rem 0 2rem;
}
.hero h1 em { color: var(--signal); letter-spacing: -.02em; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: translateY(0); } }
.hero-lead { max-width: 34rem; font-size: 1.12rem; color: #d8d3ca; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.btn {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: 1rem 1.6rem; border-radius: 999px;
  font-weight: 700; font-size: .98rem;
  transition: transform .25s, background .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--signal); color: var(--ink); }
.btn-primary:hover { background: var(--paper); }
.btn-ghost { border: 1px solid #ffffff40; }
.btn-ghost:hover { border-color: var(--paper); }

.fade { opacity: 0; transform: translateY(18px); animation: fade .9s cubic-bezier(.2,.8,.2,1) forwards; }
.d1 { animation-delay: .45s; } .d2 { animation-delay: .6s; } .d3 { animation-delay: .75s; }
@keyframes fade { to { opacity: 1; transform: none; } }

/* hero visual — browser + phone */
.hero-visual { position: relative; height: 520px; }
.browser {
  position: absolute; top: 0; right: 0; width: 88%;
  background: var(--paper); color: var(--ink);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 80px -20px #000c;
  transform: rotate(2.5deg);
}
.browser-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--paper-2); align-items: center; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #0d0e1130; }
.browser-bar .url { margin-left: 10px; flex: 1; height: 18px; border-radius: 6px; background: #0d0e1110; font: 500 .62rem/18px var(--mono); padding-left: 8px; color: #0d0e1180; }
.browser-body { padding: 22px; }
.mock-h { height: 26px; width: 70%; background: var(--ink); border-radius: 4px; margin-bottom: 10px; }
.mock-h.s { width: 45%; background: var(--signal); }
.mock-p { height: 8px; background: #0d0e1122; border-radius: 4px; margin: 8px 0; }
.mock-p.w60 { width: 60%; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.mock-grid div { aspect-ratio: 1; border-radius: 8px; background: var(--paper-2); }
.mock-grid div:nth-child(2) { background: var(--ink); }
.phone {
  position: absolute; bottom: 0; left: 0; width: 210px;
  background: var(--ink-2); border: 1px solid #ffffff2a;
  border-radius: 30px; padding: 14px;
  box-shadow: 0 40px 80px -10px #000;
  transform: rotate(-6deg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: rotate(-6deg) translateY(-12px); } }
.post-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.post-head i { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(var(--signal), #ffb199, var(--signal)); }
.post-head span { height: 7px; width: 70px; border-radius: 4px; background: #ffffff30; }
.post-img { aspect-ratio: 1; border-radius: 14px; background: linear-gradient(160deg, var(--signal), #b8300c); display: grid; place-items: center; }
.post-img svg { width: 56px; height: 56px; color: var(--ink); }
.post-stats { display: flex; justify-content: space-between; margin-top: 10px; font: 500 .7rem var(--mono); color: #ffffffb0; }
.post-stats span { display: flex; align-items: center; gap: 4px; }
.post-stats svg { width: 14px; height: 14px; }
.chip {
  position: absolute; right: 4%; bottom: 14%;
  background: var(--signal); color: var(--ink);
  font: 600 .78rem var(--mono); padding: .6rem .9rem; border-radius: 10px;
  display: flex; align-items: center; gap: .5rem;
  box-shadow: 0 16px 30px -10px #ff4d1a88;
}
.chip svg { width: 16px; height: 16px; }

.hero-foot {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 1rem;
}

/* ---------- MARQUEE ---------- */
.marquee { background: var(--signal); color: var(--ink); overflow: hidden; padding: 1.1rem 0; transform: rotate(-1.2deg); margin: 2rem -1rem; }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: scroll 32s linear infinite; font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: -.02em; white-space: nowrap; }
.marquee-track span { display: flex; align-items: center; gap: 3rem; }
.marquee-track span::after { content: "✦"; font-size: .7em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
section { padding: clamp(5rem, 10vw, 9rem) var(--pad); }
.sec-head { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; margin-bottom: 4rem; align-items: end; }
.sec-head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2.3rem, 5.5vw, 4.6rem); line-height: .98; letter-spacing: -.04em; }
.sec-head h2 em { color: var(--signal); }
.sec-head p { max-width: 36rem; font-size: 1.08rem; opacity: .8; }

/* services — light section */
.services { background: var(--paper); color: var(--ink); }
.services .label { color: #0d0e1199; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
.svc {
  padding: 3rem 3rem 3rem 0; position: relative;
}
.svc + .svc { padding: 3rem 0 3rem 3rem; border-left: 1px solid var(--line-dark); }
.svc-num { font: 500 .8rem var(--mono); color: var(--signal); }
.svc-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--ink); color: var(--paper); display: grid; place-items: center; margin: 1.6rem 0; }
.svc-icon svg { width: 30px; height: 30px; }
.svc h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.03em; line-height: 1.05; }
.svc > p { margin: 1rem 0 2rem; max-width: 30rem; color: #0d0e11c0; }
.svc ul { list-style: none; }
.svc li { display: flex; align-items: center; gap: .9rem; padding: .85rem 0; border-top: 1px solid var(--line-dark); font-weight: 600; }
.svc li svg { width: 18px; height: 18px; color: var(--signal); flex-shrink: 0; }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--ink); padding: 2.2rem 1.8rem 2.6rem; transition: background .3s; }
.step:hover { background: var(--ink-2); }
.step-n { font-family: var(--serif); font-style: italic; font-size: 3.6rem; line-height: 1; color: var(--signal); }
.step h4 { font-family: var(--display); font-weight: 700; font-size: 1.35rem; margin: 1.4rem 0 .6rem; letter-spacing: -.02em; }
.step p { font-size: .95rem; opacity: .7; }

/* why */
.why { background: var(--ink-2); }
.why-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.big-quote { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.05; letter-spacing: -.035em; }
.big-quote em { color: var(--signal); }
.why-list { display: grid; gap: 1.6rem; }
.why-item { display: grid; grid-template-columns: 48px 1fr; gap: 1.1rem; }
.why-item .ic { width: 48px; height: 48px; border-radius: 12px; border: 1px solid #ffffff26; display: grid; place-items: center; color: var(--signal); }
.why-item .ic svg { width: 22px; height: 22px; }
.why-item h5 { font-family: var(--display); font-size: 1.15rem; font-weight: 700; margin-bottom: .2rem; }
.why-item p { font-size: .95rem; opacity: .7; }

/* contact */
.contact { background: var(--signal); color: var(--ink); position: relative; overflow: hidden; }
.contact .label { color: #0d0e11aa; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; position: relative; z-index: 1; }
.contact h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2.8rem, 7vw, 6.4rem); line-height: .92; letter-spacing: -.05em; margin: 1.2rem 0 2.4rem; }
.contact h2 em { color: var(--paper); }
.c-line { display: flex; align-items: center; gap: 1rem; padding: 1.3rem 0; border-top: 1.5px solid var(--ink); font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.8rem); letter-spacing: -.02em; transition: padding .3s; }
.c-line:last-of-type { border-bottom: 1.5px solid var(--ink); }
.c-line:hover { padding-left: .8rem; }
.c-line svg { width: 26px; height: 26px; flex-shrink: 0; }
.c-line .arr { margin-left: auto; transition: transform .3s; }
.c-line:hover .arr { transform: rotate(-45deg); }

form { background: var(--ink); color: var(--paper); border-radius: 22px; padding: clamp(1.6rem, 3vw, 2.6rem); display: grid; gap: 1.1rem; box-shadow: 0 40px 80px -30px #0d0e11aa; }
form h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.field { display: grid; gap: .4rem; }
.field label { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--mute); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--paper); background: transparent;
  border: 0; border-bottom: 1px solid #ffffff33; padding: .6rem 0;
  outline: none; transition: border-color .2s;
}
.field select option { background: var(--ink); }
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--signal); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
form .btn { justify-content: center; border: 0; cursor: pointer; margin-top: .6rem; font-family: inherit; }
.form-note { font-size: .8rem; color: var(--mute); }

/* footer */
footer { padding: 3rem var(--pad) 2rem; }
.foot-big { font-family: var(--display); font-weight: 800; font-size: clamp(3.5rem, 15vw, 15rem); letter-spacing: -.06em; line-height: .8; color: transparent; -webkit-text-stroke: 1px #ffffff30; white-space: nowrap; overflow: hidden; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--mute); }
.foot-row a:hover { color: var(--signal); }

/* reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .nav.open { background: var(--ink); }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); padding: 1.5rem var(--pad) 2rem; gap: 1.2rem; font-size: 1.2rem; border-bottom: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr; padding-top: 7rem; }
  .hero-visual { height: 400px; }
  .sec-head, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc, .svc + .svc { padding: 2.5rem 0; border-left: 0; }
  .svc + .svc { border-top: 1px solid var(--line-dark); }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps, .row2 { grid-template-columns: 1fr; }
  .hero-visual { height: 340px; }
  .phone { width: 160px; }
  .hero-foot .label:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero h1 .line > span, .fade, .reveal { transform: none; opacity: 1; }
}
