/* CODEPOINT Softwares — inner pages
   One component kit for every service, product, industry and company page.
   Calm near-black surfaces, hairline borders, one plum accent; data is shown
   as cards, rings and steps so each page can be scanned in seconds. */

:root {
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --surface: #121219;
  --surface-2: #181821;
  --edge: rgb(255 255 255 / 0.075);
  --edge-hot: rgb(213 90 205 / 0.45);
  --block: clamp(4rem, 8vw, 7rem);
}

.mono { font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.02em; color: var(--muted); text-transform: uppercase; }

/* ---------- Page hero ---------- */

.ph { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden; isolation: isolate; }
.ph::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--edge) 1px, transparent 1px), linear-gradient(90deg, var(--edge) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  mask-image: radial-gradient(70% 80% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 80% at 50% 0%, #000 20%, transparent 75%);
}
.ph::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgb(213 90 205 / 0.12), transparent 70%),
    radial-gradient(55% 60% at 80% -10%, rgb(145 41 140 / 0.38), transparent 70%),
    radial-gradient(40% 50% at 0% 0%, rgb(145 41 140 / 0.14), transparent 70%);
}
.ph-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.ph-split .ph-grid { grid-template-columns: 1.1fr 0.9fr; }
.ph-screen .ph-copy, .ph:not(.ph-split) .ph-copy { max-width: 52rem; }
.ph-screen .ph-grid { justify-items: center; text-align: center; }
.ph-screen .ph-copy { display: grid; justify-items: center; }
.ph-screen .lede { margin-inline: auto; }
.ph h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); margin-bottom: 1.25rem; }
.ph .lede { font-size: clamp(1rem, 1.2vw, 1.15rem); }
.ph .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.ph-screen .actions { justify-content: center; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; font: 500 0.75rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.5; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--plum-bright); }

/* Stat bento in the hero. */
.stat-bento { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.stat-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  min-height: 9.5rem; padding: 1.35rem; border: 1px solid var(--edge); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); overflow: hidden;
}
.stat-card::after {
  content: ""; position: absolute; left: 1.35rem; right: 1.35rem; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--plum-bright), transparent); opacity: 0.6;
}
.stat-card:nth-child(1) { background: linear-gradient(150deg, rgb(145 41 140 / 0.55), rgb(43 12 42 / 0.6) 60%, var(--surface)); border-color: rgb(213 90 205 / 0.3); }
.stat-card dd { order: -1; margin: 0; font: 700 clamp(1.9rem, 3vw, 2.6rem)/1 var(--display); letter-spacing: -0.03em; }
.stat-card dt { font-size: 0.875rem; color: var(--muted); max-width: 22ch; }
.stat-card:nth-child(1) dt { color: rgb(255 255 255 / 0.8); }

.ph-photo { position: relative; margin: 0; border-radius: calc(var(--radius) + 0.25rem); overflow: hidden; border: 1px solid var(--edge); }
.ph-photo img { width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; }
.ph-photo figcaption {
  position: absolute; left: 1rem; bottom: 1rem; display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.9rem 0.5rem 0.5rem; border-radius: 999px; font-size: 0.85rem;
  background: rgb(10 10 15 / 0.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--edge);
}

/* Product screen that settles flat as it scrolls in. */
.screen-stage { margin: clamp(2.5rem, 5vw, 4rem) auto 0; max-width: 68rem; perspective: 1600px; }
.browser {
  display: block; border-radius: 1rem; overflow: hidden; background: #fff;
  border: 1px solid rgb(255 255 255 / 0.14);
  box-shadow: 0 0 0 6px rgb(255 255 255 / 0.03), 0 50px 120px -40px rgb(145 41 140 / 0.65), 0 30px 60px -30px rgb(0 0 0 / 0.8);
}
.screen-stage .browser { transform: rotateX(var(--tilt, 0deg)) scale(var(--scale, 1)); transform-origin: 50% 0; transition: transform 0.1s linear; }
.browser-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.9rem; background: #1b1b24; }
.browser-bar i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: rgb(255 255 255 / 0.18); }
.browser-bar span { margin-left: 0.6rem; padding: 0.2rem 0.8rem; border-radius: 999px; background: rgb(255 255 255 / 0.06); font: 500 0.7rem/1.4 var(--mono); color: var(--muted); }
.browser img { width: 100%; height: auto; }

/* ---------- Blocks ---------- */

.block { padding-block: var(--block); }
.block + .block { padding-top: 0; }
.block-band { position: relative; isolation: isolate; }
.block-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(44% 40% at 50% 50%, rgb(145 41 140 / 0.13), transparent 100%);
}
.block-band + .block, .block + .block-band, .block-band + .block-band { padding-top: var(--block); }
.block-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.block-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.block-head h2 { max-width: 22ch; }
.block-head:not(.split) .lede { margin-top: 1rem; }
.block-head.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem 4rem; align-items: end; }
.kicker-center { justify-content: center; margin: 0 0 1.5rem; color: var(--muted); }
.kicker-center::before { display: none; }

/* Cards shared by bento, links, offices, posts. */
.card {
  position: relative; display: block; padding: clamp(1.25rem, 2.2vw, 1.75rem);
  border: 1px solid var(--edge); border-radius: var(--radius); background: var(--surface);
  transition: border-color 0.3s, transform 0.35s var(--ease), background-color 0.3s;
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0;
  padding: 1px; background: radial-gradient(240px circle at var(--x, 50%) var(--y, 50%), var(--plum-bright), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: opacity 0.3s;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(320px circle at var(--x, 50%) var(--y, 50%), rgb(213 90 205 / 0.08), transparent 70%);
  transition: opacity 0.3s;
}
.card:hover::before, .card:hover::after { opacity: 1; }
a.card:hover { transform: translateY(-3px); }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.bento-3 { grid-template-columns: repeat(3, 1fr); }
.bento .card { display: flex; flex-direction: column; gap: 0.5rem; min-height: 13rem; }
.bento-3:has(> :nth-child(5):last-child) { grid-template-columns: repeat(6, 1fr); }
.bento-3:has(> :nth-child(5):last-child) > :nth-child(-n + 2) { grid-column: span 3; }
.bento-3:has(> :nth-child(5):last-child) > :nth-child(n + 3) { grid-column: span 2; }
.bento:has(> :nth-child(10):last-child) { grid-template-columns: repeat(5, 1fr); }
.bento .card h3 { margin-top: auto; padding-top: 1.75rem; }
.bento .card p { font-size: 0.925rem; color: var(--muted); }
.chip-icon {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.8rem;
  color: var(--plum-bright); background: linear-gradient(160deg, rgb(213 90 205 / 0.18), rgb(145 41 140 / 0.06));
  border: 1px solid rgb(213 90 205 / 0.25); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
}
.card:hover .chip-icon { color: #fff; background: var(--gradient); }

/* Check-chip lists. */
.checks-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.checks-grid .block-head { margin: 0; position: sticky; top: 8rem; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.checks-1 { grid-template-columns: 1fr; }
.checks li {
  display: flex; align-items: center; gap: 0.85rem; padding: 0.9rem 1rem;
  border: 1px solid var(--edge); border-radius: var(--radius-sm); background: var(--surface); font-weight: 500;
}
.tick { flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgb(61 220 132 / 0.14); color: #3DDC84; }

/* Steps as a deck: the heading stays put while the cards stick and pile up. */
.deck { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.deck-head { position: sticky; top: 7rem; }
.deck-head h2 { margin-bottom: 1rem; }
.deck-head .lede { color: var(--muted); }
.deck-count { margin-top: clamp(1.5rem, 4vw, 3rem); font: 700 clamp(3rem, 6vw, 5rem)/1 var(--display); letter-spacing: -0.03em; color: rgb(255 255 255 / 0.18); font-variant-numeric: tabular-nums; }
.deck-count b { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; filter: brightness(1.5); }
.deck-cards { display: grid; gap: 1.25rem; padding-bottom: 4rem; }
.deck-card {
  position: sticky; top: calc(7rem + var(--i) * 1.1rem);
  display: grid; align-content: start; gap: 0.75rem; min-height: 15rem; padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--edge); border-radius: var(--radius); transform-origin: 50% 0;
  background: radial-gradient(70% 90% at 100% 0%, rgb(145 41 140 / 0.32), transparent 70%), linear-gradient(160deg, #1A141F, #121219);
  box-shadow: 0 -24px 40px -28px rgb(0 0 0 / 0.9);
  transform: scale(calc(1 - var(--cover, 0) * 0.05)); filter: brightness(calc(1 - var(--cover, 0) * 0.4));
}
.deck-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.deck-n { font: 700 clamp(2.5rem, 4vw, 3.25rem)/1 var(--display); letter-spacing: -0.03em; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; filter: brightness(1.5); }
.deck-segs { display: flex; gap: 0.3rem; }
.deck-segs i { width: 1.4rem; height: 4px; border-radius: 4px; background: var(--edge); }
.deck-segs i.on { background: var(--gradient); filter: brightness(1.4); }
.deck-card h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -0.02em; }
.deck-card p { color: var(--muted); max-width: 46ch; font-size: 1.02rem; }
.steps-iso { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--edge); font-size: 0.85rem; color: var(--muted); }

/* Case studies with a result ring. */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.case {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.25rem, 3vw, 2rem); align-items: start;
  padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--edge); border-radius: var(--radius); background: var(--surface);
}
.case-metric { position: relative; width: 8.5rem; aspect-ratio: 1; display: grid; place-items: center; }
.ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring-track { stroke: rgb(255 255 255 / 0.07); }
.ring-fill { stroke: var(--plum-bright); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s var(--ease) 0.2s; filter: drop-shadow(0 0 6px rgb(213 90 205 / 0.5)); }
.is-in .ring-fill { stroke-dashoffset: var(--to); }
.case-value { position: relative; display: grid; justify-items: center; text-align: center; gap: 0.2rem; padding: 0 0.9rem; }
.case-value b { font: 700 1.7rem/1 var(--display); letter-spacing: -0.03em; }
.case-value span { font-size: 0.72rem; line-height: 1.3; color: var(--muted); }
.case-figure { width: 100%; height: 100%; align-content: center; border-radius: 50%; border: 7px solid rgb(213 90 205 / 0.35); }
.case-figure b { font-size: 2rem; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case-icon { color: #3DDC84; border-color: rgb(61 220 132 / 0.25); }
.case h3 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); margin: 0.75rem 0 1rem; }
.case-points { display: grid; gap: 0.55rem; font-size: 0.925rem; color: var(--muted); }
.case-points li { display: flex; gap: 0.6rem; align-items: flex-start; }
.case-points .icon { flex: none; margin-top: 0.2rem; color: #3DDC84; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li, .tag {
  display: inline-block; padding: 0.3rem 0.65rem; border-radius: 999px; border: 1px solid var(--edge);
  font: 500 0.72rem/1.3 var(--mono); color: var(--muted); background: rgb(255 255 255 / 0.03);
}
.tags-lg li { font: 500 0.85rem/1.3 var(--body); padding: 0.45rem 0.9rem; color: var(--text); }

/* Technology logo loop. */
.logo-loop {
  --gap: 0.75rem; display: flex; overflow: hidden; gap: var(--gap);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logo-track { flex: none; display: flex; gap: var(--gap); animation: loop calc(var(--n) * 2.6s) linear infinite; }
.logo-loop:hover .logo-track { animation-play-state: paused; }
/* Each technology is a tile: its logo, then its name underneath, so the strip
   reads for non-technical visitors too. */
.logo-track li {
  display: grid; justify-items: center; align-content: center; gap: 0.6rem; width: 8rem; height: 6.5rem; padding: 0 0.5rem;
  border: 1px solid var(--line-ink); border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.025));
  transition: border-color 0.25s, background-color 0.25s, transform 0.3s var(--ease);
}
.logo-track li:hover { border-color: rgb(213 90 205 / 0.45); background-color: var(--plum-soft); transform: translateY(-3px); }
.logo-mark { display: grid; place-items: center; height: 2.5rem; color: var(--plum-bright); }
.logo-mark img { width: 2.4rem; height: 2.4rem; object-fit: contain; }
.logo-mark.is-mono img { filter: brightness(0) invert(1); }
.logo-name { font: 600 0.8rem/1.2 var(--display); text-align: center; color: var(--text); }
@keyframes loop { to { transform: translateX(calc(-100% - var(--gap))); } }

/* Testimonials. */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.quotes-2 { grid-template-columns: 1fr 1fr; }
.quotes li { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: clamp(1.25rem, 2.5vw, 2rem); border: 1px solid var(--edge); border-radius: var(--radius); background: var(--surface); }
.quotes blockquote { margin: 0; font: 600 clamp(1.05rem, 1.4vw, 1.2rem)/1.5 var(--display); letter-spacing: -0.01em; }
.quote-by { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--gradient); color: #fff; font-weight: 700; }

/* Integration hub with moving beams. */
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hub { position: relative; aspect-ratio: 1; max-width: 32rem; width: 100%; margin-inline: auto; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub-lines path { fill: none; stroke-width: 1.5; }
.hub-lines .hub-line { stroke: rgb(255 255 255 / 0.1); }
.hub-lines .hub-beam { stroke: var(--plum-bright); stroke-linecap: round; stroke-dasharray: 14 86; animation: beam 2.8s linear infinite; filter: drop-shadow(0 0 4px var(--plum-bright)); }
@keyframes beam { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.hub-core {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center;
  width: 34%; aspect-ratio: 1; border-radius: 50%; text-align: center; font: 700 clamp(0.95rem, 1.5vw, 1.2rem)/1.15 var(--display);
  background: var(--gradient); box-shadow: 0 0 0 10px rgb(145 41 140 / 0.15), 0 0 80px rgb(213 90 205 / 0.45);
}
.hub-core span { padding: 0.5rem; }
.hub-node {
  --a: calc(360deg / var(--n) * var(--i) - 90deg);
  position: absolute; left: calc(50% + cos(var(--a)) * 40%); top: calc(50% + sin(var(--a)) * 40%); translate: -50% -50%;
  padding: 0.55rem 0.9rem; border-radius: 999px; white-space: nowrap; font-size: 0.85rem; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--edge); box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.8);
}

/* App family. */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.app { padding: 1rem 1rem 1.5rem; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--surface); }
.app-shot { display: grid; place-items: end center; height: 20rem; margin-bottom: 1.25rem; padding-top: 1.5rem; border-radius: var(--radius-sm); overflow: hidden; background: radial-gradient(80% 80% at 50% 100%, rgb(213 90 205 / 0.45), transparent 70%), linear-gradient(180deg, #1d1326, #2B0C2A); }
.app-shot img { width: auto; max-width: 78%; max-height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 20px 30px rgb(0 0 0 / 0.5)); }
.app h3 { margin-bottom: 0.35rem; }
.app p { font-size: 0.9rem; color: var(--muted); }

/* Team picker: skill chips by area; picked ones collect in a sticky bar. */
.team-grid { columns: 3 17rem; column-gap: 1rem; }
.team-card { break-inside: avoid; margin-bottom: 1rem; }
.team-card h3 { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; font-size: 1.02rem; }
.team-card .chip-icon { width: 2.1rem; height: 2.1rem; }
.team-count { margin-left: auto; font: 500 0.72rem/1 var(--mono); color: var(--muted); padding: 0.3rem 0.5rem; border: 1px solid var(--edge); border-radius: 999px; }
.team-card:has([aria-pressed="true"]) { border-color: var(--edge-hot); }
.team-card:has([aria-pressed="true"]) .chip-icon { color: #fff; background: var(--gradient); }
.team-tools { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.team-tool {
  padding: 0.45rem 0.8rem; border: 1px solid var(--edge); border-radius: 999px; cursor: pointer;
  background: rgb(255 255 255 / 0.03); color: var(--text); font: 500 0.82rem/1.2 var(--body);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.team-tool:hover { border-color: var(--edge-hot); transform: translateY(-1px); }
.team-tool:active { transform: scale(0.96); }
.team-tool[aria-pressed="true"] { background: var(--gradient); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -10px rgb(213 90 205 / 0.9); }
.team-tool[aria-pressed="true"]::before { content: "✓ "; font-weight: 700; }
.team-bar { position: sticky; bottom: 1rem; z-index: 20; margin-top: 1.5rem; animation: bar-in 0.4s var(--ease); }
.team-bar[hidden] { display: none; }
.team-bar-inner {
  display: flex; align-items: center; gap: 0.75rem; width: min(100% - 2 * var(--gutter), 52rem); margin-inline: auto;
  padding: 0.6rem 0.6rem 0.6rem 1.4rem; border-radius: 999px; border: 1px solid var(--edge-hot);
  background: rgb(18 14 24 / 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.9), 0 0 40px -10px rgb(145 41 140 / 0.5);
}
.team-bar-inner p { flex: 1; min-width: 0; font-size: 0.9rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-bar-inner p b { color: var(--text); }
.team-clear { padding: 0.5rem 0.75rem; border: 0; background: none; color: var(--muted); font: 600 0.85rem/1 var(--body); cursor: pointer; }
.team-clear:hover { color: var(--text); }
@keyframes bar-in { from { opacity: 0; transform: translateY(16px); } }

/* Hub links (services, industries). */
.links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.link-card { display: flex; flex-direction: column; gap: 0.6rem; height: 100%; min-height: 15rem; }
.link-card h3 { margin-top: 1.5rem; }
.link-card p { font-size: 0.9rem; color: var(--muted); flex: 1; }
.links-images .link-card { padding: 0.6rem 0.6rem 1.5rem; }
.links-images .link-card > :not(img) { margin-inline: 0.9rem; }
.links-images img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: calc(var(--radius) - 0.5rem); margin-bottom: 0.6rem; }
.links-images .link-card h3 { margin-top: 0; }

/* Product hub rows. */
.product-rows { display: grid; gap: 0.75rem; }
.product-row {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding: clamp(1.25rem, 3.5vw, 3rem); border: 1px solid var(--edge); border-radius: calc(var(--radius) + 0.25rem);
  background: radial-gradient(60% 80% at 100% 100%, rgb(145 41 140 / 0.28), transparent 70%), var(--surface);
}
.product-row:nth-child(even) .product-copy { order: 2; }
.product-name { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; font: 700 1rem/1 var(--display); }
.product-name img { border-radius: 0.6rem; background: #fff; padding: 3px; }
.product-row h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin-bottom: 1rem; }
.product-row .actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; }
.product-row .browser { transition: transform 0.5s var(--ease); }
.product-row:hover .browser { transform: translateY(-4px) rotate(-0.4deg); }

/* About. */
.story { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.story h2 { margin-bottom: 1.25rem; }
.story .lede { margin-bottom: 2rem; }
.facts { display: grid; gap: 0.75rem; }
.facts dt { font: 500 0.75rem/1.4 var(--mono); text-transform: uppercase; color: var(--plum-bright); margin-bottom: 0.4rem; }
.facts dd { margin: 0; color: var(--text); }
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.leader {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--edge); border-radius: var(--radius); background: var(--surface);
}
.leader:hover { border-color: rgb(213 90 205 / 0.35); }
.leader-photo { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; filter: saturate(0.8); transition: transform 0.8s var(--ease), filter 0.6s; }
.leader:hover .leader-photo img { transform: scale(1.04); filter: saturate(1); }
/* Fades the photo into the card so the name can sit on it. */
.leader-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgb(10 10 15 / 0.55) 70%, var(--surface) 100%); }
.leader-photo figcaption { position: absolute; z-index: 1; left: clamp(1.25rem, 3vw, 2rem); bottom: 0.75rem; display: grid; gap: 0.35rem; }
.leader-photo b { font: 700 clamp(1.3rem, 2.2vw, 1.6rem)/1.1 var(--display); letter-spacing: -0.02em; color: var(--text); }
.leader-photo span { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--plum-bright); }
.leader-text { display: grid; align-content: start; gap: 0.9rem; padding: 1.25rem clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem); color: var(--muted); font-size: 0.95rem; }
.leader blockquote {
  position: relative; margin: 0 0 0.35rem; padding-top: 2.1rem;
  font: 700 clamp(1.15rem, 1.7vw, 1.35rem)/1.4 var(--display); letter-spacing: -0.02em; color: var(--text);
}
.leader blockquote::before { content: "“"; position: absolute; top: -0.35rem; left: -0.1rem; font: 700 4rem/1 var(--display); color: var(--plum-bright); opacity: 0.85; }

.office-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; }
.office-card { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.875rem; color: var(--muted); }
.office-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.office-top img { border-radius: 3px; width: 28px; height: auto; }
.office-top time { padding: 0.25rem 0.6rem; border-radius: 999px; background: rgb(255 255 255 / 0.05); color: var(--text); }
.office-card h3 { color: var(--text); }
.office-card .office-role { color: var(--plum-bright); font-size: 0.8rem; }
.office-card address { flex: 1; margin-bottom: 0.75rem; }

/* Careers. */
.jobs { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; padding: clamp(1.5rem, 4vw, 3rem); background: radial-gradient(70% 100% at 100% 0%, rgb(145 41 140 / 0.35), transparent 70%), var(--surface); }
.jobs h2 { margin-bottom: 1rem; max-width: 20ch; }
.jobs-actions { display: grid; gap: 0.6rem; justify-items: stretch; }
.jobs-actions .btn { width: 100%; }

/* Blog. */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.posts-2 { grid-template-columns: 1fr 1fr; }
.post { display: flex; flex-direction: column; gap: 1rem; height: 100%; min-height: 18rem; }
.post h2 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.25; }
.post p:not(.post-meta) { color: var(--muted); font-size: 0.925rem; flex: 1; }
.post-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.article-wrap { max-width: 50rem; }
.article .post-meta { justify-content: flex-start; margin-bottom: 1.5rem; }
.article-note { margin-top: 2.5rem; padding: 1rem 1.25rem; border: 1px dashed var(--edge-hot); border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--muted); }

/* FAQ spacing inside blocks (the home page adds its own top margin). */
.block .faq-grid { margin-top: 0; }

/* Reveal. */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease) var(--d, 0s), transform 0.7s var(--ease) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 75rem) {
  .bento, .links, .bento:has(> :nth-child(10):last-child) { grid-template-columns: repeat(2, 1fr); }
  .office-cards { grid-template-columns: repeat(3, 1fr); }
  .apps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 60rem) {
  .ph-split .ph-grid, .checks-grid, .deck, .cases, .hub-grid, .product-row, .story, .jobs, .block-head.split { grid-template-columns: 1fr; }
  .product-row:nth-child(even) .product-copy { order: 0; }
  .checks-grid .block-head { position: static; }
  .quotes, .posts { grid-template-columns: 1fr; }
  .deck-head { position: static; }
  .deck-count { display: none; }
  .deck-card { top: calc(5.5rem + var(--i) * 0.8rem); min-height: 12rem; }
  .bento-3, .bento-3:has(> :nth-child(5):last-child) { grid-template-columns: repeat(2, 1fr); }
  .bento-3:has(> :nth-child(5):last-child) > * { grid-column: auto !important; }
  .leaders { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .bento, .bento-3, .links, .checks, .office-cards, .posts-2, .quotes-2, .bento:has(> :nth-child(10):last-child), .bento-3:has(> :nth-child(5):last-child) { grid-template-columns: 1fr; }
  .bento .card { min-height: 0; }
  .bento .card h3 { padding-top: 0.75rem; }
  .apps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.75rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .apps > li { flex: 0 0 78%; scroll-snap-align: start; }
  /* Case studies: a swipeable row, the next card peeking in. Each card leads
     with a compact result: a small ring and the figure written beside it. */
  .cases { display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .cases::-webkit-scrollbar { display: none; }
  .logo-loop { --gap: 0.5rem; }
  .logo-track li { width: 6.5rem; height: 5.5rem; gap: 0.45rem; }
  .logo-mark { height: 2rem; }
  .logo-mark img, .logo-mark .icon { width: 1.9rem; height: 1.9rem; }
  .logo-name { font-size: 0.72rem; }
  .case { flex: 0 0 86%; scroll-snap-align: start; grid-template-columns: 1fr; align-content: start; gap: 0; padding: 1.25rem; }
  .case:only-child { flex-basis: 100%; }
  .case-metric { display: flex; align-items: center; gap: 0.9rem; width: auto; aspect-ratio: auto; padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--edge); }
  .case-metric .ring { position: relative; inset: auto; flex: none; width: 3.75rem; height: 3.75rem; }
  .case-metric .ring circle { stroke-width: 11; }
  .case-value { justify-items: start; text-align: left; gap: 0.3rem; padding: 0; }
  .case-value b { font-size: 2.1rem; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; filter: brightness(1.35); }
  .case-value span { font-size: 0.85rem; }
  .case-figure { width: auto; height: auto; border: 0; border-radius: 0; }
  .case-figure b { font-size: 2.1rem; }
  .case-icon { grid-auto-flow: column; align-items: center; gap: 0.6rem; }
  .case-icon .icon { width: 1.75rem; height: 1.75rem; padding: 0.35rem; border-radius: 50%; background: rgb(61 220 132 / 0.12); box-sizing: content-box; }
  .case-icon span { font-size: 0.95rem; color: var(--text); font-weight: 600; }
  .case h3 { margin: 0.8rem 0 0.85rem; }
  .case-points { font-size: 0.9rem; }
  .team-bar-inner { padding-left: 1rem; }
  .team-bar { bottom: 5.5rem; } /* clear of the floating chat button */
  .team-bar-inner [data-team-list], .team-clear { display: none; }
  .stat-card { min-height: 7.5rem; }
  .hub-node { font-size: 0.72rem; padding: 0.4rem 0.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track, .hub-lines .hub-beam { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ring-fill { transition: none; }
}
.ph + .block, .ph + .contact { padding-top: clamp(1.5rem, 3vw, 3rem); }

/* ---------- Careers: open roles ---------- */

.job-list { display: grid; gap: 0.75rem; }
.job {
  display: grid; grid-template-columns: minmax(12rem, 1.1fr) 1.6fr auto auto; gap: 1rem 2rem; align-items: center;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
}
.job:hover { border-color: var(--edge-hot); transform: translateY(-2px); }
.job-title h3 { font-size: 1.25rem; }
.job-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card is the link */
.job-title p { margin-top: 0.2rem; color: var(--plum-bright); font-size: 0.875rem; font-weight: 500; }
.job-meta { display: flex; gap: 1.75rem; }
.job-meta dt { font: 500 0.7rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.job-meta dd { font: 700 1.25rem/1.3 var(--display); }
.job .btn span { transition: transform 0.3s var(--ease); }
.job:hover .btn span { transform: translateX(3px); }
.job-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1.5rem; color: var(--muted); font-size: 0.925rem; }
.job-mail .icon { color: var(--plum-bright); }
.job-mail a { color: var(--text); font-weight: 600; }
.job-mail a:hover { color: var(--plum-bright); }
@media (max-width: 64rem) {
  .job { grid-template-columns: 1fr auto; }
  .job .tags { grid-column: 1 / -1; grid-row: 2; }
  .job .job-meta { grid-column: 1; grid-row: 3; }
  .job .btn { grid-column: 2; grid-row: 3; }
}

/* ---------- Application form: one short screen at a time ---------- */

.apply { position: relative; padding: clamp(2rem, 5vw, 4rem) 0 var(--block); isolation: isolate; }
.apply::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 32% at 50% 6%, rgb(145 41 140 / 0.3), transparent 100%);
}
.apply-wrap { max-width: 50rem; }
.apply-back { display: inline-flex; gap: 0.5rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); font-size: 0.875rem; color: var(--muted); }
.apply-back:hover { color: var(--text); }
.apply-back span { transition: transform 0.25s var(--ease); }
.apply-back:hover span { transform: translateX(-3px); }

.apply-head { display: grid; justify-items: start; gap: 0.9rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.apply-head h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -0.03em; line-height: 1; }
.apply-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; color: var(--muted); font-size: 0.95rem; }
.apply-facts b { color: var(--text); font-weight: 700; }
.apply-facts li + li::before { content: "·"; margin-right: 1.5rem; color: var(--edge-hot); }

.wizard {
  position: relative; display: grid; gap: 1.5rem; padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--edge); border-radius: calc(var(--radius) + 0.25rem);
  background: radial-gradient(80% 50% at 100% 0%, rgb(145 41 140 / 0.22), transparent 70%), linear-gradient(170deg, #17121D, #111117);
  box-shadow: 0 40px 90px -40px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(213 90 205 / 0.05);
  color-scheme: dark;
}

/* Step rail: hidden until JS takes over. */
.wizard-rail { display: none; }
.wizard.is-ready .wizard-rail { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 0.5rem; }
.wizard-rail::before, .wizard-rail::after { content: ""; position: absolute; top: 1rem; left: 10%; height: 2px; border-radius: 2px; }
.wizard-rail::before { right: 10%; background: var(--edge); }
.wizard-rail::after { width: calc(80% * var(--rail, 0)); background: var(--gradient); filter: brightness(1.3); transition: width 0.5s var(--ease); }
.wizard-rail button {
  position: relative; z-index: 1; display: grid; justify-items: center; gap: 0.5rem; width: 100%; padding: 0;
  border: 0; background: none; color: var(--muted); font: 500 0.78rem/1.25 var(--body); cursor: default;
}
.wizard-rail i {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; font: 700 0.8rem/1 var(--display); font-style: normal;
  background: #141119; border: 1px solid var(--edge); transition: background-color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.wizard-rail .is-done button { color: var(--text); cursor: pointer; }
.wizard-rail .is-done i { background: var(--plum); border-color: var(--plum); color: transparent; position: relative; }
.wizard-rail .is-done i::after { content: "✓"; position: absolute; color: #fff; font-size: 0.85rem; }
.wizard-rail .is-current button { color: var(--text); font-weight: 600; }
.wizard-rail .is-current i { background: var(--gradient); border-color: transparent; color: #fff; transform: scale(1.12); box-shadow: 0 0 0 5px rgb(213 90 205 / 0.15); }

/* Panes */
.pane { display: grid; gap: 1.1rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.wizard.is-ready .pane:not(.is-current) { display: none; }
.wizard.is-ready .pane.is-current { animation: pane-in 0.45s var(--ease); }
.wizard.is-ready .pane.is-back { animation-name: pane-back; }
@keyframes pane-in { from { opacity: 0; transform: translateX(18px); } }
@keyframes pane-back { from { opacity: 0; transform: translateX(-18px); } }
/* Floated so the title sits inside the pane instead of in its top border. */
.pane > legend { float: left; width: 100%; padding: 0; margin-bottom: 0.4rem; font: 700 clamp(1.5rem, 3vw, 2rem)/1.15 var(--display); letter-spacing: -0.03em; }
.pane-step { display: block; margin-bottom: 0.5rem; font: 500 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--plum-bright); }
.wizard:not(.is-ready) .pane + .pane { padding-top: 1.75rem; border-top: 1px solid var(--line); }
.wizard:not(.is-ready) [data-review-pane] { display: none; }
.field small { font-size: 0.8rem; color: var(--muted); }
.chips-lg .chip span { padding: 0.6rem 1rem; font-size: 0.875rem; }

.form-error { padding: 0.8rem 1rem; border-radius: var(--radius-sm); background: rgb(242 106 94 / 0.12); border: 1px solid rgb(242 106 94 / 0.4); color: #FFB4AC; font-size: 0.9rem; }
.has-error input, .has-error textarea, .has-error select, .drop.has-error { border-color: #F26A5E; }
.chips.has-error legend, .field.has-error label { color: #FFB4AC; }

.wizard [hidden], .wizard:not(.is-ready) [data-js-only] { display: none !important; }
.pane-lede, .pane-note { font-size: 0.9rem; color: var(--muted); }
.pane-note { margin-top: -0.4rem; font-size: 0.8rem; }
.field-error { padding: 0.65rem 0.9rem; border-radius: var(--radius-sm); background: rgb(242 106 94 / 0.1); color: #FFB4AC; font-size: 0.85rem; }

/* Repeatable cards: qualifications and companies */
.rep-list { display: grid; gap: 0.9rem; }
.rep-card {
  padding: 1rem 1.15rem 1.25rem; border: 1px solid var(--edge); border-radius: var(--radius);
  background: rgb(255 255 255 / 0.025); transition: border-color 0.25s, background-color 0.25s;
}
.rep-card:focus-within { border-color: rgb(213 90 205 / 0.45); background: rgb(213 90 205 / 0.04); }
.rep-card.is-new { animation: card-in 0.4s var(--ease); }
@keyframes card-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.rep-head { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1rem; }
.rep-head h4 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 1rem/1.2 var(--display); letter-spacing: -0.01em; }
.rep-icon { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 0.6rem; color: var(--plum-bright); background: var(--plum-soft); }
.rep-meta { font: 500 0.72rem/1 var(--mono); color: var(--plum-bright); white-space: nowrap; }
.rep-remove {
  display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; padding: 0; border-radius: 50%;
  border: 1px solid var(--edge); background: none; color: var(--muted); cursor: pointer; transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.rep-remove:hover { color: #FFB4AC; border-color: rgb(242 106 94 / 0.5); background: rgb(242 106 94 / 0.08); }
.rep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; }
/* Month pickers and selects match the text inputs' height so rows line up. */
.wizard .field input:not([type="checkbox"]):not([type="file"]), .wizard .field select { height: 3.375rem; }
.wizard .field .tag-box input { height: auto; }
.rep-wide { grid-column: 1 / -1; }

.rep-adders { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.rep-adders > span { margin-right: 0.25rem; font: 500 0.7rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.rep-add {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.85rem; border-radius: 999px;
  border: 1px dashed var(--line-strong); background: none; color: var(--muted); font: 500 0.8rem/1.2 var(--body); cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.rep-add:hover { color: var(--text); border-color: var(--plum-bright); border-style: solid; background: var(--plum-soft); }
.rep-add-wide { justify-content: center; width: 100%; padding: 0.9rem; border-radius: var(--radius-sm); font-size: 0.875rem; }

/* An input and a select that read as one control: mark + scale, notice + unit */
.joined { display: grid; grid-template-columns: 1fr auto; }
.field .joined input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); min-width: 0; }
.field .joined select { width: auto; border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background-color: rgb(255 255 255 / 0.07); }
.field .joined input[hidden] + select { border-left: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.joined:has(input[hidden]) { grid-template-columns: 1fr; }

/* "I work here now" */
.field .check { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.15rem; font-size: 0.8rem; font-weight: 500; color: var(--muted); cursor: pointer; }
.field .check input { width: 1rem; height: 1rem; padding: 0; accent-color: var(--plum-bright); }
.now-pill { display: none; }
.rep-card.is-now [data-co-to] { display: none; }
.rep-card.is-now .now-pill {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem 0.95rem; border: 1px solid rgb(61 220 132 / 0.35);
  border-radius: var(--radius-sm); background: rgb(61 220 132 / 0.06); font-size: 0.95rem;
}
.now-pill::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 3px rgb(61 220 132 / 0.2); }

/* Languages and tools as tags */
.tag-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; padding: 0.45rem 0.5rem; cursor: text;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: rgb(255 255 255 / 0.04); transition: border-color 0.2s, box-shadow 0.2s;
}
.tag-box:focus-within { border-color: var(--plum-bright); box-shadow: 0 0 0 3px rgb(213 90 205 / 0.2); }
.tag-list { display: contents; }
.tag-list li {
  display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.3rem 0.3rem 0.3rem 0.7rem; border-radius: 999px;
  border: 1px solid rgb(213 90 205 / 0.35); background: var(--plum-soft); font-size: 0.8rem; font-weight: 500;
}
.tag-list button { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1rem; line-height: 1; cursor: pointer; }
.tag-list button:hover { color: var(--text); background: rgb(255 255 255 / 0.1); }
.field .tag-box input, .field .tag-box input:focus { flex: 1; min-width: 9rem; width: auto; padding: 0.35rem 0.4rem; border: 0; background: none; box-shadow: none; }

/* Experience screen */
.exp-body, .rep-section { display: grid; gap: 1.1rem; }
.exp-body { gap: 1.75rem; animation: pane-in 0.4s var(--ease); }
.rep-intro h3, .now-block h3, .apply-links h3 { font-size: 1.05rem; letter-spacing: -0.01em; }
.rep-intro p { margin-top: 0.3rem; font-size: 0.875rem; color: var(--muted); }
.exp-total { display: grid; gap: 0.6rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.exp-total legend { padding: 0; margin-bottom: 0.6rem; font-size: 0.85rem; font-weight: 600; }
.exp-total small { font-size: 0.8rem; color: var(--muted); }
.exp-steppers { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.stepper { display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.3rem; border: 1px solid var(--line-strong); border-radius: 999px; background: rgb(255 255 255 / 0.03); }
.stepper button {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / 0.06); color: var(--text); font-size: 1.15rem; cursor: pointer; transition: background-color 0.2s;
}
.stepper button:hover { background: var(--plum); }
.stepper input {
  width: 3rem; padding: 0; border: 0; background: none; color: var(--text); text-align: center;
  font: 700 1.35rem/1 var(--display); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; color: var(--plum-bright); }
.stepper span { padding: 0 0.75rem 0 0.35rem; font-size: 0.85rem; color: var(--muted); }
.now-block { display: grid; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* Profile links */
.apply-links { display: grid; gap: 0.9rem; padding-top: 0.5rem; }
.link-list { display: grid; gap: 0.6rem; }
.link-field { grid-template-columns: 13rem 1fr 2rem; align-items: center; gap: 0.75rem; }
.link-field label { display: flex; align-items: center; gap: 0.65rem; }
.link-icon { display: grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 0.6rem; background: rgb(255 255 255 / 0.05); color: var(--plum-bright); }
.link-field.is-new, .link-field[data-extra]:not([hidden]) { animation: card-in 0.35s var(--ease); }
.link-other { grid-template-columns: 2.1rem 10.25rem 1fr 2rem; }

/* Resume drop zone */
.drop {
  position: relative; display: grid; justify-items: center; gap: 0.5rem; padding: 2.5rem 1rem; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: rgb(255 255 255 / 0.02);
  transition: border-color 0.25s, background-color 0.25s, transform 0.25s var(--ease);
}
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; color: var(--plum-bright); background: rgb(213 90 205 / 0.12); transition: background-color 0.25s, color 0.25s; }
.drop-text { font-size: 0.95rem; color: var(--muted); }
.drop-text b { color: var(--text); }
.drop-hint { font-size: 0.8rem; color: var(--muted); }
.drop:hover, .drop.is-over { border-color: var(--plum-bright); background: rgb(213 90 205 / 0.06); }
.drop.is-over { transform: scale(1.01); }
.drop.is-set { border-style: solid; border-color: rgb(61 220 132 / 0.6); background: rgb(61 220 132 / 0.05); }
.drop.is-set .drop-icon { color: #062B15; background: #3DDC84; }
.drop.has-error .drop-hint { color: #FFB4AC; }
.drop:focus-within { outline: 2px solid var(--plum-bright); outline-offset: 3px; }

/* Review */
.review { display: grid; border: 1px solid var(--edge); border-radius: var(--radius-sm); overflow: hidden; }
.review > section { padding: 1rem 1.15rem 1.1rem; }
.review > section + section { border-top: 1px solid var(--edge); }
.review header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.6rem; }
.review h3 { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--plum-bright); }
.review dl { display: grid; gap: 0.45rem; margin: 0; }
.review dl > div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; }
.review dt { font-size: 0.82rem; color: var(--muted); }
.review dd { margin: 0; font-size: 0.92rem; white-space: pre-line; overflow-wrap: anywhere; }
.review button { border: 0; background: none; padding: 0; color: var(--plum-bright); font: 600 0.8rem/1.4 var(--body); cursor: pointer; }
.review button:hover { text-decoration: underline; }
.review-note { font-size: 0.8rem; color: var(--muted); }

/* Navigation */
.wizard-nav { display: flex; justify-content: flex-end; gap: 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.wizard-nav [data-back], .wizard-nav [data-next] { display: none; }
.wizard.is-ready [data-next] { display: inline-flex; }
.wizard.is-ready.is-last [data-next] { display: none; }
.wizard.is-ready:not(.is-first) [data-back] { display: inline-flex; margin-right: auto; }
.wizard.is-ready:not(.is-last) [data-send] { display: none; }

/* After you apply */
.apply-after { margin-top: clamp(2.5rem, 6vw, 4rem); }
.apply-after h2 { font-size: 1.1rem; margin-bottom: 1.25rem; }
.apply-after ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem 1.5rem; counter-reset: after; }
.apply-after li { position: relative; display: grid; gap: 0.25rem; padding-top: 1rem; border-top: 1px solid var(--edge); font-size: 0.82rem; color: var(--muted); counter-increment: after; }
.apply-after li::before { content: counter(after, decimal-leading-zero); font: 500 0.72rem/1 var(--mono); color: var(--plum-bright); }
.apply-after li b { color: var(--text); font-size: 0.92rem; }
.apply-after > p { margin-top: 1.75rem; font-size: 0.875rem; color: var(--muted); }
.apply-after a { color: var(--text); font-weight: 600; }

@media (max-width: 40rem) {
  .wizard-rail span { display: none; }
  .rep-grid { grid-template-columns: 1fr; }
  .rep-card { padding: 0.9rem 0.9rem 1.1rem; }
  .link-field { grid-template-columns: 1fr 2rem; gap: 0.4rem 0.6rem; }
  .link-field label { grid-column: 1 / -1; }
  .link-field:not([data-extra]) input { grid-column: 1 / -1; }
  .link-other { grid-template-columns: 1fr 2rem; }
  .link-other .link-icon { display: none; }
  .link-other input[name="link_other_url"] { grid-column: 1 / -1; grid-row: 2; }
  .wizard.is-ready .wizard-rail { margin-bottom: 0; }
  .review dl { gap: 0.7rem; }
  .review dl > div { grid-template-columns: 1fr; gap: 0.1rem; }
  .apply-after ol { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .wizard.is-ready .pane.is-current { animation: none; }
}
.wizard-nav [data-back] { background: transparent; }
.wizard-nav [data-back]:hover { background: var(--plum-soft); color: var(--text); border-color: var(--plum-bright); }

/* ---------- Application sent ---------- */

.thanks { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 var(--block); isolation: isolate; overflow: hidden; }
.thanks::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(38% 30% at 50% 8%, rgb(145 41 140 / 0.38), transparent 100%), radial-gradient(30% 25% at 50% 10%, rgb(61 220 132 / 0.08), transparent 100%);
}
.thanks-wrap { display: grid; justify-items: center; max-width: 60rem; text-align: center; }
.thanks-mark { position: relative; margin-bottom: 1.75rem; }
.thanks-mark::before, .thanks-mark::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgb(61 220 132 / 0.5);
  animation: thanks-ripple 2.6s 1.1s var(--ease) infinite; opacity: 0;
}
.thanks-mark::after { animation-delay: 2.4s; }
.thanks-mark svg { display: block; fill: none; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 24px rgb(61 220 132 / 0.35)); }
.thanks-ring { stroke: #3DDC84; stroke-width: 3; fill: rgb(61 220 132 / 0.08); stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: center; animation: thanks-draw 0.8s 0.15s var(--ease) forwards; }
.thanks-tick { stroke: #3DDC84; stroke-width: 6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: thanks-draw 0.45s 0.8s var(--ease) forwards; }
@keyframes thanks-draw { to { stroke-dashoffset: 0; } }
@keyframes thanks-ripple { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }

.thanks h1 { margin-top: 0.9rem; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.035em; }
.thanks h1 span { color: var(--muted); }
.thanks .lede { max-width: 36rem; margin-top: 1.25rem; }
.thanks .lede b { color: var(--text); }

.thanks-next { width: 100%; margin-top: clamp(3rem, 7vw, 5rem); text-align: left; }
.thanks-next h2 { margin-bottom: 1.1rem; font-size: 1.1rem; }
.thanks-next ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.thanks-card {
  position: relative; display: grid; align-content: start; gap: 0.5rem; height: 100%; padding: 1.35rem 1.35rem 1.5rem;
  border: 1px solid var(--edge); border-radius: var(--radius); background: rgb(255 255 255 / 0.03);
  transition: border-color 0.25s, background-color 0.25s, transform 0.3s var(--ease);
}
.thanks-card .rep-icon { margin-bottom: 0.5rem; }
.thanks-card b { font: 700 1.05rem/1.25 var(--display); }
.thanks-card > span:not(.rep-icon) { font-size: 0.85rem; color: var(--muted); }
.thanks-card i { position: absolute; top: 1.3rem; right: 1.35rem; font-style: normal; color: var(--muted); transition: transform 0.3s var(--ease), color 0.25s; }
.thanks-card:hover { border-color: rgb(213 90 205 / 0.5); background: rgb(213 90 205 / 0.06); transform: translateY(-3px); }
.thanks-card:hover i { color: var(--plum-bright); transform: translateX(3px); }
.thanks-help { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.25rem 0.5rem; margin-top: 2.5rem; font-size: 0.875rem; color: var(--muted); }
.thanks-help a { color: var(--text); font-weight: 600; }

@media (max-width: 48rem) {
  .thanks-next ul { grid-template-columns: 1fr; gap: 0.6rem; }
  /* Phones: icon on the left, text beside it, arrow centred on the right. */
  .thanks-card { grid-template-columns: auto 1fr; column-gap: 0.9rem; row-gap: 0.2rem; padding: 1rem 2.6rem 1rem 1rem; }
  .thanks-card .rep-icon { grid-row: span 2; align-self: center; margin: 0; }
  .thanks-card b { font-size: 0.98rem; }
  .thanks-card > span:not(.rep-icon) { font-size: 0.8rem; line-height: 1.45; }
  .thanks-card i { top: 50%; right: 1rem; translate: 0 -50%; }
  .thanks h1 { font-size: clamp(2rem, 9vw, 2.4rem); }
  .thanks .lede { font-size: 0.95rem; }
  .thanks-help { flex-wrap: nowrap; align-items: flex-start; gap: 0.6rem; text-align: left; }
  .thanks-help .icon { flex: none; margin-top: 0.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .thanks-ring, .thanks-tick { animation: none; stroke-dashoffset: 0; }
  .thanks-mark::before, .thanks-mark::after { animation: none; }
}
