:root {
  --bg: #0a0a0a;
  --bg-2: #111;
  --fg: #fff;
  --fg-dim: #a1a1a1;
  --fg-mute: #6b6b6b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --accent: #ff6a2c;
  --accent-2: #ff8a52;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --pad: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'ss03', 'cv11';
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.015em; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 1rem;
}

.muted { color: var(--fg-dim); }

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding: 14px var(--pad);
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  border-bottom-color: var(--line);
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em;
}
.nav-brand img { width: 48px; height: 48px; object-fit: contain; }
.nav-links { display: flex; gap: clamp(18px, 2.5vw, 32px); justify-self: end; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--fg-dim);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 600;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-cta:hover { border-color: var(--accent); background: rgba(255, 106, 44, 0.08); }
.nav-cta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.45; } }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  position: relative;
  z-index: 60;
  background: transparent;
}
.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 16px; height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), top 0.4s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: translateX(-50%) rotate(-45deg); }

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  display: flex;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0) + 80px) var(--pad) calc(env(safe-area-inset-bottom, 0) + 32px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.4s;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s;
}
.mobile-menu-inner {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 48px;
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
}
.mobile-menu-links a {
  display: block;
  padding: 22px 0;
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease), padding-left 0.3s var(--ease);
  opacity: 0;
  transform: translateY(8px);
}
.mobile-menu-links a:hover { color: var(--accent); }
.mobile-menu.open .mobile-menu-links a {
  animation: menuItem 0.5s var(--ease) forwards;
}
.mobile-menu.open .mobile-menu-links a:nth-child(1) { animation-delay: 0.08s; }
.mobile-menu.open .mobile-menu-links a:nth-child(2) { animation-delay: 0.14s; }
.mobile-menu.open .mobile-menu-links a:nth-child(3) { animation-delay: 0.20s; }
@keyframes menuItem {
  to { opacity: 1; transform: translateY(0); }
}
.mobile-menu-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease) 0.3s, transform 0.5s var(--ease) 0.3s;
}
.mobile-menu.open .mobile-menu-foot {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu-cta {
  width: 100%;
  padding: 18px 28px;
  font-size: 1rem;
}
.mobile-menu-email {
  font-size: 0.92rem;
  color: var(--fg-dim);
  word-break: break-all;
}
.mobile-menu-email:hover { color: var(--fg); }

body.menu-open { overflow: hidden; }

@media (max-width: 820px) {
  .nav { grid-template-columns: auto 1fr auto; gap: 12px; padding: 12px var(--pad); }
  .nav-cta { display: none; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }
  .nav-brand img { width: 40px; height: 40px; }
  .nav-brand span { font-size: 0.88rem; max-width: 50vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 821px) {
  .mobile-menu { display: none; }
}

/* HERO */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: clamp(120px, 18vh, 180px) var(--pad) clamp(80px, 12vh, 140px);
  background: var(--bg);
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero-veil {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.4) 35%, rgba(10,10,10,0.85) 100%),
    radial-gradient(ellipse 60% 50% at 50% 50%, transparent 0%, rgba(10,10,10,0.5) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo {
  width: clamp(180px, 22vw, 280px);
  height: auto;
  margin-bottom: 36px;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
}
.hero-inner .eyebrow { color: rgba(255, 255, 255, 0.85); }
.hero .hero-sub { color: rgba(255, 255, 255, 0.85); }
.hero h1 {
  max-width: 16ch;
  margin-bottom: 24px;
}
.hero-sub {
  max-width: 42ch;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--fg-dim);
  margin-bottom: 36px;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
}
.hero-scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  z-index: 2;
}
.hero-scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 2px; height: 6px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translate(-50%, 0); opacity: 1; }
  50% { transform: translate(-50%, 12px); opacity: 0.2; }
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 28px rgba(255, 106, 44, 0.35);
}
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

/* SECTION RHYTHM */
section { padding: clamp(120px, 18vh, 220px) 0; }
.section-head {
  margin: 0 auto clamp(56px, 7vw, 96px);
  max-width: 760px;
  text-align: center;
}
.section-head h2 { margin-bottom: 18px; }
.section-head .eyebrow { margin-bottom: 16px; }
.lede { font-size: 1.1rem; color: var(--fg-dim); margin: 0 auto; max-width: 56ch; }
.eyebrow-center { text-align: center; }

/* SERVICES */
.services-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
@media (max-width: 820px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .services-grid { grid-template-columns: 1fr; } }
.service {
  text-align: center;
  padding: clamp(28px, 3.5vw, 44px) clamp(16px, 2vw, 28px);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--fg);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.service:hover { color: var(--accent); background: rgba(255, 106, 44, 0.04); }
@media (min-width: 821px) {
  .service:nth-child(3n) { border-right: 0; }
}
@media (min-width: 521px) and (max-width: 820px) {
  .service:nth-child(2n) { border-right: 0; }
}
@media (max-width: 520px) {
  .service { border-right: 0; }
}

/* WORK / CASES */
.case {
  max-width: 880px;
  margin: 0 auto;
}
.case + .case { margin-top: clamp(96px, 12vw, 160px); }
.case-meta {
  text-align: center;
  margin-bottom: clamp(32px, 3.5vw, 48px);
}
.case-meta h3 { margin-bottom: 10px; }
.case-meta p { color: var(--fg-dim); max-width: 52ch; margin: 0 auto; }
@media (max-width: 880px) { .case-row { grid-template-columns: 1fr; } }

/* SLIDER */
.slider {
  --pos: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  isolation: isolate;
}

.slider-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.slider-clip {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  will-change: clip-path;
}
.slider-tag {
  position: absolute;
  top: 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  z-index: 3;
}
.slider-tag-before { left: 16px; }
.slider-tag-after { right: 16px; }
.slider-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 64px;
  margin-left: -32px;
  z-index: 4;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}
.slider-handle:focus-visible { outline: none; }
.slider-handle:focus-visible .slider-handle-knob {
  box-shadow: 0 0 0 3px var(--accent), 0 8px 24px rgba(0, 0, 0, 0.4);
}
.slider-handle-line {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.slider-handle-knob {
  position: relative;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  color: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s var(--ease);
}
.slider-handle-knob svg { width: 22px; height: 22px; }
.slider:hover .slider-handle-knob,
.slider.dragging .slider-handle-knob { transform: scale(1.06); }
.slider.dragging { cursor: grabbing; }

/* VALUES */
.values { padding: clamp(140px, 18vh, 240px) 0; text-align: center; }
.values-line {
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
}
.values-line + .values-line { margin-top: 8px; }
.values-line.accent { color: var(--accent); }

/* INFO */
.info { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(64px, 8vw, 120px);
  align-items: start;
  text-align: center;
}
@media (max-width: 720px) { .info-grid { grid-template-columns: 1fr; gap: 80px; } }
.info-grid > div { display: flex; flex-direction: column; align-items: center; }
.info h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; max-width: 22ch; }
.info .muted { max-width: 36ch; }
.hours {
  list-style: none; margin: 24px 0 0; padding: 0;
  width: 100%; max-width: 360px;
}
.hours li {
  display: flex; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.hours li:last-child { border-bottom: 0; }
.hours li span:last-child { color: var(--fg-dim); }

/* CONTACT FORM */
.contact { background: var(--bg); }
.form {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field {
  display: grid;
  gap: 8px;
}
.field span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 16px 18px;
  font: inherit;
  color: var(--fg);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; padding-right: 44px; }
.field select option { background: var(--bg-2); color: var(--fg); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 106, 44, 0.04);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--fg-mute); }
.hp { position: absolute; left: -9999px; }

.btn-submit {
  justify-self: center;
  position: relative;
  min-width: 200px;
  margin-top: 8px;
}
.btn-submit .btn-spinner {
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  opacity: 0;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form.sending .btn-label { opacity: 0; }
.form.sending .btn-spinner { opacity: 1; }
.form.sent .btn-submit { background: #2ea043; box-shadow: 0 6px 28px rgba(46, 160, 67, 0.35); }
.form.sent .btn-label::before { content: "Sent. "; }
.form-status {
  font-size: 0.92rem;
  color: var(--fg-dim);
  min-height: 1.4em;
  text-align: center;
}
.form-status.error { color: #ff6464; }
.form-status.success { color: #4ade80; }

/* FOOTER */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: clamp(80px, 10vh, 140px) 0 40px;
  text-align: center;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(56px, 7vw, 96px);
  margin-bottom: clamp(60px, 8vh, 100px);
  justify-items: center;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; }
.footer-brand img { width: 140px; height: 140px; object-fit: contain; margin-bottom: 24px; }
.footer-brand p:nth-of-type(1) { font-weight: 600; font-size: 1.05rem; }
.footer .eyebrow { margin-bottom: 16px; }
.footer p { font-size: 0.95rem; color: var(--fg-dim); margin: 4px 0; }
.footer p a:hover { color: var(--fg); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

/* MOBILE TUNING */
@media (max-width: 600px) {
  :root { --pad: 22px; }
  section { padding: clamp(80px, 12vh, 120px) 0; }
  .hero { padding-top: 120px; padding-bottom: 80px; }
  .hero-logo { margin-bottom: 28px; }
  .hero h1 { letter-spacing: -0.03em; }
  .hero-sub { margin-bottom: 28px; }
  .hero-actions { width: 100%; flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .btn { padding: 16px 24px; font-size: 1rem; }
  .section-head { margin-bottom: clamp(40px, 8vw, 56px); }
  .case + .case { margin-top: 64px; }
  .case-meta { margin-bottom: 24px; }
  .slider-tag { font-size: 0.66rem; padding: 5px 10px; }
  .slider-tag-before { left: 12px; top: 12px; }
  .slider-tag-after { right: 12px; top: 12px; }
  .slider-handle-knob { width: 52px; height: 52px; }
  .form-row { gap: 16px; }
  .form { gap: 18px; }
  .values { padding: 100px 0; }
  .values-line + .values-line { margin-top: 4px; }
  .footer { padding: 80px 0 32px; }
  .footer-brand img { width: 110px; height: 110px; }
  .hero-scroll { display: none; }
}

/* REVEAL */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}
