:root {
  color-scheme: dark;
  --petrol: #102c36;
  --teal: #28545e;
  --mint: #8ff5a5;
  --white: #f4f7f8;
  --muted: #bed0cf;
  --base: #0f2427;
  --line: #315354;
  --radius: 18px;
  --gutter: clamp(20px, 5.5vw, 92px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--base); color: var(--white); font: 1rem/1.55 "Inter", "Segoe UI", system-ui, sans-serif; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button[hidden], [hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; }
::selection { background: var(--mint); color: var(--petrol); }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.1vw, 3.2rem); line-height: 1.08; letter-spacing: -.042em; }
h3 { line-height: 1.22; letter-spacing: -.025em; }
.container { width: min(100% - var(--gutter) * 2, 1530px); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 10px 18px; background: var(--mint); color: var(--petrol); transform: translateY(-160%); }
.skip:focus { transform: none; }
.header { position: absolute; inset: 0 0 auto; z-index: 2; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-inner { min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { display: inline-block; width: 30px; height: 25px; background: var(--white); clip-path: polygon(39% 0, 64% 0, 25% 100%, 0 100%, 39% 0, 78% 0, 100% 0, 62% 100%, 38% 100%, 78% 0); }
.wordmark { font-weight: 750; font-size: clamp(1.5rem, 2.1vw, 2.05rem); letter-spacing: -.055em; line-height: 1; }
.wordmark span + span { color: var(--mint); }
.brand-subtitle { margin-left: 10px; border-left: 1px solid #a0b4b67a; padding: 4px 0 4px 20px; font-size: .92rem; }
.nav { display: flex; gap: clamp(14px, 2.55vw, 43px); align-items: center; }
.nav > a:not(.button) { position: relative; padding: 10px 0; white-space: nowrap; }
.nav > a:not(.button)::after { content: ""; position: absolute; height: 3px; background: var(--mint); inset: auto 0 2px; transform: scaleX(0); transition: transform .18s ease; }
.nav > a:hover::after, .nav > a[aria-current]::after { transform: scaleX(1); }
.menu-toggle { color: var(--white); border: 1px solid #8ca7ac80; background: var(--petrol); border-radius: 9px; padding: 8px 12px; }
.menu-toggle span { display: inline-block; width: 14px; height: 10px; border-block: 2px solid var(--mint); margin-left: 5px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; min-height: 46px; border: 1px solid transparent; border-radius: 12px; font-weight: 650; line-height: 1.25; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--mint); color: #0c2525; }
.button-primary:hover { background: #b1ffbf; }
.button-secondary { border-color: #8ca7acc0; color: var(--white); background: #112e384a; }
.button-secondary:hover { border-color: var(--mint); background: #28545e82; }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(555px, 36.3vw, 690px); background: linear-gradient(105deg, #102b32 26%, #456a72); }
.hero-media, .hero::after { position: absolute; inset: 0; z-index: -2; }
.hero-media { top: clamp(40px, 4.6vw, 77px); mask-image: linear-gradient(transparent, black 9%); }
.hero-media img { width: 100%; height: 100%; object-fit: fill; }
.hero::after { content: ""; z-index: -1; background: linear-gradient(90deg, #102b32 0%, #102b32f0 19%, #102b329c 35%, #102b3210 59%, transparent 78%), linear-gradient(180deg,#102a34b3, transparent 28%); }
.hero-inner { padding-block: clamp(116px, 7.3vw, 144px) 38px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .88rem; font-weight: 550; }
.eyebrow span { margin-inline: .18em; }
h1 { font-size: clamp(3rem, 4.12vw, 5rem); line-height: 1.03; letter-spacing: -.052em; font-weight: 750; margin-top: 23px; }
h1 em { font-style: normal; color: var(--mint); }
.hero-description { max-width: min(600px, 47%); margin-top: 22px; font-size: clamp(1.03rem, 1.25vw, 1.3rem); line-height: 1.48; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .actions { margin-top: 27px; }
.hero .button { padding-inline: 23px; }
[data-icon] { display: inline-flex; flex: none; }
.icon { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.button .icon { width: 18px; height: 18px; }
.trust { display: flex; list-style: none; padding: 0; margin-top: 35px; width: fit-content; }
.trust li { display: flex; align-items: center; gap: 12px; padding: 2px clamp(12px, 1.55vw, 26px); line-height: 1.35; }
.trust li:first-child { padding-left: 0; }
.trust li + li { border-left: 1px solid #92a8a985; }
.trust .icon { width: 34px; height: 34px; color: var(--mint); }
.section { padding-block: clamp(52px, 6.2vw, 100px); }
.projects { padding-top: clamp(26px, 2.35vw, 40px); border-top: 1px solid #355456; background: linear-gradient(125deg, #142e2f, var(--base) 72%); }
.section-heading { margin-bottom: clamp(25px, 2.25vw, 38px); }
.projects h2 { font-size: clamp(1.95rem, 2.45vw, 2.75rem); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.project { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid #527e70; background: #152f2d; transition: border-color .2s ease, transform .22s ease; }
.project:hover { border-color: var(--mint); transform: translateY(-3px); }
.project.sport { background: #162c39; border-color: #4e7086; }
.project.sport:hover { border-color: #73bafa; }
.project-cover { position: relative; isolation: isolate; min-height: clamp(214px, 14vw, 258px); padding: clamp(20px, 2.2vw, 38px); }
.project-cover img, .project-cover::after { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 69%; height: 100%; object-fit: cover; object-position: right 20%; }
.project-cover::after { content: ""; width: 100%; background: linear-gradient(90deg,#152f2d 0%,#152f2df4 30%,#152f2d77 54%,transparent 74%); }
.sport .project-cover::after { background: linear-gradient(90deg,#162c39 0%,#162c39f4 30%,#162c3977 54%,transparent 74%); }
.project h3 { display: flex; gap: 13px; align-items: center; font-size: clamp(1.6rem, 2.15vw, 2.3rem); }
.project h3 .icon { width: 37px; height: 37px; color: var(--mint); }
.sport h3 .icon { color: #52aeef; }
.project-summary { max-width: 55%; margin-top: 12px; font-size: clamp(.99rem, 1.17vw, 1.22rem); line-height: 1.38; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; list-style: none; margin-top: 18px; }
.tags li, .badge { background: #d3e9ef14; border: 1px solid #d3e9ef35; border-radius: 999px; padding: 4px 11px; font-size: .85rem; }
.project-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 17px clamp(20px, 2.2vw, 38px); border-top: 1px solid #b3d2cf25; background: #0b1c2390; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.badge { color: #bce0ff; }
.project-links { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.text-link { padding: 4px 0; border: 0; background: transparent; color: var(--mint); font-size: .92rem; text-underline-offset: .26em; }
.text-link:hover { text-decoration: underline; }
.separated { border-top: 1px solid #3153549c; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.service { background: #142d30; padding: clamp(21px, 2.5vw, 41px); transition: background .2s ease; }
.service:hover { background: #1b383a; }
.service .icon { width: 29px; height: 29px; color: var(--mint); }
.service h3, .steps h3 { margin-top: 14px; font-size: 1.27rem; }
.service p, .steps p { margin-top: 8px; color: var(--muted); }
.methodology { background: #122a2d; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 38px); }
.steps li { border-top: 1px solid #678884; padding-top: 13px; }
.steps span { color: var(--mint); font-variant-numeric: tabular-nums; }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .62fr); align-items: center; gap: clamp(24px, 7vw, 110px); }
.about p, .contact-layout > div > p { color: var(--muted); max-width: 59ch; margin-top: 17px; font-size: 1.07rem; }
.portrait { position: relative; overflow: hidden; min-height: 240px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(125deg,#223e3b2e,#112a31e0), url("../assets/images/hero.webp") left center / auto 145%; }
.portrait img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.contact { background: #132c31; }
.contact-layout { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1fr); gap: clamp(30px, 8vw, 125px); }
.contact-layout h2 { font-size: clamp(2.4rem, 4.6vw, 4.5rem); }
.channels { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.channels:empty { display: none; }
.contact-layout .channels { margin-top: 22px; }
.channels a:hover, .footer nav a:hover { color: var(--mint); }
.contact-form { display: grid; gap: 14px; align-items: start; }
.contact-form label { display: grid; gap: 6px; }
.contact-form label span { display: inline; color: var(--muted); }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-pair label:nth-child(2) { display: block; }
.form-pair label:nth-child(2) input { display: block; margin-top: 6px; }
input, select, textarea { width: 100%; border: 1px solid #648082; border-radius: 8px; padding: 10px 12px; background: #10252a; color: var(--white); }
select { appearance: none; padding-right: 37px; background: #10252a url("../assets/icons/chevron.svg") right 12px center / 16px no-repeat; }
textarea { resize: vertical; }
.contact-form button { justify-self: start; }
.form-hint, #form-status { color: var(--muted); font-size: .9rem; }
.footer { padding-block: 29px 20px; background: #0c2024; }
.footer-inner { flex-wrap: wrap; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 21px; color: var(--muted); }
.copyright { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.project-dialog { width: min(92%, 680px); max-height: 88dvh; padding: clamp(23px, 4vw, 45px); background: #173338; color: var(--white); border: 1px solid #5c807e; border-radius: var(--radius); }
.project-dialog::backdrop { background: #07191cce; }
.close-dialog { position: absolute; top: 12px; right: 12px; width: 41px; height: 41px; border: 1px solid #6e9291; border-radius: 8px; color: var(--white); background: #153036; font-size: 1.5rem; line-height: 1; }
.project-dialog h2 { padding-right: 36px; }
.project-dialog h3 { margin-top: 20px; }
.project-dialog p, .project-dialog ul:not(.tags) { margin-top: 8px; color: var(--muted); }
.project-dialog ul:not(.tags) { padding-left: 20px; }
.project-dialog .button { margin-top: 24px; }
.reveal-pending { opacity: 0; transform: translateY(12px); }
[data-reveal] { transition: opacity .38s ease, transform .38s ease; }
.reveal-pending:focus-within { opacity: 1; transform: none; }
@media (max-width: 1090px) {
  .header .brand-subtitle { display: none; }
  .hero-media img { object-fit: cover; object-position: 49% center; }
}
@media (max-width: 860px) {
  .project-summary { max-width: 66%; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .header { background: #102a31; position: relative; }
  .header-inner { min-height: 66px; flex-wrap: wrap; gap: 0; }
  .menu-toggle { display: inline-block; }
  .nav { width: 100%; flex-wrap: wrap; padding-bottom: 14px; gap: 5px 18px; }
  .nav.is-enhanced { display: none; }
  .nav.is-open { display: flex; }
  .nav .button { padding: 7px 13px; min-height: 40px; }
  .hero { display: grid; min-height: 0; background: var(--petrol); }
  .hero::after { display: none; }
  .hero-media { position: relative; order: 1; z-index: 0; top: auto; height: clamp(220px, 64vw, 410px); mask-image: linear-gradient(transparent, black 10%); }
  .hero-media img { object-fit: cover; object-position: center; }
  .hero-inner { padding-block: 40px 21px; }
  .eyebrow { font-size: .72rem; }
  h1 { font-size: clamp(2.48rem, 7.75vw, 3.6rem); margin-top: 17px; }
  .hero-description { max-width: 52ch; margin-top: 16px; }
  .hero .actions { margin-top: 22px; gap: 9px; }
  .hero .button { padding-inline: 11px; font-size: .91rem; }
  .trust { margin-top: 25px; }
  .trust li { padding-inline: 9px; gap: 6px; font-size: .78rem; }
  .trust .icon { width: 21px; height: 21px; }
  .project-grid, .about, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .project-cover img { width: 66%; }
  .section { padding-block: 44px; }
  .projects { padding-top: 27px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portrait { min-height: 205px; }
  .contact-layout h2 br { display: none; }
}
@media (max-width: 390px) {
  .form-pair { grid-template-columns: minmax(0, 1fr); }
  .hero .button { min-height: 44px; }
  .hero .button .icon { display: none; }
  .project-summary { max-width: 73%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
}


@media (max-width: 460px) {
  .service-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 390px) {
  .trust { width: 100%; }
  .trust li { flex: 1; flex-direction: column; align-items: flex-start; }
}
