@font-face {
  font-family: Inter;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6f8f9;
  --white: #fff;
  --ink: #14141d;
  --muted: #555560;
  --line: #dedee4;
  --violet: #582cc7;
  --violet-soft: #f0ebfc;
  --navy: #0f1021;
  --night-text: #b9b9d0;
  --mint: #18d7c5;
  --wrap: 1240px;
  --gutter: clamp(20px, 5.15vw, 84px);
  --radius: 18px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.6; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 5.4vw, 5.3rem); letter-spacing: -.068em; font-weight: 720; }
h2 { font-size: clamp(2rem, 3.7vw, 3.55rem); letter-spacing: -.055em; font-weight: 690; }
h3 { font-size: 1.24rem; letter-spacing: -.022em; }
h4 { font-size: 1rem; }
p { color: var(--muted); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid #8651ed; outline-offset: 4px; }
#main:focus { outline: none; }
::selection { color: var(--navy); background: #dcd0ff; }
.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.icon { display: inline-block; flex: 0 0 auto; width: 1.25rem; height: 1.25rem; vertical-align: middle; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 10; top: 10px; left: 10px; background: var(--white); padding: .7rem 1rem; color: var(--violet); }
.site-header { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: center; gap: clamp(1rem, 1.45vw, 1.5rem); }
.brand { display: inline-flex; align-items: center; width: fit-content; }
.brand img { width: clamp(196px, 16vw, 220px); }
.primary-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(19px, calc(4vw - 19px), 38px); }
.primary-nav a:not(.button) { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-weight: 640; font-size: .76rem; white-space: nowrap; }
.primary-nav a::after { content: ""; position: absolute; height: 2px; inset: auto 0 4px; background: var(--violet); transform: scaleX(0); transform-origin: left; transition: transform var(--interactive), background-color var(--interactive); }
.primary-nav a:not(.button):hover, .primary-nav a[aria-current="page"] { color: var(--ink); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-action { justify-self: end; }
.header-action .button { min-height: 43px; padding: .62rem .9rem; }
.menu-toggle { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; width: fit-content; min-height: 51px; padding: .75rem 1.15rem; border: 1px solid transparent; border-radius: 8px; font-size: .9rem; font-weight: 650; cursor: pointer; transition: background-color var(--interactive), border-color var(--interactive), color var(--interactive), box-shadow var(--interactive), translate var(--interactive); }
.button .icon { width: 1rem; height: 1rem; }
.button--primary { color: #fff; background: var(--violet); }
.button--secondary { border-color: #cdcdd5; color: var(--ink); background: transparent; }
.button:disabled { opacity: .62; cursor: default; }
.text-link { font-weight: 620; }
.eyebrow { display: flex; align-items: center; gap: .65rem; font-size: .72rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; color: var(--violet); }
.eyebrow span { width: .55rem; height: .55rem; flex: 0 0 .55rem; background: var(--violet); border-radius: 2px; }
.hero { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(23px, 4.5vw, 72px); align-items: center; padding-block: clamp(58px, 6.4vw, 105px); }
.hero h1 { margin-top: 1.12rem; font-size: clamp(2.7rem, 4.28vw, 4.02rem); text-wrap: wrap; }
.hero h1 em { display: block; font-style: normal; color: var(--violet); }
.lede { max-width: 57ch; font-size: clamp(1.01rem, 1.4vw, 1.17rem); line-height: 1.63; }
.hero .lede { margin-top: 1.35rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.65rem; }
.hero-note { display: flex; align-items: center; gap: .55rem; margin-top: 1.4rem; font-size: .82rem; color: var(--muted); }
.hero-note .icon { width: 1.05rem; height: 1.05rem; color: var(--violet); }
.hero-visual { overflow: hidden; border-radius: 22px; background: var(--navy); isolation: isolate; }
.hero-visual img { width: 100%; }
.section { padding-block: clamp(58px, 7vw, 105px); }
.section--white { background: var(--white); border-block: 1px solid var(--line); }
.section--ink { background: var(--navy); color: white; }
.section--ink p, .site-footer p { color: var(--night-text); }
.section--ink .button--secondary { margin-top: 1.5rem; color: #fff; border-color: #696884; }
.section-intro { max-width: 680px; }
.section-intro p { margin-top: 1rem; max-width: 55ch; }
.section-bar { display: flex; align-items: end; justify-content: space-between; gap: 1.35rem; }
.section-bar .button { flex-shrink: 0; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(24px, 4.1vw, 49px); }
.service-card { position: relative; min-width: 0; padding: clamp(20px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: 12px; background: #fbfcfc; transition: background .2s, border-color .2s; }
.service-card:focus-within, .service-card:hover { background: #f8f5ff; border-color: #bb9ff4; }
.service-card > .icon, .value-grid article > .icon, .service-group header .icon { width: 2.5rem; height: 2.5rem; padding: .55rem; border-radius: 8px; background: var(--violet-soft); color: var(--violet); }
.service-card h3 { margin-top: 1.2rem; }
.service-card h3 a { display: flex; justify-content: space-between; align-items: center; gap: .45rem; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; }
.service-card h3 .icon, .project-copy h3 .icon { width: .94rem; height: .94rem; color: var(--violet); transition: transform .2s; }
.service-card:hover h3 .icon, .project-card:hover h3 .icon { transform: translate(2px,-2px); }
.service-card p, .value-grid p, .timeline p, .problem-list p { margin-top: .6rem; font-size: .95rem; }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(26px, 8.5vw, 132px); align-items: start; }
.problem-list { border-top: 1px solid #454560; }
.problem-list article { border-bottom: 1px solid #454560; padding-block: 1.1rem; }
.project-card { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); overflow: hidden; }
.project-figure { position: relative; overflow: hidden; border-radius: 13px; background: #edf2f4; }
.project-card .project-figure { border-radius: 0; }
.project-figure img { width: 100%; aspect-ratio: 12 / 7; object-fit: contain; transition: scale 400ms var(--motion-ease); }
.project-figure figcaption { position: relative; padding: .5rem .8rem; color: var(--muted); background: #edf2f4; font-size: .76rem; text-align: end; }
.project-copy { min-width: 0; padding: clamp(20px, 3vw, 34px); }
.project-copy .category { color: var(--violet); font-size: .82rem; font-weight: 650; margin-bottom: .45rem; }
.project-copy h3 { font-size: clamp(1.36rem, 2.5vw, 2rem); }
.project-copy h3 a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.project-copy a:hover { color: var(--violet); }
.project-copy h3 + p, .project-copy p + p { margin-top: .68rem; }
.project-copy .project-status { color: var(--teal-ink); font-size: .83rem; font-weight: 680; }
.project-copy h4 { margin-top: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .48rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.tags li {
  padding: .4rem .72rem;
  border: 1px solid #c5dfdb;
  border-radius: 999px;
  background-color: #edf8f6;
  color: #184842;
  font-size: .81rem;
  line-height: 1.35;
  font-weight: 590;
  cursor: default;
  transition: background-color var(--interactive), border-color var(--interactive), color var(--interactive), transform var(--interactive);
}
.tags--technology li { background-color: #f1f4f7; border-color: #d7e0e6; color: #2f3d51; }
.project-copy h4 + .tags { margin-top: .6rem; }
@media (hover: hover) and (pointer: fine) {
  .tags li:hover { background-color: var(--teal); border-color: var(--teal); color: var(--ink); transform: translateY(-1px); }
}
.value-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.3rem; }
.value-grid article { border-top: 1px solid var(--line); padding-block: 1rem; }
.value-grid h3 { margin-top: .7rem; }
.timeline { padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; }
.timeline li { position: relative; padding: 1.18rem 1rem 0 0; border-top: 1px solid #c9c8d4; }
.timeline li::before { position: absolute; top: -4px; left: 0; content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
.timeline li span { display: block; color: var(--violet); margin-bottom: .42rem; font-variant-numeric: tabular-nums; font-weight: 700; font-size: .76rem; }
.technology-list > div { display: grid; grid-template-columns: 110px 1fr; align-items: baseline; gap: .75rem; border-bottom: 1px solid var(--line); padding-block: .75rem; }
.technology-list > div:first-child { border-top: 1px solid var(--line); }
.technology-list h3 { font-size: .93rem; }
.technology-list .tags { margin: 0; }
.cta { display: flex; gap: 2rem; justify-content: space-between; align-items: center; min-height: 234px; padding: clamp(26px, 5vw, 66px); background: var(--navy); border-radius: var(--radius); color: #fff; }
.cta h2 { max-width: 18ch; font-size: clamp(1.9rem, 3.5vw, 3rem); }
.cta p { max-width: 57ch; margin-top: .75rem; color: var(--night-text); }
.cta .button { flex-shrink: 0; background: #e3d8ff; color: #251445; }
.site-footer { padding: clamp(30px, 6vw, 68px) 0 0; color: #f7f7ff; background: var(--navy); }
.footer-top { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1.5rem; }
.footer-top p { max-width: 32ch; margin-top: .65rem; font-size: .92rem; }
.footer-top nav, .footer-contact { display: flex; flex-direction: column; align-items: start; gap: .3rem; }
.footer-top a:not(.brand) { display: inline-flex; min-height: 32px; align-items: center; gap: .4rem; padding-block: .15rem; font-size: .9rem; }
.site-footer a:hover { color: #e4d7ff; text-decoration: underline; text-underline-offset: .25em; }
.footer-bottom { border-top: 1px solid #41415a; margin-top: 2rem; padding-block: .8rem; color: var(--night-text); }
.page-hero { padding-block: clamp(49px, 7.5vw, 115px); }
.page-hero h1 { max-width: 17ch; margin-top: 1rem; }
.page-hero .lede { margin-top: 1.2rem; }
.service-layout { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: clamp(25px, 6vw, 85px); padding-bottom: 1rem; }
.service-index nav { position: sticky; top: 105px; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.service-index h2 { font-size: 1rem; letter-spacing: 0; margin: 0 .35rem .55rem; }
.service-index a { display: flex; align-items: center; gap: .55rem; min-height: 44px; border-radius: 7px; padding: .35rem; font-size: .88rem; line-height: 1.35; }
.service-index a:hover { background: var(--violet-soft); color: var(--violet); }
.service-index .icon { color: var(--violet); }
.service-group { margin-bottom: clamp(32px, 6vw, 70px); }
.service-group:last-child { margin-bottom: 0; }
.service-group header { padding-bottom: 1rem; }
.service-group header h2 { margin-top: .7rem; font-size: clamp(1.85rem, 3vw, 2.75rem); }
.service-group header p { margin-top: .65rem; }
.service-row { border-top: 1px solid var(--line); padding-block: 1.15rem .65rem; }
.service-row:target { border-top: 2px solid var(--violet); }
.service-row p { margin-top: .5rem; }
.service-row details { margin-top: .25rem; }
.service-row summary { cursor: pointer; min-height: 44px; display: list-item; padding-block: .6rem; width: fit-content; color: var(--violet); font-weight: 640; font-size: .9rem; }
.service-row ul { padding-left: 1.27rem; margin: .15rem 0 .7rem; columns: 2; column-gap: 1.3rem; }
.service-row li { break-inside: avoid; margin-bottom: .2rem; color: var(--muted); }
.project-feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(18px, 5vw, 60px); }
.project-feature + .project-feature { border-top: 1px solid var(--line); padding-top: clamp(24px, 4vw, 45px); margin-top: clamp(24px, 4vw, 45px); }
.project-feature .project-figure { border: 1px solid var(--line); }
.project-feature .project-copy { padding: 0; }
.statement-list article { border-top: 1px solid var(--line); padding-block: 1.2rem; }
.statement-list article p { margin-top: .55rem; }
.values-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem 1rem; list-style: none; padding: 0; margin: 0; }
.values-list li { display: flex; align-items: center; gap: .55rem; border-bottom: 1px solid var(--line); padding-block: .74rem; font-weight: 610; }
.values-list .icon { color: var(--violet); }
.inline-action { align-self: center; }
.contact-section { padding-top: clamp(28px, 4vw, 54px); }
.contact-layout { display: grid; grid-template-columns: .66fr 1.34fr; gap: clamp(22px, 5.5vw, 78px); align-items: start; }
.contact-aside { padding-top: .5rem; }
.contact-aside h2, .form-panel h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.contact-aside p, .form-panel > p { margin-top: .6rem; }
.contact-email { display: inline-flex; align-items: center; min-height: 44px; gap: .45rem; color: var(--violet); font-weight: 660; margin-top: .55rem; overflow-wrap: anywhere; }
.contact-email:hover { text-decoration: underline; text-underline-offset: .25em; }
.form-panel { padding: clamp(17px, 3vw, 38px); border: 1px solid var(--line); border-radius: var(--radius); background: #fbfcfc; min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.1rem; }
.form-grid label { min-width: 0; font-size: .91rem; font-weight: 650; }
.form-grid label span, .form-grid small { color: var(--muted); font-weight: 450; }
.form-grid :is(input, select, textarea) { display: block; width: 100%; min-width: 0; min-height: 47px; margin-top: .26rem; padding: .65rem .64rem; border: 1px solid #bcbcc8; border-radius: 7px; color: var(--ink); background: #fff; font-size: 1rem; font-weight: 450; }
.form-grid textarea { resize: vertical; min-height: 114px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid small { display: block; margin-top: .4rem; font-size: .8rem; }
.form-bottom { display: flex; align-items: center; gap: 1rem; justify-content: space-between; margin-top: 1.1rem; }
.form-bottom p { font-size: .82rem; }
.form-bottom button { flex-shrink: 0; }
.feedback { margin-top: 1rem; padding: .7rem .8rem; border-radius: 7px; background: #f1ebfc; color: #392267; }
.feedback--error { background: #fce9e8; color: #802b26; }
.feedback--success { background: #e5f6ef; color: #115637; }
.feedback ul { margin: .3rem 0 0; }
@media (max-width: 950px) {
  :root { --mobile-header-size: 67px; }
  html { scroll-padding-top: calc(var(--mobile-header-size) + 18px); }
  .site-header { position: relative; }
  .menu-ready .site-header { position: sticky; }
  .header-inner { min-height: calc(var(--mobile-header-size) - 1px); grid-template-columns: 1fr auto; gap: 0 .8rem; }
  .brand img { width: clamp(174px, 42vw, 196px); }
  .header-action { display: none; }
  .primary-nav { grid-column: 1 / -1; justify-content: stretch; gap: 0 .95rem; padding-bottom: .45rem; }
  .menu-ready .menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: .42rem; padding: .4rem .58rem; border: 0; border-radius: 6px; color: var(--ink); background: transparent; font-weight: 650; cursor: pointer; }
  .menu-ready .primary-nav { display: none; }
  .service-index nav { top: 18px; }
  .menu-ready .service-index nav { top: calc(var(--mobile-header-size) + 18px); }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 29px; }
  .hero h1 { max-width: 17ch; font-size: clamp(2.43rem, 8.1vw, 4.3rem); }
  .hero-visual { max-width: 540px; }
  .split, .project-feature, .contact-layout, .service-layout { grid-template-columns: 1fr; }
  .service-index nav { position: static; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-bar { align-items: start; flex-direction: column; }
  .cta { flex-direction: column; align-items: start; }
  .timeline { grid-template-columns: 1fr; margin-left: 4px; }
  .timeline li { border-top: 0; border-left: 1px solid #c9c8d4; padding: 0 0 1.25rem 1rem; }
  .timeline li::before { left: -4px; top: .36rem; }
  .timeline li:last-child { padding-bottom: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 490px) {
  .service-grid, .form-grid { grid-template-columns: 1fr; }
  .form-bottom { flex-direction: column; align-items: flex-start; }
  .service-row ul { columns: 1; }
  .hero .button { width: 100%; justify-content: space-between; }
  .hero-visual { border-radius: 13px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-top > div:first-child { grid-column: auto; }
  .footer-top nav { flex-flow: row wrap; gap: .1rem 1rem; }
  .technology-list > div { grid-template-columns: 1fr; gap: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Interactive states use teal while the primary brand colour remains violet. */
:root {
  --teal: #18d7c5;
  --teal-ink: #075e56;
  --teal-soft: #e6f8f5;
  --motion-ease: cubic-bezier(.2, .7, .25, 1);
  --interactive: 260ms var(--motion-ease);
}
.primary-nav a:not(.button), .footer-top nav a { text-transform: uppercase; letter-spacing: .055em; }
.primary-nav a:not(.button) { transition: color var(--interactive); }
.footer-top nav a { font-size: .8rem; font-weight: 600; }
.primary-nav a:not(.button):hover { color: var(--teal-ink); }
.primary-nav a:hover::after { background: var(--teal); }
.button .icon { transition: transform var(--interactive); }
.button--primary:not(:disabled):hover { color: var(--ink); background-color: var(--teal); border-color: var(--teal); box-shadow: 0 5px 14px #123d3a20; translate: 0 -2px; }
.button--secondary:hover { color: var(--teal-ink); background-color: var(--teal-soft); border-color: var(--teal); }
.section--ink .button--secondary:hover { color: #fff; background-color: #183a42; border-color: var(--teal); }
.button--primary:not(:disabled):hover .icon { transform: translate(2px, -2px); }
.button--secondary:hover .icon { transform: translateX(3px); }
.text-link:hover, .site-footer a:hover, .contact-email:hover { text-decoration-color: var(--teal); }
.site-footer a:hover { color: #a1f5eb; }
.service-card, .project-card { transition: background-color var(--interactive), border-color var(--interactive), box-shadow var(--interactive), translate var(--interactive); }
.service-card:focus-within, .service-card:hover { background: var(--teal-soft); border-color: var(--teal); }
.service-card:hover h3 .icon, .project-card:hover h3 .icon { color: var(--teal-ink); }
.project-card:hover, .project-card:focus-within { border-color: var(--teal); }
.project-copy a:hover { color: var(--teal-ink); }
.project-copy .category, .timeline .stage-label, .technology-list h3,
.problem-list h3, .service-row h3 { display: flex; align-items: center; gap: .55rem; }
.category .icon, .stage-label .icon, .technology-list .icon,
.problem-list h3 .icon, .service-row h3 .icon { width: 1.05rem; height: 1.05rem; }
.section--ink .problem-list h3 .icon { color: #83e8dc; }
.service-row h3 .icon, .technology-list h3 .icon { color: var(--violet); }
@media (hover: hover) and (pointer: fine) {
  .service-card:hover { translate: 0 -3px; box-shadow: 0 10px 24px #1219230d; }
  .project-feature .project-figure:hover img, .project-card:hover .project-figure img { scale: 1.018; }
  .project-card:hover { translate: 0 -3px; box-shadow: 0 10px 26px #1219230e; }
}
@media (min-width: 761px) {
  .project-feature:nth-of-type(even) .project-figure { order: 1; }
}
html:has(.service-layout) { scroll-padding-top: var(--service-scroll-offset, 110px); }
.service-index { min-width: 0; }
.service-index a {
  border-inline-start: 3px solid transparent;
  padding-inline: .55rem .35rem;
  transition: border-color .2s, background .2s, color .2s;
}
.service-index a:hover, .service-index a[aria-current="location"] {
  background: var(--teal-soft);
  color: var(--teal-ink);
}
.service-index a[aria-current="location"] { border-inline-start-color: var(--teal); font-weight: 680; }
.service-index a:is(:hover,[aria-current="location"]) .icon { color: var(--teal-ink); }
.service-index .short-label { display: none; }
.service-row:target { border-top-color: var(--teal-ink); }
.service-row summary:hover { color: var(--teal-ink); }
.disclosure > summary {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--violet);
  list-style: none;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary .icon { width: 1rem; height: 1rem; transition: transform .22s var(--motion-ease); }
.disclosure[open] > summary .icon { transform: rotate(180deg); }
@supports (interpolate-size: allow-keywords) {
  .disclosure { interpolate-size: allow-keywords; }
  .disclosure::details-content {
    block-size: 0;
    overflow: clip;
    opacity: 0;
    transition: block-size .24s var(--motion-ease), opacity .2s, content-visibility .24s allow-discrete;
  }
  .disclosure[open]::details-content { block-size: auto; opacity: 1; }
}
@media (max-width: 950px) {
  html:has(.service-layout) { scroll-padding-top: var(--service-scroll-offset, 24px); }
}
@media (max-width: 760px) {
  html:has(.service-layout) { scroll-padding-top: var(--service-scroll-offset, 124px); }
  .service-layout { display: block; }
  .service-index {
    position: sticky;
    z-index: 4;
    top: 0;
    align-self: start;
    margin-bottom: 1rem;
    padding-block: .35rem;
    background: var(--paper);
  }
  .menu-ready .service-index { top: var(--mobile-header-size); }
  .service-index nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px; padding: .34rem; }
  .service-index nav h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .service-index a { font-size: .79rem; gap: .35rem; }
  .service-index .icon { width: .95rem; height: .95rem; }
  .service-index .full-label { display: none; }
  .service-index .short-label { display: inline; }
}

/* Enquiry form and contact information */
.contact-section { padding-block: clamp(39px, 6vw, 82px); }
.contact-layout { grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr); gap: clamp(28px, 6vw, 88px); }
.contact-aside { padding-top: .35rem; }
.contact-aside h1 { font-size: clamp(2.58rem, 5vw, 4.85rem); margin-top: .85rem; }
.contact-aside .lede { margin-top: 1rem; max-width: 43ch; }
.contact-email {
  display: inline-flex;
  gap: .7rem;
  max-width: 100%;
  margin-top: 1.25rem;
  padding: .28rem .72rem .28rem .3rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  text-decoration: none;
  transition: background-color var(--interactive), border-color var(--interactive), color var(--interactive);
}
.contact-email:hover { color: var(--teal-ink); background: var(--teal-soft); border-color: var(--teal); text-decoration: none; }
.contact-email > .icon { width: .94rem; height: .94rem; }
.contact-glyph { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 6px; background: var(--violet-soft); }
.contact-email:hover .contact-glyph { background: #cbf2ec; }
.contact-next { margin-top: clamp(20px, 3vw, 36px); padding-top: 1rem; border-top: 1px solid var(--line); }
.contact-next h2 { font-size: 1.12rem; letter-spacing: -.022em; }
.contact-next p { max-width: 47ch; }
.contact-visual { width: 100%; max-width: 560px; margin-top: 1.3rem; border-radius: 12px; }
.form-panel {
  padding: clamp(18px, 3.25vw, 44px);
  border-color: #dbe2e5;
  background: #fff;
  box-shadow: 0 14px 40px #182b3d0b, 0 2px 6px #182b3d08;
}
.form-panel h2 { font-size: clamp(1.75rem, 3vw, 2.2rem); }
.form-grid { gap: 1rem .95rem; margin-top: 1.28rem; }
.form-grid :is(input, select, textarea) {
  min-height: 51px;
  margin-top: .35rem;
  padding: .65rem .73rem;
  border-color: #a9b5bb;
  background: #fbfcfc;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-grid :is(input, select, textarea):hover { border-color: #647a81; }
.form-grid :is(input, select, textarea):focus {
  outline: 2px solid var(--teal-ink);
  outline-offset: 1px;
  border-color: var(--teal-ink);
  box-shadow: 0 0 0 5px #18d7c542;
  background: #fff;
}
.form-grid .select-control { display: block; position: relative; }
.form-grid .select-control select { appearance: none; padding-inline-end: 2rem; }
.select-control .icon { position: absolute; pointer-events: none; width: .94rem; height: .94rem; inset-inline-end: .75rem; top: 50%; transform: translateY(-50%); color: var(--teal-ink); }
.form-bottom { margin-top: 1.25rem; gap: .85rem; }
.feedback { display: flex; align-items: flex-start; gap: .58rem; border: 1px solid #d1c5eb; }
.feedback > .icon { margin-top: .14rem; }
.feedback--error { border-color: #e6c1bd; }
.feedback--success { border-color: #a8d9c8; }
.contact-faq { padding-top: clamp(32px, 5.7vw, 76px); border-top: 1px solid #dbe2e5; background: var(--white); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { justify-content: space-between; min-height: 51px; color: var(--ink); cursor: pointer; font-weight: 640; padding-block: .55rem; line-height: 1.35; }
.faq-list summary:hover, .faq-list [open] > summary .icon { color: var(--teal-ink); }
.faq-list details p { padding: 0 1.5rem 1rem 0; }
@media (max-width: 760px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-aside h1 { max-width: 16ch; }
  .contact-visual { max-height: 195px; object-fit: cover; }
}
@media (max-width: 490px) {
  .form-bottom button { width: 100%; }
}

/* Entrances begin near the final contrast and do not change element geometry. */
@keyframes reveal-rise { from { opacity: .88; transform: translateY(12px); } }
@keyframes page-enter { from { opacity: .9; translate: 0 6px; } }
@keyframes reveal-visual { from { opacity: .78; scale: .985; } }
@keyframes reveal-feedback { from { opacity: .86; translate: 0 -4px; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-visual, .page-hero > .wrap, .contact-aside, .form-panel {
    animation: page-enter 340ms var(--motion-ease);
  }
  [data-reveal].is-revealed { animation: reveal-rise .48s var(--delay, 0ms) var(--motion-ease) both; }
  .service-card:nth-child(3n + 2), .values-list li:nth-child(even) { --delay: 45ms; }
  .service-card:nth-child(3n), .timeline li:nth-child(3) { --delay: 90ms; }
  .timeline li:nth-child(2) { --delay: 45ms; }
  .timeline li:nth-child(4) { --delay: 135ms; }
  .timeline li:nth-child(5) { --delay: 180ms; }
  :is(.project-feature, .project-card).is-revealed .project-figure { animation: reveal-visual .57s var(--motion-ease) both; }
  .project-feature.is-revealed .project-copy { animation: reveal-rise .45s 70ms var(--motion-ease) both; }
  .feedback { animation: reveal-feedback .26s var(--motion-ease) both; }
}
@media (prefers-reduced-motion: reduce) {
  .disclosure::details-content { transition: none !important; }
  .button:hover, .service-card:hover, .project-card:hover { translate: none; }
  .button:hover .icon, .tags li:hover { transform: none; }
  :is(.project-card, .project-feature) .project-figure img { scale: 1 !important; }
}

/* Link styling shares the button timing without changing hit areas. */
:is(.service-card h3 a, .project-copy h3 a, .site-footer a:not(.brand)) {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .24em;
  transition: color var(--interactive), text-decoration-color var(--interactive);
}
:is(.service-card h3 a, .project-copy h3 a, .site-footer a:not(.brand)):hover { text-decoration-color: var(--teal); }
:is(.service-card h3 a, .project-copy h3 a):hover { color: var(--teal-ink); }
:is(.service-card, .project-copy) h3 .icon, .contact-email > .icon {
  transition: color var(--interactive), transform var(--interactive);
}
.contact-email:hover > .icon { transform: translate(2px,-2px); }
@media (prefers-reduced-motion: reduce) {
  .contact-email:hover > .icon, :is(.service-card, .project-card):hover h3 .icon { transform: none; }
}


.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }

.project-carousel { margin-top: clamp(24px, 4vw, 48px); }
.carousel-track {
  --carousel-gap: clamp(12px, 1.35vw, 18px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 87%;
  gap: var(--carousel-gap);
  padding-block: 5px 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-pagination { display: flex; flex-wrap: wrap; justify-content: center; margin-top: .28rem; }
.carousel-pagination button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.carousel-pagination button::after {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid var(--violet);
  border-radius: 50%;
  transition: background-color var(--interactive), border-color var(--interactive);
}
.carousel-pagination button[aria-current="true"]::after { background: var(--violet); }
.carousel-pagination button:hover::after { background: var(--teal); border-color: var(--teal-ink); }
.carousel-track:has(> :only-child) { grid-auto-columns: min(100%, 540px); }
.carousel-track .project-card { min-width: 0; scroll-snap-align: start; }
.carousel-track .project-figure figcaption { padding-block: .28rem; }
.carousel-track .project-copy { padding: clamp(15px, 1.5vw, 23px); }
.carousel-track .project-copy h3 { font-size: clamp(1.24rem, 2.2vw, 1.67rem); }
.carousel-track .project-copy > p:not(.category, .project-status) { font-size: .94rem; }
.carousel-track .project-copy .tags { margin-top: .75rem; }
.carousel-track .project-copy .tags li { font-size: .76rem; padding: .3rem .6rem; }
.carousel-track.is-dragging { scroll-snap-type: none; }
.carousel-track.is-dragging, .carousel-track.is-dragging * { cursor: grabbing; user-select: none; }
.carousel-actions { display: flex; flex-wrap: wrap; align-items: center; flex-shrink: 0; gap: .65rem; }
.carousel-controls { display: flex; gap: .45rem; }
.carousel-controls button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--violet);
  background: #fff;
  cursor: pointer;
  transition: background-color var(--interactive), border-color var(--interactive), color var(--interactive);
}
.carousel-controls button[aria-disabled="true"] { opacity: .44; cursor: default; }
.carousel-controls button[aria-disabled="false"]:hover {
  color: var(--ink);
  background-color: var(--teal);
  border-color: var(--teal);
}
.carousel-controls .icon--previous { transform: rotate(180deg); }
@media (min-width: 640px) {
  .carousel-track { grid-auto-columns: 74%; }
}
@media (min-width: 1280px) {
  .carousel-track { grid-auto-columns: calc((100% - 2 * var(--carousel-gap)) / 2.42); }
}

.mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(22rem, calc(100% - 32px));
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-inline-start: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  box-shadow: -15px 0 54px #15152c33;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform 340ms var(--motion-ease), display 340ms allow-discrete, overlay 340ms allow-discrete;
}
.mobile-drawer[open] { transform: translateX(0); }
.mobile-drawer::backdrop {
  background: transparent;
  transition: background-color 340ms var(--motion-ease), display 340ms allow-discrete, overlay 340ms allow-discrete;
}
.mobile-drawer[open]::backdrop { background: #15152b99; }
@starting-style {
  .mobile-drawer[open] { transform: translateX(100%); }
  .mobile-drawer[open]::backdrop { background: transparent; }
}
html:has(.mobile-drawer[open]) { overflow: hidden; }
.mobile-drawer-inner {
  min-height: 100%;
  padding: max(1rem, env(safe-area-inset-top)) 1.25rem max(1.25rem, env(safe-area-inset-bottom));
}
.mobile-drawer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .82rem;
  font-weight: 740;
}
.drawer-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--interactive), border-color var(--interactive);
}
.drawer-close:hover { background: var(--teal-soft); border-color: var(--teal); }
.mobile-drawer-nav { display: grid; gap: .25rem; margin: 1rem 0 1.4rem; }
.mobile-drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 51px;
  padding: .55rem .75rem;
  border-inline-start: 3px solid transparent;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .055em;
  font-size: .86rem;
  font-weight: 650;
  transition: background-color var(--interactive), color var(--interactive);
}
.mobile-drawer-nav a:hover, .mobile-drawer-nav a[aria-current="page"] {
  background: var(--teal-soft);
  color: var(--teal-ink);
}
.mobile-drawer-nav a[aria-current="page"] { border-inline-start-color: var(--teal); }
.mobile-drawer-inner > .button { width: 100%; justify-content: space-between; }
@media (prefers-reduced-motion: no-preference) {
  .mobile-drawer[open] .mobile-drawer-nav a {
    animation: mobile-navigation-enter 300ms var(--motion-ease) both;
    animation-delay: calc(var(--menu-order, 0) * 26ms);
  }
  .mobile-drawer-nav a:nth-child(2) { --menu-order: 1; }
  .mobile-drawer-nav a:nth-child(3) { --menu-order: 2; }
  .mobile-drawer-nav a:nth-child(4) { --menu-order: 3; }
  .mobile-drawer-nav a:nth-child(5) { --menu-order: 4; }
  @keyframes mobile-navigation-enter { from { opacity: .75; translate: 14px 0; } }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-drawer::backdrop { transition: none; }
}
