/* The homepage sections, also used by /about/team/, /about/our-history/,
   /work/ and /contact/. Loaded after site.css. */

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); }

.hero__main {
  display: grid; grid-template-columns: 1fr; gap: 40px;
}
@media (min-width: 1100px) {
  .hero__main {
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
  }
}
.hero__title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(38px, 5.5vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  max-width: 18ch;
  color: var(--color-text);
}
.hero__title b { font-weight: 500; color: var(--color-text); }
.hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--color-copper);
  letter-spacing: -0.02em;
}
.hero__lede {
  font-size: 17px; line-height: 1.6;
  color: var(--color-text-2);
  max-width: 50ch;
  margin: 0 0 32px;
}
.hero__cta {
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* ==========================================================================
   FIG. 01 stack diagram
   ========================================================================== */

.diagram {
  position: relative;
  margin: 0;
  border: 1px solid var(--color-border);
  background:
    linear-gradient(180deg, transparent, rgba(212, 146, 59, 0.025)),
    var(--color-bg-2);
  overflow: hidden;
}
.diagram__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-text-mute);
  background: var(--color-surface-1);
}
.diagram__head .copper { color: var(--color-copper); }
.diagram__svg {
  width: 100%; height: auto; display: block;
  background-image:
    linear-gradient(to right, rgba(74, 87, 117, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(74, 87, 117, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}
.diagram__foot {
  padding: 10px 16px;
  border-top: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-text-mute);
  display: flex; justify-content: space-between;
}

/* ==========================================================================
   01 Clients marquee
   ========================================================================== */

.clients {
  padding-block: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-2);
}
.clients__head {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
@media (min-width: 980px) {
  .clients__head { grid-template-columns: 320px 1fr; gap: 56px; align-items: center; }
}
.clients__sub {
  font-size: 15px; color: var(--color-text-2); max-width: 60ch; margin: 0;
}
.clients__link {
  color: var(--color-copper);
  border-bottom: 1px solid var(--color-copper-line);
}
.clients__link:hover { border-bottom-color: var(--color-copper); }

.marquee {
  overflow: hidden;
  position: relative;
  cursor: grab;
  mask-image: linear-gradient(to right, transparent 0, black 60px, black calc(100% - 60px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 60px, black calc(100% - 60px), transparent 100%);
}
.marquee:active { cursor: grabbing; }
.marquee__track {
  display: flex;
  gap: 56px;
  align-items: center;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}
.logo-tile {
  flex: 0 0 auto;
  height: 80px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 22px;
}
.logo-tile img {
  max-height: 60px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.78;
  transition: opacity 200ms ease;
  -webkit-user-drag: none;
  user-select: none;
}
.logo-tile:hover img { opacity: 1; }

/* ==========================================================================
   02 Services
   ========================================================================== */

.section__link {
  color: var(--color-copper);
  border-bottom: 1px solid var(--color-copper-line);
}
.section__link:hover { border-bottom-color: var(--color-copper); }

.systems {
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}
@media (min-width: 980px) { .systems { grid-template-columns: repeat(2, 1fr); } }
.system {
  padding: 28px 26px 32px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  transition: background 240ms ease;
  position: relative;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.system::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 0; height: 2px; background: var(--color-copper);
  transition: width 600ms cubic-bezier(0.5, 0, 0.1, 1);
}
.system:hover::before { width: 100%; }
.system:hover { background: var(--color-bg-2); }
.system:hover .system__arrow { color: var(--color-copper); gap: 14px; }
.system__top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 12px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--color-border-2);
}
.system__id {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--color-copper);
}
.system__status {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-text-mute);
}
.system__status .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-copper); margin-right: 8px;
}
.system__name {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.system__body {
  font-size: 14.5px; line-height: 1.55;
  color: var(--color-text-2);
  margin: 0 0 18px;
  max-width: 50ch;
  flex: 1;
}
.system__related {
  list-style: none; padding: 0; margin: 0 0 16px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.system__related li {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.06em;
  padding: 4px 10px;
  border: 1px solid var(--color-border-2);
  color: var(--color-text-mute);
}
.system__arrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-text-mute);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 200ms ease, gap 200ms ease;
}

/* ==========================================================================
   03 Flagship platform
   ========================================================================== */

.lead-platform { padding-bottom: 0; }
.lead {
  border: 1px solid var(--color-copper-line);
  background:
    linear-gradient(180deg, rgba(212, 146, 59, 0.04) 0%, transparent 50%),
    var(--color-bg-2);
  overflow: hidden;
}
.lead__head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 28px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-1);
}
.lead__id {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-text-mute);
}
.lead__pill {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-copper);
  border: 1px solid var(--color-copper-line);
  padding: 4px 10px;
  background: var(--color-copper-soft);
}
.lead__body {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 980px) {
  .lead__body { grid-template-columns: 1fr 1.4fr; }
}
.lead__brand {
  padding: 48px 36px;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}
@media (min-width: 980px) {
  .lead__brand { border-bottom: none; border-right: 1px solid var(--color-border); }
}
.lead__logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  display: block;
  object-fit: contain;
}
.lead__name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 8px;
  color: var(--color-text);
}
.lead__name .copper { color: var(--color-copper); }
.lead__tag {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 18px;
  color: var(--color-text-2);
  margin: 0;
}
.lead__copy {
  padding: clamp(36px, 5vw, 56px);
}
.lead__copy p {
  font-size: 16px; line-height: 1.65;
  color: var(--color-text-2);
  max-width: 56ch;
  margin: 0 0 28px;
}
.lead__signals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  margin-bottom: 28px;
}
.lead__sig {
  padding: 14px 18px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.lead__sig:nth-child(2n) { border-right: none; }
.lead__sig:nth-last-child(-n+2) { border-bottom: none; }
.lead__sig .l {
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-text-mute);
  margin-bottom: 4px;
}
.lead__sig .v {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-text);
}
.lead__link {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-copper);
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap 200ms ease;
}
.lead__link::after { content: "→"; }
.lead__link:hover { gap: 14px; color: var(--color-text); }

/* ==========================================================================
   03.B Ecosystem
   ========================================================================== */

.catalog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--color-border);
}
@media (min-width: 760px) { .catalog__grid { grid-template-columns: 1fr 1fr; } }

.cat {
  padding: 24px;
  background: var(--color-bg);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: background 200ms ease;
  position: relative;
}
.cat::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 0; height: 2px; background: var(--color-copper);
  transition: width 500ms ease;
}
.cat:hover::before { width: 100%; }
.cat:hover { background: var(--color-bg-2); }
.cat:hover .cat__link { color: var(--color-copper); }
@media (min-width: 760px) {
  /* 2-col grid that handles 2, 3, or 4 items.
     Right column drops its right border; the last item drops both;
     in even-count layouts the penultimate item also drops bottom;
     an odd orphan last item spans both columns so there is no half-row. */
  .cat:nth-child(2n) { border-right: none; }
  .cat:last-child { border-right: none; border-bottom: none; }
  .cat:nth-last-child(2):nth-child(odd) { border-bottom: none; }
  .cat:last-child:nth-child(odd):not(:first-child) { grid-column: span 2; }
}
.cat__head {
  margin-bottom: 14px;
}
.cat__id {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.16em;
  color: var(--color-copper);
}
.cat__brand {
  height: 76px;
  display: flex; align-items: center; justify-content: flex-start;
  margin-bottom: 16px;
}
.cat__logo {
  max-height: 60px; max-width: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
/* DiffusionLab is a render JPG, not a logo — show as art thumbnail */
.cat__logo--render {
  filter: none;
  opacity: 1;
  border-radius: 3px;
  border: 1px solid var(--color-border-2);
}
.cat__tag {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-text-mute);
  margin-bottom: 14px;
}
.cat__body {
  font-size: 13.5px; line-height: 1.55;
  color: var(--color-text-2);
  margin: 0 0 16px;
  flex: 1;
}
.cat__link {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-text-mute);
  transition: color 200ms ease;
}

/* ==========================================================================
   04 History
   ========================================================================== */

.history__panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--color-border);
}
.panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: clamp(24px, 4vw, 40px) 0;
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 980px) {
  .panel {
    grid-template-columns: 80px 1fr;
    gap: 48px;
    padding: clamp(32px, 5vw, 56px) 0;
  }
}
.panel__num {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.18em;
  color: var(--color-copper);
  padding-top: 4px;
}
.panel__heading {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--color-text);
}
.panel__body p {
  font-size: 16px; line-height: 1.7;
  color: var(--color-text-2);
  max-width: 70ch;
  margin: 0 0 14px;
}
.panel__body p:last-child { margin-bottom: 0; }

/* ==========================================================================
   05 Selected work
   ========================================================================== */

.deps {
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid var(--color-border);
}
.dep {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 980px) {
  .dep {
    grid-template-columns: 80px 1.6fr 1fr 120px;
    gap: 32px;
    padding: 32px 0;
    align-items: start;
  }
}
.dep__id {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--color-copper);
  padding-top: 4px;
}
.dep__title {
  font-family: var(--font-sans);
  font-weight: 400; font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.dep__body {
  font-size: 14.5px; line-height: 1.55;
  color: var(--color-text-2);
  margin: 0;
  max-width: 56ch;
}
.dep__meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--color-text-2);
}
.dep__meta div b {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-text-mute);
  font-weight: 500;
  margin-bottom: 4px;
}
.dep__year {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.14em;
  color: var(--color-copper);
  text-align: left;
}
@media (min-width: 980px) { .dep__year { text-align: right; } }

/* ==========================================================================
   06 Team
   ========================================================================== */

.team__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}
@media (min-width: 980px) { .team__grid { grid-template-columns: repeat(2, 1fr); } }
.member {
  padding: 32px 28px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}
.member__head {
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--color-border-2);
}
.member__name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
  color: var(--color-text);
}
.member__title {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-copper);
  margin: 0;
}
.member__bio {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-text-2);
  margin: 0 0 12px;
}
.member__bio:last-child { margin-bottom: 0; }

/* ==========================================================================
   07 Industries
   ========================================================================== */

.section__link {
  color: var(--color-copper);
  border-bottom: 1px solid var(--color-copper-line);
}
.section__link:hover { border-bottom-color: var(--color-copper); }

.imap {
  display: grid; grid-template-columns: 1fr;
  border: 1px solid var(--color-border);
}
@media (min-width: 600px) { .imap { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .imap { grid-template-columns: repeat(4, 1fr); } }
.ind {
  padding: 28px 24px 30px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transition: background 240ms ease;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
  background: rgba(12, 16, 20, 0.62);
}
.ind:hover { background: rgba(15, 20, 27, 0.85); }
.ind:hover .ind__arrow { color: var(--color-copper); transform: translateX(4px); }
.ind__id {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.16em;
  color: var(--color-copper);
  margin-bottom: 12px;
}
.ind__name {
  font-family: var(--font-sans);
  font-weight: 400; font-size: 22px;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.ind__tag {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-text-mute);
}
.ind__arrow {
  position: absolute;
  right: 24px; top: 24px;
  font-family: var(--font-mono);
  color: var(--color-text-mute);
  transition: color 200ms ease, transform 200ms ease;
}

.ind__more {
  margin: 28px 0 0;
  padding: 18px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--color-text-2);
  border: 1px dashed var(--color-border-2);
  background: rgba(12, 16, 20, 0.4);
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 18px;
}
@media (min-width: 720px) {
  .ind__more { grid-template-columns: 110px 1fr; align-items: baseline; }
}
.ind__more-label {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-text-mute);
}

/* ==========================================================================
   08 Contact
   ========================================================================== */

.contact-standalone-head {
  max-width: none;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.contact-standalone-index {
  margin-bottom: 24px;
}
.comms {
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, transparent, rgba(212, 146, 59, 0.02));
  display: grid; grid-template-columns: 1fr;
  overflow: hidden;
}
@media (min-width: 980px) { .comms { grid-template-columns: 1fr 1fr; } }
.comms__main { padding: clamp(36px, 5vw, 64px); }
@media (min-width: 980px) {
  .comms__main { border-right: 1px solid var(--color-border); }
}
.comms__title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 22px;
  max-width: 24ch;
}
.comms__title em {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 300;
  color: var(--color-copper);
}
.comms__addr {
  font-size: 16px; line-height: 1.7;
  color: var(--color-text-2);
  margin: 0 0 28px;
}
.comms__addr strong { color: var(--color-text); font-weight: 500; }
.comms__buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.comms__contact { font-style: normal; }
.comms__form { grid-column: 1 / -1; min-width: 0; }

/* ================================================== CAST / D ANATOMY === */
.cast {
  padding: clamp(24px, 3.5vw, 40px);
  background: linear-gradient(180deg, rgba(15, 20, 27, 0.85), rgba(15, 20, 27, 0.55));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.cast__figure {
  margin: 0;
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(18px, 2.5vw, 28px);
}

.cast__svg {
  width: 100%;
  height: auto;
  aspect-ratio: 540 / 440;
  display: block;
  overflow: visible;
}

/* d-mark fills */
.cast__d-stem { fill: var(--color-text); }
.cast__d-bowl { fill: var(--color-text-mute); }

/* ----- exploded-view animation -------------------------------------- */
/* All three pieces share the same 9-second cycle so they assemble and
   disassemble together like an exploded engineering diagram:
     0-15%   the d sits assembled (the brand mark, fully readable)
     15-50%  pieces drift outward (smooth ease-in-out)
     50-65%  hold in exploded state (you can see the construction)
     65-100% pieces return to assembled
   Translates are in canvas pixels because the master matrix is nested
   INSIDE each piece group. */
.cast__d-piece {
  will-change: transform;
}
.cast__d-piece--bowl { animation: explode-bowl 9s ease-in-out infinite; }
.cast__d-piece--stem { animation: explode-stem 9s ease-in-out infinite; }
.cast__d-piece--top  { animation: explode-top  9s ease-in-out infinite; }

@keyframes explode-bowl {
  0%, 15%, 100% { transform: translate(0, 0); }
  50%, 65%      { transform: translate(-32px, 0); }
}
@keyframes explode-stem {
  0%, 15%, 100% { transform: translate(0, 0); }
  50%, 65%      { transform: translate(32px, 0); }
}
@keyframes explode-top {
  0%, 15%, 100% { transform: translate(0, 0); }
  50%, 65%      { transform: translate(0, -28px); }
}

/* ----- construction guides ------------------------------------------ */
/* Visible only during the exploded phase. Synced to the same 9s cycle. */
.cast__guides {
  opacity: 0;
  animation: guides-pulse 9s ease-in-out infinite;
  will-change: opacity;
}
@keyframes guides-pulse {
  0%, 25%, 80%, 100% { opacity: 0; }
  45%, 65%           { opacity: 1; }
}

/* ----- caption ------------------------------------------------------ */
.cast__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px 14px;
  text-align: center;
  padding: 18px 16px 6px;
  border-top: 1px solid var(--color-border);
  margin: 0;
}
.cast__word {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-copper);
}
.cast__sep {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-border-2);
}
.cast__pron {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--color-text-mute);
}
.cast__def {
  flex-basis: 100%;
  font-family: var(--font-serif);
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--color-text-2);
  line-height: 1.5;
  margin-top: 4px;
}
.cast__def em {
  font-style: italic;
  color: var(--color-text);
}

/* ----- reduced motion ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .cast__d-piece, .cast__guides {
    animation: none;
    transform: none;
    opacity: 1;
  }
  /* keep guides hidden by default for the static pose */
  .cast__guides { opacity: 0; }
}

/* ==========================================================================
   Contact form
   ========================================================================== */

.cform,
.cform-done {
  padding: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--color-border);
}
.cform__head {
  display: grid;
  gap: 10px;
  margin-bottom: 32px;
}
.cform__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-copper);
}
.cform__lede {
  margin: 0;
  color: var(--color-text-2);
  font-size: 16px;
  line-height: 1.6;
  max-width: 60ch;
}
.cform__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px 28px;
}
@media (min-width: 720px) {
  .cform__grid { grid-template-columns: 1fr 1fr; }
  .cform__field--wide { grid-column: 1 / -1; }
}
.cform__field {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}
.cform__field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-mute);
}
.cform__req { color: var(--color-copper); }
.cform input,
.cform select,
.cform textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-bg-2);
  border: 1px solid var(--color-border-2);
  border-radius: 0;
  padding: 12px 14px;
  transition: border-color 160ms ease, background 160ms ease;
}
.cform textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.cform select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-text-mute) 50%),
    linear-gradient(135deg, var(--color-text-mute) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.cform input:hover,
.cform select:hover,
.cform textarea:hover { border-color: var(--color-border-3); }
.cform input:focus,
.cform select:focus,
.cform textarea:focus {
  outline: none;
  border-color: var(--color-copper);
  background: var(--color-surface-1);
}
.cform [aria-invalid='true'] { border-color: var(--color-rust); }
.cform__help {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-mute);
}
.cform__error {
  margin: 0;
  font-size: 13px;
  color: var(--color-rust);
  min-height: 0;
}
.cform__error:empty { display: none; }
.cform__check:not(:empty) { margin-top: 24px; }
.cform__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 28px;
}
.cform .btn[disabled] { opacity: 0.6; cursor: progress; }
.cform__status {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-2);
}
.cform__status--error { color: var(--color-rust); }
.cform__status a { color: var(--color-copper); }
.cform-done { outline: none; }
.cform-done__text {
  margin: 14px 0 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 36ch;
  color: var(--color-text);
}
