:root {
  --ink: #0a0a0a;
  --ink-2: #161616;
  --paper: #f6f4ef;
  --white: #ffffff;
  --muted: #6b6b6b;
  --muted-dark: #a3a3a3;
  --line: #e2dfd8;
  --line-dark: #2a2a2a;
  --accent: #ff5a1f;
  --accent-ink: #1a0800;
  --radius: 14px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 .5em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.logo-invert { filter: invert(1); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; padding: 14px 24px; border-radius: 999px; border: 2px solid var(--accent); transition: transform .15s, background .15s; cursor: pointer; font: 600 1rem var(--body); }
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border-color: #3a3a3a; }
.btn-ghost:hover { border-color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: .9rem; }
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(10,10,10,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-dark); color: var(--white); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 700; letter-spacing: .04em; }
.brand em { font-style: normal; font-weight: 500; color: var(--muted-dark); }
.links { display: flex; align-items: center; gap: 28px; }
.links a:not(.btn) { text-decoration: none; color: #d4d4d4; font-size: .95rem; }
.links a:not(.btn):hover { color: var(--white); }

/* Hero */
.hero { background: var(--ink); color: var(--white); padding: 96px 0 0; overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 400px at 85% 30%, rgba(255,90,31,.22), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; position: relative; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; color: var(--accent); margin: 0 0 18px; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
.bracket { position: relative; padding: 0 .18em; color: var(--accent); }
.bracket::before, .bracket::after { content: ""; position: absolute; top: .08em; bottom: .02em; width: .22em; border: .07em solid var(--white); }
.bracket::before { left: 0; border-right: 0; }
.bracket::after { right: 0; border-left: 0; }
.lead { font-size: 1.2rem; color: #cfcfcf; max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-mark img { width: 100%; max-width: 420px; margin-left: auto; opacity: .95; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); margin-top: 72px; position: relative; }
.stats div { padding: 32px 24px 40px 0; }
.stats div + div { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.stats strong { display: block; font-family: var(--display); font-size: 2.6rem; line-height: 1; margin-bottom: 8px; }
.stats span { color: var(--muted-dark); font-size: .95rem; }

/* Marquee */
.marquee { background: var(--accent); color: var(--accent-ink); overflow: hidden; padding: 16px 0; font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: .08em; }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: slide 28s linear infinite; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 112px 0; }
.section h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); max-width: 18em; }
.section-lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; margin-bottom: 56px; }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .section-lead { color: var(--muted-dark); }
.section-accent { background: var(--accent); color: var(--accent-ink); }
.section-accent .eyebrow { color: var(--accent-ink); }
.section-accent .section-lead { color: #3d1606; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(0,0,0,.25); }
.card .num { font-family: var(--display); font-weight: 700; color: var(--accent); }
.card h3 { font-size: 1.35rem; margin-top: 18px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Comparison */
.section-tight { padding-top: 0; }
.compare { margin-top: 48px; border-top: 2px solid var(--ink); }
.compare-row { display: grid; grid-template-columns: 1fr 2fr 2fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.compare-row > span:first-child { font-family: var(--display); font-weight: 700; }
.compare-row > span:nth-child(2) { color: var(--muted); }
.compare-row > span:nth-child(3) { font-weight: 600; }
.compare-row > span:nth-child(3)::before { content: "→ "; color: var(--accent); }
.compare-head { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; }
.compare-head > span:nth-child(3) { color: var(--accent); }
.compare-head > span:nth-child(3)::before { content: ""; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project { display: flex; flex-direction: column; text-decoration: none; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s; }
.project:hover { transform: translateY(-6px); border-color: var(--accent); }
.shot { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line-dark); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.project:hover .shot img { transform: scale(1.04); }
.project-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.project-head { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.project-head h3 { margin: 0; font-size: 1.35rem; }
.plogo { width: 40px; height: 40px; object-fit: contain; }
.plogo-wide { width: auto; }
.plogo-blend { mix-blend-mode: lighten; height: 52px; margin: -6px 0; }
.project p { color: var(--muted-dark); margin: 0; font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags i { font-style: normal; font-size: .75rem; border: 1px solid #3a3a3a; color: #cfcfcf; padding: 3px 10px; border-radius: 999px; }
.visit { margin-top: auto; color: var(--accent); font-weight: 600; font-size: .92rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; border-top: 2px solid var(--ink); }
.steps li { counter-increment: s; padding: 28px 24px 0 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps span { font-family: var(--display); font-weight: 700; font-size: 1.6rem; display: block; }
.steps span::before { content: "0" counter(s) " "; color: var(--accent); }
.steps p { color: var(--muted); margin: 10px 0 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.form { background: var(--white); color: var(--ink); border-radius: 20px; padding: 36px; display: grid; gap: 18px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.4); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form small { font-weight: 400; color: var(--muted); }
.form input, .form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.form .btn { justify-self: start; }
.form .hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-size: .95rem; min-height: 1.5em; }
.form-status.ok { color: #157a3c; }
.form-status.err { color: #b42318; }

/* Footer */
.footer { background: var(--ink); color: var(--muted-dark); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer .brand { color: var(--white); }
.footer p { margin: 0; font-size: .9rem; }

/* Responsive */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
  .links a:not(.btn) { display: none; }
  .hero { padding-top: 56px; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .stats { grid-template-columns: 1fr; margin-top: 48px; }
  .stats div, .stats div + div { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .section { padding: 80px 0; }
  .cards, .projects, .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0 0; border-left: 0; }
  .form { padding: 24px; }
  .form .row { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1fr; gap: 4px; }
  .compare-head { display: none; }
  .compare-row > span:nth-child(2)::before { content: "Classic: "; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
