:root {
  --ink: #0b0d0d;
  --ink-soft: #151817;
  --paper: #f1efe8;
  --muted: #a8aaa4;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #dfff73;
  --accent-2: #8ad9d2;
  --radius: 28px;
  --max: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent); color: var(--ink); }

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%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)' opacity='.8'/%3E%3C/svg%3E");
}
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  z-index: 50;
  width: 100%;
  transition: transform 0.4s var(--ease);
}
.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px 12px 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 13, 13, 0.72);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(20px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.13em;
}
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.04em;
}
.desktop-nav { display: flex; align-items: center; gap: 4px; }
.desktop-nav a {
  padding: 12px 17px;
  border-radius: 999px;
  color: #cfd1cb;
  font-size: 0.84rem;
  transition: color 0.25s ease, background 0.25s ease;
}
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.09); color: #fff; }
.nav-cta, .button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 760;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background 0.3s ease;
}
.button:hover, .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(223, 255, 115, 0.18); }
.button.secondary { border-color: var(--line); background: rgba(255, 255, 255, 0.05); color: var(--paper); }
.arrow { font-size: 1.2em; line-height: 1; }
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle span { display: block; width: 17px; height: 2px; margin: 4px auto; background: currentColor; transition: transform 0.3s ease; }
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 110px 24px 40px;
  background: rgba(11, 13, 13, 0.97);
  transform: translateY(-105%);
  transition: transform 0.6s var(--ease);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a { padding: 10px 0; font-size: clamp(2.2rem, 11vw, 4rem); font-weight: 630; letter-spacing: -0.05em; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before { width: 28px; height: 1px; background: currentColor; content: ""; }

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  padding: 140px 0 54px;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,13,13,.94) 0%, rgba(11,13,13,.62) 45%, rgba(11,13,13,.18) 78%), linear-gradient(0deg, var(--ink) 0%, transparent 40%);
  content: "";
}
.hero-media img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: center 55%;
  transform: translate3d(0, var(--hero-shift, 0), 0) scale(1.035);
  filter: saturate(0.72) contrast(1.05);
  will-change: transform;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(230px, 0.5fr); align-items: end; gap: 48px; }
.hero h1, .page-hero h1 {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(3.7rem, 9.4vw, 9.5rem);
  font-weight: 580;
  letter-spacing: -0.075em;
  line-height: 0.84;
}
.hero h1 span { display: block; color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.72); }
.hero-side { padding-bottom: 9px; }
.hero-side p { margin: 0 0 26px; color: #d2d4ce; font-size: clamp(1rem, 1.35vw, 1.18rem); line-height: 1.65; }
.scroll-hint {
  position: absolute;
  right: 24px;
  bottom: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(90deg) translateX(100%);
  transform-origin: right bottom;
}

.section { padding: clamp(88px, 11vw, 160px) 0; }
.section.tight { padding-top: 44px; }
.section-header { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 40px; margin-bottom: 56px; }
.section-header h2, .statement h2, .contact-lead h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5.8vw, 6.5rem);
  font-weight: 570;
  letter-spacing: -0.065em;
  line-height: 0.96;
}
.section-header p { max-width: 540px; margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service-card {
  position: relative;
  min-height: 300px;
  padding: 30px 28px 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease;
}
.service-card:nth-child(3n + 1) { border-left: 1px solid var(--line); }
.service-card:hover { background: rgba(255, 255, 255, 0.045); }
.service-card .number { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; }
.service-card h3 { margin: 86px 0 14px; font-size: 1.42rem; font-weight: 580; }
.service-card p { margin: 0; color: var(--muted); line-height: 1.7; }

.feature-band { position: relative; overflow: hidden; background: var(--accent); color: var(--ink); }
.marquee { display: flex; width: max-content; padding: 18px 0; animation: marquee 26s linear infinite; }
.marquee span { padding-right: 34px; font-size: clamp(1.5rem, 3vw, 3.2rem); font-weight: 700; letter-spacing: -0.045em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

.projects-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.project-card {
  position: relative;
  grid-column: span 4;
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-soft);
  cursor: zoom-in;
}
.project-card:nth-child(2) { margin-top: 80px; }
.project-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75); transition: transform 0.8s var(--ease), filter 0.6s ease; }
.project-card:hover img { transform: scale(1.045); filter: saturate(1); }
.project-info {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(11, 13, 13, 0.68);
  backdrop-filter: blur(18px);
}
.project-title { display: block; margin: 0 0 5px; font-size: 1rem; font-weight: 650; }
.project-meta { display: block; margin: 0; color: #bfc1bb; font-size: 0.78rem; }
.project-info b { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--accent); color: var(--ink); }

.statement { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 80px; align-items: end; }
.statement h2 em { color: var(--accent-2); font-style: normal; }
.statement-copy { padding-bottom: 8px; }
.statement-copy p { margin: 0 0 28px; color: var(--muted); font-size: 1.05rem; line-height: 1.8; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 78px; border-top: 1px solid var(--line); }
.process-step { padding: 24px 22px 10px 0; }
.process-step span { color: var(--accent); font: 0.72rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.process-step h3 { margin: 42px 0 10px; font-size: 1.1rem; font-weight: 600; }
.process-step p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

.page-hero { padding: 190px 0 90px; }
.page-hero h1 { max-width: 1180px; font-size: clamp(4.2rem, 10.5vw, 10.5rem); }
.page-hero .intro {
  display: grid;
  grid-template-columns: 1fr 0.58fr;
  gap: 50px;
  align-items: end;
  margin-top: 54px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.page-hero .intro p { max-width: 600px; margin: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.8; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.metric { min-height: 250px; padding: 28px; background: var(--ink); }
.metric strong { display: block; margin-top: 70px; color: var(--accent); font-size: clamp(2.6rem, 5vw, 5.5rem); font-weight: 580; letter-spacing: -0.06em; }
.metric span { color: var(--muted); font-size: 0.86rem; }
.about-split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 70px; }
.about-split h2 { margin: 0; font-size: clamp(2rem, 4vw, 4.2rem); letter-spacing: -0.055em; line-height: 1; }
.about-copy p { margin: 0 0 25px; color: #c4c6c0; font-size: clamp(1.05rem, 1.6vw, 1.28rem); line-height: 1.8; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card {
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
}
.value-card b { display: inline-grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--accent); color: var(--ink); }
.value-card h3 { margin: 78px 0 13px; font-size: 1.3rem; }
.value-card p { margin: 0; color: var(--muted); line-height: 1.65; }

.gallery-tools { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-button {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  transition: 0.25s ease;
}
.filter-button:hover, .filter-button.active { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.filter-button span { margin-left: 5px; opacity: 0.62; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.gallery-count { color: var(--muted); font: 0.75rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.gallery-sections { display: grid; gap: clamp(90px, 12vw, 160px); }
.gallery-category { scroll-margin-top: 120px; }
.gallery-category-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.gallery-category-header .eyebrow { margin-bottom: 14px; }
.gallery-category-header h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5.8vw, 6.4rem);
  font-weight: 570;
  letter-spacing: -0.065em;
  line-height: 0.92;
}
.gallery-category-header > span {
  flex: 0 0 auto;
  color: var(--muted);
  font: 0.75rem ui-monospace, SFMono-Regular, Menlo, monospace;
}
.gallery-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 60px 24px;
  border: 1px dashed var(--line);
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
}
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.gallery-item {
  position: relative;
  grid-column: span 4;
  min-height: 470px;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: var(--ink-soft);
  color: var(--paper);
  cursor: zoom-in;
  text-align: left;
}
.gallery-item:nth-child(5n + 1), .gallery-item:nth-child(5n + 5) { grid-column: span 8; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.78); transition: transform 0.75s var(--ease), filter 0.4s ease; }
.gallery-item:hover img { transform: scale(1.04); filter: saturate(1); }
.gallery-item .project-info { pointer-events: none; }
.gallery-item.is-hidden { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 22px;
  background: rgba(4, 5, 5, 0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { width: 100%; height: calc(100vh - 100px); object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}
.lightbox-caption { padding: 12px 0 2px; color: var(--muted); text-align: center; }

.contact-layout { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: 80px; padding-bottom: 130px; }
.contact-lead h2 { margin-bottom: 32px; }
.contact-list { margin-top: 58px; border-top: 1px solid var(--line); }
.contact-list a, .contact-list div { display: block; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-list small { display: block; margin-bottom: 6px; color: var(--muted); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-list span { font-size: 1rem; }
.contact-card {
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018));
}
.contact-card h3 { margin: 0 0 38px; font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 580; letter-spacing: -0.04em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 9px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #c5c7c1; font-size: 0.76rem; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: rgba(0, 0, 0, 0.18);
  color: var(--paper);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field input, .field select { height: 54px; padding: 0 15px; }
.field textarea { min-height: 150px; resize: vertical; padding: 15px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(223, 255, 115, 0.09); }
.field select option { background: var(--ink); }
.form-note { margin: 18px 0 24px; color: var(--muted); font-size: 0.76rem; line-height: 1.6; }
.form-status { min-height: 24px; margin: 15px 0 0; color: var(--accent); font-size: 0.82rem; }

.cta-panel { position: relative; overflow: hidden; padding: clamp(70px, 10vw, 140px) 0; background: var(--paper); color: var(--ink); }
.cta-panel::after {
  position: absolute;
  top: -30%;
  right: -8%;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(11, 13, 13, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(11, 13, 13, 0.025), 0 0 0 120px rgba(11, 13, 13, 0.02);
  content: "";
}
.cta-panel .inner { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.cta-panel h2 { max-width: 850px; margin: 0; font-size: clamp(3rem, 7vw, 8rem); font-weight: 580; letter-spacing: -0.075em; line-height: 0.9; }
.cta-panel .button { flex: 0 0 auto; background: var(--ink); color: var(--paper); }

.site-footer { padding: 70px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; gap: 45px; padding-bottom: 58px; }
.footer-brand { max-width: 360px; }
.footer-brand p { margin: 22px 0 0; color: var(--muted); line-height: 1.7; }
.footer-col h3 { margin: 0 0 18px; color: var(--muted); font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase; }
.footer-col a, .footer-col span { display: block; margin: 0 0 10px; color: #d5d7d0; font-size: 0.88rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); color: #777b75; font-size: 0.72rem; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .desktop-nav, .nav-shell > .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .hero-grid, .section-header, .statement, .page-hero .intro, .contact-layout { grid-template-columns: 1fr; }
  .hero { min-height: 860px; }
  .hero h1 { max-width: 820px; }
  .hero-side { max-width: 480px; }
  .scroll-hint { display: none; }
  .services-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(3n + 1) { border-left: 0; }
  .service-card:nth-child(2n + 1) { border-left: 1px solid var(--line); }
  .project-card { grid-column: span 6; }
  .project-card:last-child { display: none; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-split { grid-template-columns: 1fr; gap: 40px; }
  .gallery-item, .gallery-item:nth-child(5n + 1), .gallery-item:nth-child(5n + 5) { grid-column: span 6; }
  .contact-layout { gap: 60px; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .site-header { top: 10px; }
  .nav-shell { min-height: 60px; padding: 7px 8px 7px 14px; }
  .brand { font-size: 0.65rem; }
  .brand-mark { width: 36px; height: 36px; }
  .hero { min-height: 760px; padding-bottom: 34px; }
  .hero-media::after { background: linear-gradient(0deg, rgba(11,13,13,1) 4%, rgba(11,13,13,.48) 64%, rgba(11,13,13,.35)); }
  .hero h1, .page-hero h1 { font-size: clamp(3.25rem, 17vw, 5.8rem); line-height: 0.88; }
  .hero-grid { gap: 30px; }
  .hero-side p { font-size: 0.95rem; }
  .section { padding: 86px 0; }
  .section-header { gap: 22px; margin-bottom: 38px; }
  .services-grid, .values-grid, .metrics { grid-template-columns: 1fr; }
  .service-card, .service-card:nth-child(2n + 1) { min-height: 260px; border-left: 1px solid var(--line); }
  .service-card h3 { margin-top: 60px; }
  .projects-row { display: block; }
  .project-card, .project-card:nth-child(2) { min-height: 490px; margin: 0 0 16px; }
  .project-card:last-child { display: block; }
  .statement { gap: 34px; }
  .process-grid { grid-template-columns: 1fr; margin-top: 55px; }
  .process-step { padding: 22px 0; border-bottom: 1px solid var(--line); }
  .process-step h3 { margin-top: 24px; }
  .page-hero { padding: 145px 0 60px; }
  .page-hero .intro { margin-top: 38px; }
  .metric { min-height: 190px; }
  .metric strong { margin-top: 45px; }
  .gallery-tools { align-items: flex-start; flex-direction: column; }
  .gallery-category-header { align-items: flex-start; flex-direction: column; }
  .gallery-grid { display: block; }
  .gallery-item { width: 100%; min-height: 460px; margin-bottom: 14px; }
  .contact-layout { padding-bottom: 90px; }
  .contact-card { border-radius: 25px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .cta-panel .inner { align-items: flex-start; flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
