/* ==========================================================================
   About page
   ========================================================================== */

/* ---------- hero ---------- */
.ahero {
  position: relative; min-height: 100svh; overflow: clip;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); grid-template-rows: 1fr auto;
  padding: calc(var(--nav-h) + clamp(2rem, 6svh, 4rem)) var(--gutter) 0;
}
.ahero__glow {
  position: absolute; inset: -20% -20% auto 40%; height: 110%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 100, 40, 0.3), rgba(255, 100, 40, 0.07) 55%, transparent);
  filter: blur(8px);
}
.ahero__ghost {
  position: absolute; inset-inline-end: -2vw; bottom: 3.5rem; z-index: 0; pointer-events: none; user-select: none;
  font-family: "Instrument Serif", Georgia, serif; font-style: italic; line-height: 0.8; letter-spacing: -0.04em;
  font-size: clamp(9rem, 30vw, 34rem); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
}
.ahero__copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: clamp(1.5rem, 4svh, 2.5rem); padding-bottom: clamp(2rem, 6svh, 4rem); }
.ahero__title { font-size: clamp(3rem, 7.4vw, 8.6rem); line-height: 0.92; letter-spacing: -0.058em; font-weight: 500; max-width: 12ch; text-wrap: balance; }
.ahero__title em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.03em; color: var(--orange); padding-inline-end: 0.06em; }
.ahero__foot { display: grid; gap: 1.75rem; max-width: 48ch; }
.ahero__lede { color: var(--paper-dim); font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.6; }
.ahero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* the hero holds a small keyboard: one key per service family, the studio key in front */
.ahero__board {
  position: relative; z-index: 1; align-self: center; justify-self: center;
  display: grid; grid-template-columns: repeat(3, auto); justify-items: center; align-content: center;
  gap: clamp(0.5rem, 1vw, 0.9rem);
  --cap: clamp(3.5rem, 5.6vw, 5.75rem);
  padding-block: clamp(2rem, 6svh, 4rem);
}
.ahero__bkey { display: block; }
.ahero__bkey--main { grid-column: 1 / -1; --cap: clamp(3.75rem, 6vw, 6.25rem); margin-bottom: 0.4rem; }
.ahero__bkey--main .svc__cap { box-shadow: inset 0 0 0 1px rgba(255, 176, 138, 0.6), 0 calc(var(--cap) * 0.07) 0 -1px #8a3210, 0 2.5rem 4rem -1rem rgba(255, 100, 40, 0.45), 0 0 5rem rgba(255, 100, 40, 0.3); }
/* staggered rows, the way keys sit on a real keyboard */
.ahero__bkey:nth-child(3n + 3) { transform: translateX(0.6rem); }
.ahero__bkey:nth-child(3n + 2) { transform: translateX(0.2rem); }
html.js:not(.no-motion):not(.reduced-motion) .ahero__bkey { opacity: 0; }

.ahero__ticker { grid-column: 1 / -1; position: relative; z-index: 2; margin-inline: calc(-1 * var(--gutter)); border-top: 1px solid var(--line); padding-block: 1.1rem; margin-bottom: 2rem; background: rgba(5, 5, 5, 0.6); backdrop-filter: blur(6px); }
.ahero__ticker span { font-size: clamp(1rem, 1.6vw, 1.4rem); letter-spacing: -0.02em; padding-inline: 1.5rem; white-space: nowrap; color: var(--paper-dim); }
.ahero__ticker span:nth-child(4n + 1) { font-family: "Instrument Serif", Georgia, serif; font-style: italic; color: var(--paper); }
.ahero__ticker i { width: 0.45rem; height: 0.45rem; background: var(--orange); flex: none; transform: rotate(45deg); }

/* ---------- story ---------- */
.astory { position: relative; padding: var(--section-y) var(--gutter); border-radius: 2rem 2rem 0 0; margin-top: -2rem; }
.astory__head { display: grid; gap: 0.25rem; }
.astory__text { margin-top: clamp(2rem, 4vw, 3.5rem); margin-inline-start: auto; font-size: clamp(1.7rem, 3.6vw, 3.6rem); line-height: 1.1; letter-spacing: -0.035em; max-width: 30ch; text-wrap: pretty; }
.astats { margin-top: clamp(3rem, 7vw, 6rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.astat { display: grid; align-content: space-between; gap: 2.5rem; padding: 1.75rem 1.5rem 0 0; }
.astat + .astat { padding-inline-start: 1.5rem; border-inline-start: 1px solid var(--line); }
.astat__num { font-size: clamp(3.5rem, 7vw, 7rem); line-height: 0.9; letter-spacing: -0.06em; font-weight: 500; }
.astat__num em { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; color: var(--orange-deep); letter-spacing: -0.03em; }
.astat__label { color: var(--ink-dim); font-size: 0.78rem; line-height: 1.5; max-width: 26ch; }
@media (max-width: 899px) {
  .astats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .astat { padding: 1.5rem 1rem 1.5rem 0; border-bottom: 1px solid var(--line); gap: 1.25rem; }
  .astat + .astat { padding-inline-start: 0; border-inline-start: 0; }
  .astat:nth-child(even) { padding-inline-start: 1rem; border-inline-start: 1px solid var(--line); }
}

/* ---------- the collective: three portraits fan out ---------- */
.acast { position: relative; overflow: clip; }
.acast__pin { padding: var(--section-y) var(--gutter); min-height: 100svh; display: grid; align-content: center; gap: clamp(2.5rem, 6svh, 4.5rem); }
.acast__head { display: grid; justify-items: center; text-align: center; gap: 0.25rem; }
.acast__head .display-2 { max-width: 20ch; }
.acast__sub { margin-top: 1rem; color: var(--paper-dim); max-width: 50ch; }
.acast__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2.25rem); max-width: 72rem; width: 100%; margin-inline: auto; }
.acard { position: relative; }
.acard__frame { position: relative; margin: 0; border-radius: 1.5rem; overflow: hidden; aspect-ratio: 412 / 533; background: #141210; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 2.5rem 4rem -1.5rem rgba(0, 0, 0, 0.9); }
.acard__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 1.2s var(--ease); filter: saturate(0.85); }
.acard__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5, 5, 5, 0.85)); pointer-events: none; }
.acard:hover .acard__frame img { transform: scale(1.06); filter: saturate(1.05); }
.acard__cap { position: absolute; inset-inline-start: 1.4rem; inset-inline-end: 1.4rem; bottom: 1.2rem; z-index: 1; display: flex; align-items: baseline; gap: 0.9rem; }
.acard__cap .mono { color: var(--orange); font-size: 0.8rem; }
.acard__role { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1; color: var(--paper); }
.acard__key { position: absolute; top: -1.4rem; inset-inline-end: -0.8rem; z-index: 2; --cap: clamp(3.5rem, 5vw, 4.75rem); }
.acard--2 { margin-top: clamp(0rem, 4vw, 4rem); }
@media (max-width: 899px) {
  .acast__cards { grid-template-columns: 1fr; max-width: 26rem; gap: 2.5rem; }
  .acard--2 { margin-top: 0; }
}

/* ---------- partners ---------- */
.apart { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; padding: var(--section-y) var(--gutter); border-top: 1px solid var(--line); }
.apart__media { position: relative; border-radius: 1.5rem; overflow: hidden; aspect-ratio: 508 / 627; background: #07101c; }
.apart__media img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }
.apart__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 40%, rgba(255, 100, 40, 0.25)); mix-blend-mode: screen; pointer-events: none; }
.apart__keys { position: absolute; inset-inline-start: 1.25rem; bottom: 1.25rem; z-index: 1; display: flex; gap: 0.6rem; align-items: end; --cap: clamp(3.25rem, 4.4vw, 4.5rem); }
.apart__keys .svc__cap--main { --cap: clamp(3.25rem, 4.4vw, 4.5rem); }
.apart__copy { display: grid; justify-items: start; gap: 0.25rem; }
.apart__title { margin-top: 1rem; font-size: clamp(2.2rem, 4.6vw, 4.8rem); line-height: 1; letter-spacing: -0.045em; font-weight: 500; max-width: 18ch; text-wrap: balance; }
.apart__title em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; color: var(--orange); letter-spacing: -0.02em; }
.apart__text { margin: 1.5rem 0 2rem; color: var(--paper-dim); font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.65; max-width: 50ch; }
@media (max-width: 899px) { .apart { grid-template-columns: 1fr; } .apart__media { max-width: 30rem; } }

/* ---------- values: giant keys pressed one by one ---------- */
.avals { position: relative; }
.avals__stage { position: relative; overflow: clip; padding: var(--section-y) var(--gutter); display: grid; align-content: center; gap: clamp(2rem, 5svh, 3.5rem); }
.avals__head { position: relative; z-index: 2; display: grid; gap: 0.25rem; }
.avals__words { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; pointer-events: none; overflow: hidden; }
.avals__word {
  grid-area: 1 / 1; white-space: nowrap; font-family: "Instrument Serif", Georgia, serif; font-style: italic;
  font-size: clamp(5rem, 19vw, 22rem); line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 100, 40, 0.22);
  opacity: 0; transform: translateY(20%); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
}
.avals__word.is-active { opacity: 1; transform: none; }
.avals__keys { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2.5rem); align-items: start; }
.vkey-wrap { display: grid; gap: 1.5rem; }
.vkey {
  --h: clamp(9rem, 17vw, 15rem); --depth: clamp(0.7rem, 1.2vw, 1.1rem);
  position: relative; display: block; width: 100%; height: calc(var(--h) + var(--depth)); text-align: start;
  border-radius: 1.4rem; -webkit-tap-highlight-color: transparent;
}
.vkey__base { position: absolute; inset: var(--depth) 0 0; border-radius: 1.4rem; background: #1b0c05; box-shadow: 0 2rem 3rem -1rem rgba(0, 0, 0, 0.8); transition: box-shadow 0.5s var(--ease); }
.vkey__top {
  position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: 0; height: var(--h); border-radius: 1.4rem; overflow: hidden;
  background: linear-gradient(160deg, #2e2b29 0%, #211f1d 55%, #191817 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 100, 40, 0.45), inset 0 0 0 calc(var(--h) * 0.035) rgba(10, 9, 9, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.vkey__top::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 30% 0%, rgba(255, 255, 255, 0.1), transparent 60%); pointer-events: none; }
.vkey__mark { position: absolute; inset-inline-start: 1.4rem; top: 1.4rem; width: 0.5rem; height: 0.5rem; background: var(--orange); }
.vkey__num { position: absolute; inset-inline-end: 1.4rem; top: 1.2rem; color: var(--paper-dim); font-size: 0.8rem; }
.vkey__label { position: absolute; inset-inline-start: 1.4rem; bottom: 1.2rem; font-family: var(--mono); font-weight: 500; font-size: clamp(1.05rem, 2.1vw, 2rem); letter-spacing: 0.01em; text-transform: uppercase; color: var(--paper); transition: color 0.5s var(--ease); }
.vkey:hover .vkey__top { transform: translateY(calc(var(--depth) * 0.35)); }
.vkey.is-active .vkey__top {
  transform: translateY(calc(var(--depth) * 0.8));
  background: linear-gradient(165deg, #ff8a55 0%, #f4692f 60%, #e45a22 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 176, 138, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.vkey.is-active .vkey__base { box-shadow: 0 0 5rem rgba(255, 100, 40, 0.45), 0 2rem 3rem -1rem rgba(0, 0, 0, 0.8); background: #8a3210; }
.vkey.is-active .vkey__label, .vkey.is-active .vkey__num { color: var(--ink); }
.vkey.is-active .vkey__mark { background: rgba(5, 5, 5, 0.55); }
.vkey:focus-visible { outline: none; }
.vkey:focus-visible .vkey__top { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--orange); }
.vkey__line { color: var(--paper-dim); line-height: 1.6; max-width: 34ch; transition: color 0.5s var(--ease); }
.vkey-wrap:has(.is-active) .vkey__line { color: var(--paper); }
.avals__progress { position: relative; z-index: 2; height: 2px; background: var(--line); }
.avals__progress span { display: block; height: 100%; background: var(--orange); transform-origin: left; transform: scaleX(0); }

@media (min-width: 900px) {
  html.js:not(.no-motion):not(.reduced-motion) .avals { height: calc(100svh + var(--n) * 55svh); }
  html.js:not(.no-motion):not(.reduced-motion) .avals__stage { position: sticky; top: 0; min-height: 100svh; }
}
@media (max-width: 899px) {
  .avals__keys { grid-template-columns: 1fr; gap: 2.25rem; }
  .vkey { --h: 7.5rem; }
  .avals__progress { display: none; }
  .avals__word { font-size: 28vw; }
}

/* ---------- hero, responsive ---------- */
@media (max-width: 899px) {
  .ahero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; min-height: 0; }
  .ahero__figure { min-height: 0; margin-block: 1rem 2rem; }
  .ahero__img { height: 26rem; }
  .ahero__ring { width: min(90%, 20rem); }
  .ahero__ghost { bottom: auto; top: 44%; font-size: 42vw; }
}

/* ---------- what we do: every service family as a key ---------- */
.awork { padding: var(--section-y) var(--gutter); border-top: 1px solid var(--line); }
.awork__head { display: grid; gap: 0.25rem; max-width: 62rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.awork__sub { margin-top: 1.5rem; color: var(--paper-dim); max-width: 62ch; line-height: 1.65; }
.awork__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.5rem); }
.awork__key { gap: 0.9rem; }
.awork__note { color: var(--paper-dim); margin-top: -0.35rem; }
@media (max-width: 899px) { .awork__grid { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); } }
