:root {
  --ink: #12161f;
  --ink-2: #1c2230;
  --paper: #f6f3ec;
  --card: #ffffff;
  --line: #e2ddd1;
  --text: #2a2f3a;
  --muted: #667085;
  --red: #d8283b;
  --green: #1f9d55;
  --blue: #1f5fd0;
  --radius: 14px;
  --head: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 400 1rem/1.65 var(--body); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; }
p { margin: 0 0 1em; }
code { background: rgba(255,255,255,.1); padding: .1em .4em; border-radius: 4px; font-size: .85em; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { text-align: center; margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 99; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.sub-h { margin: 4rem 0 1.5rem; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .14em; color: var(--red); font-family: var(--body); font-weight: 600; }
.eyebrow { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: #9aa4b8; margin-bottom: 1rem; }

/* Buttons */
.btn { display: inline-block; padding: .8rem 1.5rem; border: 0; border-radius: 999px; font: 600 .95rem var(--body); text-decoration: none; cursor: pointer; color: #fff; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); }
.btn--green { background: var(--green); }
.btn--blue { background: var(--blue); }

/* Top bar + header */
.topbar { background: var(--ink); color: #c7cedc; font-size: .85rem; }
.topbar__in { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; flex-wrap: wrap; }
.topbar a { text-decoration: none; } .topbar a:hover { color: #fff; }
.topbar__right { display: flex; gap: 1.5rem; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(246,243,236,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__mark { display: flex; gap: 3px; transform: skewX(-14deg); }
.brand__mark i { width: 7px; height: 26px; border-radius: 2px; }
.brand__mark i:nth-child(1) { background: var(--red); }
.brand__mark i:nth-child(2) { background: var(--green); }
.brand__mark i:nth-child(3) { background: var(--blue); }
.brand__name { font: 700 1.35rem var(--head); color: var(--ink); letter-spacing: .02em; }
.brand--light .brand__name { color: #fff; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; }
.nav a:not(.nav__cta)::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--red); transition: width .25s; }
.nav a:hover::after { width: 100%; }
.nav__cta { background: var(--ink); color: #fff; padding: .5rem 1.1rem; border-radius: 999px; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: .25s; }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* Hero */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 56px 56px; }
.hero__track { position: relative; min-height: clamp(520px, 78vh, 700px); }
.slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: 3rem 0 4.5rem; }
.slide h1 { color: #fff; }
.lead { color: #b9c1d1; font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 56ch; }
.slide__art { aspect-ratio: 4/3; border-radius: var(--radius); background: var(--ink-2); border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.slide__art img { width: 100%; height: 100%; object-fit: cover; }
.stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2.2rem; margin: 2rem 0 0; }
.stats div { border-left: 2px solid var(--red); padding-left: .9rem; }
.stats dt { font: 700 2rem/1 var(--head); } .stats dt small { font-size: .9rem; font-weight: 500; margin-left: .2rem; color: #9aa4b8; }
.stats dd { margin: .2rem 0 0; font-size: .8rem; color: #9aa4b8; }
.hero__dots { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); display: flex; gap: .6rem; z-index: 2; }
.hero__dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.3); cursor: pointer; padding: 0; transition: .25s; }
.hero__dots button[aria-selected="true"] { background: #fff; width: 28px; border-radius: 6px; }

/* Placeholder for missing images */
.ph { display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; width: 100%; height: 100%; min-height: 160px; background: repeating-linear-gradient(135deg, #eae5d8 0 12px, #f1ede2 12px 24px); color: #8a8372; font-size: .8rem; }
.slide__art .ph { background: repeating-linear-gradient(135deg, #1c2230 0 12px, #20273a 12px 24px); color: #6f7a94; }

/* Intro / featured */
.intro { padding-bottom: 2rem; }
.featured { padding-top: 2rem; }
.featured .btn { margin-top: .5rem; }
.video { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; margin-top: 4rem; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1rem, 3vw, 2rem); }
.video__frame { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.video__frame iframe { width: 100%; height: 100%; border: 0; }
.video__ph { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; color: #fff; text-align: center; padding: 1rem; }
.video__ph small { color: #8a94ab; }
.play { width: 64px; height: 64px; border-radius: 50%; background: var(--red); position: relative; }
.play::after { content: ''; position: absolute; left: 25px; top: 19px; border-left: 20px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.video__copy p { color: var(--muted); }

/* About */
.about { background: var(--card); border-block: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.about__founding { border-left: 3px solid var(--blue); padding-left: 2rem; align-self: start; }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.person { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: transform .25s, box-shadow .25s; }
.person:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -18px rgba(18,22,31,.35); }
.person__avatar { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font: 700 1.1rem var(--head); color: #fff; background: var(--ink); margin-bottom: 1rem; }
.person:nth-child(3n+2) .person__avatar { background: var(--red); }
.person:nth-child(3n) .person__avatar { background: var(--blue); }
.person h4 { margin-bottom: .1em; font-size: 1.25rem; }
.person__role { color: var(--red); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.person__bio { color: var(--muted); font-size: .93rem; }
.link { font-weight: 600; color: var(--blue); text-decoration: none; font-size: .9rem; }

/* Gallery */
.gallery { columns: 3 280px; column-gap: 1rem; margin-top: 2.5rem; }
.gallery__item { margin: 0 0 1rem; break-inside: avoid; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.gallery__item img { width: 100%; height: auto; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item .ph { min-height: 200px; }

/* Services */
.services { background: var(--ink); color: #c7cedc; }
.services h2 { color: #fff; margin-bottom: 2.5rem; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; }
.svc { background: var(--ink); padding: 2rem 1.6rem; transition: background .25s; }
.svc:hover { background: var(--ink-2); }
.svc__n { font: 700 .85rem var(--head); color: var(--red); letter-spacing: .15em; }
.svc h3 { color: #fff; margin: .8rem 0; }
.svc p { font-size: .93rem; color: #aab3c5; margin: 0; }

/* Full stack */
.fs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.checks li { padding: .7rem .9rem .7rem 2.4rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; font-size: .92rem; font-weight: 500; position: relative; }
.checks li::before { content: ''; position: absolute; left: .9rem; top: 50%; width: 6px; height: 11px; border: solid var(--green); border-width: 0 2px 2px 0; transform: translateY(-65%) rotate(45deg); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.4rem, 3vw, 2.2rem); }

/* Forms */
.form { display: grid; gap: 1rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; color: var(--ink); }
.field em { color: var(--red); font-style: normal; }
input, textarea { width: 100%; font: inherit; padding: .8rem 1rem; border: 1px solid #d3cdbf; border-radius: 10px; background: #fcfbf8; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,95,208,.15); }
.hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.form__msg { margin: 0; font-size: .92rem; min-height: 1.4em; }
.form__msg.ok { color: var(--green); } .form__msg.err { color: var(--red); }

/* Tech */
.tech { background: var(--card); border-block: 1px solid var(--line); }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin-top: 3rem; }
.tech-card { padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.tech-card__mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--ink); color: #fff; font: 700 1.05rem var(--head); margin-bottom: 1rem; }
.tech-card:nth-child(3n+1) .tech-card__mark { background: var(--blue); }
.tech-card:nth-child(3n+2) .tech-card__mark { background: var(--green); }
.tech-card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* UI/UX */
.uiux__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.uiux__art { display: flex; align-items: center; justify-content: center; gap: .4rem; font: 700 clamp(4rem, 12vw, 8rem)/1 var(--head); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 24px; aspect-ratio: 5/4; }
.uiux__art .slash { color: var(--red); }
.steps { list-style: none; margin: 3.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; counter-reset: s; position: relative; }
.steps li { text-align: center; position: relative; }
.steps li span { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto .8rem; border-radius: 50%; font: 700 1.3rem var(--head); color: #fff; background: hsl(calc(var(--i) * 60 + 350) 65% 42%); position: relative; z-index: 1; }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 32px; left: 50%; width: 100%; border-top: 2px dashed #c9c2b0; }
.steps b { font-family: var(--head); color: var(--ink); }

/* Contact */
.contact { background: var(--card); border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
address { font-style: normal; color: var(--muted); margin-bottom: 1.2rem; }
address a { color: var(--blue); text-decoration: none; }
.office { padding-left: 1rem; border-left: 3px solid var(--red); }
.map { margin-top: 1.5rem; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
.footer { background: var(--ink); color: #aab3c5; padding-top: 4rem; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 3rem; padding-bottom: 3rem; }
.footer h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.footer a { display: block; text-decoration: none; margin-bottom: .5rem; } .footer a:hover { color: #fff; }
.footer .brand { margin-bottom: 1rem; display: flex; }
.social { display: flex; gap: .6rem; margin-top: 1rem; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; font-weight: 700; margin: 0; }
.social a:hover { background: var(--red); }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0; font-size: .85rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.nf { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: .5rem; }
.nf h1 { font-size: 6rem; margin: 0; }

/* Responsive */
@media (max-width: 960px) {
  .slide__in, .video, .about__grid, .fs__grid, .uiux__grid, .contact__grid { grid-template-columns: 1fr; }
  .slide__art { display: none; }
  .about__founding { padding-left: 1.2rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .steps li:nth-child(3)::after { display: none; }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.2rem; transform: translateY(-120%); transition: transform .3s; z-index: -1; }
  .nav.open { transform: none; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav__cta { margin-top: 1rem; text-align: center; border-bottom: 0 !important; }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .row2, .checks { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none !important; }
  .hero__track { min-height: 600px; }
  .stats { gap: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Media images */
.slide__art img { object-fit: contain; background: #fff; }
.person__avatar { overflow: hidden; background: var(--card); }
.person__avatar img { width: 100%; height: 100%; object-fit: cover; }
.svc__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; margin-bottom: 1rem; display: block; }
.tech-card__mark { background: #fff !important; border: 1px solid var(--line); padding: 8px; }
.tech-card__mark img { width: 100%; height: 100%; object-fit: contain; }
.uiux__art { overflow: hidden; padding: 0; }
.uiux__art img { width: 100%; height: 100%; object-fit: cover; }
.steps li > span img { width: 100%; height: 100%; object-fit: contain; }
.steps li > span { background: #fff; border: 2px solid var(--line); padding: 12px; overflow: hidden; }

/* Hero: banners carry their own text */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero::before { display: none; }
.hero { background: #111; }
.hero__track { min-height: 0; aspect-ratio: 1892 / 743; max-height: 80vh; }
.slide__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide .ph { width: 100%; height: 100%; }
@media (max-width: 700px) { .hero__track { aspect-ratio: 1892 / 743; } .hero__dots { bottom: .6rem; } }

/* Fixes: white step icons need the coloured circle; show UI/UX art uncropped */
.steps li > span { background: hsl(calc(var(--i) * 60 + 350) 65% 42%); border: 0; padding: 14px; }
.uiux__art { aspect-ratio: auto; background: #fff; align-self: center; }
.uiux__art img { height: auto; object-fit: contain; display: block; }

/* Logo */
.brand__logo { height: 52px; width: auto; display: block; }
.brand--light .brand__logo { background: #fff; padding: 6px 10px; border-radius: 8px; height: 64px; }
@media (max-width: 700px) { .brand__logo { height: 44px; } }

/* active page in nav */
.nav a.active:not(.nav__cta)::after { width: 100%; }
