/* Stage — the work-led surface. Studio cyc wall, no accent hue in the chrome. */

:root {
  --bg: #0a0908;
  --deep: #050504;
  --raised: #14120f;
  --ink: #ece7dc;
  --muted: #8b857a;
  --rule: #262320;
  --stone: #c9bfa6;
}

.site-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: var(--s-3);
}

.wordmark {
  font-weight: 700;
  font-size: var(--t-sm);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-head nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  flex-wrap: wrap;
  font-size: var(--t-sm);
}

.site-head nav a { text-decoration: none; color: var(--muted); display: inline-flex;
  align-items: center; min-height: 44px; }
.site-head nav a:hover { color: var(--ink); }






/* Service families: a list, not a card grid */
.families { margin-block: var(--s-4) var(--s-5); display: grid; background: transparent; max-width: 58rem; }

.family {
  background: transparent;
  border-top: 1px solid var(--rule);
  padding: var(--s-3) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--s-2) var(--s-3);
}

.family h2 { font-size: var(--t-xl); font-weight: 600; }
.family p { color: var(--muted); max-width: var(--measure); grid-column: 1 / -1; }
.family .family-price { font-family: var(--mono); font-size: var(--t-sm); color: var(--ink); }
.family a { font-size: var(--t-sm); text-underline-offset: 0.3em; }

.teaser { padding-block: var(--s-5) var(--s-6); border-top: 1px solid var(--rule); }
.teaser h2 { font-size: var(--t-2xl); max-width: 20ch; }
.teaser p { margin-top: var(--s-2); color: var(--muted); max-width: var(--measure); }

.action {
  margin-top: var(--s-3);
  background: var(--ink);
  color: var(--deep);
  padding: 0 1.4rem;
  border: 0;
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.action:hover { background: #fff; }

.site-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-2);
  padding-block: var(--s-3);
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: var(--t-sm);
  flex-wrap: wrap;
}

/* Page heads on the stage surface */
.page-head { padding-block: var(--s-4) var(--s-3); }
.page-head h1 { font-size: var(--t-2xl); max-width: 20ch; }
.page-head p { margin-top: var(--s-2); color: var(--muted); max-width: var(--measure); font-size: var(--t-lg); line-height: 1.4; }

/* Work strip art: the only colour on this surface, and it comes from the work */
.art-graphite { background: linear-gradient(145deg, #3c3f46 0%, #23252a 60%, #15161a 100%); }
.art-ink      { background: linear-gradient(145deg, #1d3a5c 0%, #17293f 55%, #0f1620 100%); }
.art-slate    { background: linear-gradient(145deg, #4a4f57 0%, #2c3036 55%, #191b1f 100%); }
.art-amber    { background: linear-gradient(150deg, #b5812f 0%, #6b4a19 55%, #23180a 100%); }
.art-violet   { background: linear-gradient(150deg, #5b3fb8 0%, #3a2775 55%, #191238 100%); }
.art-teal     { background: linear-gradient(150deg, #1f7d74 0%, #14524c 55%, #0a201e 100%); }

/* Case list */
.case-group { padding-block: var(--s-3) var(--s-4); max-width: 58rem; }
.case-group > h2 { font-size: var(--t-lg); padding-bottom: var(--s-1); border-bottom: 1px solid var(--ink); }
.group-note { color: var(--muted); font-size: var(--t-sm); margin-top: var(--s-1); }

.case-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem var(--s-3);
  align-items: baseline;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.case-row:hover { background: var(--raised); }
.case-sector { grid-column: 1 / -1; font-family: var(--mono); font-size: var(--t-xs); color: var(--muted); }
.case-headline { font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.02em; }
.case-outcome { color: var(--muted); text-align: right; }

/* Case detail */
.case-detail { padding-block: var(--s-4) var(--s-6); }
.case-detail h1 { font-size: var(--t-2xl); max-width: 18ch; margin-top: var(--s-1); }
.case-body { margin-block: var(--s-4); display: grid; gap: var(--s-3); max-width: var(--measure); }
.case-body h2 { font-size: var(--t-sm); font-weight: 600; color: var(--muted); }
.case-body p { margin-top: 0.35rem; }
.case-result { font-size: var(--t-lg); }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.35rem; }

/* Service family packages */
.family-packages { display: grid; margin-bottom: var(--s-6); max-width: 58rem; }
.package-block { border-top: 1px solid var(--rule); padding: var(--s-3) 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: var(--s-1) var(--s-3); align-items: baseline; }
.package-block h2 { font-size: var(--t-xl); }
.package-block .money { font-family: var(--mono); font-size: var(--t-lg); }
.package-block p { grid-column: 1 / -1; color: var(--muted); max-width: var(--measure); }
.package-block .includes { grid-column: 1 / -1; display: grid; gap: 0.3rem; font-size: var(--t-sm); color: var(--muted); margin-top: var(--s-1); }
.package-block .includes li { padding-left: 1.1em; position: relative; }
.package-block .includes li::before { content: "+"; position: absolute; left: 0; color: var(--ink); }
.package-block .row-foot { grid-column: 1 / -1; margin-top: var(--s-2); display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.package-block .action { margin-top: 0; }

/* Studio prose */
.prose-stage { display: grid; gap: var(--s-3); max-width: var(--measure); padding-bottom: var(--s-3); }
.prose-stage h2 { font-size: var(--t-lg); }
.prose-stage p { margin-top: 0.4rem; color: var(--muted); }

/* Stack */
.stack-grid { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); padding-bottom: var(--s-6); }
.stack-group h2 { font-size: var(--t-sm); font-weight: 600; color: var(--muted); padding-bottom: var(--s-1); border-bottom: 1px solid var(--rule); }
.stack-group ul { margin-top: var(--s-1); display: grid; gap: 0.3rem; }

.site-foot nav { display: flex; gap: var(--s-2); flex-wrap: wrap; }



@media (max-width: 640px) {
  .site-head { flex-direction: column; align-items: flex-start; gap: 0; padding-block: var(--s-2); }
  .site-head nav { gap: 1.15rem; }
  }

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}

/* ---------------------------------------------------------- selected work
   A numbered ledger, not a card grid. Each row states sector, claim, measured
   result and the tools used - the same four facts every time, so they can be
   compared down the column. Colour arrives only on hover, from the work. */

.work-index { padding-block: clamp(4rem, 12vh, 9rem) var(--s-5); }

.section-label {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--muted);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--rule);
}

.work-rows { margin-top: 0; }

.work-row { position: relative; border-bottom: 1px solid var(--rule); }

.work-row > a {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  gap: 0.35rem var(--s-3);
  align-items: baseline;
  width: min(100% - (var(--gutter) * 2), var(--wide));
  margin-inline: auto;
  padding-block: clamp(1.5rem, 3.4vh, 2.6rem);
  text-decoration: none;
}

.work-num {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--muted);
  padding-top: 0.55em;
}

.work-body { display: grid; gap: 0.2rem; }

.work-sector { font-family: var(--mono); font-size: var(--t-xs); color: var(--muted); }

.work-headline {
  font-size: clamp(1.4rem, 1rem + 1.7vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
  max-width: 22ch;
}

.work-result {
  font-family: var(--mono);
  font-size: var(--t-sm);
  color: var(--ink);
  text-align: right;
  max-width: 22ch;
}

.work-stack {
  grid-column: 2 / -1;
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--muted);
  margin-top: 0.5rem;
}

/* The wash is the only colour in the section and it belongs to the work. */
.work-wash {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scaleY(0.82);
  transform-origin: bottom;
  transition: opacity 420ms cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}

.work-row:hover .work-wash,
.work-row:focus-within .work-wash { opacity: 0.22; transform: scaleY(1); }

.work-row:hover .work-num,
.work-row:focus-within .work-num { color: var(--ink); }

.work-more {
  display: inline-block;
  margin-top: var(--s-3);
  font-size: var(--t-sm);
  text-underline-offset: 0.35em;
}

@media (max-width: 700px) {
  .work-row > a { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .work-result { grid-column: 2 / -1; text-align: left; margin-top: 0.4rem; }
  .work-headline { max-width: none; }
}

/* =================================================================== hero
   A full-bleed black stage. The headline is the whole composition: one word
   at display scale with live marble flowing inside the letters, the way a
   physical material would. Everything else is reduced to small monospace
   markers in the corners, so nothing competes with the type. */

.stage-hero {
  position: relative;
  min-height: calc(100vh - 6.5rem);
  min-height: calc(100svh - 6.5rem);
  display: grid;
  place-items: center;
  overflow: clip;
  padding-inline: var(--gutter);
}

.type-block {
  position: relative;
  width: 100%;
  max-width: 1500px;
  aspect-ratio: 16 / 5.6;
  display: grid;
  place-items: center;
}

.type-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 900ms ease;
}

.type-block.is-masked .type-canvas { opacity: 1; }
/* Once the canvas carries the letters, the DOM copy is only for screen
   readers and for browsers that never ran the script. */
.type-block.is-masked .type-word { color: transparent; }

.type-word {
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.6rem, 18.2vw, 17.5rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  color: #e9e4d8;
  text-align: center;
  transition: opacity 380ms ease, transform 380ms ease;
}

.type-word.is-out { opacity: 0; transform: translateY(-0.12em); }

.type-dots {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 0.75rem;
}

.type-dots li {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a3630;
  transition: background 320ms ease, transform 320ms ease;
}

.type-dots li.is-on { background: #d8cfba; transform: scale(1.35); }

.type-lede {
  position: absolute;
  left: 50%;
  bottom: clamp(5rem, 13vh, 8rem);
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: var(--t-sm);
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}

.type-lede a { color: #d8cfba; margin-left: 0.9em; text-underline-offset: 0.35em; }

.stage-corner {
  position: absolute;
  display: grid;
  gap: 0.3rem;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.13em;
  color: #857f75;
}

.stage-corner .dim { color: #565149; }
.stage-corner.tl { left: var(--gutter); top: 0; }
.stage-corner.br { right: var(--gutter); bottom: var(--s-3); text-align: right; }

.stage-scroll {
  position: absolute;
  left: 50%;
  bottom: var(--s-3);
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.3em;
  color: #565149;
}

@media (max-width: 760px) {
  .type-block { aspect-ratio: 4 / 3.1; }
  .type-lede { white-space: normal; max-width: 26ch; line-height: 1.7; bottom: 6.5rem; }
  .stage-corner.tl, .stage-corner.br { position: static; text-align: left; }
  .type-dots { right: 0.6rem; }
}

/* ------------------------------------------------- proof band (physics) */




.proof-scene .hero-poster,
.proof-scene .hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 700ms ease;
}

.proof-scene .hero-canvas { opacity: 0; }
.proof-scene.is-live .hero-canvas { opacity: 1; }
.proof-scene.is-live .hero-poster { opacity: 0; }

.proof-copy h2 { font-size: var(--t-2xl); max-width: 16ch; }
.proof-copy p { margin-top: var(--s-2); color: var(--muted); max-width: 46ch; }
.proof-copy .action { margin-top: var(--s-3); }

@media (max-width: 860px) {
    }

/* ------------------------------------------------- shared page openings
   Every page below the home page opens the same way: a display-scale title
   on black with a monospace marker above it, so the whole site speaks in one
   voice instead of the home page being the only designed surface. */

.page-head { padding-block: clamp(2.5rem, 8vh, 5.5rem) var(--s-3); }

.page-marker {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  color: #6f6a61;
  margin-bottom: var(--s-2);
}

.page-head h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7.6vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  /* Long family names ("Web design & development") must not run to the edge */
  max-width: 19ch;
  text-wrap: balance;
}

.page-head p {
  margin-top: var(--s-3);
  color: var(--muted);
  max-width: 52ch;
  font-size: var(--t-lg);
  line-height: 1.45;
}

/* A hairline that closes the opening block and starts the content */
.page-head::after {
  content: "";
  display: block;
  margin-top: clamp(2rem, 6vh, 4rem);
  border-bottom: 1px solid var(--rule);
}

.stack-group h2,
.case-body h2,
.prose-stage h2 { font-family: var(--sans); }

/* ================================================================ terminal
   The studio writes software, so the proof is printed the way we read it:
   commands and their output. Everything on this screen comes from the same
   files the rest of the site reads - the languages are the real toolset, the
   results are the measured ones. */

.terminal-band { padding-block: clamp(3.5rem, 10vh, 7rem); border-top: 1px solid var(--rule); }

.terminal {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #060605;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--rule);
  background: #0d0c0a;
}

.term-dot { width: 9px; height: 9px; border-radius: 50%; background: #2e2a25; }
.term-dot:first-child { background: #4a4139; }

.terminal-title {
  margin-left: 0.6rem;
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: #6a645b;
  letter-spacing: 0.04em;
}

.terminal-screen {
  height: clamp(360px, 62vh, 680px);
  overflow: hidden;
  padding: clamp(1rem, 2.4vw, 1.8rem);
  font-family: var(--mono);
  font-size: clamp(0.72rem, 0.62rem + 0.34vw, 0.9rem);
  line-height: 1.75;
  white-space: pre;
  color: #9a9287;
  scrollbar-width: none;
}

.terminal-screen::-webkit-scrollbar { display: none; }

.term-line { min-height: 1.75em; }
.term-line.cmd { color: var(--stone); }
.term-line.out { color: #8e877d; }
.term-line.note { color: #d8cfba; }
.term-line.blank { min-height: 0.9em; }

/* A caret on the last printed line, so the screen reads as live */
.terminal-screen .term-line:last-child::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 0.15em;
  vertical-align: -0.2em;
  background: var(--stone);
  animation: term-caret 1.05s steps(1) infinite;
}

@keyframes term-caret { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .terminal-screen .term-line:last-child::after { animation: none; }
  .terminal-screen { overflow-y: auto; }
}

@media (max-width: 700px) {
  .terminal-screen { font-size: 0.68rem; line-height: 1.7; white-space: pre-wrap; }
}
