/* ==========================================================================
   Concept A — MAMONT / DIGITAL CORE
   Near-black #080D14 · Blue-black #111D2C · Arctic blue #65C7F7
   Cool neutral #B6C3D1 · Off-white #F3F6F8
   ========================================================================== */
:root {
  --font-display: "Sora", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --display-stretch: 100%;
  --display-weight: 600;
  --display-tracking: -.035em;
  --brand-stretch: 100%;

  --c-midnight: #080D14; --c-charcoal: #111D2C; --c-mist: #65C7F7;
  --c-sand: #B6C3D1; --c-copper: #65C7F7; --c-pearl: #F3F6F8;

  --g-deep: #080D14;
  --g-dark: #0D1724;
  --g-cold: #111D2C;
  --g-light: #F3F6F8;
  --g-warm: #E3E9EF;

  --ink-dark-bg: #F3F6F8;
  --ink-dark-bg-soft: #A3B1C0;
  --ink-light-bg: #080D14;
  --ink-light-bg-soft: #3F4C5B;
  --ink-cold-soft: #A3B1C0;
  --ink-warm-soft: #3F4C5B;

  --line-dark: rgba(182, 195, 209, .14);
  --line-light: rgba(8, 13, 20, .13);
  --line-cold: rgba(182, 195, 209, .16);
  --line-warm: rgba(8, 13, 20, .14);

  --accent: #65C7F7;
  --accent-hover: #8AD6FA;
  --accent-ink: #061019;
  --accent-strong: #1D7FB0;
  --accent-shadow: rgba(101, 199, 247, .45);
  --accent-text: #7FD1F8;

  --link-dark-bg: #9FDDFB;
  --link-light-bg: #156C97;
  --focus: #65C7F7;
  --focus-on-light: #08131F;
  --selection-bg: #65C7F7;
  --selection-ink: #061019;
  --scrollbar: #4A6078;
  --header-bg: rgba(8, 13, 20, .92);
  --tusk-color: #65C7F7;
  --callout: #9FDDFB;
  --glyph: #65C7F7;

  --proj-ground: #0B1522;
  --proj-line: #65C7F7; --proj-line-hover: #061019;
  --proj-mist: #65C7F7; --proj-sand: #B6C3D1; --proj-copper: #F3F6F8;
  --proj-flag-bg: #F3F6F8; --proj-flag-ink: #080D14;

  --portrait-bg: #111D2C; --portrait-ink: #1C2C40; --portrait-label: #9FDDFB;
  --report-bg: rgba(101, 199, 247, .03);

  --field-bg: rgba(243, 246, 248, .03);
  --field-line: rgba(182, 195, 209, .5);
  --field-line-hover: rgba(182, 195, 209, .72);
  --placeholder: #7C8A99;
  --error: #FF8A7A; --error-text: #FFA699;
  --error-bg: rgba(255, 138, 122, .12); --error-ink: #FFD2CB;
  --success-bg: rgba(101, 199, 247, .12); --success-ink: #CDEEFD;

  --rail-bg: rgba(8, 13, 20, .7);
  --rail-ink: #F3F6F8;
  --grain-opacity: .04;
}
/* The "cold" ground is a dark technical panel in this concept */
.ground--cold { --fg: var(--ink-dark-bg); --link: var(--link-dark-bg); --focus: #65C7F7; }
.map-card { --focus: #65C7F7; }
.ground--light, .ground--warm {
  --accent-text: #156C97; --glyph: #0E5A80;
  --field-bg: #FFFFFF; --field-line: rgba(8, 13, 20, .55); --field-line-hover: rgba(8, 13, 20, .75);
  --placeholder: #66727F; --error: #B4442F; --error-text: #A23A26; --error-bg: #F9E1DC; --error-ink: #5E1D10;
  --success-bg: #DDF1FC; --success-ink: #061019; --report-bg: #fff;
}

/* Strata become precise technical rules instead of dunes */
.strata { height: 1px; margin-top: 0; background: var(--line-dark); }
.strata svg { display: none; }
.strata::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: -3px; height: 7px; background: repeating-linear-gradient(90deg, var(--strata-tick, rgba(101, 199, 247, .35)) 0 1px, transparent 1px 80px); }
.page-head__ridge { display: none; }
.page-head { background-image: linear-gradient(rgba(182, 195, 209, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(182, 195, 209, .05) 1px, transparent 1px); background-size: 40px 40px; }
.btn { border-radius: 999px; }
.step__mark { border-radius: 2px; }
.positioning__statement em { color: var(--accent); }
.svc__name { font-size: clamp(1.85rem, 1rem + 3.4vw, 4.1rem); }

/* Hero choreography: segments draw in, nodes arrive, scan line follows the pointer */
.hero--core .dc-beast { transform: translate(calc(var(--px, 0) * 14px), calc(var(--py, 0) * 10px)); transition: transform 1.2s var(--ease-out); }
.hero--core .dc-scan { transform: translateX(calc((var(--px, 0) + .5) * 1600px)); opacity: 0; transition: opacity .4s, transform .6s var(--ease-out); }
.hero--core:hover .dc-scan { opacity: 1; }
.hero--core .hero__title { font-size: min(clamp(2.9rem, 1.4rem + 5.6vw, 6rem), 12.2vw); }
.hero--core .hero__title .line > span { white-space: nowrap; }
@media (max-width: 759px) { .hero--core { --stage-clear: .98; } }
.hero--core .dc-outline, .hero--core .dc-edges, .hero--core .dc-tusk { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero--core .dc-outline { animation: dc-draw 2.6s var(--ease-io) .2s both; }
  .hero--core .dc-edges { animation: dc-draw 3.4s var(--ease-io) .7s both; }
  .hero--core .dc-tusk { animation: dc-draw 1.6s var(--ease-out) 1.6s both; }
  .hero--core .dc-nodes { animation: dc-fade 1.2s ease 2.2s both; }
  .hero--core .dc-fill { animation: dc-fade 2s ease 1.2s both; }
  .hero--core .dc-nodes circle:nth-child(7n) { animation: dc-pulse 3.6s ease-in-out 3s infinite; }
  .hero--core .hero__glow { animation: dc-breathe 8s ease-in-out infinite alternate; }
  .hero--core .hero__title .line > span { animation: dc-line 1.1s var(--ease-out) both; }
  .hero--core .hero__title .line:nth-child(2) > span { animation-delay: .12s; }
  .hero--core .hero__title .line:nth-child(3) > span { animation-delay: .24s; }
  .hero--core .hero__lede { animation: dc-up 1s var(--ease-out) .6s both; }
  .hero--core .hero__actions { animation: dc-up 1s var(--ease-out) .8s both; }
  .hero.is-offscreen *, .hero.is-offscreen { animation-play-state: paused !important; }
}
@keyframes dc-draw { from { stroke-dashoffset: 1; } }
@keyframes dc-fade { from { opacity: 0; } }
@keyframes dc-pulse { 50% { opacity: .25; } }
@keyframes dc-breathe { to { opacity: .6; } }
@keyframes dc-line { from { transform: translateY(108%); } }
@keyframes dc-up { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Preloader: the wireframe mammoth walks while the page loads ---------- */
.preloader { display: none; }
.js:not(.pl-skip) .preloader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.5rem; background: #080D14; background-image: linear-gradient(rgba(182, 195, 209, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(182, 195, 209, .045) 1px, transparent 1px); background-size: 40px 40px; clip-path: inset(0 0 0 0); transition: clip-path .8s cubic-bezier(.76, 0, .24, 1); animation: pl-failsafe .01s linear 8s forwards; }
.js:not(.pl-skip) .preloader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.preloader__inner { width: min(460px, 82vw); }
.pl-walk { width: 100%; height: auto; overflow: visible; }
.pl-body, .pl-leg { fill: #0B1522; stroke: #65C7F7; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.pl-far .pl-leg { fill: #08111C; stroke-opacity: .45; }
.pl-tusk { fill: none; stroke: #F3F6F8; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.pl-nodes { fill: #9FDDFB; }
.pl-ground { stroke: #65C7F7; stroke-opacity: .55; stroke-width: 2; stroke-dasharray: 28 18; vector-effect: non-scaling-stroke; }
.pl-grid path { stroke: rgba(101, 199, 247, .14); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pl-leg { transform-box: view-box; }
.pl-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1.25rem; font-family: var(--font-display); color: #F3F6F8; }
.pl-word { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.pl-word span { font-weight: 400; color: #A3B1C0; }
.pl-pct { font-variant-numeric: tabular-nums; font-size: .9rem; color: #65C7F7; letter-spacing: .06em; }
.pl-bar { height: 2px; margin-top: .6rem; background: rgba(101, 199, 247, .15); overflow: hidden; }
.pl-bar i { display: block; height: 100%; background: #65C7F7; transform-origin: left; transform: scaleX(0); box-shadow: 0 0 10px #65C7F7; }
.pl-body, .pl-tusk { stroke-dasharray: 1; animation: pl-draw 1s cubic-bezier(.65, 0, .35, 1) both; }
.pl-body { animation: pl-draw 1s cubic-bezier(.65, 0, .35, 1) both, pl-fill .5s ease .55s both; }
.pl-near, .pl-far { animation: pl-fade .5s ease .45s both; }
.pl-tusk { animation-delay: .5s; }
.pl-nodes { animation: pl-fade .6s ease .8s both; }
.pl-near .pl-leg--nf, .pl-far .pl-leg--fh { animation: pl-step .9s ease-in-out infinite; }
.pl-near .pl-leg--nh, .pl-far .pl-leg--ff { animation: pl-step .9s ease-in-out -.45s infinite; }
.pl-bob { animation: pl-bob .45s ease-in-out infinite alternate; }
.pl-ground { animation: pl-ground .9s linear infinite; }
@keyframes pl-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pl-fade { from { opacity: 0; } }
@keyframes pl-fill { from { fill-opacity: 0; } }
@keyframes pl-step { 0%, 100% { transform: rotate(13deg); } 50% { transform: rotate(-13deg); } }
@keyframes pl-bob { from { transform: translateY(0); } to { transform: translateY(-7px); } }
@keyframes pl-ground { to { stroke-dashoffset: -46; } }
@keyframes pl-failsafe { to { visibility: hidden; opacity: 0; } }
.is-loading .hero, .is-loading .hero * { animation-play-state: paused !important; }

/* ---------- Photography in Digital Core: cool, desaturated, bracketed ---------- */
.photo { background: #0B1522; }
.photo img { filter: grayscale(.45) saturate(.85) contrast(1.06) brightness(.86); }
.photo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(8, 13, 20, 0) 45%, rgba(8, 13, 20, .78)), linear-gradient(0deg, rgba(101, 199, 247, .14), rgba(101, 199, 247, .14)); mix-blend-mode: normal; }
.photo::before { content: ""; position: absolute; inset: 12px; z-index: 2; pointer-events: none; background:
  linear-gradient(#65C7F7, #65C7F7) top left / 18px 1px no-repeat, linear-gradient(#65C7F7, #65C7F7) top left / 1px 18px no-repeat,
  linear-gradient(#65C7F7, #65C7F7) top right / 18px 1px no-repeat, linear-gradient(#65C7F7, #65C7F7) top right / 1px 18px no-repeat,
  linear-gradient(#65C7F7, #65C7F7) bottom left / 18px 1px no-repeat, linear-gradient(#65C7F7, #65C7F7) bottom left / 1px 18px no-repeat,
  linear-gradient(#65C7F7, #65C7F7) bottom right / 18px 1px no-repeat, linear-gradient(#65C7F7, #65C7F7) bottom right / 1px 18px no-repeat; opacity: .8; }
.page-head__photo { border-radius: 4px; }
.photo-band { border-block: 1px solid var(--line-dark); }
.depth-rail { display: none !important; }

/* Demo instrument panels in Digital Core colours */
html .demo { --s-bg: #0B1522; --s-ink: #F3F6F8; --s-soft: #A3B1C0; --s-line: rgba(182, 195, 209, .16); }
html .demo__badge { color: #9FDDFB; border-color: rgba(101, 199, 247, .55); }
html .demo .seg button[aria-pressed="true"] { background: #65C7F7; color: #061019; }
html .arch__map .edge--auto { stroke: #65C7F7; }
html .arch__map .edge--manual { stroke: #B6C3D1; }
html .arch__map .node rect { fill: #080D14; stroke: rgba(101, 199, 247, .45); }
html .arch__map .node--hub rect { stroke: #65C7F7; }
html .arch__map .node.is-selected rect { fill: #65C7F7; stroke: #65C7F7; }
html .arch__map .node.is-selected text { fill: #061019; }
html .arch__map .node:focus-visible rect, html .arch__map .node.is-selected:focus-visible rect { stroke: #F3F6F8; stroke-width: 3; }
html .arch__map .node text { fill: #F3F6F8; }
html .k--auto { border-color: #65C7F7; }
html .k--manual { border-color: #B6C3D1; }
html .chart__tip { background: #080D14; }

/* Hero art from 760px: grid on the section, canvas anchored to the right edge of the wrap so the tusk clears the copy */
@media (min-width: 760px) {
  .hero--core { background-image: linear-gradient(rgba(182, 195, 209, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(182, 195, 209, .07) 1px, transparent 1px); background-size: 40px 40px; background-position: 0 100%; }
  .hero--core .hero__scene > rect:not(.hero__glow) { display: none; } /* grid now comes from CSS, so the narrower canvas has no visible edge */
  .hero--core .hero__canvas { left: auto; right: max(0px, calc((100% - var(--wrap)) / 2 - 4rem)); width: min(calc(var(--hero-h) * 1.6), calc(var(--wrap) + 8rem), 100%); transform: none; }
  .hero--core .hero__lede { max-width: 30rem; }
}
/* Landscape tablets / small laptops: slightly smaller art so the tusk clears the actions */
@media (min-width: 760px) and (max-width: 1299px) and (min-aspect-ratio: 1/1) {
  .hero--core .hero__canvas { width: min(calc(var(--hero-h) * 1.3), 92%); }
}
/* Portrait tablets: stack the copy above the art, as on mobile */
@media (min-width: 760px) and (max-width: 1199px) and (max-aspect-ratio: 1/1) {
  .hero--core { --stage-h: min(58vw, 34rem); align-items: flex-start; }
  .hero--core .hero__stage { top: auto; height: var(--stage-h); -webkit-mask-image: linear-gradient(transparent, #000 30%); mask-image: linear-gradient(transparent, #000 30%); }
  .hero--core .hero__canvas { left: auto; right: -4%; width: calc(var(--stage-h) * 2.04); transform: none; }
  .hero--core .hero__content { padding-top: calc(var(--header-h) + 4rem); padding-bottom: calc(var(--stage-h) + 1rem); }
}

/* ---------- Polish pass: one grid line, calmer states, divine responsive ---------- */
:root { color-scheme: dark; }
.ground--light, .ground--warm { color-scheme: light; }
.positioning__statement { text-wrap: pretty; }

/* Every asymmetric split snaps to the section-head line, so the right-hand column starts at one x on every section */
@media (min-width: 1200px) {
  .positioning__grid, .principles, .measure-grid, .faq-layout, .convert, .deliver, .contact-grid, .page-head__grid--art { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: var(--s-8); }
  .problems, .related { column-gap: var(--s-6); }
}
/* 960–1199: halves with a tighter gap, so headings set in one or two lines */
@media (min-width: 960px) and (max-width: 1199px) {
  .positioning__grid, .principles, .measure-grid, .faq-layout, .convert, .deliver, .contact-grid, .page-head__grid--art { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s-7); }
}
@media (min-width: 900px) and (max-width: 1199px) { .section-head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s-7); } }
@media (min-width: 900px) and (max-width: 959px) { .principles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s-7); } }
@media (min-width: 1200px) { .section-head--split:has(+ .problems) { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); } }
@media (min-width: 900px) and (max-width: 1199px) { .section-head--split:has(+ .problems) { column-gap: var(--s-8); } }
@media (max-width: 959px) { .positioning__aside, .story > * { max-width: 40rem; } }

/* Page-head photos fill the column height so their top edge lines up with the copy on every service page */
@media (min-width: 960px) {
  .page-head__grid--art { align-items: stretch; }
  .page-head__grid--art .page-head__photo { aspect-ratio: auto; height: 100%; min-height: 18rem; }
}
@media (min-width: 600px) and (max-width: 959px) { .page-head__photo { aspect-ratio: 21 / 9; } }
.page-head__photo img[src*="apple-ads"] { object-position: 0% 50%; }
.deliver__refs { margin-top: var(--s-7); }

/* Principle glyphs: one size, on the heading's cap line */
.principle { grid-template-columns: 2.25rem 1fr; }
.principle svg { width: 2.25rem; height: 2.25rem; margin-top: .1rem; }

/* Team: frames hold their edge on light grounds; four across from 700px where there are no bios */
.ground--light .person__frame, .ground--warm .person__frame { background: var(--g-warm); }
.ground--light .person__frame img, .ground--warm .person__frame img { mix-blend-mode: multiply; }
.person__frame::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: inherit; pointer-events: none; }
@media (min-width: 700px) { .team-grid:not(:has(.person__about)) { grid-template-columns: repeat(4, 1fr); gap: var(--s-6) var(--s-4); } }
.team-grid:not(:has(.person__about)) { grid-auto-rows: auto; }
.team-grid:not(:has(.person__about)) .person { grid-row: span 3; grid-template-rows: subgrid; row-gap: .3rem; }

/* Process 2×2: equal bottom and top rhythm */
@media (min-width: 600px) and (max-width: 899px) { .process .step:nth-last-child(-n+2) { padding-bottom: 0; } }

/* Phones */
@media (max-width: 759px) { .photo-band__caption { bottom: 2.6rem; } }
@media (max-width: 359px) { :root { --step-4: 2.15rem; } }

/* Touch targets on secondary arrow links */
.hero__actions .link-arrow, .cs-end__actions .link-arrow { min-height: 2.75rem; }

/* Mobile menu: wipe the sheet down, then bring the links in, so menu and page never overlap */
@media (max-width: 959px) {
  .js .site-nav { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path var(--t-med) var(--ease-out), visibility 0s linear var(--t-med); }
  .js .site-header.is-open .site-nav { clip-path: inset(0 0 0 0); transition-delay: 0s; }
  .js .site-nav > * { opacity: 0; transform: translateY(-.5rem); transition: opacity var(--t-fast) ease, transform var(--t-med) var(--ease-out); }
  .js .site-header.is-open .site-nav > * { opacity: 1; transform: none; transition-delay: 140ms; }
}

/* Demos: focus colours from this theme */
html .demo :focus-visible, html .seg button:focus-visible { outline-color: #65C7F7; }
html .chart__plot rect[tabindex]:focus-visible { stroke: #65C7F7; stroke-width: 2; }
html .site-frame { transition: max-width var(--t-med) var(--ease-out); }
.cs-rail ol { background: rgba(8, 13, 20, .84); }

/* Home hero fits the first screen on landscape laptops and tablets (1024×768 … 1440×900) */
@media (min-width: 760px) and (max-height: 920px) and (min-aspect-ratio: 1/1) {
  .hero--core .hero__content { padding-top: calc(var(--header-h) + clamp(1rem, 4vh, 2.5rem)); padding-bottom: clamp(3rem, 8vh, 5rem); }
  .hero--core .hero__title { font-size: min(clamp(2.9rem, 1.4rem + 5.6vw, 6rem), 12.2vw, 10.5vh); }
  .hero--core .hero__lede, .hero--core .hero__actions { margin-top: clamp(1.25rem, 3vh, 2rem); }
  .hero--core .hero__pillars { margin-top: clamp(1.5rem, 4vh, 2.5rem); }
}
@media (min-width: 760px) and (max-width: 1299px) and (max-height: 920px) and (min-aspect-ratio: 1/1) {
  .hero--core .hero__canvas { width: min(calc(var(--hero-h) * 1.2), 86%); }
}
@media (min-width: 1300px) and (max-width: 1599px) and (min-aspect-ratio: 1/1) {
  .hero--core .hero__canvas { width: min(calc(var(--hero-h) * 1.45), 100%); }
}
/* Portrait tablets: a shorter stage so the hero ends at the fold */
@media (min-width: 760px) and (max-width: 1199px) and (max-aspect-ratio: 1/1) {
  .hero--core { --stage-h: min(54vw, 34rem); }
  .hero--core .hero__content { padding-top: calc(var(--header-h) + 3rem); padding-bottom: calc(var(--stage-h) * .9); }
  .hero--core .hero__pillars { margin-top: var(--s-6); }
}
/* 404 carries the same measurement lattice as the hero and page heads */
.lost { background-image: linear-gradient(rgba(182, 195, 209, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(182, 195, 209, .05) 1px, transparent 1px); background-size: 40px 40px; }
