/* ShepherdTech AB · shepherdtech.se
   Tokens come from the ShphTech Design Library (Figma). No cookies, no external requests. */

@font-face { font-family: "Lowdrag"; src: url("../fonts/Lowdrag-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Squil"; src: url("../fonts/Squil-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Squil"; src: url("../fonts/Squil-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --fangorn: #001410;      /* page */
  --void: #000505;         /* nav + footer */
  --shire: #02512d;        /* cards, CTA band, panel border */
  --shire-30: rgba(2, 81, 45, .3);
  --goblin: #00dd8d;       /* accent, buttons */
  --green-light: #357457;  /* terrain lines */
  --fire: #ff7430;         /* eyebrows, highlights */
  --sand: #ffeed6;         /* headings */
  --v100: #e6e6e6;         /* body text */
  --v200: #cccccc;         /* secondary text */
  --display: "Lowdrag", "Arial Black", Impact, sans-serif;
  --body: "Squil", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --blue: #06abfd;         /* Ice Knife Blue */
  --purple: #a271ea;       /* Wizard's Purple [Light]: base purple is too dark for text on Fangorn */
  --pink: #f3477d;         /* Fairie Pink */
  --yellow: #ffbe00;       /* Dragon's Eye Yellow */
  --red: #ff4d58;          /* Paladin Red */
  --gutter: clamp(20px, 5vw, 80px);
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--fangorn); color: var(--v100); font: 300 1rem/1.625 var(--body); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: var(--goblin); text-underline-offset: 3px; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--goblin); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

.wrap { width: min(100% - 2 * var(--gutter), 1400px); margin-inline: auto; }
.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; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--goblin); color: var(--void); padding: 10px 18px; border-radius: 999px; font-weight: 500; text-decoration: none; }
.skip:focus { top: 16px; }
.icon { width: 1em; height: 1em; flex: none; stroke-width: 1.75; }

/* ---------- type ---------- */
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--sand); margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.875rem, 1.25rem + 3vw, 4.75rem); line-height: 1.18; }
h2 { font-size: clamp(1.625rem, 1.2rem + 1.7vw, 3rem); line-height: 1.29; overflow-wrap: break-word; }
h3 { font: 500 1.125rem/1.55 var(--body); color: var(--sand); margin: 0; }
h2.h3 { font: 500 1.125rem/1.55 var(--body); text-transform: none; }
.eyebrow { font: 500 .875rem/1.7 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--fire); margin: 0; }
.lead { font-size: clamp(1rem, .95rem + .3vw, 1.125rem); line-height: 1.6; color: var(--v100); }
.muted { color: var(--v200); }
.hl { color: var(--fire); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(24px, 3vw, 40px); }

/* ---------- accents: one colour per service, set by class, read as --accent ----------
   --accent-bg (badge tints) alphas are matched by perceived brightness: darker hues get more */
.acc-green { --accent: var(--goblin); --accent-bg: rgba(0, 221, 141, .22); }
.acc-blue { --accent: var(--blue); --accent-bg: rgba(6, 171, 253, .25); }
.acc-red { --accent: var(--red); --accent-bg: rgba(255, 77, 88, .36); }
.acc-pink { --accent: var(--pink); --accent-bg: rgba(243, 71, 125, .38); }
.acc-purple { --accent: var(--purple); --accent-bg: rgba(139, 78, 229, .42); }
.acc-yellow { --accent: var(--yellow); --accent-bg: rgba(255, 190, 0, .14); }

/* ---------- buttons + links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 26px; border-radius: 999px; background: var(--goblin); color: var(--void); font: 500 1rem/1.2 var(--body); text-decoration: none; border: 0; cursor: pointer; transition: background .15s; }
.btn:hover { background: #3ff0b0; }
.btn .icon { width: 16px; height: 16px; }
.link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--sand); font-weight: 500; text-decoration: none; }
.link:hover { color: var(--goblin); }
.link .icon { width: 16px; height: 16px; }
.twk { width: 9px; height: 9px; align-self: flex-start; margin-top: 8px; color: var(--accent, var(--goblin)); }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* ---------- background ---------- */
.terrain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; }
/* size to the largest viewport, so the phone address bar showing/hiding mid-scroll doesn't resize (and rebuild) the canvas */
@supports (height: 100lvh) { .terrain { bottom: auto; height: 100lvh; } }
.pause { position: fixed; left: 16px; bottom: 16px; z-index: 30; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 5, 5, .7); color: var(--sand); border: 1px solid rgba(255, 238, 214, .35); cursor: pointer; }
.pause .icon { width: 18px; height: 18px; }
.pause .play { display: none; }
.pause[aria-pressed="true"] .play { display: block; }
.pause[aria-pressed="true"] .pz { display: none; }

/* ---------- header + nav ---------- */
.site-header { background: var(--void); position: relative; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 70px; position: relative; }
.logo { display: inline-flex; min-height: 44px; align-items: center; }
.logo img { height: 30px; width: auto; }
.nav { display: none; align-items: center; gap: 36px; }
.nav-link, .nav-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; background: none; border: 0; color: var(--sand); font: 500 1rem/1 var(--body); text-decoration: none; cursor: pointer; }
.nav-link:hover, .nav-btn:hover, .nav-link[aria-current="page"] { color: var(--goblin); }
.nav-btn .icon { width: 16px; height: 16px; transition: transform .15s; }
.nav-btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.menu-btn { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px; background: none; border: 0; color: var(--sand); cursor: pointer; }
.menu-btn .icon { width: 24px; height: 24px; }
@media (min-width: 900px) {
  .site-header .wrap { min-height: 108px; }
  .logo img { height: 56px; }
  .nav { display: flex; }
  .menu-btn { display: none; }
}

.dropdown { position: absolute; right: 0; top: calc(100% - 8px); width: min(480px, 100%); background: var(--fangorn); border: 1px solid var(--shire); border-radius: 16px; padding: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); display: grid; gap: 4px; }
.dropdown[hidden] { display: none; }
.menu-item { display: flex; gap: 16px; align-items: center; padding: 12px; border-radius: 12px; text-decoration: none; color: var(--v200); min-height: 44px; }
/* "Other ways we can help" cards match the other cards (dark, 20px corners, accent top line) */
.grid > .menu-item { background: var(--fangorn); border: 1px solid var(--shire); border-top: 3px solid var(--accent, var(--shire)); border-radius: var(--radius); padding: 20px; }
.menu-item:hover { background: rgba(2, 81, 45, .45); }
.menu-item[aria-current="page"] { background: var(--shire-30); box-shadow: inset 0 0 0 1px var(--accent, var(--goblin)); }
.menu-item b { display: block; color: var(--sand); font-weight: 500; }
.menu-item span { display: block; font-size: .875rem; line-height: 1.6; }
.menu-item .plate, .plate { flex: none; width: 56px; height: 56px; border-radius: 10px; background: var(--fangorn); border: 1px solid var(--accent, var(--shire)); display: grid; place-items: center; }
.plate img { width: 40px; height: 40px; object-fit: contain; }

.mobile-menu { position: fixed; inset: 0; z-index: 60; background: var(--fangorn); overflow-y: auto; overscroll-behavior: contain; }
.mobile-menu[hidden] { display: none; }
.mobile-menu .bar { background: var(--void); }
.mobile-menu .bar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 70px; }
.mobile-menu .body { padding-block: 24px 40px; display: grid; gap: 8px; }
.mobile-menu .menu-item { padding-inline: 4px; }
.mobile-menu hr { border: 0; border-top: 1px solid var(--shire); margin: 8px 0; width: 100%; }
.mobile-menu .btn { width: 100%; margin-top: 8px; }
.mobile-menu .mail { display: block; min-height: 44px; padding-top: 10px; text-align: center; color: var(--v200); }
body.menu-open { overflow: hidden; }

/* ---------- bottom line (library divider under each hero) ---------- */
.bottomline { display: flex; align-items: stretch; height: 42px; overflow: hidden; border-radius: 2px; }
.bottomline .dice { flex: 1; background-color: var(--void); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='42'%3E%3Crect x='7' y='15' width='12' height='12' transform='rotate(45 13 21)' fill='%2302512d'/%3E%3C/svg%3E"); background-repeat: repeat-x; }
.bottomline .dice:first-child { background-position: right center; }
.bottomline .tag { display: flex; align-items: center; justify-content: center; padding: 0 32px; background: var(--shire); color: var(--sand); font: 500 .75rem/1 var(--body); letter-spacing: .2em; white-space: nowrap; }
.bottomline .tag .short { display: none; }
@media (max-width: 899px) {
  .bottomline .dice { display: none; }
  .bottomline .tag { flex: 1; }
  .bottomline .tag .long { display: none; }
  .bottomline .tag .short { display: inline; }
}

/* ---------- layout blocks ---------- */
.section { padding-block: clamp(48px, 6vw, 96px); }
.panel { background: var(--shire-30); border: 1px solid var(--shire); border-radius: 32px; padding: clamp(24px, 5vw, 72px); }
.panel + .panel { margin-top: clamp(16px, 2vw, 24px); }
.plain { list-style: none; padding: 0; margin: 0; }
.nw { white-space: nowrap; }
.stack { display: grid; gap: clamp(24px, 3vw, 40px); }
.stack-sm { display: grid; gap: 12px; }
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.c2, .grid.c4, .grid.c5, .grid.c3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.c3 { grid-template-columns: repeat(3, 1fr); } .grid.c5 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid.c4 { grid-template-columns: repeat(4, 1fr); } .grid.c5 { grid-template-columns: repeat(5, 1fr); } }

.card { background: var(--fangorn); border: 1px solid var(--shire); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; border-top: 3px solid var(--accent, var(--shire)); }
.card p { color: var(--v200); }
.badge { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-bg, var(--shire)); color: var(--accent, var(--goblin)); display: grid; place-items: center; flex: none; }
.badge .icon { width: 22px; height: 22px; }

/* hero */
.hero { padding-block: clamp(40px, 7vw, 112px) clamp(32px, 5vw, 72px); }
.hero-text { display: grid; gap: clamp(16px, 2vw, 24px); max-width: 680px; }
.hero-row { display: grid; gap: 40px; align-items: center; }
.hero-art { position: relative; justify-self: center; width: min(100%, 420px); aspect-ratio: 420 / 380; display: grid; place-items: center; }
.hero-art > img:first-child { width: 82%; height: 90%; object-fit: contain; }
.hero-art .tw { position: absolute; width: 5.7%; height: auto; aspect-ratio: 1; }
.hero-art .t2, .hero-art .t4 { color: var(--accent, var(--sand)); }
.hero-art .t1 { left: 6%; top: 12%; width: 9%; }
.hero-art .t2 { left: 90%; top: 8%; }
.hero-art .t3 { left: 95%; top: 78%; width: 3.8%; }
.hero-art .t4 { left: 4%; top: 82%; }
@media (min-width: 1000px) { .hero-row { grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); } .hero-row.solo { grid-template-columns: 1fr; } }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 8px; font: 500 .875rem/1.7 var(--body); color: var(--v200); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--v200); }
.breadcrumb a { color: var(--v200); text-decoration: none; }
.breadcrumb a:hover { color: var(--goblin); }
.breadcrumb [aria-current] { color: var(--sand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--accent, var(--green-light)); border-radius: 999px; padding: 6px 14px; font-size: .875rem; color: var(--sand); }

/* twinkles */
.tw { width: 26px; height: 24px; pointer-events: none; color: var(--accent, var(--goblin)); }
.tw.s { width: 11px; height: 10px; color: var(--accent, var(--sand)); }

/* trigger cards */
.tcard .tag { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: color-mix(in srgb, var(--accent, var(--goblin)) 14%, var(--void)); color: var(--accent, var(--goblin)); border-radius: 8px; padding: 4px 10px 4px 4px; font: 500 .875rem/1.7 var(--body); }
.tcard .tag i { font-style: normal; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: color-mix(in srgb, var(--accent, var(--goblin)) 26%, var(--void)); }
.tcard h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.125rem; line-height: 1.45; }
.tcard .link { margin-top: auto; color: var(--accent, var(--goblin)); }

/* service cards */
.scard { background: var(--shire); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--v100); transition: transform .15s; }
.scard:hover { transform: translateY(-2px); }
.scard:hover h3 { color: var(--goblin); }
.art { position: relative; height: 136px; border-radius: 14px; background: var(--fangorn); box-shadow: inset 0 -3px 0 var(--accent, transparent); display: grid; place-items: center; }
.art > img:first-child { width: 97px; height: 84px; object-fit: contain; }
/* ponytail: stars pinned to the plate corners so they clear the art at any card width */
.art .tw { position: absolute; left: 10px; top: 8px; }
.art .tw.s { left: auto; right: 12px; top: 12px; }
.art .tw.s + .tw.s { top: auto; bottom: 12px; right: 14px; }
.scard p { color: var(--v100); }

/* steps */
/* How it works: notched step cards with accent stars, joined by dashed lines that blend from one step colour to the next.
   Desktop: one row, joined at the top corners. Below 1260px: a stack (zigzag on tablets), joined bottom corner to top corner */
.map { overflow-x: clip; }
.defs { position: absolute; }
.stops { display: grid; gap: 72px; }
.stop { position: relative; }
.stop:nth-child(1) { --to: var(--pink); }
.stop:nth-child(2) { --to: var(--yellow); }
.stop:nth-child(3) { --to: var(--purple); }
.conn { position: absolute; top: 100%; left: 0; width: 100%; height: 72px; overflow: visible; }
.conn path { fill: none; stroke-width: 2; stroke-dasharray: 8 8; }
@media (min-width: 640px) and (max-width: 1259px) {
  .stop { width: 60%; }
  .stop:nth-child(even) { justify-self: end; }
  .stop:nth-child(odd) .conn { left: 66.667%; width: 33.333%; }   /* to the next card's left edge at 40% */
  .stop:nth-child(even) .conn { left: -66.667%; width: 166.667%; } /* back to the left edge at 0 */
}
.sc { background: #001410; border: 2px solid var(--accent); padding: 40px 28px 32px; min-height: 200px; display: grid; gap: 8px; align-content: center; text-align: center;
  mask: radial-gradient(circle at 0 0, #0000 40px, #000 40.5px), radial-gradient(circle at 100% 100%, #0000 40px, #000 40.5px); mask-composite: intersect; }
.stop:last-child .sc { mask: radial-gradient(circle at 0 0, #0000 40px, #000 40.5px); }
.stop:first-child .sc { mask: radial-gradient(circle at 100% 100%, #0000 40px, #000 40.5px); }
.sc .k { margin: 0; font: 500 .875rem/1.4 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.sc h3 { font: 1.5rem/1.2 var(--display); text-transform: uppercase; }
.sc p:last-child { margin: 0; color: var(--v200); text-wrap: balance; }
.ring { position: absolute; width: 84px; height: 84px; border: 2px solid var(--accent); border-radius: 50%; pointer-events: none; }
.ring.tl { left: -42px; top: -42px; clip-path: inset(50% 0 0 50%); }
.ring.br { right: -42px; bottom: -42px; clip-path: inset(0 50% 50% 0); }
.st-tl, .st-br { position: absolute; width: 32px; height: 32px; color: var(--accent); }
.st-tl { left: -16px; top: -16px; }
.st-br { right: -16px; bottom: -16px; }
/* dashes flow toward the next step; stop with the pause button and for reduced motion */
.conn path { animation: march 1.2s linear infinite; }
@keyframes march { to { stroke-dashoffset: -16; } }
@keyframes march-x { to { mask-position: 16px 0; } }
.paused .conn path, .paused .stop::after, .scrolling .conn path, .scrolling .stop::after { animation-play-state: paused; }
/* perf: each connector on its own small layer, so a dash step repaints only the connector, not the page around it */
.conn, .stop::after { will-change: transform; contain: strict; }
@media (prefers-reduced-motion: reduce) { .conn path, .stop::after { animation: none; } }
@media (min-width: 1260px) {
  .stops { grid-template-columns: repeat(4, 1fr); gap: 64px; }
  .sc { height: 100%; padding: 44px 24px 32px; mask: radial-gradient(circle at 0 0, #0000 40px, #000 40.5px), radial-gradient(circle at 100% 0, #0000 40px, #000 40.5px); mask-composite: intersect; }
  .sc h3 { font-size: 1.25rem; }
  .stop:first-child .sc { mask: radial-gradient(circle at 100% 0, #0000 40px, #000 40.5px); }
  .ring.br { top: -42px; bottom: auto; clip-path: inset(50% 50% 0 0); }
  .st-br { top: -16px; bottom: auto; }
  .conn { display: none; }
  /* top-edge connector across the gap, between this card's star and the next card's */
  .stop:not(:last-child)::after { content: ''; position: absolute; top: -1px; left: calc(100% + 16px); width: 32px; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--to)); mask: repeating-linear-gradient(90deg, #000 0 8px, #0000 8px 16px); animation: march-x 1.2s linear infinite; }
}

/* why points */
.why { display: grid; gap: 14px; align-content: start; }
.why p { color: var(--v200); }
@media (max-width: 899px) {
  .why { grid-template-columns: 48px 1fr; column-gap: 16px; row-gap: 6px; }
  .why .badge { grid-row: span 2; }
  .why h3 { padding-top: 10px; }
}

/* outcome cards + notes */
.ocard { gap: 14px; }
.notes { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 900px) { .notes { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.note { background: var(--shire); border-left: 3px solid var(--accent, var(--goblin)); border-radius: 16px; padding: 20px 24px; display: grid; gap: 4px; align-content: start; }
.note h3 { font-size: 1rem; }

/* FAQ */
.faq { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.faq-intro { display: grid; gap: 12px; align-content: start; }
.faq-list { border-top: 1px solid var(--shire); }
.faq details { border-bottom: 1px solid var(--shire); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; padding: 14px 0; cursor: pointer; color: var(--sand); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--accent, var(--goblin)); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--v200); max-width: 62ch; }

/* CTA band */
.cta { position: relative; overflow: hidden; isolation: isolate; background: var(--shire); border-radius: 32px; padding: clamp(32px, 5vw, 72px) clamp(32px, 5vw, 72px) 0; display: grid; gap: 32px 40px; }
/* design-library hero scene sits on the band's bottom edge: under the text on phones, beside it from 900px */
.cta-art { display: block; width: min(100%, 460px); height: auto; justify-self: end; align-self: end; }
.cta .ctas { margin-top: 12px; }
@media (min-width: 900px) { .cta { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); } .cta .txt { align-self: center; padding-bottom: clamp(32px, 5vw, 72px); } }
.cta canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.cta .txt { display: grid; gap: 12px; max-width: 640px; }
.cta p { color: var(--v100); }
.cta a:not(.btn) { color: var(--sand); }
@media (max-width: 639px) { .cta .btn { width: 100%; } }

/* about */
.founder .avatar { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; background: var(--shire); box-shadow: 0 0 0 2px var(--fangorn), 0 0 0 4px var(--accent, var(--goblin)); margin-bottom: 4px; }
.founder .role { font: 500 .875rem/1.7 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--fire); }
.founder .link { color: var(--goblin); margin-top: auto; }
.details { border-top: 1px solid var(--shire); padding-top: 24px; display: grid; gap: 6px; }

/* prose (privacy) */
.prose { max-width: 760px; display: grid; gap: 36px; }
.prose section { display: grid; gap: 12px; }
.prose ul { padding-left: 1.25em; display: grid; gap: 6px; }

/* footer */
.site-footer { background: var(--void); margin-top: clamp(48px, 6vw, 96px); padding-block: 56px 32px; font-size: .875rem; line-height: 1.7; }
.site-footer .top { display: grid; gap: 32px; }
@media (min-width: 900px) { .site-footer .top { grid-template-columns: minmax(0, 1fr) auto auto; gap: 64px; } }
.site-footer .brand { display: grid; gap: 16px; max-width: 520px; color: var(--v200); }
.site-footer .brand img { height: 30px; width: auto; }
.site-footer h2 { font: 500 1rem/1.5 var(--body); text-transform: none; margin-bottom: 8px; }
.site-footer ul { list-style: none; display: grid; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 32px; color: var(--v200); text-decoration: none; }
.site-footer li a:hover { color: var(--goblin); }
.site-footer .bottom { border-top: 1px solid var(--shire); margin-top: 40px; padding-top: 20px; color: var(--v200); }

/* page transitions: cross-fade between pages; a service card's illustration glides into the next page's header picture.
   ponytail: browsers without cross-document view transitions (Firefox) just load the page normally */
@view-transition { navigation: auto; }
.scard.acc-green .art > img, body.acc-green .hero-art > img { view-transition-name: art-managed-it; }
.scard.acc-blue .art > img, body.acc-blue .hero-art > img { view-transition-name: art-it-infrastructure; }
.scard.acc-red .art > img, body.acc-red .hero-art > img { view-transition-name: art-cybersecurity; }
.scard.acc-pink .art > img, body.acc-pink .hero-art > img { view-transition-name: art-design; }
.scard.acc-purple .art > img, body.acc-purple .hero-art > img { view-transition-name: art-consulting; }
::view-transition-group(*) { animation-duration: .4s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
/* fallback fade-in where native transitions aren't supported (class set by js/vt.js) */
html.vt-in body { animation: page-in .25s ease-out; }
@keyframes page-in { from { opacity: 0; } }

/* hover touches: small, quick, pointer devices only (the reduced-motion rule at the top turns all transitions off) */
.scard, .grid > .menu-item { transition: transform .2s cubic-bezier(.2, .8, .2, 1), background-color .2s; }
.btn { transition: background-color .15s, transform .1s; }
.btn .icon, .link .icon, .twk, .art .tw { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.art .tw.s { transition-delay: .04s; }
.art .tw.s + .tw.s { transition-delay: .08s; }
.btn:active { transform: scale(.97); }
@media (hover: hover) {
  .grid > .menu-item:hover { transform: translateY(-2px); }
  .scard:hover .art .tw { transform: rotate(90deg) scale(1.25); }
  .btn:hover .icon { transform: translate(2px, -2px); }
  .link:hover .icon { transform: translateX(3px); }
  .link:hover .twk { transform: rotate(90deg) scale(1.2); }
}

/* FAQ answers slide open and closed (Chrome/Edge; other browsers open instantly as before) */
.faq details { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow-y: clip; transition: block-size .3s cubic-bezier(.2, .8, .2, 1), content-visibility .3s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* Services dropdown and mobile menu fade in and out instead of popping */
.dropdown, .mobile-menu { transition: opacity .18s ease, translate .18s ease, display .18s allow-discrete; }
.dropdown[hidden] { opacity: 0; translate: 0 -6px; }
.mobile-menu[hidden] { opacity: 0; translate: 0 8px; }
@starting-style { .dropdown:not([hidden]) { opacity: 0; translate: 0 -6px; } .mobile-menu:not([hidden]) { opacity: 0; translate: 0 8px; } }
