/* ==========================================================================
   Skipjack Digital — inner pages (Projects, Services, Insights, Contact, Sales)
   Loaded after main.css, which holds the tokens, header, footer, cards, CTA band and OS shell.
   WP: part of the theme stylesheet (or enqueued on non-front pages only).
   ========================================================================== */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Page hero: masked headline rise ---------- */
.page-hero { position: relative; padding: clamp(128px, 16vh, 170px) 0 clamp(40px, 6vw, 72px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.page-title { font-size: clamp(46px, 7vw, 104px); letter-spacing: -0.027em; line-height: .98; }
.page-hero .section__lede { font-size: 18px; max-width: 540px; margin: 26px 0 34px; }
.page-hero__actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px; }
@media (max-width: 860px) { .page-hero__grid { grid-template-columns: 1fr; } }

/* ---------- Filter chips (Projects, Insights) ---------- */
/* Small controls share one height: filter chips, the pager and the article share buttons are all 38px */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter button {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; cursor: pointer;
  font: 500 12px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); background: rgba(10, 20, 48, .35); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px;
  transition: color .2s, border-color .2s, background-color .2s;
}
.filter button:hover { color: var(--text); border-color: var(--line-strong); }
.filter button[aria-pressed="true"] { color: #fff; border-color: var(--blue-soft); background: rgba(46, 55, 254, .22); }
.filter button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.filter sup { font-size: 10px; color: var(--dim); top: 0; }
.filter button[aria-pressed="true"] sup { color: var(--blue-soft); }

/* ---------- Projects: case-study index (rows expand; hover shows a preview card) ---------- */
.index { border-top: 1px solid var(--line); }
.index__row { border-bottom: 1px solid var(--line); position: relative; }
.index__row[hidden] { display: none; }
.index__row summary {
  list-style: none; cursor: pointer; display: grid; align-items: center; gap: 20px;
  grid-template-columns: 52px minmax(0, 1.2fr) 150px minmax(0, 1.6fr) 28px; padding: 24px 8px 24px 0;
  transition: background-color .3s var(--ease), padding .3s var(--ease);
}
.index__row summary::-webkit-details-marker { display: none; }
.index__row summary::before { /* accent bar slides in on hover */
  content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 0; background: var(--accent, var(--blue-soft)); box-shadow: 0 0 10px var(--accent, var(--blue-soft)); transition: height .35s var(--ease);
}
.index__row:hover summary, .index__row[open] summary { background: rgba(79, 91, 255, .05); padding-left: 14px; }
.index__row[open] { background: rgba(79, 91, 255, .05); } /* summary + body read as one panel */
.index__row[open] summary { background: none; }
.index__row:hover summary::before, .index__row[open] summary::before { height: 100%; }
.index__row summary:focus-visible { outline: 2px solid var(--yellow); outline-offset: -2px; }
.index__num { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--accent, var(--blue-soft)); }
.index__client { font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.index__cat { font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.index__sum { color: var(--muted); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; transition: opacity .3s var(--ease); }
.index__row[open] .index__sum { opacity: 0; } /* the opened body repeats it in full */
.index__toggle { justify-self: end; width: 22px; height: 22px; position: relative; }
.index__toggle::before, .index__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: var(--text); transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.index__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.index__row[open] .index__toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
/* body columns line up with the summary (52px number column + 20px gap, after the 14px inset) */
.index__body { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(220px, 280px); grid-template-rows: auto 1fr; gap: 20px 20px; padding: 6px 36px 40px 14px; }
.index__body p { grid-column: 2; color: var(--muted); max-width: 640px; line-height: 1.7; }
.index__body .tags { grid-column: 2; align-self: start; align-items: flex-start; margin-top: 2px; } /* chips keep their own height */
.index__body .media { grid-column: 3; grid-row: 1 / span 2; align-self: start; border-radius: 12px; aspect-ratio: 4 / 3; }
.index__body .media img[src*="Card-Projects"] { transform-origin: 78% 52%; transform: scale(1.7); } /* hide labels baked into the old card images; the new project photos need no crop */
.index__empty { padding: 28px 0; color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
@media (max-width: 860px) {
  .index__row summary { grid-template-columns: 40px minmax(0, 1fr) 24px; gap: 4px 14px; padding: 20px 0; }
  .index__cat { grid-column: 2; grid-row: 2; }
  .index__sum { display: none; }
  .index__toggle { grid-column: 3; grid-row: 1 / span 2; }
  .index__body { grid-template-columns: 1fr; grid-template-rows: none; gap: 16px; padding: 0 16px 28px; }
  .index__body p, .index__body .tags, .index__body .media { grid-column: 1; grid-row: auto; }
}

/* Floating preview (desktop, fine pointer): follows the cursor over the index */
.preview {
  position: fixed; left: 0; top: 0; z-index: 30; width: 280px; aspect-ratio: 4 / 3; pointer-events: none;
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  opacity: 0; transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(.92); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.preview.is-on { opacity: 1; transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1); }
.preview .media { position: absolute; inset: 0; }
.preview .media img[src*="Card-Projects"] { transform-origin: 78% 52%; transform: scale(1.7); }
.preview__mono { /* no image: a duotone tile with the client initials over a dot field */
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--accent, var(--blue)) 55%, transparent), transparent 60%), linear-gradient(135deg, #0b1440, #050a1c);
  font-size: 64px; font-weight: 700; letter-spacing: -0.03em; color: rgba(255, 255, 255, .9);
}
.preview__mono::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(200, 210, 255, .22) 1px, transparent 1.3px); background-size: 10px 10px; }
.preview__label { position: absolute; left: 12px; bottom: 10px; z-index: 2; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
@media (hover: none), (pointer: coarse), (max-width: 860px) { .preview { display: none; } }
.motion-off .preview { transition: none; }

/* ---------- Services: sticky index + service modules ---------- */
.svc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.svc-nav { position: sticky; top: 110px; display: grid; gap: 4px; }
.svc-nav a {
  display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: baseline; padding: 10px 12px; border-radius: 10px;
  color: var(--muted); font-size: 15px; border: 1px solid transparent; transition: color .2s, border-color .2s, background-color .2s;
}
.svc-nav a b { font: 400 12px var(--mono); letter-spacing: .08em; color: var(--accent); }
.svc-nav a:hover { color: var(--text); }
.svc-nav a[aria-current="true"] { color: var(--text); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.svc-nav a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* Goal selector: radio pills; a goal brightens its modules and dims the rest (no layout change) */
.goal { margin-bottom: clamp(28px, 4vw, 44px); padding: 0 var(--gutter); border: 0; min-inline-size: 0; }
.goal__legend { float: left; width: 100%; margin-bottom: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.goal__options { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.goal__pill { position: relative; cursor: pointer; }
.goal__pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.goal__pill span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 14px; color: var(--muted); transition: color .15s, border-color .15s, background-color .15s;
}
.goal__pill:hover span { color: var(--text); }
.goal__pill input:checked + span { color: var(--text); border-color: var(--blue-soft); background: rgba(110, 125, 255, .14); }
.goal__pill input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }
.goal__status { margin-top: 10px; min-height: 1.4em; font-size: 13px; color: var(--muted); }
.svc { transition: opacity .2s, transform .8s var(--ease); } /* keeps the reveal slide */
.svc-nav a { transition: color .2s, border-color .2s, background-color .2s, opacity .2s; }
.svc.is-dim, .svc-nav a.is-dim { opacity: .55; }
.svc.is-match .svc__head { border-bottom-color: var(--accent); }
.svc.is-match .svc__num { text-shadow: 0 0 56px color-mix(in srgb, var(--accent) 70%, transparent); }
.svc-nav a.is-match { color: var(--text); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
@media (prefers-reduced-motion: reduce) { .svc, .svc-nav a { transition: none; } }
.svc + .svc { margin-top: clamp(56px, 8vw, 110px); }
.svc { scroll-margin-top: 110px; }
.svc__head { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: baseline; padding-bottom: 26px; border-bottom: 1px solid var(--line); position: relative; }
.svc__head::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent); box-shadow: 0 0 10px var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.svc.is-visible .svc__head::after { transform: scaleX(.35); }
.svc__num { font-size: clamp(56px, 7vw, 96px); font-weight: 600; letter-spacing: -0.03em; line-height: .9; color: var(--accent); text-shadow: 0 0 40px color-mix(in srgb, var(--accent) 40%, transparent); font-variant-numeric: tabular-nums; }
.svc__title { font-size: clamp(30px, 3.6vw, 48px); }
.svc__body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-top: 30px; }
.svc__body > div > p { color: var(--muted); font-size: 17px; }
.svc__body > div > p + p { margin-top: 14px; }
.svc__body .btn { margin-top: 28px; }
.svc__label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.includes { display: grid; gap: 8px; counter-reset: inc; }
.includes li {
  counter-increment: inc; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px;
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 20, 48, .3); font-size: 15px;
  transition: border-color .25s, background-color .25s, transform .25s var(--ease);
}
.includes li::before { content: counter(inc, decimal-leading-zero); font-family: var(--mono); font-size: 11px; letter-spacing: .07em; color: var(--accent); }
.includes li:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); transform: translateX(3px); }
.svc__note { margin-top: 18px; padding: 16px 18px; border-left: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); border-radius: 0 10px 10px 0; color: var(--text); font-size: 15px; }
.workflow { margin-top: 22px; border: 1px solid var(--line); border-radius: 12px; }
.workflow summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.workflow summary::-webkit-details-marker { display: none; }
.workflow summary::after { content: "+"; font-size: 16px; color: var(--accent); transition: transform .3s var(--ease); }
.workflow[open] summary::after { transform: rotate(45deg); }
.workflow summary:hover { color: var(--text); }
.workflow summary:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; border-radius: 12px; }
/* Workflow steps: the old site's workflow image as text, in the same dark cards and accent numbers as the rest */
.workflow__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 12px 12px; counter-reset: step; }
.workflow__steps li {
  counter-increment: step; display: flex; flex-direction: column; gap: 10px; padding: 16px;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(10, 20, 48, .3);
  font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--text);
}
.workflow__steps li::before {
  content: counter(step, decimal-leading-zero); font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1;
  color: var(--accent); text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 40%, transparent); font-variant-numeric: tabular-nums;
}
@media (max-width: 960px) {
  .svc-layout { grid-template-columns: 1fr; }
  /* all four modules stay visible: a 2 x 2 grid instead of a strip that hides 03-04 past the edge */
  .svc-nav { position: sticky; top: 74px; z-index: 5; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 8px var(--gutter); margin: 0 calc(var(--gutter) * -1); border-radius: 0; background: rgba(3, 6, 15, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .svc-nav a { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 7px 10px; font-size: 13px; line-height: 1.25; }
  .svc { scroll-margin-top: 210px; }
  .svc__body { grid-template-columns: 1fr; }
}

/* ---------- Insights: search, featured post, grid, pager, newsletter ---------- */
.post-tools { display: grid; gap: 14px; margin-bottom: 28px; }
.post-tools .filter { margin-bottom: 0; }
.search { position: relative; display: flex; align-items: center; max-width: 560px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(3, 6, 15, .55); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--blue-soft); box-shadow: 0 0 0 3px rgba(79, 91, 255, .2); }
.search__icon { flex: none; width: 14px; height: 14px; margin-left: 16px; border: 1.5px solid var(--muted); border-radius: 50%; position: relative; }
.search__icon::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: var(--muted); right: -5px; bottom: -3px; transform: rotate(45deg); }
.search input { flex: 1; min-width: 0; padding: 14px 12px; font: 400 16px var(--font); color: var(--text); background: none; border: 0; outline: 0; }
.search input::placeholder { color: var(--dim); }
.search input::-webkit-search-cancel-button { filter: invert(.7); cursor: pointer; }
.search__status { flex: none; padding-right: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.search__status:empty { display: none; }
.posts__empty { grid-column: 1 / -1; padding: 48px 0; color: var(--muted); }
.posts__empty b { color: var(--text); font-weight: 600; }
/* Start here: three picks for first-time readers, above the grid */
.start-here { margin-bottom: 28px; }
.start-here__title { margin-bottom: 12px; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-soft); }
.start-here__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; }
.start-here__item {
  display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(10, 18, 46, .5); transition: border-color .15s, background-color .15s;
}
.start-here__item:hover, .start-here__item:focus-visible { border-color: var(--blue-soft); background: rgba(46, 55, 254, .12); }
.start-here__item:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.start-here__meta { font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.start-here__name { font-size: 16px; line-height: 1.35; color: var(--text); }
@media (max-width: 900px) { .start-here__list { grid-template-columns: 1fr; } }
.posts mark { background: none; color: var(--yellow); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.posts .media-card { min-height: 360px; }
.posts .media-card__shade { background: linear-gradient(180deg, rgba(3, 6, 15, .05) 10%, rgba(3, 6, 15, .72) 42%, rgba(3, 6, 15, .96) 100%); } /* the text sits higher on short cards */
.posts .media-card--feature { grid-column: span 2; grid-row: span 2; min-height: 560px; }
.posts .media-card--feature h3 { font-size: clamp(26px, 2.8vw, 38px); letter-spacing: -0.025em; }
.posts .media-card--feature .media-card__excerpt { display: block; }
.media-card__excerpt { display: none; color: rgba(238, 241, 250, .78); font-size: 15px; max-width: 560px; }
.media-card__cat { color: var(--blue-soft); }
.posts.is-swapping { opacity: 0; transform: translateY(10px); }
.posts { transition: opacity .3s var(--ease), transform .3s var(--ease); }
@media (max-width: 1080px) { .posts { grid-template-columns: repeat(2, 1fr); } .posts .media-card--feature { grid-row: auto; min-height: 460px; } }
@media (max-width: 760px) { .posts { grid-template-columns: 1fr; } .posts .media-card--feature { grid-column: auto; min-height: 420px; } }
.motion-off .posts { transition: none; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; font-family: var(--mono); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); }
.pager__pages { display: flex; flex-wrap: wrap; gap: 6px; }
.pager button { min-width: 38px; height: 38px; padding: 0 12px; cursor: pointer; font: inherit; letter-spacing: inherit; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 10px; transition: color .2s, border-color .2s, background-color .2s; }
.pager button:hover:not(:disabled) { color: var(--text); border-color: var(--line-strong); }
.pager button[aria-current="page"] { color: #fff; border-color: var(--blue-soft); background: rgba(46, 55, 254, .22); }
.pager button:disabled { opacity: .35; cursor: default; }
.pager button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(28px, 4vw, 48px); }
.newsletter__form { display: flex; gap: 0; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; background: rgba(3, 6, 15, .5); }
.newsletter__form input { flex: 1; min-width: 0; padding: 15px 16px; font: 400 15px var(--font); color: var(--text); background: none; border: 0; outline: 0; }
.newsletter__form input::placeholder { color: var(--dim); }
.newsletter__form:focus-within { border-color: var(--blue-soft); box-shadow: 0 0 0 3px rgba(79, 91, 255, .2); }
.newsletter__form .btn--split { border: 0; padding: 0; cursor: pointer; background: none; }
.newsletter__msg { grid-column: 2; min-height: 1.4em; margin-top: -12px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.newsletter__msg.is-ok { color: var(--mint); }
.newsletter__msg.is-err { color: var(--pink); }
@media (max-width: 860px) { .newsletter { grid-template-columns: 1fr; } .newsletter__msg { grid-column: 1; } }

/* ---------- Contact: enquiry form + direct methods + offices ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.form { gap: 18px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__grid .field--full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form__grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field label i { font-style: normal; color: var(--dim); text-transform: none; letter-spacing: .03em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; font: 400 15px/1.4 var(--font); color: var(--text);
  background: rgba(3, 6, 15, .55); border: 1px solid var(--line); border-radius: 10px; outline: 0;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: #0a1430; color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-soft); box-shadow: 0 0 0 3px rgba(79, 91, 255, .2); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--pink); }
.field__err { min-height: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--pink); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__foot .btn--split { border: 0; padding: 0; cursor: pointer; background: none; }
.form__note { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--dim); }
.form__done { display: none; flex-direction: column; align-items: flex-start; gap: 14px; padding: 12px 0; }
.form__done h3 { font-size: clamp(26px, 3vw, 36px); }
.form__done p { color: var(--muted); }
.form.is-sent .form__grid, .form.is-sent .form__foot, .form.is-sent .form__intro { display: none; }
.form.is-sent .form__done { display: flex; }
.form__check { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #03060f; background: var(--mint); box-shadow: 0 0 30px color-mix(in srgb, var(--mint) 55%, transparent); font-size: 24px; font-weight: 700; }

.methods { display: grid; gap: 16px; }
.method { gap: 8px; }
.method__label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.method__value { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; letter-spacing: -0.02em; }
.method__value a { border-bottom: 1px solid var(--line-strong); transition: border-color .2s; }
.method__value a:hover { border-color: var(--yellow); }
.method .copy { margin-left: 0; }
/* WhatsApp message builder (pages/contact.js) */
.wa-builder { display: grid; gap: 16px; }
.wa-builder__title { font-size: 20px; }
.wa-builder__fields { display: grid; gap: 12px; }
.wa-builder__preview { padding: 12px 14px; border-left: 2px solid var(--mint); border-radius: 0 10px 10px 0; background: rgba(63, 232, 184, .06); font-size: 14px; color: var(--muted); }
.wa-builder .btn { justify-self: start; }

.offices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .offices { grid-template-columns: 1fr; } }
.office { min-height: 240px; justify-content: space-between; }
.office__city { font-size: clamp(40px, 5vw, 68px); letter-spacing: -0.027em; line-height: .95; }
.office__meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.office address { color: var(--muted); font-size: 15px; max-width: 360px; }
.office .link-mono { align-self: flex-start; }

/* ---------- Sales landing page (no main nav, own footer) ---------- */
.site-header--sales .site-header__actions .btn { white-space: nowrap; }
.sales-hero { text-align: left; }
.sales-hero .page-title span { color: var(--yellow); }
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
.benefit { min-height: 220px; justify-content: space-between; }
.benefit h3 { font-size: clamp(24px, 2.6vw, 34px); }
.addons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.addons li { display: flex; flex-direction: column; gap: 10px; padding: 18px; min-height: 140px; border: 1px solid var(--line); border-radius: 14px; background: rgba(10, 20, 48, .3); transition: border-color .25s, transform .25s var(--ease); }
.addons li:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); transform: translateY(-2px); }
.addons b { font: 400 11px var(--mono); letter-spacing: .08em; color: var(--accent); }
.addons span { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.addons small { color: var(--muted); font-size: 13px; margin-top: auto; }
@media (max-width: 1080px) { .addons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .benefits { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .addons { grid-template-columns: 1fr; } }

.price { --accent: var(--yellow); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); padding: clamp(28px, 4vw, 52px); }
.price > div { container-type: inline-size; }
.price__tag { font-size: clamp(40px, 18cqi, 112px); white-space: nowrap; font-weight: 600; letter-spacing: -0.03em; line-height: .9; color: var(--yellow); text-shadow: 0 0 40px rgba(255, 199, 44, .35); }
.price__tag small { display: block; margin-top: 14px; font: 400 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-shadow: none; }
.price__split { display: grid; gap: 8px; margin-top: 26px; }
.price__split li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px; color: var(--muted); }
.price__split li b { color: var(--text); font-weight: 600; white-space: nowrap; }
.checks { display: grid; gap: 8px; align-content: start; }
.checks li { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.checks li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #03060f; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303060f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d=%22m5 12.5 4.5 4.5L19 7.5%22/%3E%3C/svg%3E") center / 13px no-repeat, var(--mint); }
.checks li.is-no { color: var(--dim); }
.checks li.is-no::before { content: "×"; color: #fff; background: none; border: 1px solid var(--line-strong); font-size: 14px; }
.price .btn { margin-top: 26px; }
@media (max-width: 860px) { .price { grid-template-columns: 1fr; } }

/* <p> elements inside .card: beat main.css `.card p` (15px, muted) */
.card p.svc__label { font-size: 11px; color: var(--dim); }
.card p.eyebrow { font-size: 12px; color: var(--blue-soft); }
.card p.newsletter__msg { font-size: 12px; }
.card p.newsletter__msg.is-ok { color: var(--mint); }
.card p.newsletter__msg.is-err { color: var(--pink); }
.card p.price__tag { font-size: clamp(40px, 18cqi, 112px); color: var(--yellow); }

.solo-quote { max-width: 860px; margin: 0 auto; text-align: center; }
.solo-quote blockquote { margin: 0; font-size: clamp(30px, 4.4vw, 58px); font-weight: 600; letter-spacing: -0.021em; line-height: 1.08; }
.solo-quote blockquote::before { content: "“"; display: block; font-size: 1.6em; line-height: .6; color: var(--pink); }
.solo-quote figcaption { margin-top: 26px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.solo-quote figcaption b { color: var(--text); font-weight: 400; }
.solo-quote figcaption { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.solo-quote .quote__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line-strong), 0 0 0 4px rgba(252, 61, 146, .14); }

/* ---------- Loading states inside pages ---------- */
/* Insights: skeleton cards while the index loads, a scan sweep while the grid swaps */
.post-skel { position: relative; overflow: hidden; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: rgba(10, 20, 48, .35); }
.post-skel--feature { grid-column: span 2; grid-row: span 2; min-height: 560px; }
.post-skel i { display: block; height: 10px; width: 40%; border-radius: 3px; background: rgba(160, 175, 255, .1); }
.post-skel i:nth-child(2) { height: 18px; width: 85%; }
.post-skel i:nth-child(3) { height: 18px; width: 60%; }
.post-skel::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--blue-soft); box-shadow: 0 0 14px var(--blue-soft); animation: skel-scan 1.4s var(--ease) infinite; }
@keyframes skel-scan { from { transform: translateY(0); opacity: 1; } to { transform: translateY(560px); opacity: 0; } }
@media (max-width: 1080px) { .post-skel--feature { grid-row: auto; min-height: 460px; } }
@media (max-width: 760px) { .post-skel--feature { grid-column: auto; min-height: 360px; } }
.posts { position: relative; }
.posts::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--blue-soft); box-shadow: 0 0 14px var(--blue-soft); opacity: 0; pointer-events: none; }
.posts.is-swapping::after { animation: grid-scan .22s linear forwards; }
@keyframes grid-scan { from { opacity: 1; transform: translateY(0); } to { opacity: .2; transform: translateY(240px); } }

/* Contact: transmitting state on submit */
.form { position: relative; }
.form.is-sending { pointer-events: none; overflow: hidden; }
.form.is-sending .form__grid { opacity: .5; transition: opacity .2s; }
.form.is-sending [type="submit"] .btn__arrow { animation: pulse .5s steps(2) infinite; }
.form.is-sending::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--mint); box-shadow: 0 0 14px var(--mint); animation: form-scan .9s var(--ease) forwards; z-index: 4; }
@keyframes form-scan { from { transform: translateY(0); } to { transform: translateY(640px); opacity: 0; } }
.motion-off .post-skel::after, .motion-off .posts::after, .motion-off .form.is-sending::after { animation: none; display: none; }
.motion-off .form.is-sending [type="submit"] .btn__arrow { animation: none; }

/* ---------- Article (single post: scripts/build_articles.py → insights/<slug>/) ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.crumbs a { color: var(--muted); transition: color .2s; }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--text); }
.article-hero .eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.article-title { font-size: clamp(32px, 4.2vw, 60px); letter-spacing: -0.021em; line-height: 1.06; margin-top: 18px; }
.article-hero .article-lede { margin-bottom: 0; }
.article-byline { margin-top: 18px; font-size: 15px; color: var(--muted); }
/* Reading progress: 1px line across the top, under the floating header (pages/article.js) */
.read-progress { position: fixed; z-index: 59; top: 0; left: 0; right: 0; height: 1px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--blue-soft); box-shadow: 0 0 6px var(--blue-soft); transform: scaleX(0); transform-origin: left; transition: transform .1s linear; }
@media (prefers-reduced-motion: reduce) { .read-progress span { transition: none; } }
.article-byline span { color: var(--text); font-weight: 600; }
.article-hero__media { margin-top: clamp(36px, 5vw, 64px); }
.article-hero__media .media { aspect-ratio: 21 / 9; border: 1px solid var(--line); border-radius: 18px; }
.article-hero__media figcaption, .prose figcaption { margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; color: var(--dim); }
@media (max-width: 760px) { .article-hero__media .media { aspect-ratio: 16 / 10; } }

.article-body { padding-top: clamp(16px, 3vw, 40px); }
.article-layout { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: clamp(40px, 7vw, 110px); }
.article-aside { position: sticky; top: 112px; align-self: start; display: grid; gap: 32px; }
.toc summary { list-style: none; cursor: default; margin-bottom: 12px; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { display: grid; border-left: 1px solid var(--line); }
.toc a { display: block; margin-left: -1px; padding: 7px 0 7px 14px; border-left: 1px solid transparent; font-size: 14px; line-height: 1.4; color: var(--muted); transition: color .2s, border-color .2s; }
.toc a:hover, .toc a:focus-visible { color: var(--text); }
.toc a[aria-current="true"] { color: var(--text); border-left-color: var(--blue-soft); }
.share .svc__label { margin-bottom: 12px; }
.share__links { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn { display: inline-flex; align-items: center; height: 38px; font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; cursor: pointer; transition: color .2s, border-color .2s; }
.share__btn:hover, .share__btn:focus-visible { color: var(--text); border-color: var(--blue-soft); }
@media (max-width: 1080px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .article-aside { position: static; grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .toc { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
  .toc summary { cursor: pointer; display: flex; justify-content: space-between; margin-bottom: 0; }
  .toc summary::after { content: "+"; font-size: 14px; color: var(--blue-soft); }
  .toc[open] summary { margin-bottom: 10px; }
  .toc[open] summary::after { content: "−"; }
}

/* Privacy policy: the hero is one column; the policy text uses .prose like the articles */
.legal { padding-top: 0; }
.legal .prose h2:first-child, .legal .prose > p:first-child { margin-top: 0; }

/* Article text: long-form reading */
.prose { max-width: 720px; font-size: 18px; line-height: 1.75; color: color-mix(in srgb, var(--text) 86%, var(--deep)); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(25px, 2.5vw, 34px); line-height: 1.15; letter-spacing: -0.025em; color: var(--text); scroll-margin-top: 110px; }
.prose h3 { margin-top: 1.8em; font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; color: var(--text); }
.prose h4 { margin-top: 1.6em; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; color: var(--text); }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7em; }
.prose strong { font-weight: 600; color: var(--text); }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--blue-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
.prose a:hover { color: var(--blue-soft); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--blue-soft); }
.prose blockquote { margin: 1.6em 0 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--blue-soft); font-size: 20px; color: var(--text); }
.prose figure { margin: 2em 0 0; }
.prose figure + * { margin-top: 2em; }
.prose figure .media { border: 1px solid var(--line); border-radius: 14px; }
.prose figure .media img { height: auto; }
/* Images in WordPress posts: captions carry an inline width and images their full size, so keep both in the column */
.prose .wp-caption { max-width: 100%; }
.prose img { max-width: 100%; height: auto; }
/* Text pasted from Google Docs: lines joined by non-breaking spaces and images in fixed-width boxes */
.prose { overflow-wrap: break-word; }
.prose span[style*="inline-block"] { max-width: 100%; }
.read-also { padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 20, 48, .35); font-size: 16px; line-height: 1.55; }
.read-also span { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-soft); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table-wrap:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); background: rgba(10, 20, 48, .45); }
.prose tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) { .prose { font-size: 17px; } .prose blockquote { font-size: 18px; } }
/* Brand logos shown in place of a project photo: the whole mark on its own white card */
.index__body .media--logo { background: #fff; }
.index__body .media--logo img { object-fit: contain; }
