/* i-d3sign.com — modern brutalist system */
:root {
  --paper: #f2efe9;
  --ink: #141414;
  --accent: #ff4d00;
  --rule: 1px solid var(--ink);
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--paper); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1rem; font-family: var(--font-mono); font-size: 0.8rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
img { max-width: 100%; height: auto; display: block; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: stretch;
  background: var(--paper);
  border-bottom: var(--rule);
}
.site-header .wordmark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 1.25rem;
  text-decoration: none;
  border-right: var(--rule);
}
.site-header nav { display: flex; }
.site-header nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.25rem;
  border-left: var(--rule);
}
.site-header nav a:hover { background: var(--ink); color: var(--paper); }

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-bottom: var(--rule);
  overflow: hidden;
}
.hero canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero-inner {
  position: relative; z-index: 2;
  padding: 2rem 1.25rem 2.5rem;
}
.hero .kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
  background: var(--paper);
  border: var(--rule);
  padding: 0.25rem 0.6rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 7.5vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-transform: uppercase;
  max-width: 14ch;
}
.hero h1 .accent { color: var(--accent); }
.hero .sub {
  margin-top: 1.25rem;
  max-width: 46ch;
  font-size: 1.05rem;
  display: inline-block;
  background: var(--paper);
  border: var(--rule);
  padding: 0.55rem 0.8rem;
  box-shadow: 5px 5px 0 var(--ink);
}

/* Sections */
section { border-bottom: var(--rule); }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1rem 1.25rem;
  border-bottom: var(--rule);
}
.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.section-head .num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* Work list */
.work-list { list-style: none; }
.work-list li { border-bottom: var(--rule); }
.work-list li:last-child { border-bottom: 0; }
.work-list a {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.4rem 1.25rem;
  text-decoration: none;
}
.work-list a:hover { background: var(--ink); color: var(--paper); }
.work-list a:hover .tag { border-color: var(--paper); }
.work-list .idx { font-family: var(--font-mono); font-size: 0.85rem; }
.work-list .title { font-size: clamp(1.4rem, 3.4vw, 2.4rem); font-weight: 700; text-transform: uppercase; }
.work-list .tags { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: var(--rule);
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}

/* Venture cards */
.ventures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.venture {
  border-right: var(--rule);
  padding: 1.5rem 1.25rem 2rem;
  text-decoration: none;
  display: flex; flex-direction: column; gap: 0.9rem;
  min-height: 240px;
}
.venture:last-child { border-right: 0; }
.venture:hover { background: var(--accent); color: var(--paper); }
.venture:hover .tag { border-color: var(--paper); }
.venture .v-name { font-size: 1.6rem; font-weight: 700; text-transform: uppercase; }
.venture .v-desc { font-size: 0.95rem; flex: 1; }
.venture .v-link {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.about-grid > div { padding: 1.5rem 1.25rem 2rem; }
.about-grid > div:first-child { border-right: var(--rule); }
.about-grid p + p { margin-top: 1rem; }
.about-grid .mono-list {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  list-style: none;
}
.about-grid .mono-list li { border-bottom: 1px dashed var(--ink); padding: 0.3rem 0; }

/* Case study pages */
.case-hero { padding: 4rem 1.25rem 2.5rem; border-bottom: var(--rule); }
.case-hero .back {
  font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  display: inline-block; margin-bottom: 2rem;
}
.case-hero h1 { font-size: clamp(2.2rem, 6vw, 4.6rem); text-transform: uppercase; line-height: 1; letter-spacing: -0.02em; }
.case-hero .lede { margin-top: 1.4rem; font-size: 1.15rem; max-width: 56ch; }
.case-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-bottom: var(--rule);
}
.case-meta > div { padding: 1rem 1.25rem; border-right: var(--rule); }
.case-meta > div:last-child { border-right: 0; }
.case-meta .k { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; }
.case-meta .v { font-size: 1rem; margin-top: 0.3rem; }
.case-body { max-width: 72ch; padding: 2.5rem 1.25rem 3rem; }
.case-body h2 {
  font-size: 1.5rem; text-transform: uppercase;
  margin: 2.2rem 0 0.8rem;
  padding-top: 1.2rem; border-top: var(--rule);
}
.case-body h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.case-body p + p { margin-top: 1rem; }
.case-body ul { margin: 1rem 0 0 1.2rem; }
.case-body figure { margin: 2rem 0; border: var(--rule); }
.case-body figcaption {
  font-family: var(--font-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.5rem 0.75rem; border-top: var(--rule);
}
.outcome-band {
  border-top: var(--rule);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.outcome-band > div { padding: 1.5rem 1.25rem; border-right: var(--rule); }
.outcome-band > div:last-child { border-right: 0; }
.outcome-band .big { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; line-height: 1; }
.outcome-band .lbl { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.5rem; }

/* Archive gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.gallery figure { border-right: var(--rule); border-bottom: var(--rule); }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery figcaption {
  padding: 0.7rem 0.9rem;
  border-top: var(--rule);
  font-family: var(--font-mono); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  display: flex; justify-content: space-between; gap: 0.5rem;
}

/* Footer */
.site-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding: 1.2rem 1.25rem;
  font-family: var(--font-mono); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid > div:first-child { border-right: 0; border-bottom: var(--rule); }
  .work-list a { grid-template-columns: 2.4rem 1fr; }
  .work-list .tags { grid-column: 2; justify-content: flex-start; }
  .venture { border-right: 0; border-bottom: var(--rule); min-height: 0; }
  .site-header nav a { padding: 1rem 0.8rem; }
}
