:root {
  --bg: #0a0c0f;
  --surface: #10141a;
  --surface-2: #161b23;
  --text: #f2efe6;
  --muted: #a6abb4;
  --faint: #6d737c;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #d2a24c;
  --accent-soft: rgba(210, 162, 76, 0.12);
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--accent); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

h2 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 14px; }
.section-sub { color: var(--muted); max-width: 620px; font-size: 18px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 12, 15, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); }
.brand-name { font-family: var(--font-display); font-size: 19px; }
.brand-name em { font-style: italic; color: var(--accent); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-weight: 600; font-size: 16px;
  padding: 13px 28px; border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #141005; }
.btn-primary:hover { background: #e0b25e; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { padding: 9px 20px; font-size: 14.5px; background: var(--accent); color: #141005; }
.btn-small:hover { background: #e0b25e; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 190px 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 380px at 78% 12%, rgba(210, 162, 76, 0.10), transparent 65%),
    radial-gradient(900px 500px at 12% 90%, rgba(70, 110, 160, 0.10), transparent 60%);
}
.hero-inner { position: relative; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.hero h1 { font-size: clamp(52px, 9vw, 108px); margin: 0 0 26px; }
.lede { font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); max-width: 640px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-meta { font-family: var(--font-mono); font-size: 13px; color: var(--faint); letter-spacing: 0.06em; }

.wave { margin-top: 70px; line-height: 0; }
.wave svg { width: 100%; height: 90px; display: block; }
.wave-a { fill: rgba(210, 162, 76, 0.14); animation: drift 14s ease-in-out infinite alternate; }
.wave-b { fill: rgba(210, 162, 76, 0.07); animation: drift 20s ease-in-out infinite alternate-reverse; }
@keyframes drift {
  from { transform: translateX(-28px); }
  to { transform: translateX(28px); }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 16px 0; background: var(--surface);
}
.marquee-track { display: flex; gap: 34px; width: max-content; animation: scroll 30s linear infinite; }
.marquee-track span { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee-track i { color: var(--accent); font-style: normal; font-size: 10px; align-self: center; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.work-card {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.25s, border-color 0.25s;
}
.work-card:hover { transform: translateY(-5px); border-color: rgba(210, 162, 76, 0.45); }
.work-visual { height: 190px; position: relative; display: flex; align-items: flex-end; padding: 18px 20px; }
.work-visual-1 { background: linear-gradient(135deg, #1d2a3a 0%, #0f1a26 60%, #132a24 100%); }
.work-visual-2 { background: linear-gradient(135deg, #2a2417 0%, #171208 60%, #241a10 100%); }
.work-visual-3 { background: linear-gradient(135deg, #241a2e 0%, #150f1c 60%, #1c1430 100%); }
.work-visual-4 { background: linear-gradient(135deg, #1c2434 0%, #10141d 60%, #1a2030 100%); }
.work-visual-5 { background: linear-gradient(135deg, #232a26 0%, #121714 60%, #1a2620 100%); }
.work-visual-photo { padding: 0; }
.work-visual-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work-card:hover .work-visual-photo img { transform: scale(1.05); }
.work-visual-photo .work-index { position: absolute; left: 20px; bottom: 12px; color: rgba(255,255,255,.9); text-shadow: 0 2px 12px rgba(0,0,0,.65); }
.work-visual-photo::after { opacity: .22; }
.viz-bars { position: absolute; right: 14px; bottom: 0; width: 62%; height: 78%; opacity: .85; }
.viz-bars rect { fill: rgba(210,162,76,.5); }
.viz-bars rect:last-child { fill: var(--accent); }
.viz-nodes { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 62%; height: 70%; opacity: .85; }
.viz-nodes circle { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.viz-nodes path { stroke: rgba(210,162,76,.55); stroke-width: 2; fill: none; }
.work-link { display: inline-block; margin-top: 14px; font-family: var(--font-mono); font-size: 13px; color: var(--accent); text-decoration: none; letter-spacing: .04em; }
.work-link:hover { text-decoration: underline; }
.work-visual::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.13) 1px, transparent 1px);
  background-size: 22px 22px; opacity: 0.5;
}
.work-index { font-family: var(--font-display); font-style: italic; font-size: 44px; color: rgba(255,255,255,0.28); position: relative; z-index: 1; }
.work-body { padding: 24px 24px 26px; }
.work-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.work-tags span, .service-tags span {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; color: var(--muted);
}
.work-body h3 { font-size: 24px; margin-bottom: 10px; }
.work-body p { color: var(--muted); font-size: 15.5px; }
.work-note { margin-top: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: 0.06em; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.service-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: border-color 0.25s, transform 0.25s;
}
.service-card:hover { border-color: rgba(210, 162, 76, 0.45); transform: translateY(-5px); }
.service-num { font-family: var(--font-mono); color: var(--accent); font-size: 13px; letter-spacing: 0.2em; margin-bottom: 16px; }
.service-card h3 { font-size: 25px; margin-bottom: 12px; }
.service-card > p { color: var(--muted); font-size: 15.5px; margin-bottom: 20px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Process ---------- */
.process-list { list-style: none; margin-top: 52px; display: grid; gap: 0; }
.process-list li {
  display: grid; grid-template-columns: 90px 1fr; gap: 24px;
  padding: 34px 0; border-top: 1px solid var(--line);
}
.process-list li:last-child { border-bottom: 1px solid var(--line); }
.process-num { font-family: var(--font-display); font-style: italic; font-size: 34px; color: var(--accent); }
.process-list h3 { font-size: 23px; margin-bottom: 8px; }
.process-list p { color: var(--muted); max-width: 640px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.about-copy p { margin-bottom: 20px; color: var(--muted); font-size: 18px; }
.about-copy p.muted { color: var(--faint); font-size: 16px; }

/* ---------- Contact ---------- */
.contact-inner { max-width: 720px; }
.contact-form { margin-top: 44px; display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: grid; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.contact-form input, .contact-form textarea {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; color: var(--text); font-family: var(--font-body); font-size: 16px;
  width: 100%; transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { resize: vertical; }
.form-note { font-size: 13.5px; color: var(--faint); }
.form-status { font-size: 14px; min-height: 1.6em; font-family: var(--font-mono); }
.form-status.ok { color: #7fd08a; }
.form-status.err { color: #ff9a9a; }
.contact-form button[disabled] { opacity: .6; cursor: wait; }
/* honeypot: hidden from humans, bots fill it */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-direct { margin-top: 34px; color: var(--muted); }
.contact-direct a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(210,162,76,0.4); }
.contact-direct a:hover { border-bottom-color: var(--accent); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer p { color: var(--faint); font-size: 14px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--faint); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--text); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .wave-a, .wave-b { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .work-grid, .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 80px 0; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--surface);
    border-bottom: 1px solid var(--line); padding: 8px 24px 18px; margin: 0;
  }
  .nav-links.open a { padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .process-list li { grid-template-columns: 56px 1fr; gap: 16px; }
  .hero { padding-top: 150px; }
}
