/* ACOMA STUDIO — static rebuild of the Cargo site */

@font-face {
  font-family: "Diatype Variable";
  src: url("/assets/fonts/Cargo-DiatypePlusVariable.woff2") format("woff2-variations"),
       url("/assets/fonts/Cargo-DiatypePlusVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Diatype Variable";
  src: url("/assets/fonts/Cargo-DiatypePlusVariable-Italic.woff2") format("woff2-variations"),
       url("/assets/fonts/Cargo-DiatypePlusVariable-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --pad: 39px;
  --gutter: 13px;
  --ink-85: rgba(0, 0, 0, 0.85);
  --ink-75: rgba(0, 0, 0, 0.75);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: #fff;
  color: var(--ink-85);
  font-family: "Diatype Variable", "Helvetica Neue", Arial, sans-serif;
  font-variation-settings: "MONO" 0.15, "slnt" 0;
  font-size: 18.144px;
  line-height: 23.59px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ---- persistent wordmark / project title (top-left) ---- */
.wordmark {
  position: fixed;
  top: 37px;
  left: var(--pad);
  z-index: 20;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 25.92px;
  line-height: 28.5px;
  letter-spacing: 0;
  color: var(--ink-75);
  text-decoration: none;
  font-variation-settings: normal;
}
.wordmark:active { opacity: 0.7; }

/* ---- dot navigation (bottom-right) ---- */
.dot {
  position: fixed;
  right: var(--pad);
  bottom: 34px;
  z-index: 20;
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-85);
  text-decoration: none;
}
.dot:active { opacity: 0.7; }

/* ---- home splash (slit-scan) ---- */
body.home { overflow: hidden; background: #333; }
.slitscan-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  display: block; background: #333; z-index: 0;
}

/* ---- gallery (work grid + project pages) ---- */
.content-full {
  padding: 88px var(--pad) 90px;
  width: 100%;
}
.gallery { display: flex; flex-direction: column; gap: var(--gutter); }
.row { display: flex; gap: var(--gutter); align-items: flex-start; }
.cell {
  flex-grow: var(--ar, 1);
  flex-basis: 0;
  min-width: 0;
  aspect-ratio: var(--ar, 1);
  position: relative;
  overflow: hidden;
  background: #f2f2f2;
}
.cell-media {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
a.thumb { text-decoration: none; cursor: pointer; }
a.thumb .cell-media { transition: opacity 0.25s ease; }
a.thumb:hover .cell-media { opacity: 0.82; }

/* ---- information page ---- */
body.information { background: #fff; }
.content {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 39px var(--pad);
  max-width: 1440px;
}
.col-name { grid-column: 1; }
.col-text {
  grid-column: 2;
  font-size: 18.144px;
  line-height: 23.59px;
  color: var(--ink-85);
}
.col-text p { margin: 0 0 1.3em 0; }
.col-text p:last-child { margin-bottom: 0; }
.col-text b {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
}
.col-text a { color: var(--ink-85); text-decoration: none; }
.col-text a:hover { text-decoration: underline; }

/* ---- mobile ---- */
@media (max-width: 768px) {
  :root { --pad: 24px; --gutter: 10px; }
  body { font-size: 14px; line-height: 18px; }
  .wordmark { font-size: 19px; top: 24px; line-height: 22px; }
  .dot { bottom: 24px; right: 24px; }
  .content-full { padding: 64px 24px 72px; }
  .row { flex-direction: column; gap: 10px; }
  .cell { width: 100%; }
  .content {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 60px 24px 80px;
  }
  .col-name { display: none; }
  .col-text { grid-column: 1; font-size: 14px; line-height: 18px; }
}
