/* WevDev — home page styles. Loaded after css/main.css. */

/* Hero */
.hero { padding: 150px 0 100px; position: relative; overflow: hidden; }
.hero-layout { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
/* stays two-up through tablet landscape; only stacks once the code card would get too narrow */
@media (max-width: 1100px) { .hero-layout { gap: 36px; } }
@media (max-width: 860px) { .hero-layout { grid-template-columns: 1fr; gap: 48px; } }

/* Hero visual panel — animated code editor + deploy bar */
.hero-visual { position: relative; max-width: 620px; justify-self: end; width: 100%; }
/* once stacked, use the full width — a 560px card left an empty right half on tablets */
@media (max-width: 860px) { .hero-visual { justify-self: stretch; max-width: none; margin-top: 8px; } }

.codecard {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.02) inset;
  overflow: hidden; position: relative;
}
[data-theme="light"] .codecard { box-shadow: 0 40px 90px -30px rgba(11,12,14,0.20), 0 0 0 1px rgba(11,12,14,0.02) inset; }
/* warm gradient hairline along the top-left edge */
.codecard::before {
  content: ""; position: absolute; inset: 0; border-radius: 18px; padding: 1px;
  background: linear-gradient(150deg, rgba(255,138,43,0.55), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.codecard { z-index: 1; }

.cc-head { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg-elev-2); }
.cc-head i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.cc-head i:nth-child(1) { background: #ff5f57; }
.cc-head i:nth-child(2) { background: #febc2e; }
.cc-head i:nth-child(3) { background: #28c840; }
.cc-head .fname { margin-left: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--fg-faint); letter-spacing: 0.02em; }

/* file tabs */
.cc-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); background: var(--bg-elev-2); overflow: hidden; }
.cc-tabs span {
  font-family: var(--mono); font-size: 11.5px; color: var(--fg-faint);
  padding: 11px 16px; border-right: 1px solid var(--line); white-space: nowrap;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.cc-tabs span.on { color: var(--accent); background: var(--bg-elev); position: relative; }
.cc-tabs span.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); }
@media (max-width: 460px) { .cc-tabs span:nth-child(n+3) { display: none; } }

/* git status strip */
.cc-git {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 22px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--fg-faint);
}
.cc-git .branch { color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.cc-git .branch::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.cc-git .add { color: #7fd6a0; }
.cc-git .del { color: #ff8a6a; }

.cc-code { padding: 26px 28px; font-family: var(--mono); font-size: 14px; line-height: 1.9; color: var(--fg-dim); }
.cc-code .ln { display: block; opacity: 0; animation: typein 0.5s var(--ease) forwards; }
.cc-code .ln:nth-child(1) { animation-delay: 0.30s; }
.cc-code .ln:nth-child(2) { animation-delay: 0.55s; }
.cc-code .ln:nth-child(3) { animation-delay: 0.80s; }
.cc-code .ln:nth-child(4) { animation-delay: 1.05s; }
.cc-code .ln:nth-child(5) { animation-delay: 1.30s; }
.cc-code .ln:nth-child(6) { animation-delay: 1.55s; }
.cc-code .ln:nth-child(7) { animation-delay: 1.80s; }
@keyframes typein { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.cc-code .kw { color: #ff9a6a; }
.cc-code .fn { color: var(--accent); }
.cc-code .str { color: #7fd6a0; }
.cc-code .cm { color: var(--fg-faint); }
.cc-code .pn { color: var(--fg-dim); }
.cc-code .cursor { display: inline-block; width: 8px; height: 14px; background: var(--accent); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.cc-deploy { border-top: 1px solid var(--line); background: var(--bg-elev-2); padding: 16px 22px; }
.cc-deploy .row { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--fg-dim); }
.cc-deploy .tag { color: var(--accent); }
.cc-bar { height: 7px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); margin-top: 11px; overflow: hidden; }
.cc-bar i { display: block; height: 100%; width: 30%; background: var(--grad); border-radius: 6px; animation: ccfill 3.6s var(--ease) infinite; }
@keyframes ccfill { 0% { width: 8%; } 55% { width: 94%; } 100% { width: 8%; } }
.cc-chips { display: flex; gap: 8px; margin-top: 14px; font-family: var(--mono); font-size: 11px; color: var(--fg-faint); flex-wrap: wrap; }
.cc-chips span { border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; letter-spacing: 0.04em; }
.cc-chips span.on { color: var(--accent); border-color: var(--line-strong); background: var(--accent-soft); }

/* floating badges around the card */
.cc-badge {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: var(--bg-elev); border: 1px solid var(--line-strong);
  border-radius: 100px; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.4);
  z-index: 3;
}
.cc-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.cc-badge.b1 { top: -17px; right: 6%; animation: bfloat1 7s ease-in-out infinite; }
.cc-badge.b2 { bottom: -17px; left: 5%; animation: bfloat2 9s ease-in-out infinite; }
@media (max-width: 560px) { .cc-badge { display: none; } }
@keyframes bfloat1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes bfloat2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.hero-orb {
  position: absolute;
  top: 20%; right: -10%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(-30px, 30px); }
}
.hero-inner { position: relative; z-index: 2; }
.hero-text { font-size: 18px; }
/* HERO HEADLINE — one family, weight does the contrast (matches the footer panel) */
.hero h1 { font-size: clamp(48px, 7.4vw, 118px); }
.hh { display: flex; flex-direction: column; line-height: 1.04; letter-spacing: -0.04em; }
.hh-lead {
  /* same size as the other two lines — inherits .display's ramp and .hh's tracking */
  font-weight: 600; color: var(--fg); margin-bottom: 0.06em;
}
.hh-rot { font-weight: 600; }
.hh-rot .rotator span {
  font-style: normal; font-weight: 600;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hh-last { font-weight: 600; color: var(--fg); }
.hh-last em {
  font-style: normal; position: relative; display: inline-block; line-height: 1;
  color: var(--fg); font-family: inherit; font-weight: 600;
}
/* same hand-drawn swash the footer headline uses */
.hh-last em::after {
  content: ""; position: absolute; left: 0; right: -0.03em; top: 0.855em; height: 0.09em;
  background: var(--grad);
  -webkit-mask-image: var(--swash); mask-image: var(--swash);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease) .5s;
}
.hero h1.in .hh-last em::after { transform: scaleX(1); }

/* SERVICES CARDS — from Testing (2), retokenised */
.svc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
@media (max-width: 680px) { .svc-cards { grid-template-columns: 1fr; } }
.svc-card {
  position: relative; padding: 44px; border-radius: var(--radius-lg);
  background: var(--bg-elev); border: 1px solid var(--line);
  overflow: hidden; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s;
  display: flex; flex-direction: column; gap: 20px;
  text-decoration: none; color: var(--fg);
}
@media (max-width: 1000px) { .svc-card { padding: 34px 30px; } }
@media (max-width: 560px) { .svc-card { padding: 32px 26px; } }
.svc-card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 24px 60px -20px rgba(255,94,26,.22); }
.svc-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,138,43,.10), rgba(255,94,26,.04));
  opacity: 0; transition: opacity .4s;
}
.svc-card:hover::before { opacity: 1; }
.svc-bg-num {
  position: absolute; top: -20px; right: -10px;
  font-family: "Jost", var(--sans); font-weight: 600; font-size: 160px;
  line-height: 1; letter-spacing: -.05em;
  color: var(--line); pointer-events: none; user-select: none;
  transition: color .4s;
}
.svc-card:hover .svc-bg-num { color: var(--line-strong); }
.svc-card > * { position: relative; z-index: 1; }
/* `.svc-card > *` above has the same specificity as `.svc-bg-num` and comes later,
   so it overrode position:absolute and dropped the watermark into the flex flow.
   Re-assert it with higher specificity. */
.svc-card > .svc-bg-num { position: absolute; z-index: 0; }
.svc-num { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.svc-name { font-family: "Jost", var(--sans); font-weight: 600; font-size: clamp(28px, 3.5vw, 46px); line-height: 1; letter-spacing: -.02em; }
.svc-name em { font-style: normal; font-family: inherit; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.svc-desc { font-size: 15px; line-height: 1.55; color: var(--fg-dim); flex: 1; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-tag { padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 100px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-faint); }
.svc-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  align-self: flex-start; color: var(--fg-dim);
  transition: all .3s var(--ease);
}
.svc-card:hover .svc-arrow { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }

/* WHY — split heading + rule-separated list */
.why-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; }
@media (max-width: 1100px) { .why-layout { gap: 48px; } }
@media (max-width: 760px) { .why-layout { grid-template-columns: 1fr; gap: 40px; } }
.why-aside { position: sticky; top: 120px; }
@media (max-width: 760px) { .why-aside { position: static; } }
.why-list { border-top: 1px solid var(--line); }
.why-item {
  display: grid; grid-template-columns: auto 1fr; gap: 32px;
  padding: 34px 0 34px 0; border-bottom: 1px solid var(--line);
  transition: transform .4s var(--ease);
}
@media (max-width: 560px) { .why-item { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; } }
.why-item:hover { transform: translateX(8px); }
.why-idx {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  color: var(--fg-faint); padding-top: 9px; transition: color .3s;
}
.why-item:hover .why-idx { color: var(--accent); }
.why-item h3 {
  font-family: "Jost", var(--sans); font-weight: 600;
  font-size: clamp(20px, 2.1vw, 27px); line-height: 1.15; letter-spacing: -.02em;
  margin-bottom: 10px;
}
.why-item h3 em { font-style: normal; font-family: inherit; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.why-item p { color: var(--fg-dim); font-size: 15.5px; line-height: 1.6; max-width: 54ch; }

/* PROCESS — four columns under a gradient progress rule */
.proc-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 56px; border-top: 1px solid var(--line);
}
@media (max-width: 900px) { .proc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .proc-grid { grid-template-columns: 1fr; } }
.proc-step {
  position: relative; padding: 38px 36px 38px 0;
  border-right: 1px solid var(--line);
}
.proc-step:last-child { border-right: none; }
@media (max-width: 900px) {
  .proc-step:nth-child(2n) { border-right: none; }
  .proc-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .proc-step { padding-right: 28px; }
}
@media (max-width: 560px) {
  .proc-step { border-right: none; border-bottom: 1px solid var(--line); padding: 28px 0; }
  .proc-step:last-child { border-bottom: none; }
}
/* gradient rule that fills across the step as it reveals */
.proc-step::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0;
  background: var(--grad); transition: width .9s var(--ease);
}
.proc-step.in::before { width: 100%; }
.proc-step:nth-child(2).in::before { transition-delay: .15s; }
.proc-step:nth-child(3).in::before { transition-delay: .30s; }
.proc-step:nth-child(4).in::before { transition-delay: .45s; }
.proc-n {
  font-family: "Jost", var(--sans); font-weight: 600; font-size: 58px;
  line-height: 1; letter-spacing: -.04em; color: var(--line-strong);
  transition: color .35s;
}
.proc-step:hover .proc-n {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.proc-t {
  font-family: "Jost", var(--sans); font-weight: 600; font-size: 20px;
  letter-spacing: -.01em; margin: 18px 0 10px;
}
.proc-t em { font-style: normal; font-family: inherit; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.proc-d { color: var(--fg-dim); font-size: 14.5px; line-height: 1.6; }


/* ABOUT STRIP — editorial manifesto + bento stats */
.about-strip {
  display: grid; grid-template-columns: 1.12fr 1fr; gap: 28px;
  align-items: stretch;
}
@media (max-width: 760px) { .about-strip { grid-template-columns: 1fr; gap: 20px; } }

.as-left {
  position: relative; overflow: hidden;
  padding: 64px 56px 56px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 36px;
}
@media (max-width: 1100px) { .as-left { padding: 48px 36px 40px; } }
@media (max-width: 640px) { .as-left { padding: 44px 26px 40px; } }
/* oversized watermark glyph */
.as-left::before {
  content: "{ }"; position: absolute; right: -26px; bottom: -74px;
  font-family: var(--mono); font-size: 200px; line-height: 1; font-weight: 500;
  color: var(--accent); opacity: .038; pointer-events: none; user-select: none;
}
.as-kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-faint); display: flex; align-items: center; gap: 10px;
}
.as-kicker::before {
  content: ""; width: 26px; height: 1px; background: var(--accent); flex: none;
}
.as-big {
  font-family: "Jost", var(--sans); font-weight: 600;
  font-size: clamp(42px, 5.6vw, 86px); line-height: 0.92; letter-spacing: -0.045em;
  max-width: 11ch;
}
.as-big .g {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* lead sits behind an accent rule instead of floating loose */
.as-note {
  position: relative; padding-left: 22px; max-width: 46ch; margin-top: auto;
}
.as-note::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px;
  border-radius: 2px; background: var(--grad);
}
.as-note p { color: var(--fg-dim); font-size: 17.5px; line-height: 1.6; }
.as-sign {
  margin-top: 28px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.as-sign-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-faint);
}
.as-sign-meta b { color: var(--accent); font-weight: 500; }

/* bento stat grid */
.as-right {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 460px) { .as-right { grid-template-columns: 1fr; } }
.as-stat {
  position: relative; overflow: hidden;
  padding: 30px 24px 26px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: center;
  min-height: 160px;
  transition: border-color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease);
}
/* accent hairline that wipes in on hover */
.as-stat::after {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.as-stat:hover {
  border-color: var(--line-strong); background: var(--bg-elev-2); transform: translateY(-3px);
}
.as-stat:hover::after { transform: scaleX(1); }
.as-stat-idx {
  position: absolute; top: 20px; left: 24px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--fg-faint);
}
.as-stat-n {
  font-family: "Jost", var(--sans); font-weight: 600;
  font-size: clamp(38px, 4vw, 52px); line-height: 1; letter-spacing: -0.035em;
}
.as-stat-n .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.as-stat-l {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-dim); line-height: 1.5;
}

.hero .sub { margin-top: 40px; display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; align-items: flex-end; }
.hero .sub p { max-width: 480px; font-size: 20px; color: var(--fg-dim); line-height: 1.5; }
.hero-meta { font-family: var(--mono); font-size: 12px; color: var(--fg-dim); text-align: right; line-height: 2; }
.hero-meta strong { color: var(--fg); font-weight: 500; }
.hero-cta-row { margin-top: 64px; display: flex; gap: 16px; flex-wrap: wrap; }

/* HERO STATS — instrument panel: one framed strip, hairline-divided cells */
.hero-stats {
  margin-top: 180px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bg-elev); overflow: hidden;
}
@media (max-width: 900px) { .hero-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .hero-stats { grid-template-columns: 1fr; } }

.stat-cell {
  position: relative;
  padding: 34px 30px 30px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
  transition: background .4s var(--ease);
}
.stat-cell:last-child { border-right: none; }
@media (max-width: 900px) {
  .stat-cell:nth-child(2n) { border-right: none; }
  .stat-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 460px) {
  .stat-cell { border-right: none; border-bottom: 1px solid var(--line); padding: 26px 22px 24px; }
  .stat-cell:last-child { border-bottom: none; }
}
.stat-cell:hover { background: var(--bg-elev-2); }

.stat-idx {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--fg-faint);
  display: flex; align-items: center; gap: 8px;
}
.stat-idx::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.stat-num {
  font-family: "Jost", var(--sans); font-weight: 600;
  font-size: clamp(42px, 4.4vw, 60px); line-height: 1; letter-spacing: -0.04em;
  display: flex; align-items: baseline; gap: 1px;
}
.stat-num em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-num i {
  font-style: normal; font-size: .46em; color: var(--fg-faint); font-weight: 500;
  letter-spacing: 0; transform: translateY(-.1em);
}
.stat-label {
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--fg-dim);
}
/* thin meter that fills once the panel reveals */
.stat-meter { height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 4px; }
.stat-meter i {
  display: block; height: 100%; width: 0; border-radius: 2px; background: var(--grad);
  transition: width 1.3s var(--ease) .25s;
}
.hero-stats.in .stat-meter i { width: var(--fill, 70%); }

/* Services */
.services-wrap { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr 160px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 24px;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease);
  position: relative;
}
.service-row:hover { padding-left: 24px; padding-right: 24px; background: var(--bg-elev); }
.service-row .num { font-family: var(--mono); font-size: 12px; color: var(--fg-faint); }
.service-row .title { font-family: "Jost", var(--sans); font-weight: 600; font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -0.035em; line-height: 1.05; }
.service-row .title em { font-style: normal; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.service-row .desc { color: var(--fg-dim); font-size: 15px; line-height: 1.5; }
.service-row .arrow { justify-self: end; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: all 0.3s var(--ease); }
.service-row:hover .arrow { background: var(--accent); color: #fff; border-color: var(--accent); transform: rotate(-45deg); }
@media (max-width: 900px) {
  .service-row { grid-template-columns: 40px 1fr 60px; }
  .service-row .desc { display: none; }
}

/* WORK INDEX — editorial list with a cursor-following preview */
.idx-list { border-top: 1px solid var(--line); margin-top: 56px; }
.idx-row {
  display: grid; grid-template-columns: auto 1fr auto auto;
  gap: 36px; align-items: center;
  padding: 36px 0; border-bottom: 1px solid var(--line);
  color: var(--fg); text-decoration: none;
  position: relative; isolation: isolate;
  transition: opacity .35s var(--ease), padding .45s var(--ease);
}
/* dim the rest of the list while one row is focused */
@media (hover: hover) {
  .idx-list:hover .idx-row { opacity: .3; }
  .idx-list .idx-row:hover,
  .idx-list .idx-row:focus-visible { opacity: 1; }
}
.idx-row:hover { padding-left: 26px; }
.idx-row::before {
  content: ""; position: absolute; inset: -1px 0; z-index: -1;
  background: linear-gradient(90deg, rgba(255,138,43,.11), transparent 62%);
  opacity: 0; transition: opacity .4s;
}
.idx-row:hover::before { opacity: 1; }
.idx-n { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--fg-faint); transition: color .3s; }
.idx-row:hover .idx-n { color: var(--accent); }
.idx-name {
  font-family: "Jost", var(--sans); font-weight: 600;
  font-size: clamp(25px, 3.5vw, 50px); line-height: 1.02; letter-spacing: -.03em;
}
.idx-row:hover .idx-name {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.idx-stack { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.idx-chip {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--fg-faint); border: 1px solid var(--line); border-radius: 100px; padding: 5px 11px;
  white-space: nowrap;
}
.idx-go {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: var(--fg-dim);
  transition: all .3s var(--ease); flex: 0 0 auto;
}
.idx-row:hover .idx-go { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }
@media (max-width: 900px) {
  .idx-row { grid-template-columns: auto 1fr auto; gap: 20px; row-gap: 14px; }
  .idx-stack { grid-column: 2 / -1; justify-content: flex-start; }
  /* the arrow sits on the title's row, right-aligned; chips go underneath */
  .idx-go { grid-row: 1; grid-column: 3; justify-self: end; }
}
@media (max-width: 560px) {
  .idx-row { grid-template-columns: 1fr auto; gap: 14px; padding: 26px 0; }
  .idx-n { grid-column: 1 / -1; }
  .idx-stack { grid-column: 1 / -1; grid-row: 3; }
  .idx-go { grid-row: 2; grid-column: 2; }
  .idx-row:hover { padding-left: 0; }
}

/* floating preview panel */
.idx-preview {
  position: fixed; top: 0; left: 0; width: 292px; z-index: 40;
  pointer-events: none; opacity: 0;
  transform: translate(-50%, -50%) scale(.94);
  transition: opacity .28s var(--ease), transform .45s var(--ease);
}
.idx-preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .idx-preview { display: none; } }
.ip-card {
  border-radius: 14px; overflow: hidden;
  background: var(--bg-elev); border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.65);
}
.ip-bar {
  display: flex; align-items: center; gap: 5px;
  padding: 9px 12px; background: var(--bg-elev-2); border-bottom: 1px solid var(--line);
}
.ip-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.ip-path {
  margin-left: 8px; font-family: var(--mono); font-size: 9px;
  color: var(--fg-faint); letter-spacing: .02em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.ip-body { padding: 14px; display: grid; gap: 8px; }
.ip-hero { height: 76px; border-radius: 7px; background: var(--grad); opacity: .85; }
.ip-l { height: 7px; border-radius: 100px; background: var(--line-strong); }
.ip-l.w1 { width: 72%; }
.ip-l.w2 { width: 44%; }
.ip-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 2px; }
.ip-tiles i { aspect-ratio: 1; border-radius: 5px; background: var(--bg-elev-2); border: 1px solid var(--line); }
.ip-tiles i:first-child { background: var(--accent-soft); border-color: var(--line-strong); }
/* sits inside the card so it never collides with the row text behind it */
.ip-meta {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-top: 1px solid var(--line); background: var(--bg-elev-2);
  font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em;
}
.ip-kind { color: var(--accent); }
.ip-year { color: var(--fg-faint); }

/* TESTIMONIALS — slider, from Testing (2), retokenised */
/* TESTIMONIALS — three cards visible, sliding one card at a time */
.t-slider { position: relative; overflow: hidden; padding: 6px 0 4px; }
.t-track { display: flex; gap: 20px; transition: transform .65s var(--ease); }
@media (max-width: 900px) { .t-track { gap: 16px; } }

.t-slide {
  position: relative; overflow: hidden;
  flex: 0 0 calc((100% - 40px) / 3);
  padding: 34px 32px 30px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  transition: border-color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease);
}
@media (max-width: 900px) { .t-slide { flex-basis: calc((100% - 16px) / 2); padding: 30px 26px 26px; } }
@media (max-width: 640px) { .t-slide { flex-basis: 100%; } }

/* oversized quote mark, like the accent watermark on the about panel */
.t-slide::before {
  content: "\201C"; position: absolute; top: -18px; right: 18px;
  font-family: "Jost", var(--sans); font-weight: 700; font-size: 120px; line-height: 1;
  color: var(--accent); opacity: .13; pointer-events: none; user-select: none;
}
.t-slide::after {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.t-slide:hover { border-color: var(--line-strong); background: var(--bg-elev-2); }
.t-slide:hover::after { transform: scaleX(1); }

.t-stars { color: var(--accent); font-size: 15px; letter-spacing: 3px; margin-bottom: 22px; }
.t-quote {
  font-family: var(--sans); font-style: normal; font-weight: 400;
  font-size: 16px; line-height: 1.6; letter-spacing: 0;
  color: var(--fg); margin: 0 0 28px;
}
.t-author { margin-top: auto; display: flex; align-items: center; gap: 13px; }
.t-av {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--grad); color: #17100a;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .04em;
}
.t-name { font-weight: 600; font-size: 14px; color: var(--fg); }
.t-role {
  font-family: var(--mono); font-size: 10px; color: var(--fg-faint);
  letter-spacing: .08em; text-transform: uppercase; margin-top: 3px;
}

/* controls */
.t-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; margin-top: 36px; flex-wrap: wrap;
}
.t-dots { display: flex; gap: 8px; }
.t-dot {
  width: 8px; height: 8px; padding: 0; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-strong); cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease), width .3s var(--ease);
}
.t-dot.on { width: 26px; border-radius: 999px; background: var(--grad); border-color: transparent; }
.t-nav { display: flex; gap: 8px; }
.t-arrow {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg); cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.t-arrow svg { width: 15px; height: 15px; }
.t-arrow:hover:not(:disabled) { background: var(--grad); border-color: transparent; color: #17100a; }
.t-arrow:disabled { opacity: .35; cursor: default; }

/* Stack */
/* STACK — filterable toolbox of element cards */
.stack-bar {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; margin-bottom: 30px;
}
.stack-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.stack-filter {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--fg-dim); background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; cursor: pointer; white-space: nowrap;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.stack-filter:hover { color: var(--fg); border-color: var(--line-strong); }
.stack-filter.on {
  color: #17100a; background: var(--grad); border-color: transparent; font-weight: 500;
}
.stack-readout {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-faint); white-space: nowrap;
}
.stack-readout b { color: var(--accent); font-weight: 500; }

.stack-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 1100px) { .stack-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px)  { .stack-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 440px)  { .stack-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.stack-item {
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1.06;
  padding: 15px 15px 13px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: opacity .55s var(--ease), transform .45s var(--ease),
              border-color .35s var(--ease), background .35s var(--ease);
}
.stack-top {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; color: var(--fg-faint);
}
.stack-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  opacity: .55; transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.stack-sym {
  font-family: "Jost", var(--sans); font-weight: 600;
  font-size: clamp(17px, 1.65vw, 23px); line-height: 1.12; letter-spacing: -0.03em;
  color: var(--fg); transition: color .35s var(--ease);
  /* long names (PostgreSQL, React Native) break rather than overflow the tile */
  overflow-wrap: anywhere; hyphens: none;
}
.stack-foot { display: flex; flex-direction: column; gap: 9px; }
.stack-cat {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-faint); padding-top: 7px; border-top: 1px solid var(--line);
}

/* role panel slides up over the card on hover */
.stack-role {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 15px 15px;
  background: var(--grad); color: #17100a;
  font-family: var(--sans); font-size: 11.5px; line-height: 1.4; font-weight: 500;
  transform: translateY(102%);
  transition: transform .42s var(--ease);
}
.stack-item:hover {
  border-color: var(--line-strong); background: var(--bg-elev-2); transform: translateY(-4px);
}
.stack-item:hover .stack-sym {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stack-item:hover .stack-dot { opacity: 1; transform: scale(1.4); }
.stack-item:hover .stack-role { transform: translateY(0); }

/* filtered-out cards dim in place instead of reflowing the grid */
.stack-item.out { opacity: .15; transform: scale(.95); }
.stack-item.out:hover { transform: scale(.95); border-color: var(--line); background: var(--bg-elev); }
.stack-item.out:hover .stack-role { transform: translateY(102%); }
@media (hover: none) { .stack-role { display: none; } }
/* Ticker headline effect */
.rotator-wrap { display: inline-flex; vertical-align: bottom; height: 1.25em; overflow: hidden; position: relative; padding-bottom: 0.1em; }
.rotator { display: flex; flex-direction: column; animation: rotate 8s infinite; }
.rotator span { height: 1.25em; line-height: 1.25em; display: inline-flex; align-items: center; font-style: italic; color: var(--accent); padding-right: 0.2em; }
@keyframes rotate {
  0%, 20% { transform: translateY(0); }
  25%, 45% { transform: translateY(-1.25em); }
  50%, 70% { transform: translateY(-2.5em); }
  75%, 95% { transform: translateY(-3.75em); }
  100% { transform: translateY(-5em); }
}

.t-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.t-av:has(img) { background: none; }

/* the studio line is now editable text (bold comes out as <strong>), styled like the old <b> */
.as-sign-meta strong { color: var(--accent); font-weight: 500; }
