/* Swift Cardinal Creative, v2
   Direction: the product performs (seed from site-v2/.taste-skill/direction.json). Switzer; cool grey with
   cardinal red in place of the dealt cobalt. One radius (6px) for the whole page. */

:root {
  color-scheme: dark;
  --bg: #0e0f11;          /* near-black, not pure black */
  --surface: #17191d;
  --surface-2: #22252b;
  --ink: #eceef1;
  --muted: #9ba2ae;
  --accent: #c8213d;      /* cardinal red, a step brighter for a dark page; white on it is 5.6:1 */
  --accent-strong: #a81a32;
  --accent-ink: #ffffff;
  --marker: #4d1b26;
  --white: #ffffff;
  --dark: #0e0f11;

  --font: "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-small: 0.875rem;                                   /* 14 */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);   /* 17-19 */
  --step-lead: clamp(1.375rem, 1.1rem + 0.6vw, 1.625rem);    /* 22-26 */
  --step-head: clamp(2.25rem, 1.4rem + 2.6vw, 4rem);         /* 36-64 */
  --step-display: clamp(4.5rem, 1rem + 7vw, 7.5rem);         /* 72-120 */

  --margin: clamp(1rem, 2.2vw, 2rem);
  --radius: 6px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.45; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { border: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
:target { scroll-margin-top: 1.5rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { padding-inline: var(--margin); }
.num { font-variant-numeric: tabular-nums; text-align: right; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem; padding: 0 1rem; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 500; white-space: nowrap; transition: background-color 180ms ease, transform 140ms var(--ease-out); }
.button:active { transform: scale(0.97); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; text-decoration-thickness: 0.07em; transition: text-decoration-color 180ms ease, color 180ms ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .link:hover { text-decoration-color: currentColor; }
}

/* ---------- interface fragments (data-ui): the product's own look ---------- */
.app { background: var(--white); border: 1px solid #dde1e7; border-radius: var(--radius); font-size: 13px; line-height: 1.4; letter-spacing: 0; overflow: hidden; color: #15171b; } /* taste-skill-ignore: interface fragment (data-ui) */
.app__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #e8ebef; } /* taste-skill-ignore: interface fragment (data-ui) */
.app__name { font-weight: 600; font-size: 14px; }
.app__meta { color: #697180; }
.app__chip { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: #eef0f3; color: #3c424d; white-space: nowrap; }
.app__chip--ok { background: #e3f3ea; color: #17643d; }
.app__chip--warn { background: #fdf0d9; color: #7a5208; }
.app__table { width: 100%; border-collapse: collapse; }
.app__table th { text-align: left; font-weight: 500; color: #697180; padding: 8px 14px; border-bottom: 1px solid #e8ebef; } /* taste-skill-ignore: interface fragment (data-ui) */
.app__table td { padding: 9px 14px; border-bottom: 1px solid #f0f2f5; white-space: nowrap; } /* taste-skill-ignore: interface fragment (data-ui) */
.app__table tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #eef0f3; color: #3c424d; white-space: nowrap; }
.pill--ok { background: #e3f3ea; color: #17643d; }
.pill--warn { background: #fdf0d9; color: #7a5208; }
.pill--bad { background: #fbe4e7; color: #94112a; }
.ui-btn { display: inline-block; padding: 2px 10px; border-radius: 4px; background: #15171b; color: #fff; font-weight: 500; }
.pill--quiet { background: transparent; color: #697180; }
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px; background: #f6f7f9; }
.board__head { color: #697180; font-weight: 500; margin-bottom: 6px; display: flex; justify-content: space-between; }
.board__card { background: var(--white); border: 1px solid #e3e6eb; border-radius: 4px; padding: 8px; font-weight: 500; }
.board__card + .board__card { margin-top: 6px; } /* taste-skill-ignore: interface fragment (data-ui) */
.board__card span { font-weight: 400; color: #697180; }

/* ---------- hero: the sentence split by a frame ---------- */
.hero { position: relative; height: 300svh; }
.hero__stage { position: sticky; top: 0; height: 100svh; min-height: 36rem; overflow: clip; }
.nav { position: absolute; inset: 1.5rem var(--margin) auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: var(--step-small); z-index: 2; }
.nav__mark { font-weight: 600; text-decoration: none; letter-spacing: -0.02em; }
.nav__right { display: flex; align-items: center; gap: 1.75rem; }
.nav__right .link { color: var(--ink); }

.hero__title { position: absolute; left: var(--margin); right: var(--margin); top: 50%; transform: translateY(-50%); display: flex; justify-content: space-between; align-items: center; pointer-events: none; font-size: var(--step-head); font-weight: 600; line-height: 1; letter-spacing: -0.045em; z-index: 1; }
.hero__half { display: block; }

.reel { --w: min(36vw, 36rem); --h: calc(var(--w) * 9 / 16); --gap: 24px; --peek: 60px;
  position: absolute; left: 50%; top: 50%; width: var(--w); height: calc(var(--h) + 2 * (var(--gap) + var(--peek)));
  transform: translate(-50%, -50%); overflow: clip; }
.reel__track { position: absolute; left: 0; right: 0; top: calc(var(--peek) + var(--gap) - (var(--h) + var(--gap))); display: flex; flex-direction: column; gap: var(--gap);
  transform: translateY(calc(var(--i, 0) * -1 * (var(--h) + var(--gap)))); transition: transform 800ms var(--ease-in-out); }
.reel__track::before { content: ""; display: block; height: var(--h); border-radius: var(--radius); background: var(--surface); flex: none; }
.reel__track::after { content: ""; display: block; height: var(--h); border-radius: var(--radius); background: var(--surface); flex: none; }
.frame { height: var(--h); flex: none; border-radius: var(--radius); overflow: hidden; background: var(--surface); padding: 14px; transition: opacity 500ms ease; }
.frame .app { height: 100%; min-width: 30rem; }
.frame:not(.is-current) { opacity: 0.5; }

.hero__lead { position: absolute; left: var(--margin); bottom: 2rem; width: min(26rem, 30vw); font-size: var(--step-body); line-height: 1.45; }
.hero__count { position: absolute; right: var(--margin); bottom: 2rem; font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }

.reel-switch { display: none; }

/* ---------- what I build: small proof beside text ---------- */
.build { padding-block: clamp(6rem, 12vw, 10rem) 0; padding-left: max(var(--margin), 22vw); }
.build__title { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.045em; line-height: 1; margin-bottom: 4rem; }
.module { display: grid; grid-template-columns: minmax(0, 30rem) minmax(0, 24rem); gap: 2.5rem; align-items: start; }
.module + .module { margin-top: clamp(4.5rem, 7vw, 7rem); }
.module__panel { background: var(--surface); border-radius: var(--radius); padding: 20px; }
.module__text h3 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 0.75rem; }
.module__text p { line-height: 1.5; }
.module__text p + p { margin-top: 0.5rem; }
.module__text .offer { margin-top: 1rem; padding: 0.85rem 1rem; background: var(--surface); border-radius: var(--radius); font-size: var(--step-small); line-height: 1.5; }
.module__text .offer b { font-weight: 600; }
.mini { background: var(--white); border: 1px solid #dde1e7; border-radius: var(--radius); padding: 12px 14px; font-size: 13px; line-height: 1.4; letter-spacing: 0; color: #15171b; } /* taste-skill-ignore: interface fragment (data-ui) */
.mini__head { font-weight: 600; margin-bottom: 8px; }
.mini__row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid #f0f2f5; } /* taste-skill-ignore: interface fragment (data-ui) */
.mini__row > span:first-child { flex: 1; }
.mini--search .mini__url { color: #3c424d; }
.mini--search .mini__link { color: #1a3fb0; font-size: 14px; font-weight: 500; margin: 2px 0 4px; }
.mini--search .mini__desc { color: #4d5461; }
.mini__brands { display: flex; gap: 8px; margin-bottom: 8px; }
.brand { padding: 4px 10px; border-radius: 4px; color: #fff; font-weight: 500; }
.brand--a { background: #0f766e; }
.brand--b { background: #5b3fa0; }

/* ---------- work: small index, large picture ---------- */
.work { display: grid; grid-template-columns: 38fr 62fr; }
.work__stage { grid-column: 1; grid-row: 1; }
.work__left { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding: 2.5rem var(--margin) 2rem; }
.work__title { font-size: var(--step-display); font-weight: 600; line-height: 0.92; letter-spacing: -0.055em; max-width: 6ch; }
.work__index li a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; min-height: 2.75rem; padding: 0.35rem 0; text-decoration: none; color: var(--muted); transition: color 200ms ease; }
.work__index li a span:first-child { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.03em; }
.work__index li a span:last-child { font-size: var(--step-small); }
.work__index li.is-current a { color: var(--ink); }
.work__index li.is-current a span:first-child { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 0.18em; }
@media (hover: hover) and (pointer: fine) { .work__index li a:hover { color: var(--ink); } }
.work__projects { grid-column: 2; grid-row: 1; background: var(--surface); min-width: 0; }
.project, .project__screen, .project__text { min-width: 0; }
.project { min-height: 85svh; display: flex; flex-direction: column; justify-content: center; gap: 2.5rem; padding: 4rem clamp(1.5rem, 4vw, 4rem); }
.project__screen { overflow: clip; border-radius: var(--radius); }
.project__screen .app, .project__screen .site { max-width: 50rem; }
.project__text { max-width: 44rem; }
.project__text h3 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 1rem; }
.project__text p { max-width: 62ch; }
.project__text p + p { margin-top: 0.75rem; }
.project__stack { color: var(--muted); font-size: var(--step-small); }

.app--detail .detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; }
.detail__main { padding: 14px; border-right: 1px solid #e8ebef; } /* taste-skill-ignore: interface fragment (data-ui) */
.detail__side { padding: 14px; background: #f8f9fb; }
.detail__label { color: #697180; font-weight: 500; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.detail__label:not(:first-child) { margin-top: 14px; }
.detail__text { font-size: 13px; line-height: 1.5; padding: 10px 12px; border: 1px solid #e3e6eb; border-radius: 4px; } /* taste-skill-ignore: interface fragment (data-ui) */
.tag { font-weight: 400; padding: 1px 7px; border-radius: 999px; background: #eef0f3; color: #3c424d; }
.calc div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #eceef2; } /* taste-skill-ignore: interface fragment (data-ui) */
.calc dt { color: #4d5461; }
.calc dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 500; }
.calc__total { border-bottom: 0 !important; }
.calc__total dd { color: #17643d; font-size: 14px; font-weight: 600; }
.detail__assign { margin-top: 12px; color: #697180; }
.steps li { position: relative; padding: 7px 0 7px 26px; border-bottom: 1px solid #f0f2f5; font-size: 13px; } /* taste-skill-ignore: interface fragment (data-ui) */
.steps li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 14px; height: 14px; border-radius: 50%; background: #17643d; }
.steps--plain li { padding-left: 0; }
.steps--plain li::before, .steps--plain li::after { display: none; }
.steps li::after { content: ""; position: absolute; left: 6px; top: 14px; width: 6px; height: 3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

.site { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid #dde1e7; font-size: 13px; letter-spacing: 0; color: #15171b; } /* taste-skill-ignore: interface fragment (data-ui) */
.site__nav { display: flex; align-items: center; gap: 18px; padding: 12px 18px; border-bottom: 1px solid #eceef2; color: #3c424d; } /* taste-skill-ignore: interface fragment (data-ui) */
.site__logo { font-weight: 700; color: #15171b; margin-right: auto; font-size: 14px; }
.site__cta { background: #1d3557; color: #fff; padding: 6px 12px; border-radius: 4px; font-weight: 500; }
.site__hero { padding: 40px 28px; background: #1d3557; color: #fff; }
.site__h { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; max-width: 16ch; }
.site__p { margin-top: 10px; max-width: 40ch; color: #d5dceb; font-size: 14px; }
.site__btn { display: inline-block; margin-top: 18px; background: #f2b134; color: #15171b; padding: 9px 14px; border-radius: 4px; font-weight: 600; }
.site__row { display: flex; gap: 8px; padding: 14px 18px; }
.site__row span { flex: 1; padding: 10px; background: #f3f5f8; border-radius: 4px; text-align: center; font-weight: 500; }

.also { grid-column: 1 / -1; grid-row: 2; padding-block: 2.5rem 0; padding-left: max(var(--margin), 22vw); }
.also h3 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.035em; margin-bottom: 1.5rem; }
.also li { display: grid; grid-template-columns: minmax(0, 34rem) 12rem; gap: 2rem; padding: 0.55rem 0; }
.also li span:last-child { color: var(--muted); }
.also > p { margin-top: 0; color: var(--muted); font-size: var(--step-small); }

/* ---------- how a project runs: one card, four fields ---------- */
.how { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(6rem, 12vw, 10rem); }
.field { position: relative; min-height: 84svh; padding: 1.75rem; display: flex; flex-direction: column; }
.field--1 { background: var(--surface); }
.field--2 { background: var(--surface-2); }
.field--3 { background: var(--accent); color: var(--accent-ink); }
.field--4 { background: var(--ink); color: var(--dark); }  /* the page turns light when the work goes live */
.field__heading, .field__clause { font-size: var(--step-lead); line-height: 1.12; letter-spacing: -0.03em; }
.field__heading { font-weight: 600; position: absolute; top: 1.75rem; left: 1.75rem; right: 1.75rem; }
.field__clause { font-weight: 500; margin-top: auto; max-width: 15ch; }
.card { width: min(18rem, 100%); margin: 38svh auto 0; background: var(--white); color: #15171b; border-radius: var(--radius); padding: 14px; font-size: 13px; line-height: 1.4; letter-spacing: 0; transition: transform 150ms var(--ease-out); }
.card__top { display: flex; justify-content: space-between; color: #697180; font-weight: 500; }
.card__id { font-variant-numeric: tabular-nums; }
.card__title { font-size: 14px; font-weight: 600; margin-top: 6px; }
.card__meta { color: #697180; margin-top: 2px; }
.card__row { display: flex; justify-content: space-between; padding-top: 6px; margin-top: 6px; border-top: 1px solid #eef0f3; } /* taste-skill-ignore: interface fragment (data-ui) */
.card__row span:last-child { font-weight: 500; }
.card__bar { height: 6px; border-radius: 3px; background: #eef0f3; margin-top: 10px; overflow: hidden; }
.card__bar span { display: block; height: 100%; background: #17643d; }
.field .card + .field__clause { margin-top: auto; }
@media (hover: hover) and (pointer: fine) { .field:hover .card { transform: translateY(-6px); } }

/* ---------- about: the title on the left, the letter on the right ---------- */
.about { padding-top: clamp(6rem, 12vw, 10rem); }
.about__body { padding: 0 var(--margin); }
.letter { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 2rem; }
.letter > * { grid-column: 2; max-width: 38rem; }
.letter > .letter__title { grid-column: 1; grid-row: 1 / span 8; align-self: start; }
.letter__title { font-size: var(--step-head); line-height: 1; font-weight: 600; letter-spacing: -0.035em; }
.letter p { line-height: 1.6; }
.letter p + p { margin-top: 1.1em; }
.letter__sign { margin-top: 2rem !important; font-size: var(--step-lead) !important; font-weight: 500; letter-spacing: -0.02em; }
.letter__role { margin-top: 0.15rem !important; font-size: var(--step-small) !important; color: var(--muted); }

/* ---------- contact: one field ---------- */
.contact { margin-top: clamp(6rem, 11vw, 9rem); padding-block: clamp(6rem, 10vw, 8rem); background: var(--accent); color: #fff; }
.contact .link-plain { color: #fff; }
.contact :focus-visible { outline-color: #fff; }
.contact__col { width: min(52rem, 100%); margin-inline: auto; }
.contact__prompt { font-size: var(--step-head); font-weight: 600; line-height: 1.02; letter-spacing: -0.045em; }
.contact__prompt { max-width: 14ch; }
.contact__sub { margin-top: 1rem; font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.02em; color: #ffe3e8; max-width: 30ch; }
.ask { margin-top: 2.5rem; max-width: 40rem; }
.ask label { display: block; margin-bottom: 0.4rem; font-size: var(--step-small); color: #ffe3e8; }
.ask input + label { margin-top: 1.25rem; }
.ask__row { position: relative; margin-top: 1.25rem; }
.ask label + .ask__row { margin-top: 0; }
#ask-text { padding-right: 1.25rem; }
.ask__trap { position: absolute; left: -9999px; }
.ask input { width: 100%; height: 4rem; padding: 0 4.25rem 0 1.25rem; background: var(--white); border: 0; border-radius: var(--radius); font-size: var(--step-body); color: var(--dark); }
.ask input::placeholder { color: #5d6470; }
.ask input:focus-visible { outline: 0; box-shadow: inset 0 0 0 3px var(--dark); } /* taste-skill-ignore: focus ring inside a form field */
.ask button[type="submit"] { position: absolute; right: 0.5rem; top: 50%; width: 2.75rem; height: 2.75rem; margin-top: -1.375rem; border-radius: var(--radius); background: var(--dark); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color 180ms ease, transform 140ms var(--ease-out); }
.ask button[type="submit"]:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .ask button[type="submit"]:hover { background: #000; } }
.ask__note { margin-top: 1rem; font-size: var(--step-small); color: #ffe3e8; }

/* ---------- footer: one quiet line ---------- */
.foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 1.5rem; padding: 2rem var(--margin) 1.875rem; font-size: var(--step-small); color: var(--muted); }
.foot__links { display: flex; gap: 1.5rem; }
.foot__links a { color: var(--ink); }
.foot__year { text-align: right; }

/* ---------- motion (everything is visible without script and under reduced motion) ---------- */
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js [data-load] { opacity: 0; transform: translateY(14px); animation: rise 700ms var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
  .js .reel { animation: reel-in 1000ms var(--ease-expo) 120ms both; }
  @keyframes reel-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 30px)); } }

  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .module [data-reveal], .js .module.is-in .module__text { transition-delay: 90ms; }

  .js .shutter[data-reveal] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 900ms var(--ease-in-out); }
  .js .shutter[data-reveal].is-in { clip-path: inset(0); }

  .js .how .card { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); }
  .js .how.is-in .card { opacity: 1; transform: none; }
  .js .how.is-in .field--2 .card { transition-delay: 120ms; }
  .js .how.is-in .field--3 .card { transition-delay: 240ms; }
  .js .how.is-in .field--4 .card { transition-delay: 360ms; }
}
@media (prefers-reduced-motion: reduce) {
  .reel__track { transition: none; }
}


/* ---------- hero below desktop: the halves stack around the frame, buttons switch the tools ---------- */
@media (max-width: 64em) {
  .hero { height: auto; }
  .hero__stage { position: relative; height: auto; min-height: 0; padding: 6.5rem var(--margin) 3rem; overflow: visible; display: flex; flex-direction: column; gap: 1.25rem; }
  .nav { position: absolute; }
  .hero__title { position: static; transform: none; display: block; order: 1; font-size: clamp(2.75rem, 11vw, 5.5rem); }
  .hero__half--right { text-align: right; }
  .reel { --w: calc(100vw - 2 * var(--margin)); --h: min(calc(var(--w) * 3 / 4), 22rem); --peek: 0px; --gap: 0px; position: relative; left: auto; top: auto; transform: none; order: 2; }
  .hero__lead { position: static; width: auto; order: 4; }
  .hero__count { display: none; }
  .reel-switch { display: flex; flex-wrap: wrap; gap: 0.5rem; order: 3; margin-top: -0.5rem; }
  .reel-switch button { min-height: 2.75rem; padding: 0 0.9rem; border-radius: var(--radius); background: var(--surface); font-size: var(--step-small); cursor: pointer; }
  .reel-switch button[aria-pressed="true"] { background: var(--ink); color: var(--dark); }
  .frame .app { min-width: 26rem; }
  .js .reel { animation: none; }
  .hero__lead { max-width: 40rem; }
}

/* ---------- tablet ---------- */
@media (max-width: 64em) {
  .letter { grid-template-columns: 1fr; }
  .letter > .letter__title { grid-row: auto; margin-bottom: 1.75rem; }
  .letter > * { grid-column: 1; }
  .build, .also { padding-left: var(--margin); }
  .how { grid-template-columns: 1fr 1fr; }
  .field { min-height: 64svh; }
  .card { margin-top: 30svh; }
  .work { grid-template-columns: 1fr; }
  .work__stage { grid-row: 1; }
  .work__left { position: static; height: auto; gap: 2.5rem; padding-block: 5rem 2.5rem; }
  .work__index { max-width: 30rem; }
  .work__projects { grid-column: 1; grid-row: 2; }
  .also { grid-row: 3; }
  .project { min-height: 0; }
}

/* ---------- phone: its own composition ---------- */
@media (max-width: 47.99em) {
  .nav__right .link { display: none; }

  .build { padding-block: 5rem; }
  .build__title { margin-bottom: 2.5rem; }
  .module { grid-template-columns: 1fr; gap: 1rem; }
  .module + .module { margin-top: 4rem; }
  .module__panel { overflow: clip; }

  .project { padding: 3rem var(--margin); gap: 1.75rem; }
  .app--detail { min-width: 34rem; }
  .project__screen { overflow-x: clip; }
  .also li { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; padding: 0.6rem 0; }
  .work, .also { min-width: 0; max-width: 100vw; }

  .how { grid-template-columns: 1fr; }
  .field { min-height: 0; padding: 2.5rem 1.25rem 3rem; }
  .field .card + .field__clause { margin-top: 0; }
  .field__heading { position: static; margin-bottom: 0.4rem; order: -2; }
  .field__clause { margin-top: 0; order: -1; max-width: 18ch; }
  .card { margin: 2rem 0 0; }

    .foot { grid-template-columns: 1fr; gap: 0.5rem; padding-top: 2rem; }
  .foot__year { text-align: left; }
}

/* ---------- work pictures: what the users see (all data-ui fragments, sample data) ---------- */
.frame--pale { background: #e6e8ec; }
.frame--pale { display: grid; align-items: center; }
.frame .v-mail, .frame .v-dash { height: auto; }
.v-flow { display: flex; align-items: center; justify-content: center; gap: 12px; height: 100%; color: #15171b; font-size: 13px; line-height: 1.3; letter-spacing: 0; }
.v-arrow { width: 22px; height: 22px; flex: none; color: #7b828e; }
.v-form { width: 180px; flex: none; background: #fff; border-radius: 14px; padding: 12px; }
.v-form__brand { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.v-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.v-dot--a { background: #0f766e; }
.v-form__title { font-size: 15px; font-weight: 600; margin: 6px 0 8px; }
.v-field { display: flex; flex-direction: column; border: 1px solid #e1e4e9; border-radius: 6px; padding: 3px 8px; margin-bottom: 5px; } /* taste-skill-ignore: form field inside an interface fragment */
.v-field span { color: #697180; }
.v-submit { display: block; text-align: center; background: #0f766e; color: #fff; border-radius: 999px; padding: 7px; font-weight: 600; margin-top: 8px; }
.v-card { width: 210px; flex: none; aspect-ratio: 1.586; border-radius: 12px; background: #0f766e; color: #fff; padding: 14px 16px; display: grid; grid-template-rows: auto 1fr auto auto; }
.v-card__brand { font-weight: 600; }
.v-card__value { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; align-self: end; }
.v-card__label { opacity: 0.9; }
.v-card__code { font-variant-numeric: tabular-nums; letter-spacing: 0.08em; margin-top: 2px; }

.v-dash { background: #fff; border-radius: 8px; padding: 12px 14px; height: 100%; display: flex; flex-direction: column; gap: 8px; color: #15171b; font-size: 13px; line-height: 1.3; letter-spacing: 0; }
.v-dash__top { display: flex; justify-content: space-between; align-items: center; }
.v-tabs { display: flex; gap: 4px; }
.v-tabs span { padding: 2px 10px; border-radius: 999px; color: #697180; }
.v-tabs .is-on { background: #15171b; color: #fff; }
.v-kpis { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.v-kpis p { background: #f4f5f7; border-radius: 6px; padding: 6px 8px; }
.v-kpis span { display: block; color: #697180; }
.v-kpis b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.v-chart { width: 100%; height: auto; display: block; overflow: visible; }
.v-grid { stroke: #eceef2; stroke-width: 1; }
.v-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.v-line--a { stroke: #0f766e; }
.v-line--b { stroke: #5b3fa0; }
.v-axis { font-size: 13px; fill: #7b828e; font-family: var(--font); }
.v-legend { display: flex; align-items: center; gap: 6px; color: #4d5461; flex-wrap: wrap; }
.v-key { display: inline-block; width: 12px; height: 4px; border-radius: 2px; }
.v-legend .v-key:not(:first-child) { margin-left: 8px; }
.v-key--a { background: #0f766e; }
.v-key--b { background: #5b3fa0; }
.v-dash__body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.v-programs { display: grid; gap: 6px; }
.v-programs__head { color: #697180; font-weight: 600; }
.v-programs p { display: flex; align-items: center; gap: 8px; }
.v-programs em { font-style: normal; color: #7a5208; }
.v-status { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.v-status--live { background: #17643d; }
.v-status--setup { background: #d99a14; }
.v-prepare { justify-self: start; margin-top: 6px; background: #15171b; color: #fff; padding: 6px 12px; border-radius: 6px; font-weight: 600; }

.v-mail { background: #fff; border-radius: 8px; padding: 14px 16px; height: 100%; color: #15171b; font-size: 13px; line-height: 1.4; letter-spacing: 0; }
.v-mail__head { display: flex; gap: 10px; align-items: center; }
.v-avatar { width: 32px; height: 32px; border-radius: 50%; background: #1d2b4f; color: #fff; display: grid; place-items: center; font-weight: 600; flex: none; }
.v-mail__from { font-weight: 600; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.v-verified { display: inline-flex; align-items: center; gap: 4px; color: #17643d; background: #e3f3ea; border-radius: 999px; padding: 1px 8px 1px 6px; font-weight: 500; }
.v-verified svg { width: 12px; height: 12px; }
.v-mail__addr { color: #697180; }
.v-mail__subject { font-size: 15px; font-weight: 600; margin: 12px 0 4px; }
.v-mail__body { color: #3c424d; }
.v-auth { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.v-stage { background: #e6e8ec; border-radius: var(--radius); padding: 22px; color: #15171b; font-size: 13px; letter-spacing: 0; }
.v-stage__note { color: #4d5461; margin-top: 16px; max-width: 60ch; }
.v-flow--wide { justify-content: flex-start; flex-wrap: wrap; height: auto; }
.v-email { width: 230px; flex: none; background: #fff; border-radius: 10px; padding: 14px; line-height: 1.4; }
.v-email__from { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.v-email__subject { font-size: 15px; font-weight: 600; margin: 8px 0 4px; }
.v-email__body { color: #3c424d; }
.v-email__file { display: inline-block; margin-top: 10px; background: #f4f5f7; border-radius: 4px; padding: 4px 8px; font-weight: 500; }
.v-stage--mail { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; align-items: stretch; }
.v-spoof { background: #fff; border-radius: 8px; padding: 14px 16px; display: grid; gap: 4px; align-content: start; line-height: 1.4; }
.v-spoof__head { color: #697180; font-weight: 600; }
.v-spoof__from { font-weight: 600; }
.v-spoof__subject { color: #3c424d; }
.v-spoof__why { color: #94112a; }
.v-spoof .pill { justify-self: start; margin-top: 6px; }

.v-time .v-bar { display: flex; gap: 2px; height: 28px; border-radius: 6px; overflow: hidden; margin-top: 4px; }
.v-seg--a { background: #2f6fde; }
.v-seg--b { background: #12a594; }
.v-seg--gap { background: #eceef2; }
.v-seg--u { background: #f2b134; }
.v-hours { display: flex; justify-content: space-between; color: #697180; margin-top: 4px; }
.v-time .v-legend { margin-top: 8px; }
.v-key--ca { background: #2f6fde; }
.v-key--cb { background: #12a594; }
.v-key--u { background: #f2b134; }

.v-notes { display: grid; gap: 8px; font-size: 13px; line-height: 1.35; letter-spacing: 0; color: #15171b; }
.v-note { display: flex; gap: 10px; background: #f1f2f4; border-radius: 14px; padding: 10px 12px; }
.v-app { width: 34px; height: 34px; flex: none; border-radius: 8px; background: #c8213d; color: #fff; display: grid; place-items: center; font-weight: 600; }
.v-app--alt { background: #1d2b4f; }
.v-note__top { display: flex; justify-content: space-between; gap: 8px; }
.v-note__top span { color: #565d68; }

.v-net { padding: 10px; }
.v-net svg { width: 100%; height: auto; display: block; }
.v-zone { fill: #f4f5f7; stroke: #c9ced6; stroke-width: 1.5; stroke-dasharray: 5 4; }
.v-link { stroke: #9aa1ad; stroke-width: 2; }
.v-link--backup { stroke: #17643d; }
.v-x { stroke: #c8213d; stroke-width: 2.5; fill: none; stroke-linecap: round; }
.v-node { fill: #fff; stroke: #c9ced6; stroke-width: 1.5; }
.v-node--main { fill: #15171b; stroke: none; }
.v-node--ok { stroke: #17643d; }
.v-t { font-size: 13px; fill: #15171b; font-family: var(--font); }
.v-t--muted { fill: #697180; }
.v-t--on { fill: #fff; font-weight: 600; }

.v-brands { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13px; letter-spacing: 0; }
.v-mini-form { background: #fff; border-radius: 10px; padding: 12px; color: #15171b; }
.v-mini-form p { font-weight: 600; font-size: 14px; }
.v-mini-form span { display: block; text-align: center; margin-top: 10px; padding: 7px; font-weight: 600; color: #fff; }
.v-mini-form--a span { background: #0f766e; border-radius: 999px; }
.v-mini-form--b p { font-weight: 500; }
.v-mini-form--b span { background: #5b3fa0; border-radius: 2px; }
.v-brands__note { grid-column: 1 / -1; color: #c3c8d1; }

.v-site { background: #fff; border-radius: 8px; overflow: hidden; color: #15171b; font-size: 13px; letter-spacing: 0; }
.v-site__nav { display: flex; align-items: center; gap: 14px; padding: 10px 14px; }
.v-site__nav b { font-weight: 700; margin-right: auto; }
.v-site__login { background: #1d2b4f; color: #fff; padding: 3px 10px; border-radius: 4px; }
.v-site__hero { background: #1d2b4f; color: #fff; padding: 18px 16px; }
.v-site__h { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; max-width: 18ch; }
.v-site__p { margin-top: 6px; color: #d5dceb; max-width: 40ch; }
.v-site__btn { display: inline-block; margin-top: 10px; background: #f2b134; color: #15171b; padding: 6px 12px; border-radius: 4px; font-weight: 600; }

@media (max-width: 47.99em) {
  .v-flow { gap: 8px; }
  .v-flow .v-arrow { display: none; }
  .v-form { width: 150px; padding: 10px; }
  .v-card { width: 150px; padding: 10px 12px; }
  .v-card__value { font-size: 24px; }
  .v-flow--wide { justify-content: center; }
  .v-email { width: 100%; }
  .v-dash__body, .v-stage--mail { grid-template-columns: 1fr; }
  .v-kpis { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .v-stage { padding: 14px; }
}

/* ---------- hero word swap: "your firm / agency / office / shop" ---------- */
.swap { display: inline-block; position: relative; vertical-align: top; overflow: clip; padding-bottom: 0.14em; margin-bottom: -0.14em; transition: width 600ms var(--ease-in-out); }
.swap__word { display: block; width: max-content; white-space: nowrap; }
.js .swap__word { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(0.5em); transition: opacity 350ms ease, transform 600ms var(--ease-out); }
.js .swap__word.is-on { position: relative; opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .swap, .js .swap__word { transition: none; } }
.hero { height: 300svh; }
@media (max-width: 64em) { .hero { height: auto; } }

/* ---------- hero frames: one invented tool per kind of business (data-ui, sample data) ---------- */
.v-panel { background: #fff; border-radius: 8px; padding: 12px 14px; color: #15171b; font-size: 13px; line-height: 1.35; letter-spacing: 0; display: grid; gap: 8px; align-content: start; }
.v-panel--card { width: 290px; flex: none; }
.v-panel--center { justify-self: center; width: min(100%, 380px); }
.v-panel__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.v-panel__title { color: #697180; font-weight: 600; }
.v-panel__note { color: #697180; }
.v-who { display: inline-flex; align-items: center; gap: 6px; color: #4d5461; }
.v-avatar--s { width: 22px; height: 22px; font-size: 13px; }
.v-doc { display: flex; align-items: center; gap: 10px; background: #f4f5f7; border-radius: 6px; padding: 7px 10px; }
.v-doc > p { flex: 1; min-width: 0; display: grid; }
.v-doc > p span { color: #697180; }
.v-doc__icon { width: 34px; height: 30px; flex: none; border-radius: 4px; background: #fbe4e7; color: #94112a; display: grid; place-items: center; font-weight: 600; }
.v-meter p { display: flex; justify-content: space-between; gap: 8px; }
.v-meter p span:last-child { color: #697180; font-variant-numeric: tabular-nums; }
.v-meter__bar { display: block; height: 8px; border-radius: 4px; background: #eceef2; margin-top: 4px; overflow: hidden; }
.v-meter__bar i { display: block; height: 100%; width: var(--v); background: #2f6fde; border-radius: 4px; }
.v-meter--over .v-meter__bar i { background: #d99a14; }
.v-meter--over p span:last-child { color: #7a5208; font-weight: 600; }
.v-check { display: flex; align-items: center; gap: 8px; }
.v-check svg { width: 16px; height: 16px; flex: none; color: #17643d; }
.v-check--wait svg { color: #b07a0c; }
.v-check .pill { margin-left: auto; }
.v-alert { display: flex; align-items: center; gap: 10px; background: #fdf0d9; border-radius: 6px; padding: 8px 10px; color: #4a3104; }
.v-alert .ui-btn { margin-left: auto; flex: none; }

/* ---------- pick your problem ---------- */
.fix { padding-block: clamp(6rem, 12vw, 10rem); }
.fix__title { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.fix__sub { margin-top: 1rem; color: var(--muted); max-width: 40rem; }
.fix__picks { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; max-width: 64rem; }
.fix__picks button { min-height: 3rem; padding: 0 1.15rem; border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 500; cursor: pointer; transition: background-color 200ms ease, color 200ms ease, transform 140ms var(--ease-out); }
.fix__picks button:active { transform: scale(0.97); }
.fix__picks button[aria-selected="true"] { background: var(--ink); color: var(--dark); }
@media (hover: hover) and (pointer: fine) { .fix__picks button:hover:not([aria-selected="true"]) { background: var(--surface-2); } }
.fix__panel { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; margin-top: 2rem; }
.fix__panel[hidden] { display: none; }
.fix__pic { background: #e6e8ec; border-radius: var(--radius); padding: 24px; min-height: 21rem; display: grid; align-items: center; color: #15171b; font-size: 13px; line-height: 1.35; letter-spacing: 0; }
.fix__text h3 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.fix__text p { margin-top: 0.75rem; line-height: 1.5; max-width: 34rem; }
.fix__go { margin-top: 1.5rem; }
@media (prefers-reduced-motion: no-preference) {
  .js .fix__panel:not([hidden]) { animation: fix-in 500ms var(--ease-out) both; }
  @keyframes fix-in { from { opacity: 0; transform: translateY(12px); } }
}
.fix .v-flow { height: auto; }
.fix .v-flow .v-panel--card { flex: 1 1 auto; width: auto; min-width: 0; max-width: 300px; }
.v-files { display: grid; gap: 6px; width: 190px; flex: none; }
.v-file { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 6px; padding: 6px 10px; color: #4d5461; }
.v-file b { width: 34px; height: 22px; flex: none; border-radius: 4px; background: #d6eedd; color: #17643d; display: grid; place-items: center; font-weight: 600; }
.v-file .v-file--b { background: #fdf0d9; color: #7a5208; }
.v-file .v-file--c { background: #e3ebfb; color: #1f4fb0; }
.v-file .v-file--d { background: #ece6f8; color: #5b3fa0; }
.v-rank { display: flex; align-items: center; gap: 10px; }
.v-rank > p { display: grid; min-width: 0; }
.v-rank > p span { color: #697180; }
.v-score { width: 34px; height: 34px; flex: none; border-radius: 50%; background: #15171b; color: #fff; display: grid; place-items: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.v-stack { display: grid; gap: 10px; width: min(100%, 460px); justify-self: center; }
.v-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.v-chips .pill { background: #f1f2f4; }
.v-stack > .v-chips .pill { background: #fff; }
.v-stack > .v-chips .pill--ok { background: #e3f3ea; }
.v-chain { display: flex; align-items: center; gap: 6px; }
.v-step { background: #fff; border-radius: 8px; padding: 10px; white-space: nowrap; flex: 1 0 auto; display: grid; gap: 4px; }
.v-step > span { color: #697180; }
.v-step .v-check { color: #17643d; gap: 4px; }
.v-step .v-check svg { width: 14px; height: 14px; }
.v-serp { background: #fff; border-radius: 8px; padding: 14px 16px; display: grid; gap: 2px; }
.v-serp__url { color: #4d5461; }
.v-serp__t { color: #1f4fb0; font-size: 15px; font-weight: 500; }
.v-serp__d { color: #4d5461; }
.v-stack .v-notes .v-note { background: #fff; }
@media (max-width: 64em) {
  .fix__panel { grid-template-columns: 1fr; }
}
@media (max-width: 47.99em) {
  .fix__pic { padding: 14px; min-height: 0; }
  .fix__picks button { min-height: 2.75rem; padding: 0 0.95rem; font-size: var(--step-small); }
  .fix .v-flow { flex-wrap: wrap; }
  .fix .v-flow .v-panel--card { max-width: none; }
  .fix .v-flow .v-arrow, .v-chain .v-arrow { display: none; }
  .v-files, .v-panel--card { width: 100%; }
  .v-chain { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
}

.ask button[type="submit"]:disabled { opacity: 0.6; cursor: progress; }
.ask__done { display: none; margin-top: 1rem; font-weight: 500; }
.ask__done:target { display: block; }
.ask[hidden], .ask__note[hidden] { display: none; }
/* the order-to-customer chain: full width, and a 2 x 2 grid whenever its panel is too narrow for one row */
.fix__pic { container-type: inline-size; }
.v-stack:has(> .v-chain) { width: 100%; }
@container (max-width: 620px) {
  .v-chain { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .v-chain .v-arrow { display: none; }
}
.ask__paused { margin-top: 2.5rem; max-width: 40rem; font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.02em; }
