/* ==========================================================================
   Most of Design — Concept 2
   The mark's own cell, blown up to page scale. Square modules, deliberately
   off-balance grid, black / white / red. One family: Archivo, full width axis.
   ========================================================================== */

:root {
  --black: #000000;
  --ink: #FFFFFF;
  --ink-2: #A9AFB8;
  --ink-3: #7E858F;
  --red: #B90000;
  --red-live: #FF2E2E;

  --hair: rgba(255, 255, 255, 0.13);
  --line: rgba(255, 255, 255, 0.26);

  --f: "Archivo", "Helvetica Neue", sans-serif;
  --pad: clamp(16px, 3vw, 52px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #2A2A2C var(--black); }

body {
  background: var(--black);
  color: var(--ink);
  font-family: var(--f);
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: #2A2A2C; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }
:focus-visible { outline: 2px solid var(--red-live); outline-offset: 3px; }

a { color: inherit; text-decoration: none; }

/* ── head ─────────────────────────────────────────────────── */

.head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  padding: clamp(18px, 2.4vw, 30px) var(--pad);
}

.mark { grid-column: 1 / span 3; }
.mark img { height: clamp(42px, 4vw, 58px); width: auto; display: block; }

.nav {
  grid-column: 9 / span 4;
  justify-self: end;
  display: flex;
  gap: clamp(16px, 2vw, 30px);
  align-items: baseline;
}
.nav a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav-cta { color: var(--ink) !important; border-bottom: 2px solid var(--red); padding-bottom: 3px; }
.nav-cta:hover { border-color: var(--red-live); }

/* ── statement: two columns, off the centre line ──────────── */

.statement {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(22px, 3.2vw, 46px) var(--pad) clamp(18px, 2.4vw, 34px);
}

.lead {
  grid-column: 1 / span 6;
  font-size: clamp(1.15rem, 2.3vw, 2rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.028em;
  max-width: 26ch;
}
.lead strong { font-weight: 900; }

.sub {
  grid-column: 8 / span 4;
  align-self: end;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
  max-width: 42ch;
}

/* ── hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  padding: 0 var(--pad);
  min-height: clamp(380px, 58vh, 640px);
  overflow: hidden;
}

/* oversized competence running behind everything */
.band {
  position: absolute;
  left: 0; right: 0;
  bottom: 24%;
  overflow: hidden;
  z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.band-run {
  display: flex;
  align-items: center;
  gap: 0.22em;
  width: max-content;
  white-space: nowrap;
  animation: band 26s linear infinite;
  will-change: transform;
  opacity: 1;
  transition: opacity 0.4s var(--ease);
}
.band.swap .band-run { opacity: 0; transition-duration: 0.18s; }

.band .w {
  font-weight: 900;
  font-stretch: 68%;
  font-size: clamp(3.6rem, 16vh, 13rem);
  line-height: 0.74;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.band .sq {
  width: clamp(26px, 4.6vh, 62px);
  height: clamp(26px, 4.6vh, 62px);
  background: var(--red);
  flex: none;
}
@keyframes band { to { transform: translateX(-50%); } }

/* portrait sits left of centre — the grid stays off-balance on purpose */
.portrait {
  grid-column: 4 / span 5;
  grid-row: 1;
  position: relative;
  z-index: 2;
  height: clamp(280px, 46vh, 520px);
  aspect-ratio: 3 / 4;
  justify-self: center;
  align-self: end;
  background: #070709;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-bottom: clamp(20px, 3vw, 40px);
}

.reg { position: absolute; width: 20px; height: 20px; border: 0 solid var(--red); }
.reg.tl { top: -8px; left: -8px; border-top-width: 2px; border-left-width: 2px; }
.reg.tr { top: -8px; right: -8px; border-top-width: 2px; border-right-width: 2px; }
.reg.bl { bottom: -8px; left: -8px; border-bottom-width: 2px; border-left-width: 2px; }
.reg.br { bottom: -8px; right: -8px; border-bottom-width: 2px; border-right-width: 2px; }

.portrait figcaption { text-align: center; padding: 0 16px; }
.k, .hint {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.k { margin-bottom: 12px; }
.look {
  display: block;
  font-weight: 900;
  font-stretch: 88%;
  font-size: clamp(1.15rem, 2.1vw, 1.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}
.hint { line-height: 1.6; }

/* name anchors the bottom-left, competences the bottom-right */
.name {
  grid-column: 1 / span 3;
  grid-row: 1;
  z-index: 2;
  align-self: end;
  font-weight: 900;
  font-stretch: 108%;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  /* solid module cut into the running band, so the name never fights the letters */
  background: var(--black);
  padding: 14px 20px 14px 0;
  margin-bottom: clamp(16px, 2.4vw, 32px);
}

.comp {
  grid-column: 10 / span 3;
  grid-row: 1;
  z-index: 2;
  align-self: end;
  list-style: none;
  background: var(--black);
  padding: 6px 0 6px 14px;
  margin-bottom: clamp(16px, 2.4vw, 32px);
}
.comp li + li { border-top: 1px solid var(--hair); }
.c {
  width: 100%;
  background: none;
  border: 0;
  padding: 10px 0 10px 16px;
  border-left: 2px solid transparent;
  text-align: left;
  cursor: pointer;
  font-family: var(--f);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.c:hover { color: var(--ink-2); }
.c.is-live { color: var(--ink); border-left-color: var(--red); }

/* ── square interstitial from the mark's cells ────────────── */

.cells {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  margin: clamp(40px, 6vw, 90px) var(--pad) 0;
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}
.cells i {
  aspect-ratio: 1;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.cells i.on { background: var(--red); }

/* ── work: list that opens on reach ───────────────────────── */

.work { padding: clamp(60px, 9vw, 130px) var(--pad) 0; }

.work-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.work-head h2 {
  grid-column: 1 / span 6;
  font-weight: 900;
  font-stretch: 108%;
  font-size: clamp(2rem, 5.6vw, 4.6rem);
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.work-head p { grid-column: 8 / span 5; color: var(--ink-2); font-size: 13.5px; }

.work-body {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}

.wlist { grid-column: 1 / span 7; list-style: none; }
.wlist li { border-bottom: 1px solid var(--hair); }
.wlist li > * {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(14px, 1.8vw, 22px) 0;
}
.wname {
  font-weight: 900;
  font-stretch: 92%;
  font-size: clamp(1.3rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  /* transform, not padding: the row must not relayout on hover */
  transition: color 0.25s var(--ease), transform 0.35s var(--ease);
}
.wmeta { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }

.wlist a:hover .wname { color: var(--red-live); transform: translateX(18px); }
.wlist li.pending { opacity: 0.34; }

/* the preview that appears when you reach for a line */
.peek {
  grid-column: 9 / span 4;
  position: sticky;
  top: 90px;
  aspect-ratio: 4 / 3;
  background: #070709;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.peek-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
  padding: 0 18px;
  line-height: 1.7;
  transition: color 0.2s var(--ease);
}
.peek.is-on { border-color: var(--red); }
.peek.is-on .peek-label { color: var(--ink); }

/* ── studio ───────────────────────────────────────────────── */

.studio {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(70px, 10vw, 150px) var(--pad) 0;
}
.studio-a { grid-column: 1 / span 6; }
.studio-a h2 {
  font-weight: 900;
  font-stretch: 104%;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin-bottom: 20px;
  max-width: 19ch;
}
.studio-a p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 14px; max-width: 54ch; }

.studio-b { grid-column: 8 / span 5; align-self: start; }
.studio-b > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hair);
}
.studio-b > div:first-child { border-top: 1px solid var(--hair); }
.studio-b dt { font-size: 9.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.studio-b dd { font-size: 13.5px; font-weight: 500; }
.studio-b a { border-bottom: 1px solid var(--line); }
.studio-b a:hover { border-color: var(--red-live); color: var(--red-live); }

/* ── end ──────────────────────────────────────────────────── */

.end {
  padding: clamp(80px, 11vw, 170px) var(--pad) clamp(60px, 8vw, 110px);
}
.end-k { font-size: 9.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.end-mail {
  display: block;
  font-weight: 900;
  font-stretch: 72%;
  font-size: min(10.8vw, 225px);
  line-height: 0.82;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  transition: color 0.25s var(--ease);
}
.end-mail:hover { color: var(--red-live); }
.end-note { margin-top: clamp(20px, 3vw, 34px); color: var(--ink-2); font-size: 14px; max-width: 50ch; }

/* ── foot ─────────────────────────────────────────────────── */

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px var(--pad) 32px;
  border-top: 1px solid var(--hair);
}
.foot img { height: 34px; width: auto; opacity: 0.5; }
.foot p { font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }

/* ── responsive (desktop-first; mobile is a later pass) ───── */

@media (max-width: 900px) {
  .lead { grid-column: 1 / span 12; }
  .sub { grid-column: 1 / span 12; }
  .portrait { grid-column: 1 / span 12; justify-self: start; }
  .name { grid-column: 1 / span 12; grid-row: 2; padding-bottom: 12px; }
  .comp { grid-column: 1 / span 12; grid-row: 3; }
  .hero { align-items: start; }
  .wlist, .peek { grid-column: 1 / span 12; }
  .peek { position: static; margin-top: 20px; }
  .studio-a, .studio-b { grid-column: 1 / span 12; }
  .work-head h2, .work-head p { grid-column: 1 / span 12; }
  .cells { grid-template-columns: repeat(6, 1fr); }
}

/* ── reduced motion: the band stops, the story does not ───── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band-run { animation: none; }
  .wlist a:hover .wname { transform: none; }
}
