/* DICE ARCHI — site styles (dark). Brand: DICE Brand Guidelines v4. */
:root {
  --navy-deep: #060E1A;
  --navy: #0B2036;
  --red: #ED1418;
  --white: #FFFFFF;
  --text-2: rgba(255, 255, 255, .64);
  --text-3: rgba(255, 255, 255, .42);
  --hair: rgba(255, 255, 255, .12);
  --max: 1360px;
  --gutter: clamp(18px, 4vw, 56px);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Poppins", system-ui, sans-serif;
  --label: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy-deep);
  color: var(--white);
  font-family: var(--body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
.cover { width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--navy-deep); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 1px solid var(--red); outline-offset: 4px; }

/* ---------- Type ---------- */
.label {
  font-family: var(--label); font-size: 11px; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase; color: var(--text-3);
}
.display { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: .95; letter-spacing: .005em; }
.h2 { font-family: var(--display); font-weight: 500; font-size: clamp(38px, 4.8vw, 68px); line-height: 1; text-transform: uppercase; }
.h3 { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.05; text-transform: uppercase; }
.dim { color: var(--text-3); }
.lede { font-size: 17px; color: var(--text-2); max-width: 620px; }
.red-bar { display: block; width: 40px; height: 2px; background: var(--red); }
.prose p { color: var(--text-2); margin-bottom: 1.1em; }
.prose strong { color: var(--white); font-weight: 400; }
.prose a { color: var(--white); border-bottom: 1px solid var(--hair); transition: border-color .25s; }
.prose a:hover { border-color: var(--red); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 16px; height: 54px; padding: 0 28px;
  font-family: var(--label); font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.55); background: none; color: var(--white); cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.btn svg { width: 24px; height: 10px; transition: transform .3s; }
.btn:hover { background: var(--white); color: var(--navy-deep); border-color: var(--white); }
.btn:hover svg { transform: translateX(4px); }
.btn--solid { background: var(--white); color: var(--navy-deep); border-color: var(--white); }
.btn--solid:hover { background: transparent; color: var(--white); }
.arrow-link {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--label); font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-2); transition: color .3s;
}
.arrow-link svg { width: 32px; height: 10px; transition: transform .3s; }
.arrow-link:hover { color: var(--white); }
.arrow-link:hover svg { transform: translateX(5px); }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 30; border-bottom: 1px solid transparent; transition: background .4s, border-color .4s; }
.header.scrolled, .header.solid { background: rgba(6,14,26,.92); backdrop-filter: blur(10px); border-color: var(--hair); }
.header__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 104px; }
.nav { display: flex; gap: 34px; font-family: var(--label); font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.nav a { color: var(--text-2); transition: color .25s; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); border-color: var(--red); }
.logo { display: block; width: 210px; }
.logo img { width: 100%; height: auto; }
.header__right { display: flex; justify-content: flex-end; align-items: center; gap: 28px; }
.lang { font-family: var(--label); font-size: 11px; letter-spacing: .24em; color: var(--text-3); }
.lang b { color: var(--white); font-weight: 500; }
.lang a:hover { color: var(--white); }
.header .btn { height: 42px; padding: 0 18px; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 1.5px; background: var(--white); margin: 6px auto; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; height: 100vh; min-height: 660px; max-height: 1000px; overflow: hidden; }
.hero > img { position: absolute; inset: 0; transform: scale(1.06); animation: settle 2.4s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero::after, .page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(6,14,26,.96) 0%, rgba(6,14,26,.55) 38%, rgba(6,14,26,.1) 70%),
    linear-gradient(180deg, rgba(6,14,26,.6) 0%, rgba(6,14,26,0) 24%);
}
.hero__content { position: absolute; inset: auto 0 0; z-index: 1; padding-bottom: clamp(48px, 9vh, 96px); }
.hero__grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.hero h1 { font-size: clamp(52px, 8vw, 132px); }
.hero h1 .dim, .page-hero h1 .dim { color: rgba(255,255,255,.5); }
.tagline { display: flex; align-items: center; gap: 18px; margin-top: 28px; font-family: var(--label); font-size: 12px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--text-2); }
.hero__side { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: calc(104px + clamp(56px, 8vw, 110px)) 0 clamp(56px, 7vw, 96px); }
.page-hero h1 { font-size: clamp(46px, 6.6vw, 104px); max-width: 1100px; }
.page-hero .lede { margin-top: 28px; }
.page-hero--media { position: relative; padding: 0; height: min(82vh, 820px); min-height: 540px; overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__content { position: absolute; inset: auto 0 0; z-index: 1; padding-bottom: clamp(40px, 7vh, 80px); }
.crumbs { font-family: var(--label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); margin-bottom: 26px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--text-3); }
.crumbs a:hover { color: var(--white); }

/* ---------- Sections ---------- */
section { padding: clamp(96px, 12vw, 170px) 0; }
.sec-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 52px; padding-bottom: 28px; border-bottom: 1px solid var(--hair); }
.alt { background: var(--navy); }
.statement { text-align: center; }
.statement .h2 { font-size: clamp(40px, 6vw, 92px); max-width: 1100px; margin: 0 auto; }
.statement p { max-width: 560px; margin: 34px auto 0; color: var(--text-2); font-size: 16px; }
.statement .red-bar { margin: 40px auto 0; }

/* Project cards */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 24px; }
.proj-grid--feature { grid-template-columns: 1fr 1fr; }
.proj-grid--feature .proj:first-child { grid-column: 1 / -1; }
.proj-grid--feature .proj:first-child .proj__img { aspect-ratio: 21 / 9; }
.proj { display: block; }
.proj[hidden] { display: none; }
.proj__img { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy); }
.proj__img img { transition: transform 1.4s cubic-bezier(.2,.7,.2,1), opacity .6s; opacity: .92; }
.proj:hover .proj__img img { transform: scale(1.04); opacity: 1; }
.proj__info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 18px; }
.proj__title { font-family: var(--display); font-weight: 500; font-size: 24px; text-transform: uppercase; line-height: 1.1; }
.tag { font-family: var(--label); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.filters a, .filters button {
  font-family: var(--label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  padding: 10px 18px; border: 1px solid var(--hair); color: var(--text-2); background: none; cursor: pointer; transition: all .25s;
}
.filters a:hover, .filters button:hover { color: var(--white); border-color: rgba(255,255,255,.4); }
.filters [aria-current="page"], .filters [aria-pressed="true"] { color: var(--navy-deep); background: var(--white); border-color: var(--white); }

/* Services list */
.svc-list { border-top: 1px solid var(--hair); }
.svc { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 32px; align-items: baseline; padding: 34px 0; border-bottom: 1px solid var(--hair); }
.svc__num { font-family: var(--label); font-size: 11px; letter-spacing: .3em; color: var(--text-3); transition: color .3s; }
.svc p { color: var(--text-2); max-width: 440px; }
.svc:hover .svc__num { color: var(--red); }

/* Service detail blocks */
.svc-block { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--hair); }
.svc-block:nth-child(even) .svc-block__img { order: 2; }
.svc-block__img { aspect-ratio: 4 / 3; overflow: hidden; }
.svc-block__text { display: flex; flex-direction: column; gap: 22px; }
.svc-block ul { list-style: none; display: grid; gap: 10px; }
.svc-block li { padding-left: 22px; position: relative; color: var(--text-2); }
.svc-block li::before { content: ""; position: absolute; left: 0; top: .85em; width: 10px; height: 1px; background: var(--red); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--hair); }
.step { padding: 28px 22px 0 0; }
.step + .step { padding-left: 22px; border-left: 1px solid var(--hair); }
.step__num { font-family: var(--label); font-size: 11px; letter-spacing: .3em; color: var(--text-3); }
.step h3 { font-family: var(--display); font-weight: 500; font-size: 26px; text-transform: uppercase; margin: 34px 0 8px; }
.step p { font-size: 13.5px; color: var(--text-2); line-height: 1.6; }

/* Band */
.band { padding: 0; position: relative; height: clamp(460px, 78vh, 840px); overflow: hidden; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,14,26,.95) 0%, rgba(6,14,26,.5) 40%, rgba(6,14,26,.15) 75%); }
.band__copy { position: absolute; inset: auto 0 0; z-index: 1; padding-bottom: clamp(48px, 8vw, 96px); }
.band__copy .display { font-size: clamp(42px, 6.5vw, 104px); }
.band__copy .dim { color: rgba(255,255,255,.5); }
.band__copy .red-bar { margin-top: 30px; }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 8vw, 120px); }
details { border-top: 1px solid var(--hair); }
details:last-child { border-bottom: 1px solid var(--hair); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-size: 17px; font-weight: 400; }
summary::-webkit-details-marker { display: none; }
summary .pm { flex: none; width: 14px; height: 14px; position: relative; }
summary .pm::before, summary .pm::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 14px; height: 1px; background: var(--white); transition: transform .3s; }
summary .pm::after { transform: rotate(90deg); }
details[open] summary .pm::after { transform: rotate(0); }
details > div { padding: 0 48px 28px 0; color: var(--text-2); }

/* CTA */
.cta { background: var(--navy); text-align: center; }
.cta .display { font-size: clamp(48px, 8vw, 128px); }
.cta .red-bar { margin: 36px auto; }
.cta__lines { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 48px; margin-bottom: 48px; font-size: 16px; }
.cta__lines a { color: var(--text-2); transition: color .25s; }
.cta__lines a:hover { color: var(--white); }

/* Project detail */
.project-intro { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(40px, 7vw, 110px); }
.specs { display: grid; gap: 0; align-content: start; border-top: 1px solid var(--hair); }
.specs div { padding: 18px 0; border-bottom: 1px solid var(--hair); }
.specs dt { font-family: var(--label); font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.specs dd { font-size: 15px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gallery a { display: block; overflow: hidden; background: var(--navy); }
.gallery a:first-child:nth-last-child(odd), .gallery a.wide { grid-column: 1 / -1; }
.gallery img { width: 100%; height: auto; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.gallery a:hover img { transform: scale(1.03); }
.note-3d { margin-top: 18px; font-family: var(--label); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--text-3); }
.pn { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.pn a { padding: 34px 0; display: flex; flex-direction: column; gap: 8px; }
.pn a + a { text-align: right; border-left: 1px solid var(--hair); padding-left: 24px; }
.pn .h3 { font-size: clamp(22px, 2.2vw, 30px); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 7vw, 110px); }
.info { display: grid; gap: 26px; align-content: start; }
.info .label { display: block; margin-bottom: 6px; }
.info p, .info a { font-size: 16px; font-weight: 400; }
.info a:hover { color: var(--red); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--label); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--text-3); }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; color: var(--white); background: transparent;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.25); padding: 10px 0; border-radius: 0; outline: none; transition: border-color .2s;
}
.field select option { color: var(--navy-deep); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--white); }
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form small { grid-column: 1 / -1; color: var(--text-3); font-size: 12.5px; }
.map { aspect-ratio: 16 / 7; border: 0; width: 100%; filter: grayscale(1) invert(.92) contrast(.9); }

/* Footer */
.footer { padding: 88px 0 32px; border-top: 1px solid var(--hair); }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--hair); }
.footer .logo { width: 240px; margin-bottom: 24px; }
.footer h2 { font-family: var(--label); font-weight: 500; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 9px; font-size: 14px; }
.footer ul a { color: var(--text-2); }
.footer ul a:hover { color: var(--white); }
.footer address { font-style: normal; color: var(--text-2); font-size: 14px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; font-family: var(--label); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(6,14,26,.96); display: none; align-items: center; justify-content: center; padding: 4vw; }
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: 88vh; width: auto; height: auto; }
.lb button { position: absolute; background: none; border: 0; color: var(--white); cursor: pointer; font-family: var(--label); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; padding: 14px; }
.lb__close { top: 18px; right: 18px; }
.lb__prev { left: 10px; top: 50%; }
.lb__next { right: 10px; top: 50%; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero > img { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .step:nth-child(4) { border-left: 0; padding-left: 0; }
  .proj-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .header__bar { grid-template-columns: auto 1fr auto; height: 76px; }
  .nav, .header .btn { display: none; }
  .logo { width: 150px; justify-self: center; }
  .header__right { gap: 6px; }
  .menu-btn { display: block; }
  .header.open { background: var(--navy-deep); }
  .header.open .nav {
    display: flex; flex-direction: column; gap: 22px; position: absolute; top: 76px; left: 0; right: 0;
    padding: 32px var(--gutter) 40px; background: var(--navy-deep); border-bottom: 1px solid var(--hair); font-size: 13px;
  }
  .page-hero { padding-top: calc(76px + 56px); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__side { align-items: flex-start; }
  .hero__side .label { display: none; }
  .proj-grid, .proj-grid--feature { grid-template-columns: 1fr; gap: 40px; }
  .proj-grid--feature .proj:first-child .proj__img { aspect-ratio: 4 / 3; }
  .svc { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .svc-block { grid-template-columns: 1fr; }
  .svc-block:nth-child(even) .svc-block__img { order: 0; }
  .faq__grid, .project-intro, .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .sec-top { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(odd) { border-left: 0; padding-left: 0; }
  .step:nth-child(even) { border-left: 1px solid var(--hair); padding-left: 18px; }
  .form { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .pn { grid-template-columns: 1fr; }
  .pn a + a { border-left: 0; padding-left: 0; text-align: left; border-top: 1px solid var(--hair); }
  details > div { padding-right: 0; }
  summary { font-size: 15.5px; }
}

/* Renders with a watermark in the top-left corner: crop from the bottom-right */
img[src*="1_Photo-2-scaled"] { object-position: 100% 100%; }


/* ================================================================
   Motion & refinements (v2)
   ================================================================ */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s cubic-bezier(.4,0,.2,1) both; }
::view-transition-new(root) { animation: vt-in .6s cubic-bezier(.16,1,.3,1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

:root { --ease: cubic-bezier(.16, 1, .3, 1); }

/* Header: symbol only, hides on scroll down */
.header { transition: transform .6s var(--ease), background .4s, border-color .4s; }
.header.hide { transform: translateY(-100%); }
.logo--symbol { width: 46px; justify-self: center; }
.logo--symbol img { width: 46px; height: 46px; transition: transform .8s var(--ease); }
.logo--symbol:hover img { transform: scale(1.08); }

/* Split words */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + var(--base, 0ms)); }
[data-split].in .w > span { transform: none; }
.hero [data-split] { --base: 250ms; }
.hero__kicker { opacity: 0; transform: translateY(12px); transition: opacity 1s .1s, transform 1s .1s var(--ease); margin-bottom: 22px; display: block; }
.loaded .hero__kicker { opacity: 1; transform: none; }

/* Red bars draw in */
.red-bar { transform: scaleX(0); transform-origin: left center; transition: transform 1.1s .35s var(--ease); }
.red-bar.in { transform: scaleX(1); }
.statement .red-bar, .cta .red-bar { transform-origin: center; }

/* Image curtain reveal */
.img-reveal { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.img-reveal img { transform: scale(1.16); transition: transform 1.9s var(--ease), opacity .6s; transition-delay: calc(var(--d, 0) * 90ms); }
.img-reveal.in { clip-path: inset(0 0 0 0); }
.img-reveal.in img { transform: scale(1); }
.proj:hover .img-reveal.in img { transform: scale(1.05); transition-delay: 0s; }
.gallery a.img-reveal.in:hover img { transform: scale(1.03); transition-delay: 0s; }

/* Reveal timing */
.reveal { transition-delay: calc(var(--d, 0) * 80ms); transition-timing-function: var(--ease); transition-duration: 1.1s; }

/* Project cards */
.proj { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.proj.out { opacity: 0; transform: scale(.96); }
.proj__title { position: relative; display: inline-block; }
.proj__title::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.proj:hover .proj__title::after { transform: scaleX(1); }

/* Filters */
.filters { align-items: center; }
.filters a { position: relative; overflow: hidden; transition: color .35s, border-color .35s, background .35s; }
.filters__count { margin-left: auto; font-family: var(--label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.filters__count b { color: var(--white); font-weight: 500; display: inline-block; min-width: 2ch; text-align: right; }

/* Hero */
.hero h1 { font-size: clamp(52px, 8.4vw, 140px); }
.parallax { will-change: transform; }
.hero > img.parallax { animation: none; transform: scale(1.12); }
.scroll-cue { position: absolute; left: 50%; bottom: 0; z-index: 2; width: 1px; height: 72px; background: rgba(255,255,255,.18); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--white); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }

/* Marquee */
.marquee { overflow: hidden; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: .55em; padding-right: .55em; font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: clamp(52px, 8vw, 128px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.3); white-space: nowrap; }
.marquee span i { width: .14em; height: .14em; background: var(--red); flex: none; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Services list as links with a floating preview */
a.svc { color: inherit; transition: padding .6s var(--ease), background .4s; }
a.svc:hover { padding-left: 18px; }
a.svc .h3 { transition: color .4s; }
a.svc:hover p { color: var(--white); }
.svc-preview { position: fixed; left: 0; top: 0; z-index: 40; width: 320px; aspect-ratio: 4 / 3; pointer-events: none; overflow: hidden; opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.85); transition: opacity .4s, transform .5s var(--ease); }
.svc-preview.on { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Steps stagger */
.step.reveal { transition-delay: calc(var(--d, 0) * 110ms); }

/* Custom cursor (desktop only) */
.cursor { position: fixed; left: 0; top: 0; z-index: 80; width: 10px; height: 10px; border-radius: 50%; background: var(--white); pointer-events: none; mix-blend-mode: difference; transform: translate3d(-50%, -50%, 0); transition: width .45s var(--ease), height .45s var(--ease), background .3s; display: grid; place-items: center; }
.cursor span { font-family: var(--label); font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--navy-deep); opacity: 0; transition: opacity .3s; }
.cursor.label { width: 92px; height: 92px; mix-blend-mode: normal; }
.cursor.label span { opacity: 1; }
.cursor.hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor, .svc-preview { display: none; } }

@media (max-width: 900px) {
  .logo--symbol, .logo--symbol img { width: 38px; height: 38px; }
  .filters__count { width: 100%; margin: 8px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  [data-split] .w > span, .img-reveal, .img-reveal img, .red-bar, .hero__kicker { transition: none !important; transform: none !important; clip-path: none !important; opacity: 1 !important; }
  .marquee__track, .scroll-cue::after { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Active filter keeps its colours while hovered */
.filters a[aria-current="page"], .filters a[aria-current="page"]:hover { color: var(--navy-deep); background: var(--white); border-color: var(--white); }

/* v3: smaller header and symbol */
.header__bar { height: 84px; }
.logo--symbol { width: 30px; }
.logo--symbol img { width: 30px; height: 30px; }
.page-hero { padding-top: calc(84px + clamp(56px, 8vw, 110px)); }
@media (max-width: 900px) {
  .header__bar { height: 66px; }
  .logo--symbol, .logo--symbol img { width: 26px; height: 26px; }
  .header.open .nav { top: 66px; }
  .page-hero { padding-top: calc(66px + 56px); }
}

/* Portfolio filter buttons */
.filters button[aria-pressed="true"], .filters button[aria-pressed="true"]:hover { color: var(--navy-deep); background: var(--white); border-color: var(--white); }

/* FAQ page */
.faq-page { display: grid; grid-template-columns: 260px 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.faq-nav { position: sticky; top: 110px; display: grid; gap: 4px; border-left: 1px solid var(--hair); }
.faq-nav a { padding: 8px 0 8px 20px; margin-left: -1px; border-left: 1px solid transparent; font-family: var(--label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); transition: color .3s, border-color .3s; }
.faq-nav a:hover, .faq-nav a.active { color: var(--white); border-color: var(--red); }
.faq-group + .faq-group { margin-top: clamp(64px, 8vw, 110px); }
.faq-group > .label { display: block; margin-bottom: 18px; }
.faq-group h2 { margin-bottom: 26px; }
details > div p + p { margin-top: .8em; }
.faq-more { margin-top: 36px; }
@media (max-width: 900px) {
  .faq-page { grid-template-columns: 1fr; }
  .faq-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .faq-nav a { border: 1px solid var(--hair); padding: 8px 14px; margin: 0; }
}

/* v3: menu fits beside the centred symbol; mobile menu below 1100px */
.nav { gap: 26px; }
.header__right { gap: 22px; }
@media (max-width: 1100px) {
  .header__bar { grid-template-columns: auto 1fr auto; height: 66px; }
  .nav, .header .btn { display: none; }
  .logo--symbol { justify-self: center; }
  .logo--symbol, .logo--symbol img { width: 26px; height: 26px; }
  .menu-btn { display: block; }
  .header.open { background: var(--navy-deep); }
  .header.open .nav {
    display: flex; flex-direction: column; gap: 22px; position: absolute; top: 66px; left: 0; right: 0;
    padding: 32px var(--gutter) 40px; background: var(--navy-deep); border-bottom: 1px solid var(--hair); font-size: 13px;
  }
  .page-hero { padding-top: calc(66px + 56px); }
}
@media (max-width: 1100px) {
  .header__bar { grid-template-columns: 1fr auto 1fr; }
  .menu-btn { justify-self: start; }
}
.header__bar { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
@media (max-width: 1100px) { .header__bar { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } }

/* v4: smaller symbol */
.logo--symbol, .logo--symbol img { width: 24px; height: 24px; }
@media (max-width: 1100px) { .logo--symbol, .logo--symbol img { width: 22px; height: 22px; } }

/* ================================================================ v5 */
/* Compact header built around the small symbol; shrinks on scroll */
.header__bar { height: 76px; transition: height .5s var(--ease); }
.header.scrolled .header__bar { height: 62px; }
.header.scrolled, .header.solid { background: rgba(6,14,26,.78); backdrop-filter: blur(14px) saturate(1.2); }
.nav { gap: 30px; font-size: 10.5px; letter-spacing: .26em; }
.nav a { padding: 4px 0; }
.logo--symbol, .logo--symbol img { width: 26px; height: 26px; }
.header .btn { height: 36px; padding: 0 16px; font-size: 10.5px; gap: 12px; border-color: rgba(255,255,255,.35); }
.header .btn svg { width: 18px; }
.lang { font-size: 10.5px; }
.page-hero { padding-top: calc(76px + clamp(56px, 8vw, 110px)); }
@media (max-width: 1100px) {
  .header__bar, .header.scrolled .header__bar { height: 62px; }
  .logo--symbol, .logo--symbol img { width: 24px; height: 24px; }
  .header.open .nav { top: 62px; }
  .page-hero { padding-top: calc(62px + 56px); }
}

/* Scrolling words: solid white */
.marquee span { color: var(--white); -webkit-text-stroke: 0; }

/* Scroll-to-top with progress ring */
.to-top {
  position: fixed; right: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px); z-index: 45;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(6,14,26,.7); backdrop-filter: blur(8px); color: var(--white);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease), background .3s;
}
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--white); color: var(--navy-deep); }
.to-top svg.ring { position: absolute; inset: 0; width: 52px; height: 52px; transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke-width: 1.2; }
.to-top .ring .track { stroke: rgba(255,255,255,.18); }
.to-top .ring .bar { stroke: var(--red); stroke-dasharray: 157; stroke-dashoffset: 157; }
.to-top .arrow { width: 14px; height: 14px; position: relative; transition: transform .4s var(--ease); }
.to-top:hover .arrow { transform: translateY(-3px); }

/* Footer v5 */
.footer { padding: clamp(80px, 9vw, 130px) 0 28px; background: var(--navy-deep); position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); }
.footer__lead { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; padding-bottom: clamp(56px, 7vw, 96px); }
.footer__lead .display { font-size: clamp(44px, 6.4vw, 104px); }
.footer__lead .display .dim { color: rgba(255,255,255,.45); }
.footer__mail { justify-self: end; text-align: right; display: grid; gap: 18px; }
.footer__mail a.big { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 2.8vw, 40px); text-transform: lowercase; position: relative; }
.footer__mail a.big::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--red); transform: scaleX(.25); transform-origin: right; transition: transform .7s var(--ease); }
.footer__mail a.big:hover::after { transform: scaleX(1); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding: 56px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.footer .brand .logo { width: 210px; margin-bottom: 22px; }
.footer .brand p { color: var(--text-2); font-size: 14px; max-width: 300px; }
.footer h2 { font-family: var(--label); font-weight: 500; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--text-3); margin-bottom: 20px; }
.footer ul { list-style: none; display: grid; gap: 10px; font-size: 14.5px; }
.footer ul a { color: var(--text-2); position: relative; transition: color .3s, padding .4s var(--ease); }
.footer ul a:hover { color: var(--white); padding-left: 8px; }
.footer address { font-style: normal; color: var(--text-2); font-size: 14.5px; line-height: 1.8; }
.socials { display: flex; gap: 12px; margin-top: 26px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--hair); display: grid; place-items: center; color: var(--white); transition: background .35s, color .35s, border-color .35s, transform .5s var(--ease); }
.socials a:hover { background: var(--white); color: var(--navy-deep); border-color: var(--white); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 26px; font-family: var(--label); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.footer__bottom a:hover { color: var(--white); }
.footer__bottom nav { display: flex; gap: 26px; }
@media (max-width: 900px) {
  .footer__lead { grid-template-columns: 1fr; }
  .footer__mail { justify-self: start; text-align: left; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* About page */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.about-symbol { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--hair); position: relative; }
.about-symbol img { width: 46%; height: auto; }
.about-symbol::before, .about-symbol::after { content: ""; position: absolute; background: var(--hair); }
.about-symbol::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: rotate(45deg); }
.about-symbol::after { top: 50%; left: 0; right: 0; height: 1px; transform: rotate(45deg); }
.cipher { display: flex; gap: clamp(18px, 3vw, 40px); margin-top: 30px; }
.cipher div { text-align: center; font-family: var(--label); font-size: 11px; letter-spacing: .3em; color: var(--text-3); }
.cipher b { display: block; font-family: var(--display); font-weight: 500; font-size: 44px; color: var(--white); letter-spacing: 0; line-height: 1.1; }
.cipher div:last-child b { color: var(--red); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair); }
.trio > div { padding: 36px 32px 0 0; }
.trio > div + div { padding-left: 32px; border-left: 1px solid var(--hair); }
.trio h3 { font-family: var(--display); font-weight: 500; font-size: 32px; text-transform: uppercase; margin: 16px 0 10px; }
.trio p { color: var(--text-2); }
.expr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.expr > div { background: var(--navy); padding: 34px 28px 40px; min-height: 260px; display: flex; flex-direction: column; gap: 14px; transition: background .5s; }
.expr > div:hover { background: #0E2742; }
.expr > div.here { background: var(--white); color: var(--navy-deep); }
.expr > div.here .label, .expr > div.here p { color: var(--navy); }
.expr h3 { font-family: var(--display); font-weight: 500; font-size: 34px; text-transform: uppercase; line-height: 1; margin-top: auto; }
.expr p { color: var(--text-2); font-size: 14px; }
@media (max-width: 900px) {
  .about-split, .trio { grid-template-columns: 1fr; }
  .trio > div, .trio > div + div { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--hair); }
  .expr { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .expr { grid-template-columns: 1fr; } }

/* Landing B: split hero with slideshow, horizontal selection, sticky method */
.heroB { min-height: 100vh; display: grid; grid-template-columns: .9fr 1.1fr; }
.heroB__text { padding: calc(76px + 8vh) clamp(24px, 5vw, 80px) 8vh var(--gutter); display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; }
.heroB__text h1 { font-size: clamp(50px, 6.6vw, 118px); }
.heroB__text h1 .dim { color: rgba(255,255,255,.45); }
.heroB__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.slides { position: relative; overflow: hidden; background: var(--navy); }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease, transform 7s linear; }
.slides img.on { opacity: 1; transform: scale(1); }
.slides__ui { position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 2; display: flex; align-items: center; gap: 18px; font-family: var(--label); font-size: 11px; letter-spacing: .24em; color: var(--white); }
.slides__bar { flex: 1; height: 1px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.slides__bar i { position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }
.slides__bar i.run { transition: transform 5s linear; transform: scaleX(1); }
.slides__cap { position: absolute; left: 28px; top: 28px; z-index: 2; }
.slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,14,26,.6), transparent 35%); pointer-events: none; }
.hscroll { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 24px; scrollbar-width: none; cursor: grab; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll.drag { cursor: grabbing; scroll-snap-type: none; }
.hscroll .proj { flex: 0 0 min(62vw, 820px); scroll-snap-align: start; }
.hscroll .proj__img { aspect-ratio: 16 / 10; }
.hs-nav { display: flex; gap: 10px; }
.hs-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--hair); background: none; color: var(--white); cursor: pointer; display: grid; place-items: center; transition: background .3s, color .3s; }
.hs-nav button:hover { background: var(--white); color: var(--navy-deep); }
.hs-nav svg { width: 22px; height: 10px; }
.hs-nav button:first-child svg { transform: rotate(180deg); }
.sticky-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 8vw, 120px); }
.sticky-wrap > div:first-child { position: sticky; top: 120px; align-self: start; }
.big-steps > div { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 34px 0; border-top: 1px solid var(--hair); }
.big-steps b { font-family: var(--display); font-weight: 500; font-size: 64px; line-height: .9; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.5); }
.big-steps h3 { font-family: var(--display); font-weight: 500; font-size: 30px; text-transform: uppercase; }
.big-steps p { color: var(--text-2); }
@media (max-width: 900px) {
  .heroB { grid-template-columns: 1fr; }
  .heroB .slides { height: 62vh; order: -1; }
  .heroB__text { padding-top: 40px; }
  .hscroll .proj { flex-basis: 84vw; }
  .sticky-wrap { grid-template-columns: 1fr; }
  .sticky-wrap > div:first-child { position: static; }
  .big-steps > div { grid-template-columns: 70px 1fr; }
  .big-steps b { font-size: 44px; }
}

/* v5b: clip the image, not its frame, so visibility detection can see the frame */
.img-reveal, .img-reveal.in { clip-path: none; }
.img-reveal img { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease), transform 1.9s var(--ease), opacity .6s; transition-delay: calc(var(--d, 0) * 90ms); }
.img-reveal.in img { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { .img-reveal img { clip-path: none !important; } }

/* Landing B: one viewport tall, caption clear of the header */
.heroB { min-height: 0; height: 100vh; max-height: 1000px; min-height: 680px; }
.slides__cap { top: 96px; }
.hscroll { scroll-padding-left: var(--gutter); scroll-padding-right: var(--gutter); }

/* ================================================================ v6
   Header: symbol on the left, menu beside it, actions on the right */
.header__bar.header__bar--left { display: flex; align-items: center; gap: clamp(28px, 4vw, 56px); grid-template-columns: none; }
.header__bar--left .logo--symbol { justify-self: auto; flex: none; width: 26px; height: 26px; }
.header__bar--left .logo--symbol img { width: 26px; height: 26px; }
.header__bar--left .nav { flex: 1; }
.header__bar--left .header__right { margin-left: auto; }
@media (max-width: 1100px) {
  .header__bar.header__bar--left { gap: 16px; }
  .header__bar--left .logo--symbol, .header__bar--left .logo--symbol img { width: 24px; height: 24px; }
  .header__bar--left .menu-btn { justify-self: auto; margin-right: -10px; }
}

/* About v2 */
.hero--about { height: 88vh; min-height: 600px; }
.hero--about h1 { font-size: clamp(52px, 8vw, 132px); }
.hero--about .crumbs { margin-bottom: 22px; }
.manifesto { margin-top: 30px; font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: clamp(34px, 4.6vw, 72px); line-height: 1.05; max-width: 1180px; }
.manifesto .sw { color: rgba(255,255,255,.14); transition: color .5s ease; }
.manifesto .sw.on { color: var(--white); }
.symbol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.symbol-build { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--hair); position: relative; }
.symbol-build::before, .symbol-build::after { content: ""; position: absolute; background: var(--hair); }
.symbol-build::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.symbol-build::after { top: 50%; left: 0; right: 0; height: 1px; }
.symbol-build svg { width: 58%; height: auto; overflow: visible; position: relative; z-index: 1; }
.symbol-build .sp { opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .9s ease, transform 1.4s var(--ease); }
.symbol-build .sp1 { transform: translate(-60px, 60px); }
.symbol-build .sp2 { transform: translate(60px, -60px); }
.symbol-build .sp3 { transform: translate(-50px, -50px); }
.symbol-build .sp4 { transform: scale(0); }
.symbol-build.in .sp { opacity: 1; transform: none; }
.symbol-build.in .sp2 { transition-delay: .35s; }
.symbol-build.in .sp3 { transition-delay: .7s; }
.symbol-build.in .sp4 { transition-delay: 1.15s; }
.mrows { border-top: 1px solid var(--hair); }
.mrow { display: grid; grid-template-columns: 180px 1fr 1.2fr; gap: 32px; align-items: baseline; padding: clamp(32px, 4vw, 52px) 0; border-bottom: 1px solid var(--hair); }
.mrow b { font-family: var(--display); font-weight: 500; font-size: clamp(64px, 8vw, 120px); line-height: .85; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.45); transition: color .6s, -webkit-text-stroke-color .6s; }
.mrow:hover b { color: var(--white); -webkit-text-stroke-color: var(--white); }
.mrow h3 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.2vw, 48px); text-transform: uppercase; }
.mrow p { color: var(--text-2); max-width: 460px; }
.acc { display: flex; gap: 10px; height: clamp(420px, 60vh, 600px); }
.acc__panel { position: relative; flex: 1; overflow: hidden; background: var(--navy-deep); border: 1px solid var(--hair); cursor: pointer; transition: flex 1s var(--ease), border-color .4s; outline: none; }
.acc__panel.open { flex: 3.2; border-color: rgba(255,255,255,.3); }
.acc__panel img { position: absolute; inset: 0; opacity: .35; transform: scale(1.08); transition: opacity 1s, transform 1.6s var(--ease); }
.acc__panel.open img { opacity: .55; transform: scale(1); }
.acc__panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,14,26,.92), rgba(6,14,26,.1) 65%); }
.acc__body { position: absolute; left: 28px; right: 28px; bottom: 28px; z-index: 1; display: grid; gap: 12px; }
.acc__body h3 { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3vw, 46px); text-transform: uppercase; line-height: 1; white-space: nowrap; }
.acc__body p { color: var(--text-2); max-width: 380px; opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .8s var(--ease); }
.acc__panel.open .acc__body p { opacity: 1; transform: none; transition-delay: .35s; }
.acc__panel:not(.open) .acc__body h3 { writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(24px, 2.2vw, 34px); }
.acc__panel:not(.open) .acc__body .label { display: none; }
@media (max-width: 900px) {
  .symbol-grid { grid-template-columns: 1fr; }
  .mrow { grid-template-columns: 1fr; gap: 10px; }
  .acc { flex-direction: column; height: auto; }
  .acc__panel, .acc__panel.open { flex: none; min-height: 220px; }
  .acc__panel:not(.open) .acc__body h3 { writing-mode: horizontal-tb; transform: none; }
  .acc__panel .acc__body p, .acc__panel:not(.open) .acc__body .label { opacity: 1; transform: none; display: block; }
}

/* Sousse v2 */
.wide-img { aspect-ratio: 21 / 9; overflow: hidden; }
.intro-2col { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 6vw, 96px); }
@media (max-width: 900px) { .wide-img { aspect-ratio: 4 / 3; } .intro-2col { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .symbol-build .sp { opacity: 1 !important; transform: none !important; }
  .manifesto .sw { color: var(--white); }
}

/* ---------- v7: readability, focus, touch targets, homepage / contact / project / about updates ---------- */
/* Supporting text: ≥ 4.5:1 on navy-deep (was ~3.8:1 for --text-3) */
:root { --text-2: rgba(255, 255, 255, .74); --text-3: rgba(255, 255, 255, .58); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.filters button:focus-visible, .btn:focus-visible { outline-offset: 4px; }

.nav { font-size: 12.5px; letter-spacing: .16em; gap: 28px; }
.lang { font-size: 12px; letter-spacing: .16em; }
.header .btn { font-size: 11.5px; height: 40px; letter-spacing: .16em; }
.label { font-size: 11.5px; letter-spacing: .24em; }
.tag { font-size: 11px; letter-spacing: .18em; }
.crumbs { font-size: 11.5px; letter-spacing: .16em; }
.specs dt { font-size: 11px; letter-spacing: .2em; }
.note-3d { font-size: 11.5px; letter-spacing: .14em; line-height: 1.7; }
.note-3d a { color: var(--white); border-bottom: 1px solid rgba(255,255,255,.4); }
.footer__bottom { font-size: 11.5px; letter-spacing: .16em; }
.filters button { font-size: 12px; letter-spacing: .16em; }

@media (pointer: coarse) {
  .filters button { min-height: 44px; }
  .lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .footer ul a, .footer__bottom nav a, .footer__mail .label a, .arrow-link { display: inline-flex; align-items: center; min-height: 44px; }
  .logo--symbol { padding: 10px; margin: -10px; box-sizing: content-box; }
  .field select { min-height: 44px; }
}

/* Homepage hero: service-area line and two actions */
.hero__area { margin-top: 24px; max-width: 560px; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.hero__area a { color: var(--white); border-bottom: 1px solid rgba(255,255,255,.45); }
.hero__grid { grid-template-columns: 1fr; gap: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 560px) {
  .hero__area { font-size: 15px; margin-top: 18px; }
  .hero__actions { display: grid; width: 100%; gap: 10px; }
  .hero__actions { margin-top: 26px; }
  .hero__actions .btn { width: 100%; justify-content: space-between; height: 52px; padding: 0 20px; }
}

/* Contact: quick actions in the intro, form before details on small screens */
.contact-quick { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-sec { padding-top: 0; }
.contact-grid .form { grid-column: 2; grid-row: 1; }
.contact-grid .info { grid-column: 1; grid-row: 1; }
.form__req { grid-column: 1 / -1; font-size: 13px; color: var(--text-2); }
@media (max-width: 900px) {
  .contact-grid .form, .contact-grid .info { grid-column: auto; grid-row: auto; }
}
@media (max-width: 560px) {
  .contact-quick { display: grid; }
  .contact-quick .btn { justify-content: center; height: 52px; padding: 0 16px; letter-spacing: .1em; font-size: 11px; }
}

/* Project pages: render / photo labels and story headings */
.gallery figure { position: relative; margin: 0; }
.gallery figure:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.kind {
  position: absolute; left: 12px; top: 12px; z-index: 2; padding: 5px 10px; pointer-events: none;
  font-family: var(--label); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(6, 14, 26, .85); color: var(--white);
}
.kind--photo { background: var(--white); color: var(--navy-deep); }
.kind--hero { left: auto; right: var(--gutter); top: 96px; }
@media (max-width: 1100px) { .kind--hero { top: 80px; } }
.project-story h2 { margin: 1.8em 0 .6em; font-size: clamp(22px, 2vw, 28px); }
.project-story h2:first-child { margin-top: 0; }
.project-story ul { padding-left: 1.1em; color: var(--text-2); }

/* About: people */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 40px 24px; }
.person__img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 18px; }
.person__role { font-family: var(--label); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); margin: 8px 0 12px; }
.person p { color: var(--text-2); }

/* ---------- v8: larger header symbol; header always visible ---------- */
.header.hide { transform: none; }
.header__bar--left .logo--symbol, .header__bar--left .logo--symbol img { width: 34px; height: 34px; }
@media (max-width: 1100px) { .header__bar--left .logo--symbol, .header__bar--left .logo--symbol img { width: 30px; height: 30px; } }

/* ---------- v9: contact map with brand-red pin (map opens in Google Maps) ---------- */
.map-wrap { position: relative; display: block; overflow: hidden; }
.map-wrap .map { display: block; pointer-events: none; }
.map-pin { position: absolute; left: 50%; top: 50%; width: 34px; height: 46px; transform: translate(-50%, -100%); filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)); }
.map-open {
  position: absolute; left: 14px; bottom: 14px; padding: 9px 14px; background: rgba(6,14,26,.88); color: var(--white);
  font-family: var(--label); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; transition: background .3s, color .3s;
}
.map-wrap:hover .map-open { background: var(--white); color: var(--navy-deep); }

/* ---------- v10: standard page header with a background photo (À propos) ---------- */
.page-hero--bg { position: relative; overflow: hidden; }
.page-hero--bg .page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero--bg::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(6,14,26,.72) 0%, rgba(6,14,26,.55) 45%, rgba(6,14,26,.92) 88%, var(--navy-deep) 100%);
}
.page-hero--bg > .wrap { position: relative; z-index: 1; }
.page-hero--bg .lede { color: rgba(255,255,255,.82); }

/* ---------- v12: portfolio masonry (each image keeps its own shape; rows set by site.js) ---------- */
.proj-grid--masonry.is-masonry { grid-auto-rows: 4px; row-gap: 0; align-items: start; }
.proj-grid--masonry.is-masonry .proj { margin-bottom: 44px; }
@media (max-width: 900px) { .proj-grid--masonry.is-masonry .proj { margin-bottom: 36px; } }

/* ---------- v13: expression panels that link to their own site (DICE STAGIO) ---------- */
.acc__body h3 a { color: inherit; }
.acc__body h3 a span { font-size: .55em; vertical-align: super; color: var(--red); }
.acc__link { order: 9; justify-self: start; font-family: var(--label); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--white); border-bottom: 1px solid var(--red); padding-bottom: 4px; opacity: 0; transition: opacity .6s; }
.acc__panel.open .acc__link { opacity: 1; transition-delay: .45s; }
.acc__panel:not(.open) .acc__body a { pointer-events: none; }  /* first tap opens the panel, the next one follows the link */
.acc__panel:not(.open) .acc__link { display: none; }
.acc__body h3 a:hover, .acc__link:hover { color: var(--red); }
@media (max-width: 900px) { .acc__link { opacity: 1; } }
