:root {
  --ink: #171717;
  --paper: #e8e8e5;
  --white: #f8f8f6;
  --line: #bcbcb8;
  --muted: #545454;
  font-family: Lato, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
}
a {
  color: inherit;
}
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
img {
  max-width: 100%;
}
.skip {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: white;
  color: black;
  padding: 0.7rem;
  z-index: 10;
}
.skip:focus {
  top: 1rem;
}
.header {
  height: 90px;
  padding: 0 clamp(20px, 3vw, 55px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  border-bottom: 1px solid var(--ink);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  width: max-content;
}
.brand img {
  width: 48px;
  height: 48px;
}
.brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-top: 0.2rem;
}
.header nav {
  display: flex;
  gap: 2.2rem;
}
.header nav a {
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
}
.header nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.header-note {
  text-align: right;
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.hero {
  min-height: calc(100vh - 90px);
  background: var(--ink);
  color: var(--white);
  padding: 25px clamp(20px, 3vw, 55px) 30px;
  display: flex;
  flex-direction: column;
}
.hero-top,
.hero-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.hero-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
}
.hero-nav a {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}
.hero-nav a:hover {
  text-decoration-thickness: 2px;
}
.hero-wordmark {
  display: block;
  color: var(--white);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.13em;
}
.hero-wordmark small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
}
.hero-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(270px, 41%) 1fr;
  align-items: center;
  gap: clamp(3rem, 7vw, 10rem);
  padding: 5rem 0;
}
.hero-logo {
  width: min(100%, 530px);
  aspect-ratio: 1;
  background: var(--white);
  display: grid;
  place-items: center;
  transform: rotate(-5deg);
  box-shadow: 18px 18px 0 #555;
}
.hero-logo img {
  width: 74%;
  height: 74%;
  object-fit: contain;
}
.kicker,
.side-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}
.side-label {
  font-family: 'Courier New', monospace;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.4rem;
  border-top: 2px solid currentColor;
  padding-top: 0.75rem;
  width: max-content;
  max-width: 100%;
  min-width: 160px;
  line-height: 1.25;
  margin: 0;
}
.side-label .chapter-number {
  display: block;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.side-label .chapter-title {
  display: block;
  font-family: Lato, Arial, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  white-space: nowrap;
}
.hero h1 {
  font-size: clamp(4rem, 9vw, 9.5rem);
  letter-spacing: -0.075em;
  line-height: 0.87;
  margin: 1.8rem 0 2.8rem;
}
.hero h1 em {
  font-weight: 400;
  font-style: normal;
  font-family: Georgia, serif;
  letter-spacing: -0.09em;
}
.hero-copy > p:not(.kicker) {
  max-width: 450px;
  font-size: 1.18rem;
  line-height: 1.6;
  color: #d3d3d3;
}
.statement,
.about,
.contact {
  display: grid;
  grid-template-columns: 23% 1fr;
  gap: 2rem;
  padding: clamp(5rem, 8vw, 10rem) clamp(20px, 3vw, 55px);
}
.statement {
  border-bottom: 1px solid var(--ink);
}
.statement-lead {
  font-size: clamp(2.6rem, 5.2vw, 5.9rem);
  line-height: 1.12;
  letter-spacing: -0.055em;
  margin: 0 0 4rem;
  max-width: 1400px;
}
.statement-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
}
.statement-columns p,
.about p:not(.side-label) {
  font-size: 1.09rem;
  line-height: 1.75;
  margin: 0;
  color: #333;
}
.capabilities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  border-top: 1px solid var(--ink);
  margin-top: 4rem;
  padding-top: 1.2rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.projects {
  padding: clamp(5rem, 8vw, 10rem) clamp(20px, 3vw, 55px);
  background: var(--white);
}
.projects-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 3rem;
  margin-bottom: 4rem;
}
.projects-intro h2,
.ongoing h2,
.about h2,
.contact h2 {
  font-size: clamp(3.7rem, 8vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  margin: 1.5rem 0 0;
}
.projects-intro h2 i {
  font-family: Georgia, serif;
  font-weight: 400;
}
.projects-intro > p {
  max-width: 320px;
  line-height: 1.6;
  font-size: 1rem;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5rem 1.5rem;
}
.project {
  min-width: 0;
}
.project-visual {
  height: clamp(300px, 34vw, 560px);
  position: relative;
  overflow: hidden;
  padding: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.visual-label {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  z-index: 2;
}
.visual-sail {
  background: #d4d9d9;
}
.visual-sail:before {
  content: '';
  position: absolute;
  width: 90%;
  height: 85%;
  border: 1px solid #687376;
  transform: rotate(-15deg);
}
.sail-form {
  position: relative;
  width: 48%;
  height: 70%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  filter: drop-shadow(15px 20px 0 #a2adae);
}
.sail-form span:nth-child(1) {
  height: 88%;
  width: 37%;
  background: #202b30;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.sail-form span:nth-child(2) {
  height: 100%;
  width: 4%;
  background: #111;
}
.sail-form span:nth-child(3) {
  height: 67%;
  width: 42%;
  background: #f2f3ef;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.client-logo {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  max-width: 90px;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(1);
}
.visual-ats {
  background: #d4d9d9;
}
.visual-ats::before {
  content: "";
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid #202b30;
  transform: rotate(17deg);
  opacity: .35;
}
.ats-phone {
  position: relative;
  width: clamp(155px, 30%, 235px);
  aspect-ratio: 10 / 19;
  border: 8px solid #202b30;
  border-radius: 32px;
  background: #f8f8f8;
  padding: 32px 12px 30px;
  box-shadow: 22px 24px 0 #242424;
  transform: rotate(-8deg);
  overflow: hidden;
}
.ats-phone-speaker {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 5px;
  border-radius: 5px;
  background: #202b30;
}
.ats-phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #d4d9d9;
  padding-bottom: 9px;
  color: #202b30;
  font-size: clamp(8px, .75vw, 11px);
  font-weight: 900;
  letter-spacing: .08em;
}
.ats-phone-heading,.ats-phone-subheading,.ats-phone-card i {
  display: block;
  height: 7px;
  border-radius: 5px;
  background: #202b30;
}
.ats-phone-heading { width: 70%; margin-top: 16%; }
.ats-phone-subheading { width: 42%; height: 5px; background: #d4d9d9; margin: 8px 0 16%; }
.ats-phone-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  margin-bottom: 7px;
  border: 1px solid #d4d9d9;
  border-radius: 7px;
}
.ats-phone-card-icon { width: 22px; height: 22px; flex: none; background: #202b30; border-radius: 4px; }
.ats-phone-card > span:last-child { flex: 1; }
.ats-phone-card i { width: 75%; height: 5px; margin: 4px 0; }
.ats-phone-card i + i { width: 52%; background: #d4d9d9; }
.ats-phone-nav { position: absolute; bottom: 5%; left: 18%; right: 18%; display: flex; justify-content: space-between; }
.ats-phone-nav span { width: 7px; height: 7px; border-radius: 50%; background: #d4d9d9; }
.ats-phone-nav span:first-child { background: #202b30; }
.visual-ceramic {
  background: #dcd9d3;
}
.tile-composition {
  width: min(72%, 360px);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  transform: rotate(-12deg);
  box-shadow: 20px 22px 0 #bcb9b3;
}
.tile-composition span {
  background: #f5f2ea;
  border: 8px solid #2c2c2b;
}
.tile-composition span:nth-child(2),
.tile-composition span:nth-child(6) {
  background: #343431;
}
.tile-composition span:nth-child(3) {
  background: #a2a19d;
}
.visual-word {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.visual-alfa {
  background: #d7d7d2;
}
.alfa-composition {
  display: flex;
  gap: 0.2rem;
  transform: rotate(-10deg);
}
.alfa-composition span {
  display: grid;
  place-items: center;
  width: clamp(50px, 7vw, 110px);
  aspect-ratio: 1;
  border: 2px solid #222;
  border-radius: 50%;
  background: #f2f2ee;
  font-size: clamp(1rem, 2vw, 2rem);
  font-weight: 900;
  box-shadow: 8px 10px 0 #888;
}
.alfa-composition span:nth-child(even) {
  transform: translateY(25px);
}
.project-content {
  border-top: 1px solid var(--ink);
  padding-top: 1.1rem;
}
.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.project h3 {
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.055em;
  margin: 1.7rem 0 0.8rem;
}
.project p {
  max-width: 520px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #414141;
  margin: 0;
}
.project-content a {
  display: inline-block;
  margin-top: 1.5rem;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.3rem;
  font-size: 0.86rem;
  font-weight: 700;
}
.ongoing {
  background: var(--ink);
  color: var(--white);
  padding: clamp(5rem, 8vw, 10rem) clamp(20px, 3vw, 55px);
}
.ongoing-head {
  display: grid;
  grid-template-columns: 23% 1fr 270px;
  gap: 2rem;
  align-items: start;
  padding-bottom: 4rem;
}
.ongoing h2 {
  margin: 0;
}
.ongoing-head > p:last-child {
  line-height: 1.6;
  color: #d1d1d1;
  align-self: end;
  margin: 0;
}
.ongoing-list {
  border-top: 1px solid #888;
}
.ongoing-list article {
  display: grid;
  grid-template-columns: 23% 1fr 90px;
  gap: 2rem;
  padding: 2.4rem 0;
  border-bottom: 1px solid #555;
  align-items: start;
}
.ongoing-list article > span:first-child {
  font-family: 'Courier New', monospace;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #b8b8b8;
}
.ongoing h3 {
  font-size: clamp(2.2rem, 4vw, 4.3rem);
  letter-spacing: -0.055em;
  margin: 0 0 0.7rem;
}
.ongoing-list p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 650px;
  color: #c9c9c9;
  margin: 0;
}
.ongoing-symbol {
  font-family: Georgia, serif;
  font-size: 4rem;
  text-align: right;
  color: #777;
}
.about {
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.about h2 {
  font-size: clamp(3rem, 6vw, 6rem);
  margin: 0 0 3rem;
}
.about p:not(.side-label) {
  max-width: 700px;
}
.contact {
  background: #d4d4d0;
}
.contact h2 {
  margin: 0 0 3rem;
}
.contact a {
  font-size: clamp(1.5rem, 3vw, 3rem);
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.4rem;
  font-weight: 700;
}
.contact a:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(20px, 3vw, 55px);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
footer a {
  text-decoration: none;
}
@media (max-width: 1000px) {
  .header {
    grid-template-columns: 1fr auto;
  }
  .header-note {
    display: none;
  }
  .hero-body {
    gap: 3rem;
  }
  .statement,
  .about,
  .contact {
    grid-template-columns: 18% 1fr;
  }
  .ongoing-head {
    grid-template-columns: 18% 1fr;
  }
  .ongoing-head > p:last-child {
    grid-column: 2;
  }
  .ongoing-list article {
    grid-template-columns: 18% 1fr 50px;
  }
  .capabilities {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
@media (max-width: 700px) {
  .header {
    height: auto;
    min-height: 86px;
    grid-template-columns: 1fr;
    padding-block: 1rem;
    gap: 1rem;
  }
  .header nav {
    justify-content: space-between;
    gap: 0.5rem;
  }
  .header nav a {
    font-size: 0.8rem;
  }
  .hero {
    min-height: auto;
  }
  .hero-bottom span:last-child {
    display: none;
  }
  .hero-top {
    align-items: start;
  }
  .hero-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.7rem 1rem;
  }
  .hero-body {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 0;
  }
  .hero-logo {
    width: 145px;
    box-shadow: 9px 9px 0 #555;
  }
  .hero h1 {
    font-size: clamp(4rem, 15vw, 7rem);
  }
  .hero-copy > p:not(.kicker) {
    font-size: 1rem;
  }
  .statement,
  .about,
  .contact {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .statement-lead {
    font-size: clamp(2.5rem, 9vw, 4.5rem);
    margin-bottom: 2.5rem;
  }
  .statement-columns {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .capabilities {
    grid-template-columns: 1fr 1fr;
  }
  .projects-intro {
    align-items: start;
    flex-direction: column;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .project-visual {
    height: clamp(300px, 80vw, 500px);
  }
  .ongoing-head,
  .ongoing-list article {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .ongoing-head > p:last-child {
    grid-column: 1;
  }
  .ongoing-symbol {
    display: none;
  }
  .ongoing-list article {
    padding: 2rem 0;
  }
  footer {
    flex-wrap: wrap;
    line-height: 1.5;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Chapter headings share the same editorial structure as CAP. 02. */
.statement,
.about,
.contact {
  display: block;
}
.statement-main {
  width: 100%;
}
.statement-lead {
  margin: 1.5rem 0 4rem;
}
.ongoing-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 3rem;
}
.ongoing-head h2 {
  margin: 1.5rem 0 0;
}
.ongoing-head > p:last-child {
  max-width: 320px;
  align-self: end;
  margin: 0;
}
.about h2,
.contact h2 {
  margin: 1.5rem 0 3rem;
}
@media (max-width: 700px) {
  .ongoing-head {
    align-items: start;
    flex-direction: column;
    gap: 1.5rem;
  }
  .ongoing-head > p:last-child {
    align-self: start;
  }
}

/* CAP. 05 — translucent, deliberately pixelated demoscene plasma. */
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #d4d9d9;
}
.contact-plasma {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  opacity: 0.22;
  pointer-events: none;
}
.contact > div {
  position: relative;
  z-index: 1;
}
