/* KMD Technologies — kmdtech.gr
   Palette from the logo (#278FCE blue, #58595B grey) plus the black / oak / white of the KMD office. */

@font-face { font-family: "Sofia XCond"; src: url(../fonts/sofia-xcond-greek.woff2) format("woff2"); font-weight: 300 900; font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Sofia XCond"; src: url(../fonts/sofia-xcond-latin.woff2) format("woff2"); font-weight: 300 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Commissioner"; src: url(../fonts/commissioner-greek.woff2) format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Commissioner"; src: url(../fonts/commissioner-latin.woff2) format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #111214; --ink-2: #1a1b1e; --ink-3: #26272b;
  --paper: #f3f0ea; --paper-2: #e8e3d9; --white: #fff;
  --blue: #278fce; --blue-d: #1b6fa3; --grey: #58595b; --oak: #b58a5c;
  --text: #1d1e21; --muted: #5d5e63; --muted-d: #a7a8ad; --line: rgba(17,18,20,.14); --line-d: rgba(255,255,255,.14);
  --f-display: "Sofia XCond", "Arial Narrow", sans-serif;
  --f-body: "Commissioner", "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --cut: clamp(28px, 5vw, 72px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.65 var(--f-body); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; line-height: .9; letter-spacing: .005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); background: rgba(17,18,20,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-d); color: #fff; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 100%; max-width: none; }
.brand { display: block; flex: none; }
.brand img { height: 44px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-size: .9rem; font-weight: 500; letter-spacing: .02em; padding: 8px 12px; color: rgba(255,255,255,.82); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--blue); }
.lang { display: flex; gap: 2px; margin-left: 8px; font-size: .8rem; font-weight: 600; }
.lang a, .lang span { padding: 6px 8px; text-decoration: none; }
.lang span { color: #fff; background: var(--ink-3); }
.lang a { color: var(--muted-d); }
.lang a:hover { color: #fff; }
.header-cta { margin-left: 12px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-d); width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 2px; margin: 4px auto; background: #fff; transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .site-header .header-cta { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 28px; background: var(--ink); border-bottom: 1px solid var(--line-d);
         transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line-d); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--blue); }
  .lang { margin: 16px 0 0; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: 2px solid var(--blue); background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; letter-spacing: .02em; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--blue-d); border-color: var(--blue-d); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--dark { background: var(--ink); border-color: var(--ink); }
.btn--dark:hover { background: var(--ink-3); border-color: var(--ink-3); }
.btn--sm { padding: 9px 14px; font-size: .85rem; }
.arrow::after { content: "→"; transition: transform .2s; }
a:hover > .arrow::after, .btn:hover .arrow::after, .arrow:hover::after { transform: translateX(4px); }

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section--dark { background: var(--ink); color: #fff; }
.section--paper2 { background: var(--paper-2); }
.cut-top { clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); margin-top: calc(var(--cut) * -1); padding-top: calc(clamp(72px, 10vw, 140px) + var(--cut)); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
.section-head p { color: var(--muted); max-width: 52ch; margin: 0; }
.section--dark .section-head p { color: var(--muted-d); }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: var(--ink); overflow: hidden; }
.hero video, .hero .hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(180deg, rgba(17,18,20,.55) 0%, rgba(17,18,20,.15) 35%, rgba(17,18,20,.7) 72%, rgba(17,18,20,.96) 100%),
  linear-gradient(90deg, rgba(17,18,20,.7) 0%, rgba(17,18,20,0) 60%); }
.hero::after { content: ""; position: absolute; z-index: 1; right: 0; bottom: 0; width: 38vw; height: 22vw; background: var(--blue); clip-path: polygon(100% 0, 100% 100%, 0 100%); opacity: .9; }
.hero-inner { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 48px); padding-bottom: 40px; }
.hero h1 { font-size: clamp(3rem, 7.4vw, 7.25rem); line-height: .86; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-lead { margin: 28px 0 32px; max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { position: relative; z-index: 2; border-top: 1px solid var(--line-d); }
.hero-stats ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-stats li { padding: 22px 20px 26px 0; border-right: 1px solid var(--line-d); margin-right: 20px; font-size: .85rem; color: rgba(255,255,255,.75); }
.hero-stats li:last-child { border-right: 0; }
.hero-stats strong { display: block; font: 800 clamp(1.8rem, 3.2vw, 2.8rem)/1 var(--f-display); color: #fff; margin-bottom: 4px; }
@media (max-width: 760px) {
  .hero-stats ul { grid-template-columns: 1fr 1fr; }
  .hero-stats li { border-right: 0; border-bottom: 1px solid var(--line-d); margin-right: 0; padding: 16px 12px 16px 0; }
  .hero::after { width: 60vw; height: 36vw; }
}

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; background: var(--ink); color: #fff; padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 calc(clamp(56px, 8vw, 104px) + var(--cut)); overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: var(--cut); background: var(--paper); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.page-hero.to-dark::after { background: var(--ink); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(3rem, 8.5vw, 7.5rem); line-height: .86; max-width: 14ch; }
.page-hero p { margin: 24px 0 0; max-width: 56ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: rgba(255,255,255,.84); }
.page-hero .tag { display: inline-block; margin-top: 24px; padding: 6px 12px; border: 1px solid var(--oak); color: #e9d3bb; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: .82rem; color: var(--muted-d); }
.crumbs a { color: var(--muted-d); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

/* ---------- Two services ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.svc { position: relative; display: flex; flex-direction: column; min-height: 600px; padding: clamp(32px, 4vw, 56px); text-decoration: none; overflow: hidden; isolation: isolate; }
.svc h3 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); margin: auto 0 18px; max-width: 11ch; }
.svc p { max-width: 42ch; margin-bottom: 22px; }
.svc ul { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.svc li { padding: 5px 11px; font-size: .8rem; border: 1px solid currentColor; opacity: .85; }
.svc .num { font: 800 1rem/1 var(--f-display); letter-spacing: .14em; }
.svc .more { font-weight: 600; display: inline-flex; gap: 10px; }
.svc--photo { color: #fff; }
.svc--photo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.svc--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17,18,20,.15), rgba(17,18,20,.88) 75%); }
.svc--photo:hover img { transform: scale(1.04); }
.svc--plan { color: #fff; }
.svc--plan, .page-hero--plan { background-color: var(--ink-2);
  background-image: linear-gradient(var(--line-d) 1px, transparent 1px), linear-gradient(90deg, var(--line-d) 1px, transparent 1px),
                    linear-gradient(rgba(39,143,206,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(39,143,206,.10) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px; }
.svc--plan::after { content: ""; position: absolute; z-index: -1; right: -10%; top: -10%; width: 70%; aspect-ratio: 1; background: url(../logo/kmd-icon.svg) center/contain no-repeat; opacity: .08; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.svc--plan:hover::after { transform: rotate(8deg) scale(1.04); }
.svc li { list-style: none; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } .svc { min-height: 520px; } }

/* ---------- Projects grid ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; gap: 16px; }
.proj { position: relative; display: block; overflow: hidden; color: #fff; text-decoration: none; background: var(--ink-3); isolation: isolate; }
.proj img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.proj::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(17,18,20,.9)); }
.proj:hover img { transform: scale(1.05); }
.proj-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; }
.proj-kind { display: inline-block; margin-bottom: 10px; padding: 4px 9px; background: var(--blue); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.proj-kind--design { background: var(--oak); }
.proj h3 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.proj p { margin: 6px 0 0; font-size: .88rem; color: rgba(255,255,255,.78); }
.proj--wide { grid-column: span 2; }
.proj--tall { grid-row: span 2; }
.proj[hidden] { display: none; }
.proj--link { background: var(--blue); transition: background .2s; }
.proj--link::before { display: none; }
.proj--link:hover { background: var(--blue-d); }
@media (max-width: 900px) { .projects { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; } }
@media (max-width: 600px) { .projects { grid-template-columns: 1fr; } .proj--wide { grid-column: auto; } .proj--tall { grid-row: auto; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { padding: 9px 16px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: .88rem; font-weight: 500; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-d); counter-reset: step; }
.steps li { position: relative; padding: 28px 22px 8px 0; counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; margin-bottom: 18px; font: 800 clamp(3rem, 5vw, 4.6rem)/.8 var(--f-display); color: transparent; -webkit-text-stroke: 1.5px var(--blue); }
.steps li::after { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 3px; background: var(--blue); }
.steps h3 { font-size: 1.55rem; margin-bottom: 10px; }
.steps p { font-size: .92rem; color: var(--muted-d); }
.section:not(.section--dark) .steps { border-color: var(--line); }
.section:not(.section--dark) .steps p { color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; gap: 0 24px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Trust / clients ---------- */
.clients { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.clients li { display: flex; flex-direction: column; justify-content: center; min-height: 128px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients strong { font: 800 1.45rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.clients span { margin-top: 8px; font-size: .82rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 900px) { .clients { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .clients { grid-template-columns: 1fr; } .clients li { min-height: 0; } }

.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); font-size: .88rem; font-weight: 600; }
.badge b { font: 800 1.2rem/1 var(--f-display); color: var(--blue); }

/* ---------- Text + media blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
.split h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); margin-bottom: 24px; }
.split .media { position: relative; }
.split .media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split .media::after { content: ""; position: absolute; right: -14px; bottom: -14px; width: 42%; height: 42%; border-right: 3px solid var(--blue); border-bottom: 3px solid var(--blue); pointer-events: none; }
.prose p { color: var(--muted); }
.section--dark .prose p { color: var(--muted-d); }
.prose .lead { font-size: 1.2rem; color: var(--text); }
.section--dark .prose .lead { color: #fff; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .media { order: -1; } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card { padding: clamp(24px, 3vw, 36px); background: var(--paper); }
.card .num { font: 800 .95rem/1 var(--f-display); letter-spacing: .14em; color: var(--blue); }
.card h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin: 16px 0 12px; line-height: .95; }
.card p { margin: 0; font-size: .95rem; color: var(--muted); }
.section--dark .cards { background: var(--line-d); border-color: var(--line-d); }
.section--dark .card { background: var(--ink); }
.section--dark .card p { color: var(--muted-d); }
@media (max-width: 1000px) { .cards, .cards--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards, .cards--4 { grid-template-columns: 1fr; } }

.checklist li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 19px; width: 16px; height: 9px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }
.section--dark .checklist li { border-color: var(--line-d); }

/* ---------- Big CTA band ---------- */
.cta-band { position: relative; background: var(--blue); color: #fff; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -6%; top: 50%; width: 46vw; max-width: 620px; aspect-ratio: 1; transform: translateY(-50%); background: url(../logo/kmd-icon.svg) center/contain no-repeat; filter: brightness(0) invert(1); opacity: .1; }
.cta-band .wrap { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); }
.cta-band h2 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
.cta-band p { margin: 18px 0 0; max-width: 46ch; color: rgba(255,255,255,.9); }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-band .btn { background: var(--ink); border-color: var(--ink); }
.cta-band .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }
.cta-band .tel { font: 800 clamp(1.8rem, 3vw, 2.6rem)/1 var(--f-display); text-decoration: none; }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Turnover chart ---------- */
.chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(6px, 1.4vw, 18px); align-items: end; height: 340px; padding-top: 40px; border-bottom: 1px solid var(--line-d); }
.chart li { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.chart .bar { height: var(--h); background: linear-gradient(180deg, var(--blue), var(--blue-d)); transform-origin: bottom; }
.chart li:last-child .bar { background: linear-gradient(180deg, #4fb0ea, var(--blue)); }
.chart .val { position: absolute; left: 0; right: 0; bottom: calc(var(--h) + 8px); text-align: center; font: 700 clamp(.62rem, 1.1vw, .85rem)/1.1 var(--f-body); color: #fff; }
.chart .yr { position: absolute; left: 0; right: 0; bottom: -28px; text-align: center; font-size: .82rem; color: var(--muted-d); }
.chart-note { margin-top: 44px; font-size: .85rem; color: var(--muted-d); }
.js .chart .bar { transform: scaleY(0); transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.js .chart.is-in .bar { transform: none; }
@media (max-width: 560px) { .chart { height: 260px; } .chart .val { writing-mode: vertical-rl; transform: rotate(180deg); bottom: calc(var(--h) + 6px); } }

/* ---------- Org structure ---------- */
.org { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.org-col h3 { font-size: 1.3rem; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 2px solid var(--blue); }
.org-col li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.org-col li small { display: block; color: var(--muted); font-size: .8rem; }
@media (max-width: 760px) { .org { grid-template-columns: 1fr; } }

/* ---------- Gallery + lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery button { position: relative; display: block; padding: 0; border: 0; background: var(--ink-3); cursor: zoom-in; overflow: hidden; aspect-ratio: 4/3; }
.gallery button.is-tall { grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.gallery button:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10,10,12,.96); color: #fff; }
.lightbox::backdrop { background: rgba(10,10,12,.8); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 72px 24px; }
.lightbox img { max-height: calc(100vh - 140px); width: auto; object-fit: contain; }
.lightbox figcaption { margin-top: 14px; font-size: .9rem; color: var(--muted-d); text-align: center; }
.lb-btn { position: absolute; background: rgba(255,255,255,.08); border: 1px solid var(--line-d); color: #fff; width: 52px; height: 52px; font-size: 1.4rem; cursor: pointer; }
.lb-btn:hover { background: var(--blue); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox figure { padding: 64px 8px 80px; } .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; } }

/* ---------- Project page facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: clamp(40px, 6vw, 72px); }
.facts div { padding: 20px 20px 20px 0; }
.facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-weight: 600; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }
.notice { padding: 18px 22px; border-left: 4px solid var(--oak); background: var(--paper-2); margin-bottom: 40px; }
.next-proj { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 32px; margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.next-proj a { text-decoration: none; font: 800 clamp(1.6rem, 3vw, 2.4rem)/1 var(--f-display); text-transform: uppercase; }
.next-proj a:hover { color: var(--blue); }
.next-proj small { display: block; font: 600 .75rem/1 var(--f-body); letter-spacing: .14em; color: var(--muted); margin-bottom: 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list small { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-list a { text-decoration: none; font-weight: 600; font-size: 1.15rem; }
.contact-list a:hover { color: var(--blue); }
.contact-box { padding: clamp(24px, 4vw, 44px); background: #fff; border-top: 4px solid var(--blue); }
.contact-box h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 14px; }
.contact-box p { color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.map-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 22px; background: var(--ink); color: #fff; text-decoration: none; }
.map-link strong { font: 800 1.5rem/1 var(--f-display); text-transform: uppercase; }
.map-link:hover { background: var(--blue); }

/* ---------- Legal text ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.8rem; margin: 40px 0 14px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding: clamp(56px, 8vw, 96px) 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h2 { font: 700 .75rem/1 var(--f-body); letter-spacing: .16em; color: #fff; margin-bottom: 18px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 18px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-d); font-size: .8rem; color: var(--muted-d); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.hero .load { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .chart .bar { transform: none; }
  .hero video { display: none; }
}
