/* ────────────────────────────────────────────────
   FOX WILLIAMS — PROFESSIONAL SERVICES GROUP
   ink petrol · lime · bone — City law, next era
   ──────────────────────────────────────────────── */

:root {
  --ink: #041418;
  --ink-2: #07202a;
  --ink-3: #0b2c38;
  --petrol: #00405d;
  --lime: #8dc63f;
  --lime-deep: #56821c;
  --bone: #eef0e9;
  --bone-dim: #9fadab;
  --hair: color-mix(in srgb, var(--bone) 12%, transparent);

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;

  --pad: clamp(1.25rem, 4.5vw, 5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 4.5rem; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 360;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1rem);
  line-height: 1.65;
  overflow-x: clip;
}
::selection { background: var(--lime); color: var(--ink); }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
h1, h2, h3 { font-weight: 400; }
a { color: inherit; }

.noise {
  position: fixed; inset: -100%; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.045;
  animation: nshift 0.85s steps(4) infinite;
}
@keyframes nshift {
  0%{transform:translate(0,0)} 25%{transform:translate(-2%,3%)}
  50%{transform:translate(3%,-2%)} 75%{transform:translate(-3%,-3%)} 100%{transform:translate(2%,2%)}
}

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 96; }
.progress span { display: block; height: 100%; width: 0; background: var(--lime); }

/* ─── bar ─── */
.bar {
  position: fixed; z-index: 95; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.1rem var(--pad);
  transition: background 0.4s, backdrop-filter 0.4s;
}
.bar.is-scrolled {
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hair);
}
.bar__mark { text-decoration: none; display: grid; line-height: 1.25; }
.bar__fw { font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0.01em; }
.bar__psg { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--lime); }
.bar__nav { display: flex; gap: 1.8rem; margin-left: auto; }
.bar__nav a {
  font-size: 0.8rem; letter-spacing: 0.06em; text-decoration: none; color: var(--bone-dim);
  transition: color 0.3s;
}
.bar__nav a:hover { color: var(--lime); }
.bar__cta {
  font-size: 0.8rem; letter-spacing: 0.06em; text-decoration: none;
  padding: 0.6rem 1.3rem; border: 1px solid color-mix(in srgb, var(--lime) 55%, transparent);
  border-radius: 99px; color: var(--lime);
  transition: all 0.35s var(--ease);
}
.bar__cta:hover { background: var(--lime); color: var(--ink); }
@media (max-width: 860px) { .bar__nav { display: none; } .bar__cta { margin-left: auto; } }

/* ─── hero ─── */
.hero { position: relative; min-height: 100svh; display: grid; align-content: center; overflow: clip; }
.hero__art { position: absolute; inset: 0; z-index: -1; }
.hero__art img { opacity: 0.85; }
.hero__art img.is-replaced { opacity: 0; }
.hero__silk { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; will-change: opacity; }
html.has-field .hero__art img,
html.has-field .hero__silk { display: none; }
html.no-field .hero__field { display: none; }
.hero__art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--ink) 88%, transparent) 20%, transparent 58%),
    linear-gradient(to top, var(--ink) 2%, transparent 34%),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 70%, transparent), transparent 30%);
}
html.has-field .hero__art::after {
  background:
    linear-gradient(102deg, color-mix(in srgb, var(--ink) 92%, transparent) 16%,
                            color-mix(in srgb, var(--ink) 40%, transparent) 44%, transparent 66%),
    radial-gradient(62% 46% at 100% 100%, color-mix(in srgb, var(--ink) 80%, transparent), transparent 70%),
    linear-gradient(to top, var(--ink) 1%, transparent 26%);
}
.hero__inner { padding: 8rem var(--pad) 9rem; max-width: 1200px; position: relative; z-index: 2; pointer-events: none; }
.hero__inner > * { pointer-events: auto; }
.hero__eyebrow {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 2rem;
}
.hero__h1 {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 9.5vw, 8.2rem);
  line-height: 0.98; letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero__h1 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--lime) 20%, #d3f59a 42%, var(--lime) 62%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--lime);
  animation: sheen 5.5s var(--ease) infinite;
}
@keyframes sheen { 0%, 100% { background-position: 110% 0; } 50% { background-position: -15% 0; } }
.hero__line { display: block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__line .ch {
  display: inline-block; white-space: pre;
  transform: translateY(118%) rotate(6deg); transform-origin: 0 100%;
  transition: transform 1.15s var(--ease);
  transition-delay: var(--chd, 0s);
}
.is-loaded .hero__line .ch { transform: none; }
@media (prefers-reduced-motion: reduce) { .hero__line .ch { transform: none; transition: none; } .hero__h1 em { animation: none; } }
.hero__lede { margin-top: 2.4rem; max-width: 32rem; color: var(--bone-dim); line-height: 1.75; }
.hero__ctas { display: flex; gap: 1rem; margin-top: 2.8rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.88rem; letter-spacing: 0.04em; text-decoration: none;
  padding: 0.95rem 1.7rem; border-radius: 99px;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn--lime { background: var(--lime); color: var(--ink); font-weight: 550; }
.btn--lime:hover { background: var(--bone); }
.btn--ghost { border: 1px solid var(--hair); color: var(--bone); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }

.hero__strip {
  position: absolute; bottom: 0; left: 0; right: 0;
  border-top: 1px solid var(--hair);
  padding: 1.1rem 0; overflow: clip;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.strip__track {
  display: flex; gap: 2.4rem; width: max-content;
  animation: marquee 36s linear infinite;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bone-dim); align-items: center;
}
.strip__track i { color: var(--lime); font-style: normal; font-size: 0.55rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── position ─── */
.position { padding: clamp(7rem, 15vh, 12rem) var(--pad); }
.position__inner { max-width: 72rem; margin: 0 auto; }
.position__big {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.6vw, 3.1rem);
  line-height: 1.35; max-width: 58rem; text-wrap: pretty;
}
.position__big em { font-style: italic; color: var(--lime); }
.position__big .w { opacity: 0.13; transition: opacity 0.5s var(--ease); }
.position__big .w.is-lit { opacity: 1; }
.creds { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.5rem; margin-top: clamp(4rem, 9vh, 7rem); }

/* the block itself no longer fades — every part is choreographed below */
.cred[data-reveal] { opacity: 1; transform: none; transition: none; }
.cred {
  position: relative; padding: 1.4rem 1.2rem 1.6rem 0;
  isolation: isolate;
  transition: transform 0.5s var(--ease);
}
.cred:nth-child(1) { --d: 0s; }
.cred:nth-child(2) { --d: 0.16s; }
.cred:nth-child(3) { --d: 0.32s; }

/* the rule: a lime line draws left-to-right, then settles to a hairline */
.cred::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: var(--hair);
}
.cred::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, var(--lime), color-mix(in srgb, var(--lime) 18%, transparent));
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.05s var(--ease) var(--d),
              opacity 0.9s ease calc(var(--d) + 1.15s),
              box-shadow 0.45s ease;
}
.cred.is-in::after { transform: scaleX(1); opacity: 0.4; }
.cred:hover::after { opacity: 1; box-shadow: 0 0 14px color-mix(in srgb, var(--lime) 55%, transparent); }

/* pointer-tracked glow, same language as the track-record cards */
.cred > * { position: relative; z-index: 1; }
.cred__wash {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  border-radius: 8px;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 0%),
              color-mix(in srgb, var(--lime) 10%, transparent), transparent 52%);
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.cred:hover .cred__wash { opacity: 1; }
.cred:hover { transform: translateY(-4px); }

.cred__n {
  display: block; font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: color-mix(in srgb, var(--bone-dim) 65%, transparent);
  margin-bottom: 1rem;
  opacity: 0; transform: translateY(0.5rem);
  transition: opacity 0.8s var(--ease) var(--d), transform 0.8s var(--ease) var(--d), color 0.4s;
}
.cred.is-in .cred__n { opacity: 1; transform: none; }
.cred:hover .cred__n { color: var(--lime); }

/* the key rises through a mask, then a single sheen crosses it */
.cred__k {
  display: block; overflow: clip;
  font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.1; padding-bottom: 0.06em; margin-bottom: -0.06em;
}
.cred__kin {
  display: inline-block; color: var(--lime);
  transform: translateY(115%) rotate(4deg); transform-origin: 0 100%;
  transition: transform 1.1s var(--ease) calc(var(--d) + 0.12s);
}
.cred.is-in .cred__kin {
  transform: none;
  background: linear-gradient(100deg, var(--lime) 32%, #e6ffbe 46%, var(--lime) 60%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: credsheen 1.7s var(--ease) calc(var(--d) + 0.75s) 1 both;
}
@keyframes credsheen { from { background-position: 130% 0; } to { background-position: -30% 0; } }

.cred__v {
  display: block; margin-top: 0.8rem; color: var(--bone-dim); font-size: 0.9rem; line-height: 1.7;
  opacity: 0; transform: translateY(0.6rem);
  transition: opacity 0.9s var(--ease) calc(var(--d) + 0.3s), transform 0.9s var(--ease) calc(var(--d) + 0.3s);
}
.cred.is-in .cred__v { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .cred__kin { transform: none; animation: none; }
  /* park the gradient on the solid-lime end of the sweep */
  .cred.is-in .cred__kin { animation: none; background-position: -30% 0; }
  .cred:hover { transform: none; }
}

/* ─── section headers ─── */
.sect { padding: 0 var(--pad); max-width: 72rem; margin: 0 auto clamp(3.5rem, 7vh, 5.5rem); }
.sect__label {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--lime); display: block; margin-bottom: 1.4rem;
}
.sect__title {
  font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02; letter-spacing: -0.01em;
}
.sect__title em { color: var(--lime); font-style: normal; }
.sect__standfirst { margin-top: 1.6rem; max-width: 38rem; color: var(--bone-dim); line-height: 1.75; }

/* ─── services accordion ─── */
.work { padding: clamp(6rem, 13vh, 10rem) 0; background: var(--ink-2); }
.svc { max-width: 72rem; margin: 0 auto; padding: 0 var(--pad); }
.svc__item { border-top: 1px solid var(--hair); }
.svc__item:last-child { border-bottom: 1px solid var(--hair); }
.svc__head {
  display: grid; grid-template-columns: 3.5rem 1fr 2rem; align-items: baseline; gap: 1rem;
  width: 100%; text-align: left; background: none; border: 0; color: inherit; cursor: pointer;
  padding: 1.6rem 0.2rem;
}
.svc__num { font-family: var(--mono); font-size: 0.78rem; color: var(--lime); letter-spacing: 0.1em; }
.svc__name {
  font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.4rem); font-weight: 400;
  transition: color 0.3s, transform 0.45s var(--ease); transform-origin: left;
}
.svc__head:hover .svc__name { color: var(--lime); }
.svc__item.is-open .svc__name { color: var(--lime); }
.svc__x { position: relative; width: 14px; height: 14px; justify-self: end; align-self: center; }
.svc__x::before, .svc__x::after {
  content: ""; position: absolute; inset: 0; margin: auto; background: var(--bone-dim);
  transition: transform 0.45s var(--ease), background 0.3s;
}
.svc__x::before { width: 14px; height: 1px; }
.svc__x::after { width: 1px; height: 14px; }
.svc__item.is-open .svc__x::after { transform: rotate(90deg); }
.svc__item.is-open .svc__x::before, .svc__item.is-open .svc__x::after { background: var(--lime); }
.svc__body {
  display: grid; grid-template-rows: 0fr; overflow: clip;
  transition: grid-template-rows 0.55s var(--ease);
}
.svc__item.is-open .svc__body { grid-template-rows: 1fr; }
.svc__body p {
  overflow: clip; min-height: 0; margin-left: 4.5rem; max-width: 40rem;
  color: var(--bone-dim); font-size: 0.95rem; line-height: 1.75;
}
.svc__item.is-open .svc__body p { padding-bottom: 1.8rem; }
@media (max-width: 640px) { .svc__body p { margin-left: 0; } .svc__head { grid-template-columns: 2.4rem 1fr 2rem; } }

/* ─── matters cards ─── */
.matters { padding: clamp(6rem, 13vh, 10rem) 0; }
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem; max-width: 72rem; margin: 0 auto; padding: 0 var(--pad);
  perspective: 1200px;
}
.card {
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2) 70%);
  border: 1px solid var(--hair); border-radius: 10px;
  padding: 2rem 1.9rem 2.2rem;
  transition: border-color 0.4s, transform 0.15s linear;
  transform-style: preserve-3d; will-change: transform;
  position: relative; overflow: clip;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%),
              color-mix(in srgb, var(--lime) 13%, transparent), transparent 55%);
  opacity: 0; transition: opacity 0.4s;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: color-mix(in srgb, var(--lime) 40%, transparent); }
.card__tag {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--lime);
}
.card h3 { font-family: var(--serif); font-size: 1.7rem; margin: 0.9rem 0 0.8rem; line-height: 1.12; }
.card p { color: var(--bone-dim); font-size: 0.9rem; line-height: 1.7; }

/* ─── team ─── */
.team { padding: clamp(6rem, 13vh, 10rem) 0; background: var(--ink-2); }
.people {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.2rem; max-width: 72rem; margin: 0 auto; padding: 0 var(--pad);
}
.person {
  border: 1px solid var(--hair); border-radius: 10px; padding: 1.6rem 1.5rem 1.7rem;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  transition: transform 0.45s var(--ease), border-color 0.4s, background 0.4s;
}
.person:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--lime) 45%, transparent); background: var(--ink-3); }
.person--lead { grid-column: span 2; background: linear-gradient(150deg, var(--ink-3), color-mix(in srgb, var(--ink) 60%, transparent)); }
@media (max-width: 560px) { .person--lead { grid-column: span 1; } }
.person__mono {
  font-family: var(--serif); font-size: 1.5rem; color: var(--lime);
  display: inline-grid; place-items: center; width: 3.2rem; height: 3.2rem;
  border: 1px solid color-mix(in srgb, var(--lime) 40%, transparent); border-radius: 50%;
  margin-bottom: 1.1rem;
}
.person__name { font-family: var(--serif); font-size: 1.35rem; }
.person__role { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-dim); margin-top: 0.4rem; }
.person--lead .person__role { color: var(--lime); }
.person__bio { margin-top: 0.9rem; color: var(--bone-dim); font-size: 0.88rem; line-height: 1.65; }

/* ─── edge ─── */
.edge { position: relative; padding: clamp(7rem, 15vh, 12rem) 0; overflow: clip; }
.edge__art { position: absolute; inset: 0; z-index: -1; opacity: 0.16; }
.edge__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--ink), transparent 30%, transparent 70%, var(--ink)); }
.edge__inner { max-width: 72rem; margin: 0 auto; }
.edge__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); padding: 0 var(--pad); }
.edge__col { border-left: 2px solid var(--lime); padding-left: 1.5rem; }
.edge__col h3 { font-family: var(--serif); font-size: 1.55rem; margin-bottom: 0.8rem; }
.edge__col p { color: var(--bone-dim); font-size: 0.93rem; line-height: 1.75; }

/* ─── contact ─── */
.contact { padding: clamp(8rem, 18vh, 14rem) var(--pad); text-align: center; }
.contact__eyebrow { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--lime); margin-bottom: 2rem; }
.contact__mail {
  font-family: var(--serif); font-size: clamp(1.9rem, 6vw, 4.6rem);
  text-decoration: none; letter-spacing: -0.01em;
  background: linear-gradient(currentColor, currentColor) bottom / 0% 2px no-repeat;
  transition: background-size 0.6s var(--ease), color 0.4s;
  display: inline-block; will-change: transform;
}
.contact__mail:hover { color: var(--lime); background-size: 100% 2px; }
.contact__addr { margin-top: 2.2rem; color: var(--bone-dim); font-size: 0.85rem; letter-spacing: 0.04em; }
.contact__addr a { color: var(--bone); text-underline-offset: 3px; }

/* ─── footer ─── */
.foot { border-top: 1px solid var(--hair); padding: 2.4rem var(--pad) 3rem; }
.foot__note { max-width: 46rem; color: var(--bone-dim); font-size: 0.82rem; line-height: 1.7; }
.foot__note a { color: var(--lime); text-underline-offset: 3px; }
.foot__fine { margin-top: 1rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in srgb, var(--bone-dim) 60%, transparent); }

/* ─── reveals ─── */
[data-reveal] { opacity: 0; transform: translateY(2rem); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ─── headline highlight, driven by the field ─── */
.hero__line { padding-bottom: 0.16em; margin-bottom: -0.16em; }
.hl { position: relative; transition: color 0.7s var(--ease); }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.10em; height: 2px;
  background: linear-gradient(90deg, var(--lime), color-mix(in srgb, var(--lime) 15%, transparent));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.9s var(--ease);
}
.hl.is-hot::after { transform: scaleX(1); }
.hl.is-hot { color: var(--lime); }

/* ─── field console ─── */
.console {
  position: absolute; z-index: 3; right: var(--pad); bottom: 5.4rem;
  display: grid; gap: 0.85rem; justify-items: end; text-align: right;
  opacity: 0; transform: translateY(0.8rem);
  transition: opacity 1.1s var(--ease) 0.7s, transform 1.1s var(--ease) 0.7s;
}
.is-loaded .console { opacity: 1; transform: none; }
html.no-field .console { display: none; }
.console__read {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bone-dim); display: flex; align-items: center; gap: 0.55rem;
}
.console__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--lime) 60%, transparent);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lime) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 9px transparent; }
}
.console__list { list-style: none; display: grid; gap: 0.15rem; justify-items: end; }
.console__btn {
  background: none; border: 0; cursor: pointer; color: var(--bone-dim);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.7rem; padding: 0.34rem 0;
  transition: color 0.35s var(--ease);
}
.console__btn::after {
  content: ""; width: 0; height: 1px; background: var(--lime);
  transition: width 0.5s var(--ease);
}
.console__btn:hover { color: var(--bone); }
.console__btn:hover::after { width: 14px; }
.console__btn.is-on { color: var(--lime); }
.console__btn.is-on::after { width: 34px; }
.console__n { font-size: 0.58rem; opacity: 0.6; }
.console__hint {
  font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: color-mix(in srgb, var(--bone-dim) 55%, transparent);
}
@media (max-width: 900px) {
  .console { left: var(--pad); right: var(--pad); bottom: 4.6rem; justify-items: start; text-align: left; }
  .console__list { grid-auto-flow: column; gap: 1.1rem; justify-items: start; }
  .console__btn::after { display: none; }
  .console__l { display: none; }
  .console__n { font-size: 0.72rem; opacity: 1; }
  .console__hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .console__dot { animation: none; } }

/* portrait: the field sits behind the words, so scrim vertically */
@media (max-width: 900px) {
  html.has-field .hero__art::after {
    background:
      linear-gradient(to bottom, color-mix(in srgb, var(--ink) 86%, transparent) 12%,
                                 color-mix(in srgb, var(--ink) 62%, transparent) 52%,
                                 color-mix(in srgb, var(--ink) 30%, transparent) 74%,
                                 var(--ink) 99%);
  }
}
