/* ===== Tokens ===== */
:root {
  --bg: #121417;
  --panel: #1B1E23;
  --panel-2: #20242A;
  --line: rgba(245,243,239,0.09);
  --paper: #F5F3EF;
  --ink: #AFB2B7;
  --ink-bright: #F5F3EF;
  --brass: #7fbf55;
  --brass-dim: rgba(127,191,85,0.16);
  --blueprint: #6E93B5;

  --display: 'Figtree', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: var(--body);

  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  margin: 0;
  color: var(--paper);
  letter-spacing: -0.01em;
}

p { color: var(--ink); }

/* ===== Kicker (eyebrow label) ===== */
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--brass);
}
.kicker-tick { height: 8px; width: 1px; background: var(--brass); }
.kicker-line { width: 28px; height: 1px; background: var(--brass); }
.kicker-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(26px, 3vw, 38px); max-width: 620px; line-height: 1.15; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--body);
  white-space: nowrap;
  transition: transform .15s, background .15s, opacity .15s;
}
.pill-brass { background: var(--brass); color: #17140F; }
.pill-brass:hover { transform: translateY(-1px); opacity: .92; }
.pill-outline { border: 1px solid rgba(245,243,239,0.35); color: var(--paper); }
.pill-outline:hover { border-color: var(--brass); color: var(--brass); }

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18,20,23,0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--paper);
  text-transform: uppercase;
}
.logo span { color: var(--brass); }
.logo-img { height: 34px; width: auto; display: block; }
nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
nav a:hover { border-color: var(--brass); color: var(--brass); }

/* ===== Hero (full-bleed image + overlaid type) ===== */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(18,20,23,0.96) 0%, rgba(18,20,23,0.8) 55%, rgba(18,20,23,0.55) 100%),
    linear-gradient(to right, rgba(18,20,23,0.42), transparent 60%);
}
.hero-inner {
  position: relative;
  width: 100%;
  padding-bottom: 64px;
}
.hero-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--brass);
  margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(40px, 6.5vw, 100px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-transform: uppercase;
}
.hero-sub {
  font-family: var(--mono);
  font-size: clamp(13px, 1.6vw, 16px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 12px;
}
.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-copy { max-width: 420px; font-size: 15px; }
.hero-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.stat-card {
  background: rgba(27,30,35,0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  padding: 16px 20px;
  min-width: 128px;
}
.stat-card b {
  display: block;
  font-family: var(--display);
  font-size: 24px;
  color: var(--brass);
  font-weight: 700;
}
.stat-card span {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink);
  letter-spacing: 0.04em;
  display: block;
  margin-top: 4px;
}

/* ===== Sections ===== */
section { padding: 100px 0; }
section.tight { padding: 72px 0; }
.section-alt { background: var(--panel); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.about-grid p { font-size: 16px; margin: 0 0 16px; }
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0 28px;
}
.feature-row .f b { display: block; color: var(--paper); font-size: 14px; margin-bottom: 4px; }
.feature-row .f span { font-size: 13px; color: var(--ink); }
.feature-row .f .icon { color: var(--brass); margin-bottom: 10px; }

.about-media { position: relative; border-radius: 8px; overflow: hidden; }
.about-media img { width: 100%; height: 460px; object-fit: cover; }
.about-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(18,20,23,0.82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 18px;
  max-width: 220px;
}
.about-badge b { display: block; font-family: var(--display); color: var(--brass); font-size: 15px; }
.about-badge span { font-size: 12px; color: var(--ink); line-height: 1.4; }

/* Services grid */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.svc-card {
  background: var(--panel);
  padding: 30px 26px;
}
.section-alt .svc-card { background: var(--bg); }
.svc-card .icon { color: var(--brass); margin-bottom: 18px; }
.svc-card h3 { font-size: 16px; margin-bottom: 8px; }
.svc-card p { font-size: 13.5px; margin: 0; }

/* Project grids */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.proj-grid figure { margin: 0; position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 3/4; background: var(--panel); }
.proj-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.proj-grid figure:hover img { transform: scale(1.05); }
.proj-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--paper);
  background: linear-gradient(to top, rgba(18,20,23,0.9), transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s, transform .25s;
}
.proj-grid figure:hover figcaption { opacity: 1; transform: translateY(0); }

/* Featured project (reveal slider) */
.featured-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.featured-meta {
  display: grid;
  gap: 12px;
  margin: 24px 0 28px;
  font-family: var(--mono);
  font-size: 13px;
}
.featured-meta div { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; }
.featured-meta span:first-child { color: var(--ink); }
.featured-meta span:last-child { color: var(--paper); }

.reveal {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
}
.reveal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; pointer-events: none; }
.reveal .rendered { clip-path: inset(0 0 0 50%); z-index: 2; }
.reveal .drawn { z-index: 1; }
.reveal-tag {
  position: absolute; top: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  color: #fff; background: rgba(18,20,23,0.6); padding: 5px 10px; border-radius: 2px;
  pointer-events: none;
}
.tag-drawn { left: 16px; }
.tag-rendered { right: 16px; }
.reveal-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.reveal-handle::after {
  content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 38px; height: 38px; border-radius: 50%; background: var(--brass); color: #17140F;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.reveal-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.reveal-caption { font-family: var(--mono); font-size: 11.5px; color: var(--ink); margin-top: 14px; letter-spacing: 0.04em; }

/* Clients band */
.clients-band {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 48px;
}
.clients-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  columns: 3;
  column-gap: 40px;
}
.clients-list li {
  font-family: var(--mono);
  font-size: 13.5px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: var(--paper);
  break-inside: avoid;
}
.clients-list li:before { content: "— "; color: var(--brass); }

/* Contact band */
.contact-band {
  background: linear-gradient(135deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 56px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.contact-band h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 20px; }
.contact-links { display: grid; gap: 8px; font-family: var(--mono); font-size: 14px; }
.contact-links a { text-decoration: none; color: var(--paper); border-bottom: 1px solid rgba(245,243,239,0.25); }
.contact-links a:hover { border-color: var(--brass); color: var(--brass); }

.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: grid; gap: 6px; }
.form-field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(18,20,23,0.55);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 11px 13px;
  color: var(--paper);
  font-family: var(--body);
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--brass); }
.contact-form .pill { justify-self: start; border: none; cursor: pointer; font-size: 13px; }
.hp-field { position: absolute; left: -9999px; }
.form-status {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--brass);
  min-height: 16px;
  margin: 0;
}

footer { padding: 32px 0; border-top: 1px solid var(--line); }
footer .wrap { font-family: var(--mono); font-size: 11.5px; color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.footer-logo { height: 22px; width: auto; justify-self: start; }
.footer-copy { text-align: center; }
.footer-loc { text-align: right; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media img { height: 320px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr; gap: 32px; }
  .clients-list { columns: 2; }
  .hero-row { flex-direction: column; align-items: flex-start; }
  .contact-band { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 22px; }
  nav ul { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .feature-row { grid-template-columns: 1fr; gap: 18px; }
  .clients-list { columns: 1; }
  .clients-band, .contact-band { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; }
  .footer-logo { justify-self: center; }
  .footer-loc { text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .proj-grid img { transition: none; }
}

a:focus-visible, .pill:focus-visible, input:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
