:root {
  --ink: #111211;
  --ink-soft: #1a1b19;
  --paper: #f5f1e8;
  --muted: #a5a49d;
  --line: #343530;
  --lime: #c8f85c;
  --orange: #f16d4c;
  --blue: #79a9df;
  --content: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.22;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(245, 241, 232, 0.025) 1px, transparent 1px), linear-gradient(to bottom, rgba(245, 241, 232, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 12px; background: var(--lime); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 16px; }

.site-header {
  width: var(--content);
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(17, 18, 17, 0.9);
  backdrop-filter: blur(14px);
}
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-wordmark { font-weight: 800; font-size: 15px; letter-spacing: 0.12em; }
.brand-mark { width: 22px; height: 22px; display: block; flex: 0 0 auto; }
.brand-mark path { stroke: var(--ink); stroke-width: 1.5px; stroke-linejoin: round; }
.brand-mark .mark-lime { fill: var(--lime); }
.brand-mark .mark-orange { fill: var(--orange); }
.brand-mark .mark-blue { fill: var(--blue); }
.desktop-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; margin-right: 34px; }
.desktop-nav a, .header-contact, .site-footer a { color: var(--muted); font-size: 14px; transition: color 160ms ease; }
.desktop-nav a:hover, .site-footer a:hover { color: var(--paper); }
.header-contact { padding: 9px 14px; border: 1px solid var(--line); color: var(--paper); }
.header-contact:hover { color: var(--ink); border-color: var(--lime); background: var(--lime); }
.mobile-nav { display: none; }

.hero { width: var(--content); min-height: 710px; display: grid; grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr); align-items: center; gap: 48px; margin: 0 auto; padding: 86px 0 72px; }
.company-name, .section-index, .project-category, .project-status { margin: 0; font-size: 11px; line-height: 1.3; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.company-name { color: var(--lime); margin-bottom: 18px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif; font-weight: 700; letter-spacing: 0; text-wrap: balance; }
h1 { max-width: 640px; margin-bottom: 25px; font-size: clamp(50px, 6.1vw, 89px); line-height: 0.93; }
h1 em { color: var(--lime); font-style: normal; }
.hero-intro { max-width: 460px; margin-bottom: 35px; color: #cfcdc5; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 12px 17px; border: 1px solid transparent; font-size: 14px; font-weight: 700; transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--lime); }
.button-primary:hover { background: #d9ff7d; }
.button-secondary { border-color: var(--line); }
.button-secondary:hover { border-color: var(--paper); }
.hero-art { margin: 0; align-self: stretch; min-height: 490px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--ink-soft); border-bottom: 1px solid var(--line); }
.hero-art img { width: 100%; height: 430px; display: block; object-fit: cover; object-position: center; filter: saturate(0.88) contrast(1.04); transform: scale(1.02); }
.hero-art figcaption { min-height: 58px; display: flex; align-items: center; gap: 14px; padding: 0 16px; color: var(--muted); font-size: 12px; }
.hero-art figcaption span { color: var(--lime); font-weight: 700; }

.section { width: var(--content); margin: 0 auto; }
.projects { padding: 126px 0 140px; }
.section-intro { display: grid; grid-template-columns: 0.85fr 1.35fr 0.8fr; align-items: start; gap: 32px; margin-bottom: 54px; }
.section-index { padding-top: 11px; color: var(--lime); }
h2 { margin-bottom: 0; font-size: clamp(38px, 4.1vw, 62px); line-height: 0.96; }
.section-intro > p:last-child { color: var(--muted); font-size: 15px; max-width: 260px; padding-top: 8px; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card { min-width: 0; border: 1px solid var(--line); background: #161715; transition: transform 220ms ease, border-color 220ms ease; }
.project-card:hover { border-color: #676961; transform: translateY(-5px); }
.project-image-wrap { aspect-ratio: 1.22; position: relative; overflow: hidden; background: #0b0c0b; }
.project-image-wrap::after { position: absolute; inset: 0; content: ""; background: linear-gradient(to top, rgba(17, 18, 17, 0.55), transparent 58%); pointer-events: none; }
.project-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 500ms cubic-bezier(.2,.8,.2,1); }
.project-card:hover .project-image-wrap img { transform: scale(1.045); }
.project-status { position: absolute; z-index: 1; bottom: 13px; left: 14px; color: var(--paper); }
.project-card-body { min-height: 268px; padding: 22px 20px 20px; display: flex; flex-direction: column; }
.project-category { color: var(--lime); }
.project-card h3 { margin: 10px 0 12px; font-size: 32px; line-height: 0.98; }
.project-card-body > p { color: #c3c2ba; font-size: 14px; }
.project-notes { display: flex; flex-wrap: wrap; gap: 7px 13px; margin: auto 0 0; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.project-notes li::before { content: "•"; color: var(--orange); padding-right: 5px; }
.project-disclaimer { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted) !important; font-size: 11px !important; }

.about { display: grid; grid-template-columns: 0.75fr 1.6fr 0.8fr; gap: 42px; padding: 94px 0 110px; border-top: 1px solid var(--line); }
.about-aside .section-index { padding-top: 0; }
.about-mark { display: block; margin-top: 85px; font-family: "Arial Narrow", Impact, sans-serif; color: var(--orange); font-size: 152px; line-height: 0.68; }
.about-copy h2 { max-width: 520px; margin-bottom: 34px; }
.about-copy p { max-width: 565px; color: #cac9c0; font-size: 18px; }
.about-copy p + p { color: var(--muted); font-size: 15px; }
.principles { align-self: end; padding-bottom: 1px; }
.principles p { display: flex; gap: 12px; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); color: #d3d1c8; font-size: 13px; }
.principles span { color: var(--orange); font-size: 11px; font-weight: 700; }

.contact { display: grid; grid-template-columns: 1fr 0.95fr; gap: 44px; padding: 97px 0 110px; border-top: 1px solid var(--line); }
.contact-copy .section-index { padding-top: 0; margin-bottom: 24px; }
.contact-copy h2 { max-width: 630px; margin-bottom: 18px; }
.contact-copy > p:last-child { color: var(--muted); }
.contact-actions { align-self: end; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-bottom: 4px; }
.email-link { display: inline-flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--lime); color: var(--lime); font-size: clamp(20px, 2.3vw, 31px); font-weight: 700; overflow-wrap: anywhere; transition: color 160ms ease; }
.email-link:hover { color: #d9ff7d; }
.text-link { color: var(--muted); font-size: 14px; }
.text-link:hover { color: var(--paper); }
.text-link span, .email-link span { padding-left: 6px; }

.site-footer { width: var(--content); min-height: 94px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; align-items: center; margin: 0 auto; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-brand { color: var(--paper); font-size: 12px; font-weight: 700; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 18px; }

.legal-page { width: min(760px, calc(100vw - 48px)); min-height: calc(100vh - 182px); margin: 0 auto; padding: 108px 0 120px; }
.legal-page .section-index { margin-bottom: 18px; color: var(--lime); }
.legal-page h1 { margin-bottom: 18px; font-size: clamp(44px, 6vw, 76px); }
.legal-page h2 { margin: 48px 0 13px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 20px; line-height: 1.2; }
.legal-page p { max-width: 690px; color: #cbc9c0; }
.legal-page .legal-updated { color: var(--muted); font-size: 13px; }
.legal-page a { color: var(--lime); border-bottom: 1px solid var(--lime); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.hero-copy { transition-delay: 80ms; }
.hero-art { transition-delay: 180ms; }

@media (max-width: 840px) {
  :root { --content: min(100% - 36px, 600px); }
  .site-header { height: 72px; }
  .desktop-nav, .header-contact { display: none; }
  .mobile-nav { display: block; position: relative; }
  .mobile-nav summary { width: 38px; height: 38px; display: grid; place-content: center; gap: 5px; list-style: none; cursor: pointer; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary span { display: block; width: 18px; height: 1px; background: var(--paper); transition: transform 160ms ease; }
  .mobile-nav[open] summary span:first-child { transform: translateY(3px) rotate(45deg); }
  .mobile-nav[open] summary span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .mobile-nav nav { width: 160px; position: absolute; right: 0; top: 47px; display: grid; border: 1px solid var(--line); background: var(--ink-soft); box-shadow: 0 14px 30px rgba(0,0,0,.25); }
  .mobile-nav nav a { padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
  .mobile-nav nav a:last-child { border-bottom: 0; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 48px; padding: 60px 0 70px; }
  h1 { max-width: 560px; font-size: clamp(48px, 12vw, 74px); }
  .hero-art { min-height: auto; }
  .hero-art img { height: auto; aspect-ratio: 1.32; }
  .section-intro, .about, .contact { grid-template-columns: 1fr; gap: 26px; }
  .projects { padding: 84px 0 92px; }
  .section-intro { margin-bottom: 38px; }
  .section-index { padding-top: 0; }
  .section-intro > p:last-child { padding-top: 0; }
  .project-grid { grid-template-columns: 1fr; gap: 14px; }
  .project-card-body { min-height: auto; }
  .project-card h3 { font-size: 31px; }
  .about { padding: 74px 0 82px; }
  .about-mark { margin-top: 40px; }
  .about-copy p { font-size: 17px; }
  .principles { max-width: 380px; }
  .contact { padding: 76px 0 82px; }
  .contact-actions { align-self: auto; }
  .site-footer { grid-template-columns: 1fr; gap: 15px; padding: 26px 0; }
  .legal-page { width: var(--content); padding: 72px 0 84px; }
}

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