/* Vitastaa site styles, following the Vitastaa style guide.
   Brand colours: blue #0081bb (primary), orange #f88e16 and violet #673978 (secondary).
   --river is a slightly deeper brand blue for buttons and links so small text stays readable.
   Orange marks where website build and care sit on the lifecycle; violet is the closing band.
   Type: Source Sans (Source Sans 3 on Google Fonts): bold headlines, regular body. Left-aligned. */

:root {
  --paper: #F5F8FA;
  --surface: #FFFFFF;
  --ink: #12283A;
  --text: #33475A;
  --muted: #5A6B7B;
  --line: #D8E2EA;
  --logo: #0081BB;
  --river: #0077AD;
  --river-ink: #FFFFFF;
  --river-soft: #E1F1F9;
  --tint: #F88E16;
  --tint-soft: #FEF1E2;
  --violet: #673978;
  --violet-ink: #FFFFFF;
  --danger: #B42318;
  --serif: "Source Sans 3", "Source Sans Pro", "Segoe UI", Arial, sans-serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", Arial, sans-serif;
  --wrap: 1160px;
  --narrow: 720px;
  --r-sm: 6px;
  --r-lg: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0C1820; --surface: #13232D; --ink: #E8F1F6; --text: #C5D3DC; --muted: #91A5B2; --line: #24374A;
    --logo: #3BAEE3; --river: #5BBFE8; --river-ink: #04202A; --river-soft: #12303F; --tint: #F8A13F; --tint-soft: #33240F;
    --violet: #3E2448; --violet-ink: #F3EAF6; --danger: #FF8A80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0C1820; --surface: #13232D; --ink: #E8F1F6; --text: #C5D3DC; --muted: #91A5B2; --line: #24374A;
  --logo: #3BAEE3; --river: #5BBFE8; --river-ink: #04202A; --river-soft: #12303F; --tint: #F8A13F; --tint-soft: #33240F;
  --violet: #3E2448; --violet-ink: #F3EAF6; --danger: #FF8A80;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 1.125rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--river); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--river); outline-offset: 3px; border-radius: 2px; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }

h1, h2, h3, h4 { font-family: var(--sans); color: var(--ink); margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.12; letter-spacing: -0.015em; }
h3 { font-size: 1.35rem; line-height: 1.25; font-weight: 600; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 34em; }
.prose { max-width: var(--narrow); display: grid; gap: 16px; }
.prose h2 { margin-top: 24px; font-size: 1.6rem; }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.skip { position: absolute; left: -9999px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--surface); padding: 8px 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font: 600 1rem/1 var(--sans); padding: 14px 22px; border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--surface); }
.btn-primary { background: var(--river); border-color: var(--river); color: var(--river-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--river) 88%, var(--ink)); }
.btn[disabled] { opacity: .7; cursor: progress; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 30; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; color: var(--logo); text-decoration: none; }
.brand svg { height: 30px; width: auto; aspect-ratio: 751.37 / 172.47; fill: currentColor; }
.site-foot .brand, .site-foot .brand:hover { color: var(--logo); }
.site-foot .brand svg { height: 26px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--river); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; }
.nav .ext::after { content: ""; display: inline-block; width: .55em; height: .55em; margin-left: .3em; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translateY(-.15em); }
.nav .btn { padding: 10px 18px; font-size: .95rem; }
.menu { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-weight: 600; color: var(--ink); padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 999px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .nav { display: grid; gap: 4px; position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; box-shadow: 0 20px 40px -20px rgba(16,42,56,.35); }
  .menu[open] .nav a:not(.btn) { padding: 10px 8px; }
  .menu[open] .nav .btn { margin-top: 6px; }
}

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.band { background: var(--surface); }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 104px) clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: 24px; }
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 56px); }
.page-hero .wrap { display: grid; gap: 20px; }
.page-hero p.lede { max-width: 38em; }

/* Care checklist (ticks itself off once, when scrolled into view) */
.care { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 26px 22px; box-shadow: 0 30px 60px -40px rgba(16,42,56,.45); }
.care h3 { font-size: 1.3rem; }
.care-list { list-style: none; margin-top: 16px; display: grid; }
.care-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: .98rem; color: var(--ink); }
.care-list li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--river);
  background: var(--river) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.js .care-list li::before { background-color: var(--river-soft); background-size: 0; transition: background-color .25s ease, background-size .25s ease; }
.js .care.seen .care-list li::before { background-color: var(--river); background-size: 18px; }
.js .care.seen .care-list li:nth-child(2)::before { transition-delay: .35s; }
.js .care.seen .care-list li:nth-child(3)::before { transition-delay: .7s; }
.js .care.seen .care-list li:nth-child(4)::before { transition-delay: 1.05s; }
.js .care.seen .care-list li:nth-child(5)::before { transition-delay: 1.4s; }
.care .foot { margin-top: 14px; font-size: .88rem; color: var(--muted); }

/* Hero: a corporate homepage assembling from WordPress blocks (plays once on load) */
.build { margin: 0; display: grid; gap: 12px; }
.build figcaption { color: var(--muted); font-size: .92rem; }
.browser { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 40px 70px -45px rgba(16,42,56,.55); overflow: hidden; }
.bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.bar b { margin-left: 10px; font-weight: 500; font-size: .8rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; }
.canvas { display: grid; gap: 20px; padding: 26px 18px 20px; }
.blk { position: relative; border-radius: var(--r-sm); padding: 12px; display: grid; gap: 8px; outline: 1.5px dashed transparent; outline-offset: 3px; }
.blk i { position: absolute; z-index: 1; top: -9px; left: 10px; font-style: normal; font-size: .7rem; font-weight: 600; line-height: 1; padding: 4px 7px; border-radius: 4px; background: var(--river); color: var(--river-ink); opacity: 1; }
.blk s { display: block; height: 8px; border-radius: 4px; background: var(--line); text-decoration: none; }
.b-nav { grid-template-columns: 1.6fr repeat(3, .6fr); align-items: center; padding-block: 8px; }
.b-nav s:first-of-type { width: 60%; height: 12px; background: var(--ink); opacity: .8; }
.b-hero { background: var(--river-soft); padding: 22px 16px; gap: 10px; }
.b-hero .h { height: 16px; width: 78%; background: var(--ink); opacity: .75; }
.b-hero .t { width: 55%; }
.btn-s { width: 84px; height: 22px !important; border-radius: 999px !important; background: var(--river) !important; }
.b-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.b-grid s { height: 52px; border-radius: var(--r-sm); background: var(--paper); border: 1px solid var(--line); }
.b-news { grid-template-columns: 1fr 1fr; gap: 10px; }
.b-news s { height: 34px; border-radius: var(--r-sm); background: var(--paper); border: 1px solid var(--line); }
.b-form { grid-template-columns: 1fr auto; align-items: center; }
.b-form s:first-child { height: 22px; background: var(--paper); border: 1px solid var(--line); }
.status { margin-left: auto; font-style: normal; font-size: .75rem; font-weight: 600; color: var(--river-ink); background: var(--river); padding: 4px 10px; border-radius: 999px; opacity: 0; }
@keyframes blk-in { from { opacity: 0; transform: translateY(12px); outline-color: var(--river); } 60% { opacity: 1; transform: none; outline-color: var(--river); } to { opacity: 1; transform: none; outline-color: transparent; } }
@keyframes tag-in { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
.js .blk { opacity: 0; animation: blk-in .9s cubic-bezier(.2,.7,.2,1) forwards; }
.js .blk i { animation: tag-in .5s ease both; }
.js .b-nav, .js .b-nav i { animation-delay: .25s; }
.js .b-hero, .js .b-hero i { animation-delay: .65s; }
.js .b-grid, .js .b-grid i { animation-delay: 1.05s; }
.js .b-news, .js .b-news i { animation-delay: 1.45s; }
.js .b-form, .js .b-form i { animation-delay: 1.85s; }
.js .status { animation: pop .4s ease 3.1s forwards; }
.build:hover .blk { outline-color: color-mix(in srgb, var(--river) 45%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .js .blk, .js .blk i, .js .status { animation: none; opacity: 1; }
  .js .care-list li::before { background-color: var(--river); background-size: 18px; transition: none; }
}

/* WordPress skills */
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); margin: 0; }
.skills > div { padding: 26px 28px 28px 0; border-bottom: 1px solid var(--line); }
.skills > div:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.skills dt { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); margin-bottom: 8px; }
.skills dd { margin: 0; color: var(--muted); }
@media (max-width: 860px) {
  .skills { grid-template-columns: 1fr; }
  .skills > div, .skills > div:not(:nth-child(3n+1)) { padding: 22px 0; border-left: 0; }
}

.more { font-weight: 600; }

/* Offer rows (ruled list, not cards) */
.rows { display: grid; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 16px 40px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.row p { color: var(--text); }
.row .more { white-space: nowrap; }
.row ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.row li { font-size: .88rem; padding: 4px 10px; border-radius: 999px; background: var(--river-soft); color: var(--ink); }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; } }

/* Lifecycle line */
.lifecycle { position: relative; }
.lc-line { width: 100%; height: auto; overflow: visible; }
.lc-line path { fill: none; stroke: var(--river); stroke-width: 3; stroke-linecap: round; }
.lc-line .stop { fill: var(--surface); stroke: var(--river); stroke-width: 3; }
.lc-line .wp { fill: none; stroke: var(--tint); stroke-width: 10; stroke-linecap: round; opacity: .7; }
.lc-stages { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 8px; }
.lc-stages li { padding-right: 28px; }
.lc-stages li { display: grid; gap: 8px; align-content: start; }
.lc-stages .n { font-family: var(--serif); font-size: 1rem; color: var(--muted); }
.lc-stages p { color: var(--muted); font-size: .98rem; }
.lc-wp { margin-left: 50%; margin-top: 28px; padding: 14px 18px; border-left: 4px solid var(--tint); background: var(--tint-soft); color: var(--ink); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .98rem; }
.js .lc-line path.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.js .lifecycle.seen .lc-line path.draw { transition: stroke-dashoffset 1.6s cubic-bezier(.6,.1,.25,1); stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .js .lc-line path.draw { stroke-dasharray: none; stroke-dashoffset: 0; } }
@media (max-width: 860px) {
  .lc-line { display: none; }
  .lc-stages { grid-template-columns: 1fr; gap: 0; border-left: 3px solid var(--river); margin-left: 8px; }
  .lc-stages li { position: relative; padding: 0 0 26px 26px; }
  .lc-stages li::before { content: ""; position: absolute; left: -11px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--river); }
  .lc-stages li.on-wp::after { content: ""; position: absolute; left: -9px; top: 0; bottom: 0; width: 10px; background: var(--tint); opacity: .45; border-radius: 6px; }
  .lc-wp { margin-left: 0; }
}

/* Steps (real sequence) */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(s); font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--river); }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Split panels */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); display: grid; gap: 14px; align-content: start; }
.panel.tint { background: var(--river-soft); border-color: transparent; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 11px; height: 6px; border-left: 2px solid var(--river); border-bottom: 2px solid var(--river); transform: rotate(-45deg); }

/* Care plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.plan { padding: clamp(22px, 3vw, 30px); display: grid; gap: 14px; align-content: start; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan .who { color: var(--muted); font-size: .95rem; }
.plan .price { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.plan.mid { background: var(--river-soft); }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } .plan + .plan { border-left: 0; border-top: 1px solid var(--line); } }

/* Stage detail (lifecycle page) */
.stage { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px clamp(28px, 5vw, 72px); padding-block: 36px; border-top: 1px solid var(--line); }
.stage:last-child { border-bottom: 1px solid var(--line); }
.stage .n { font-family: var(--serif); color: var(--river); font-size: 1.1rem; margin-bottom: 6px; display: block; }
.stage .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stage h4 { margin-bottom: 8px; }
@media (max-width: 760px) { .stage, .stage .cols { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); max-width: var(--narrow); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 32px 18px 0; font-weight: 600; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--river); border-bottom: 2px solid var(--river); transform: rotate(45deg); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details p { padding: 0 0 20px; color: var(--text); }

/* Email (Inboxwright) */
.mailer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.mailer > div { padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 14px; align-content: start; }
.mailer > div + div { border-left: 1px solid var(--line); }
@media (max-width: 760px) { .mailer { grid-template-columns: 1fr; } .mailer > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* Closing CTA */
.closing { background: var(--violet); color: var(--violet-ink); }
.closing h2 { color: var(--violet-ink); }
.closing p { color: color-mix(in srgb, var(--violet-ink) 82%, var(--violet)); max-width: 36em; }
.closing .wrap { display: grid; gap: 22px; padding-block: clamp(56px, 8vw, 96px); }
.closing .btn-primary { background: var(--violet-ink); border-color: var(--violet-ink); color: var(--violet); }
.closing .btn:not(.btn-primary) { border-color: var(--violet-ink); color: var(--violet-ink); }
.closing .btn:not(.btn-primary):hover { background: transparent; text-decoration: underline; }

/* Forms */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; color: var(--ink); font-size: .96rem; }
.field .hint { color: var(--muted); font-size: .88rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .two { grid-template-columns: 1fr; } }
input, select, textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--river); box-shadow: 0 0 0 3px var(--river-soft); }
textarea { min-height: 150px; resize: vertical; }
[aria-invalid="true"] { border-color: var(--danger); }
.error { color: var(--danger); font-size: .9rem; }
.note { padding: 12px 14px; border-radius: var(--r-sm); background: var(--tint-soft); color: var(--ink); font-size: .94rem; }
.sent { display: grid; gap: 12px; }
.sent ol { padding-left: 1.2em; display: grid; gap: 6px; }
.direct { display: grid; gap: 6px; }
.direct a { font-size: 1.15rem; font-weight: 600; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 40px; color: var(--muted); font-size: .94rem; }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 28px; }
.site-foot h4 { font-family: var(--sans); color: var(--ink); font-size: .95rem; margin-bottom: 10px; }
.site-foot ul { list-style: none; display: grid; gap: 6px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--river); }
.site-foot .legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr; } }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

/* ===================================================================================
   v2 visual layer: deep-navy header and heroes with layered mountain ridges and mist
   (from the style guide's misty valley; Vitasta is the old name of the Jhelum river),
   icon cards, a dark skills band, a river timeline and scroll reveals.
   =================================================================================== */
:root { --night: #0B1F2E; --night-2: #0E2C42; --night-text: #B9CBD8; --on-night: #FFFFFF; }

/* Header: dark, white logo */
.site-head { background: color-mix(in srgb, var(--night) 94%, transparent); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.site-head .brand { color: #FFFFFF; }
.site-head .nav a:not(.btn) { color: #DCE7EE; }
.site-head .nav a:not(.btn):hover { color: #FFFFFF; }
.site-head .nav a[aria-current="page"] { color: #FFFFFF; text-decoration-color: var(--tint); text-decoration-thickness: 2px; }
.site-head .btn-primary, .dark .btn-primary { background: var(--tint); border-color: var(--tint); color: #12283A; }
.site-head .btn-primary:hover, .dark .btn-primary:hover { background: #FFA43D; border-color: #FFA43D; }
.menu summary { color: #FFFFFF !important; border-color: rgba(255,255,255,.6) !important; }
@media (max-width: 860px) {
  .site-head .menu[open] .nav a:not(.btn) { color: var(--ink); }
  .site-head .menu[open] .nav a[aria-current="page"] { color: var(--river); }
}
.btn { transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #FFFFFF; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* Dark heroes */
.dark { position: relative; overflow: hidden; color: var(--night-text); isolation: isolate;
  background: radial-gradient(1200px 500px at 80% -10%, rgba(59,174,227,.28), transparent 60%),
              linear-gradient(180deg, #0A1B28 0%, #0D3048 58%, #105274 100%); }
.dark h1, .dark h2, .dark h3 { color: var(--on-night); }
.dark .lede { color: #C3D6E3; }
.dark .wrap { position: relative; z-index: 2; }
.hero.dark { padding-block: clamp(64px, 9vw, 120px) clamp(150px, 16vw, 230px); }
.page-hero.dark { padding-block: clamp(56px, 8vw, 104px) clamp(120px, 13vw, 180px); }
.hero.dark .build figcaption { color: #A9C1D1; }
.hero.dark .browser { border-color: rgba(255,255,255,.14); box-shadow: 0 50px 90px -40px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.04); }

/* Ridges and mist */
.ridges { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(140px, 18vw, 260px); z-index: 1; pointer-events: none; }
.ridges svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ridges .r1 { fill: rgba(91,190,232,.16); }
.ridges .r2 { fill: rgba(0,129,187,.32); }
.ridges .r3 { fill: #0B3550; }
.ridges .r4 { fill: var(--surface); }
.ridges .mist { position: absolute; left: -20%; bottom: 30%; width: 70%; height: 45%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(220,236,245,.22), transparent); filter: blur(8px); animation: drift 26s ease-in-out infinite alternate; }
.ridges .mist.m2 { left: 45%; bottom: 18%; width: 60%; height: 38%; animation-duration: 34s; animation-direction: alternate-reverse; opacity: .8; }
@keyframes drift { from { transform: translateX(-6%); } to { transform: translateX(14%); } }
.js .ridges svg path { transition: transform .2s linear; }
.closing { position: relative; overflow: hidden; isolation: isolate; }
.closing .wrap { position: relative; z-index: 2; padding-bottom: clamp(120px, 14vw, 190px); }
.ridges-closing { height: clamp(110px, 13vw, 190px); }
.ridges-closing .r1 { fill: rgba(255,255,255,.07); }
.ridges-closing .r2 { fill: rgba(30,10,40,.22); }
.ridges-closing .r3 { fill: #4E2A5C; }
.ridges-closing .r4 { fill: var(--night); }
.ridges-closing .mist { background: radial-gradient(closest-side, rgba(255,235,250,.14), transparent); }

/* Tools strip */
.tools { background: var(--surface); padding-block: 8px 34px; }
.tools .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; }
.tools p { color: var(--muted); font-size: .95rem; }
.tools ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.tools li { font-weight: 600; color: var(--ink); opacity: .78; font-size: 1.02rem; }

/* Icon cards (services) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { position: relative; display: grid; gap: 12px; align-content: start; padding: 28px 26px 24px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); color: var(--text); text-decoration: none; overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--logo), var(--tint)); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(11,31,46,.45); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card h3 { color: var(--ink); }
.card ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.card li { font-size: .88rem; padding: 4px 10px; border-radius: 999px; background: var(--river-soft); color: var(--ink); }
.card .go { color: var(--river); font-weight: 600; margin-top: 4px; }
.card .go::after { content: ""; display: inline-block; width: .5em; height: .5em; margin-left: .45em; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg) translateY(-1px); transition: transform .25s ease; }
.card:hover .go::after { transform: rotate(45deg) translate(3px, -4px); }
.section.band:has(.cards) { background: var(--surface); }
.ic-wrap { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--river-soft); color: var(--logo); }
.ic { width: 28px; height: 28px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* Dark skills band */
.night { background: var(--night); color: var(--night-text); position: relative; overflow: hidden; }
.night::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 60%; height: 120%; background: radial-gradient(closest-side, rgba(0,129,187,.28), transparent); pointer-events: none; }
.night .section-head h2 { color: #FFFFFF; }
.night .section-head p { color: var(--night-text); }
.night .skills { border-top-color: rgba(255,255,255,.12); position: relative; }
.night .skills > div { border-color: rgba(255,255,255,.12) !important; display: grid; gap: 10px; align-content: start; }
.night .skills dt { color: #FFFFFF; font-family: var(--sans); font-weight: 600; }
.night .skills dd { color: var(--night-text); }
.night .ic-wrap { background: rgba(59,174,227,.14); color: #5BBFE8; }
.section + .night, .night + .section { border-top: 0; }

/* River timeline for the project steps */
.steps.river { position: relative; padding-top: 34px; }
.steps.river::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--logo), var(--tint)); transform-origin: left; }
.steps.river li { border-top: 0; padding-top: 0; position: relative; }
.steps.river li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; margin-top: -40px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--logo); color: var(--logo); font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1; }
.steps.river li:last-child::before { border-color: var(--tint); color: #B8620A; }
@media (max-width: 960px) {
  .steps.river { padding-top: 0; padding-left: 34px; grid-template-columns: 1fr; }
  .steps.river::before { left: 14px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; transform-origin: top; }
  .steps.river li::before { position: absolute; left: -54px; top: 0; margin-top: 0; }
}

/* Selected work (anonymised) */
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.work-card { display: grid; gap: 10px; align-content: start; }
.work-card .sector { color: var(--muted); font-size: .95rem; }
.work-card ul { padding-left: 1.1em; color: var(--text); display: grid; gap: 4px; }
.mock { aspect-ratio: 16 / 10; border-radius: var(--r-lg); padding: 14px; display: grid; gap: 8px; margin-bottom: 8px;
  background: linear-gradient(160deg, #0D3048, #105274); box-shadow: 0 30px 50px -35px rgba(11,31,46,.6); overflow: hidden; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.work-card:hover .mock { transform: translateY(-6px) rotate(-.4deg); }
.mock i { display: block; border-radius: 6px; background: rgba(255,255,255,.14); }
.mock i:first-child { height: 10px; width: 40%; background: rgba(255,255,255,.5); }
.mock.m1 { grid-template-rows: auto 1fr auto auto; } .mock.m1 i:nth-child(2) { background: linear-gradient(90deg, rgba(0,129,187,.7), rgba(91,190,232,.25)); }
.mock.m2 { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr 1fr; } .mock.m2 i:first-child { grid-column: 1 / -1; } .mock.m2 i:nth-child(2) { grid-row: span 2; background: rgba(248,142,22,.55); }
.mock.m3 { grid-template-rows: auto 1fr auto; } .mock.m3 i:nth-child(3) { background: rgba(103,57,120,.75); }
@media (max-width: 900px) { .work { grid-template-columns: 1fr; } }

/* Footer: dark */
.site-foot { background: var(--night); color: var(--night-text); border-top: 0; }
.site-foot h4 { color: #FFFFFF; }
.site-foot a { color: var(--night-text); }
.site-foot a:hover { color: #FFFFFF; }
.site-foot .brand, .site-foot .brand:hover { color: #FFFFFF; }
.site-foot .legal { border-top-color: rgba(255,255,255,.12); }

/* Scroll reveals: children rise in, staggered (JS adds .in when the group is in view) */
.js .reveal > * { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in > * { opacity: 1; transform: none; }
.js .reveal.in > *:nth-child(2) { transition-delay: .12s; }
.js .reveal.in > *:nth-child(3) { transition-delay: .24s; }
.js .reveal.in > *:nth-child(4) { transition-delay: .36s; }
.js .reveal.in > *:nth-child(5) { transition-delay: .48s; }
.js .reveal.in > *:nth-child(6) { transition-delay: .6s; }
.js .reveal .ic path, .js .reveal .ic rect, .js .reveal .ic circle { stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 1.2s ease .3s; }
.js .reveal.in .ic path, .js .reveal.in .ic rect, .js .reveal.in .ic circle { stroke-dashoffset: 0; }
.js .section-head { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .section-head.in { opacity: 1; transform: none; }
.js .steps.river::before { transform: scaleX(0); transition: transform 1.6s cubic-bezier(.6,.1,.25,1); }
.js .steps.river.in::before { transform: scaleX(1); }
@media (max-width: 960px) { .js .steps.river::before { transform: scaleY(0); } .js .steps.river.in::before { transform: scaleY(1); } }
.js .steps.river li { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .steps.river.in li { opacity: 1; transform: none; }
.js .steps.river.in li:nth-child(2) { transition-delay: .25s; } .js .steps.river.in li:nth-child(3) { transition-delay: .5s; }
.js .steps.river.in li:nth-child(4) { transition-delay: .75s; } .js .steps.river.in li:nth-child(5) { transition-delay: 1s; }
/* Hero entrance */
.js .hero.dark .hero-copy > * { opacity: 0; transform: translateY(20px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.js .hero.dark .hero-copy > :nth-child(2) { animation-delay: .15s; }
.js .hero.dark .hero-copy > :nth-child(3) { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.build .browser { animation: float 7s ease-in-out 3.5s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  .ridges .mist, .build .browser { animation: none; }
  .js .reveal > *, .js .section-head, .js .steps.river li, .js .hero.dark .hero-copy > * { opacity: 1; transform: none; animation: none; transition: none; }
  .js .reveal .ic path, .js .reveal .ic rect, .js .reveal .ic circle { stroke-dashoffset: 0; transition: none; }
  .js .steps.river::before { transform: none; transition: none; }
  .card, .card::before, .btn, .mock { transition: none; }
}
.night .wrap { position: relative; z-index: 1; }

/* Photography from the Vitastaa style guide */
.hero-photo { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; z-index: 0;
  background: url("/img/mountains-1920.jpg") center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%); mask-image: linear-gradient(to bottom, transparent 0%, #000 45%); opacity: .9; }
@media (max-width: 960px) { .hero-photo { background-image: url("/img/mountains-960.jpg"); height: 40%; } }
.hero.photo .ridges .r1, .hero.photo .ridges .r2, .hero.photo .ridges .r3 { display: none; }
.hero.photo .ridges .mist { background: radial-gradient(closest-side, rgba(235,244,250,.28), transparent); }
.js .hero-photo { transform: scale(1.06); animation: settle 2.4s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes settle { to { transform: none; } }
.has-art .hero-art { position: absolute; right: 0; top: 0; height: 100%; width: min(58%, 820px); object-fit: cover; z-index: 0; opacity: .85;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40%); mask-image: linear-gradient(to right, transparent, #000 40%); }
@media (max-width: 860px) { .has-art .hero-art { width: 100%; opacity: .3; } }
.photo-card { margin: 24px 0 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 50px -35px rgba(11,31,46,.6); }
.photo-card img { width: 100%; height: auto; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.photo-card:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .js .hero-photo { transform: none; animation: none; } .photo-card img { transition: none; } }
.has-art .ridges .r1, .has-art .ridges .r2, .has-art .ridges .r3 { display: none; }
.hero.photo .build figcaption { text-shadow: 0 1px 8px rgba(5,20,30,.8); color: #DCE8F0; }
