/* =========================================================
   epi consulting engineers — site styles
   ========================================================= */

:root {
  --ink: #111315;
  --ink-2: #2b2e31;
  --muted: #676b70;
  --paper: #f1f3f4;
  --paper-2: #e7eaec;
  --white: #ffffff;
  --line: #d8dcdf;
  --red: #ff0000;
  --max: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.035em; line-height: 1.04; overflow-wrap: normal; word-break: normal; hyphens: manual; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; font-size: 14px; }
.skip-link:focus { left: 12px; }

.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--red); z-index: 120; }

/* ---------- Brand logo ---------- */
.brand-logo { display: block; height: 40px; width: auto; }
.site-header.is-scrolled .brand-logo { height: 36px; }
.site-footer .brand-logo { height: 36px; }
.brand-logo { transition: height .35s var(--ease); }
.brand { display: inline-flex; align-items: center; }
.brand-wordmark { display: flex; align-items: baseline; line-height: 1; white-space: nowrap; }
.brand-epi { position: relative; font-size: 30px; font-weight: 500; letter-spacing: -.075em; text-transform: lowercase; line-height: 1; }
.brand-dot { display: inline-block; width: 5px; height: 5px; margin-left: 3px; border-radius: 50%; background: var(--red); vertical-align: baseline; }
.brand-sub { margin-left: 10px; font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: lowercase; color: var(--ink-2); }

/* ---------- Section tags & headings ---------- */
.section-tag { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.tag-num { display: inline-flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; color: var(--ink); }
.tag-num::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .5; }
.section-head { margin-bottom: clamp(44px, 6vw, 80px); }
.section-head h2 { font-size: clamp(28px, 3vw, 42px); max-width: 20ch; }
.section-head-split { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.section-intro { max-width: 34ch; color: var(--muted); font-size: 17px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: height .35s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled { height: 64px; background: rgba(241,243,244, .86); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.site-nav { position: relative; display: flex; gap: 34px; font-size: 14px; font-weight: 500; }
.site-nav a { position: relative; padding: 6px 0; color: var(--ink-2); transition: color .2s; }
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); }
.nav-indicator { position: absolute; bottom: 0; left: 0; height: 1.5px; width: 0; background: var(--ink); opacity: 0; transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s; }
.nav-indicator.is-visible { opacity: 1; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 99px; }
.lang-btn { border: 0; background: transparent; padding: 4px 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; border-radius: 99px; color: var(--muted); transition: background .25s, color .25s; }
.lang-btn.active { background: var(--ink); color: var(--paper); }
.header-cta { font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 99px; background: var(--ink); color: var(--paper); transition: background .25s; }
.header-cta:hover { background: #000; }

.menu-btn { display: none; width: 42px; height: 42px; border: 0; background: none; padding: 0; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn.is-active span:first-child { top: 20px; transform: rotate(45deg); }
.menu-btn.is-active span:last-child { top: 20px; transform: rotate(-45deg); }
body.nav-lock { overflow: hidden; }

/* =========================================================
   BUTTONS
   ========================================================= */
.button { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 26px; border-radius: 99px; font-size: 15px; font-weight: 600; transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s; will-change: transform; }
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: #000; }
.button-ghost { border: 1px solid rgba(17, 19, 21, .25); color: var(--ink); }
.button-ghost:hover { border-color: var(--ink); }
.btn-arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .35s var(--ease); }
.button:hover .btn-arrow { transform: translateX(4px); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--paper); }
.hero::before { /* faint drafting grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(17,19,21,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(17,19,21,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 68% 50%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 70% at 68% 50%, #000 20%, transparent 75%);
}
.hero-frame { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: calc(var(--header-h) + 40px) var(--gutter) 110px; pointer-events: none; }
.hero-copy { max-width: 640px; pointer-events: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 30px; font-size: 13px; font-weight: 600; color: var(--muted); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hero-title { font-size: clamp(40px, 5.6vw, 80px); line-height: 1; letter-spacing: -.045em; font-weight: 600; }
.hero-title .word { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em 0 .24em; margin: -.12em 0 -.24em; }
.hero-title .word > span { display: inline-block; }
.hero-lead { margin: 30px 0 42px; max-width: 34ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { position: absolute; right: var(--gutter); bottom: 44px; display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.hero-meta-line { width: 40px; height: 1px; background: var(--muted); opacity: .6; }
.hero-meta-coords { min-width: 5ch; color: var(--ink); }
/* Space frame controls: a short hint and two small buttons, bottom right above the caption */
.frame-tools { position: absolute; z-index: 3; right: var(--gutter); bottom: 80px; pointer-events: auto; display: flex; align-items: center; gap: 16px; }
.frame-hint { font-size: 12px; font-weight: 500; color: var(--muted); }
.hint-touch { display: none; }
@media (hover: none) { .hint-mouse { display: none; } .hint-touch { display: inline; } }
.frame-buttons { display: flex; gap: 8px; }
.frame-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border: 1px solid rgba(17,19,21,.18); border-radius: 99px; background: rgba(255,255,255,.65); font-size: 12.5px; font-weight: 600; transition: border-color .25s, background .25s, transform .35s var(--ease); }
.frame-btn:hover { border-color: var(--ink); background: #fff; }
.frame-btn:active { transform: scale(.96); }
.frame-btn svg { width: 12px; height: 12px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.js .frame-tools { opacity: 0; transform: translateY(14px); }
.is-loaded .frame-tools { opacity: 1; transform: none; transition: opacity .9s var(--ease) 1.4s, transform .9s var(--ease) 1.4s; }
.scroll-cue { position: absolute; left: 50%; bottom: 30px; z-index: 3; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(17,19,21,.35); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Hero load-in (single orchestrated moment) */
.js .hero-title .word > span { transform: translateY(108%); }
.js .eyebrow, .js .hero-lead, .js .hero-actions, .js .hero-meta { opacity: 0; transform: translateY(14px); }
.is-loaded .hero-title .word > span { transform: none; transition: transform 1.1s var(--ease); }
.is-loaded .eyebrow, .is-loaded .hero-lead, .is-loaded .hero-actions, .is-loaded .hero-meta { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.is-loaded .hero-lead { transition-delay: .35s; }
.is-loaded .hero-actions { transition-delay: .5s; }
.is-loaded .hero-meta { transition-delay: 1.2s; }

/* =========================================================
   APPROACH + STATS
   ========================================================= */
.approach { padding: clamp(100px, 13vw, 180px) 0 clamp(70px, 9vw, 120px); }
.approach-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 40px; }
/* the "Approach" label lines up with the first line of the statement, not its middle */
.approach-grid > .section-tag { align-self: start; margin-top: calc(clamp(28px, 3.4vw, 48px) * .55 - 10.4px); }
.statement-title { font-size: clamp(28px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -.03em; max-width: 24ch; }
.statement-title .w { transition: color .3s linear; color: rgba(17, 19, 21, .16); }
.statement-title .w.on { color: var(--ink); }
.statement-body { margin-top: 36px; max-width: 52ch; font-size: 19px; color: var(--muted); }

.stats { margin-top: clamp(70px, 9vw, 120px); display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; text-align: center; background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.stat { padding: 34px 28px 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-number { display: flex; justify-content: center; align-items: flex-start; font-size: clamp(48px, 5.4vw, 80px); font-weight: 500; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-suffix { font-size: .45em; margin: .12em 0 0 .08em; color: var(--red); }
.stat-label { margin-top: 12px; font-size: 15px; color: var(--muted); }
/* Desktop: the two stats sit in a column to the right of the statement */
@media (min-width: 861px) {
  .approach-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, .95fr); }
  .approach-grid > .stats { margin: 0; align-self: start; display: flex; flex-direction: column; text-align: left; background: none; border-left: 1px solid var(--line); padding-left: clamp(28px, 3vw, 48px); }
  .approach-grid > .stats .stat { padding: 4px 0 30px; }
  .approach-grid > .stats .stat + .stat { border-left: 0; border-top: 1px solid var(--line); padding: 30px 0 4px; }
  .approach-grid > .stats .stat-number { justify-content: flex-start; font-size: clamp(48px, 4.6vw, 68px); }
}
/* Small laptops / tablets: not enough room for three columns, so the stats go in a row under the text */
@media (min-width: 861px) and (max-width: 1180px) {
  .approach-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); }
  .approach-grid > .stats { grid-column: 2; flex-direction: row; margin-top: 24px; border-left: 0; border-top: 1px solid var(--line); padding: 34px 0 0; }
  .approach-grid > .stats .stat { flex: 1; padding: 0; }
  .approach-grid > .stats .stat + .stat { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 32px; }
}

/* =========================================================
   SERVICES — interactive explorer
   ========================================================= */
.services { padding: clamp(90px, 11vw, 150px) 0; background: var(--white); }
.service-explorer { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.service-list { border-top: 1px solid var(--ink); }
.service-list li { border-bottom: 1px solid var(--line); }
.service-item { width: 100%; display: grid; grid-template-columns: 56px 1fr 28px; align-items: center; gap: 12px; padding: 30px 0; border: 0; background: none; text-align: left; }
.service-index { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .3s; }
.service-name { font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; color: rgba(17, 19, 21, .32); transition: color .35s var(--ease), transform .45s var(--ease); }
.service-item:hover .service-name { color: rgba(17, 19, 21, .7); }
.service-item.is-active .service-name { color: var(--ink); transform: translateX(10px); }
.service-item.is-active .service-index { color: var(--red); }
.service-plus { position: relative; width: 18px; height: 18px; justify-self: end; opacity: .35; transition: opacity .3s, transform .45s var(--ease); }
.service-plus::before, .service-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; }
.service-plus::after { transform: rotate(90deg); transition: transform .45s var(--ease); }
.service-item.is-active .service-plus { opacity: 1; transform: rotate(180deg); }
.service-item.is-active .service-plus::after { transform: rotate(0); }
.service-mobile { display: none; }

.service-panel { position: sticky; top: 100px; min-height: 480px; padding: clamp(28px, 3vw, 44px); background: var(--paper); border-radius: 4px; overflow: hidden; }
.service-panel::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(17,19,21,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(17,19,21,.05) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.service-panel-inner { position: relative; }
.service-drawing { width: calc(100% + 24px); height: auto; display: block; overflow: visible; margin: -8px -12px 24px; }
.service-drawing .d { fill: none; stroke: #111315; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.service-drawing .d.heavy { stroke-width: 1.8; }
.service-drawing .d.thin { stroke-width: .9; }
.service-drawing .d.back { stroke-opacity: .38; stroke-width: 1.1; }
.service-drawing .d.tendon, .service-drawing .d.load { stroke: #ff0000; stroke-width: 1.3; }
.service-drawing .d.load { fill: rgba(255,0,0,.06); }
.service-drawing .d.sec { stroke-width: 1.5; fill: url(#svc-hatch); }
.service-drawing .grid { stroke: #111315; stroke-opacity: .35; stroke-width: .7; stroke-dasharray: 8 3 1.5 3; fill: none; }
.service-drawing .bub { fill: var(--drawing-bg, #f1f3f4); stroke: #111315; stroke-width: .8; }
.service-drawing .slab { fill: #111315; fill-opacity: .035; stroke: none; }
.service-drawing .foot, .service-drawing .footd { fill: url(#svc-hatch); stroke: #111315; stroke-opacity: .5; stroke-width: .7; }
.service-drawing .footd { stroke-dasharray: 3 2; }
.service-drawing .bear { fill: #111315; }
.service-drawing .soil { fill: url(#svc-soil); stroke: none; }
.service-drawing .fill { fill: url(#svc-soil); fill-opacity: .7; stroke: none; }
.service-drawing .gravel { fill: url(#svc-gravel); stroke: none; }
.service-drawing .bmd { fill: url(#svc-hatch); stroke: none; }
.service-drawing .cl { stroke: #111315; stroke-opacity: .4; stroke-width: .6; stroke-dasharray: 10 3 2 3; fill: none; }
.service-drawing .dim, .service-drawing .dimx, .service-drawing .dimt, .service-drawing .callout, .service-drawing .hatchl { stroke: #111315; stroke-width: .7; fill: none; stroke-opacity: .65; }
.service-drawing .dimx { stroke-opacity: .35; }
.service-drawing .dimt { stroke-width: 1.1; stroke-opacity: .9; }
.service-drawing .cut { stroke: #111315; stroke-width: 1.8; fill: none; }
.service-drawing .rebar { stroke: #111315; stroke-width: .8; stroke-dasharray: 4 2; fill: none; stroke-opacity: .6; }
.service-drawing .pipe { fill: var(--drawing-bg, #f1f3f4); stroke: #111315; stroke-width: 1; }
.service-drawing .arrow { stroke: #ff0000; stroke-width: .8; fill: none; }
.service-drawing .lvl { fill: #111315; }
.service-drawing .node { fill: #ff0000; }
.service-drawing .ring { fill: none; stroke: #ff0000; stroke-opacity: .35; stroke-width: 1; }
.service-drawing text { font-family: "Manrope", system-ui, sans-serif; font-size: 9.5px; fill: #676b70; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.service-drawing text.tb { font-weight: 700; fill: #111315; font-size: 9px; }
.service-drawing text.red { fill: #ff0000; font-weight: 600; }
/* drawing animation: main lines draw in, annotation fades in after */
.service-drawing .d { stroke-dasharray: 1; stroke-dashoffset: 1; }
.service-drawing .f { opacity: 0; }
.is-drawn .service-drawing .d { animation: draw .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 22ms); }
.is-drawn .service-drawing .f { animation: fadeIn .6s var(--ease) .55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.service-desc { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 40ch; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.service-tags li { font-size: 13px; font-weight: 500; padding: 7px 13px; border: 1px solid rgba(17, 19, 21, .18); border-radius: 99px; background: rgba(255,255,255,.6); }
.service-panel-inner > * { animation: panelIn .55s var(--ease) both; }
.service-panel-inner > .service-desc { animation-delay: .08s; }
.service-panel-inner > .service-tags { animation-delay: .16s; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* =========================================================
   PROCESS
   ========================================================= */
.process { padding: 0 0 clamp(100px, 12vw, 170px); background: var(--white); }
.process-track { position: relative; }
.process-rail { position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line); }
.process-rail-fill { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
.process-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.process-step { position: relative; padding-top: 44px; }
.step-node { position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--ink); transition: background .4s, border-color .4s; }
.process-step.is-reached .step-node { background: var(--red); border-color: var(--red); }
.step-num { display: block; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.process-step h3 { font-size: clamp(21px, 1.9vw, 26px); letter-spacing: -.025em; line-height: 1.15; margin-bottom: 14px; }
.process-step p { font-size: 15.5px; color: var(--muted); max-width: 30ch; }

/* =========================================================
   PROJECTS
   ========================================================= */
.projects { padding: clamp(100px, 12vw, 170px) 0; background: linear-gradient(var(--line), var(--line)) center top / calc(min(100%, var(--max)) - 2 * var(--gutter)) 1px no-repeat, var(--white); }

/* Selected work: a large-type index in the same style as the "What we do" list —
   small number, large title, discipline and scope small on the right, an arrow.
   No photos, no drawings. On hover the other titles fade, the one under the cursor
   slides right and its number and arrow turn red. */
.project-grid { border-top: 1px solid var(--ink); }
.project-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 28px; grid-template-areas: "num name meta go"; align-items: center; column-gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.project-num { grid-area: num; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .3s; }
.project-name { grid-area: name; font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; color: var(--ink); overflow-wrap: normal; text-wrap: balance; transition: color .35s var(--ease), transform .45s var(--ease); }
.project-meta { grid-area: meta; display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-size: 14px; line-height: 1.45; }
.project-disc { font-weight: 500; color: var(--ink-2); }
.project-scope { color: var(--muted); }
.project-go { grid-area: go; justify-self: end; width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.6; opacity: .35; transition: opacity .3s, stroke .3s, transform .45s var(--ease); }
.project-grid:hover .project-name { color: rgba(17, 19, 21, .32); }
.project-grid .project-card:hover .project-name { color: var(--ink); transform: translateX(10px); }
.project-card:hover .project-num { color: var(--red); }
.project-card:hover .project-go { opacity: 1; stroke: var(--red); transform: translate(3px, -3px); }
.js .project-card { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .project-card.is-in { opacity: 1; transform: none; }
.js .project-card:nth-child(2) { transition-delay: .08s; }
.js .project-card:nth-child(3) { transition-delay: .16s; }
.js .project-card:nth-child(4) { transition-delay: .24s; }

/* Project detail pages: the drawing sits beside the title (no photos) */
.pd-figure { display: none; }
.service-drawing .wl { stroke: #111315; stroke-width: .8; fill: none; stroke-dasharray: 6 3; }
/* the drawing draws itself when the tile (or the project page figure) scrolls into view */
.project-card.is-in .service-drawing .d, .pd-figure.is-in .service-drawing .d { animation: draw 1s var(--ease) forwards; animation-delay: calc(.15s + var(--i, 0) * 28ms); }
.project-card.is-in .service-drawing .f, .pd-figure.is-in .service-drawing .f { animation: fadeIn .6s var(--ease) .8s forwards; }

html[data-photos="off"] .pd-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
html[data-photos="off"] .pd-figure { display: block; position: relative; --drawing-bg: #ffffff; background: var(--white); border-radius: 4px; padding: clamp(18px, 2.4vw, 34px); overflow: hidden; }
html[data-photos="off"] .pd-figure::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(17,19,21,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(17,19,21,.045) 1px, transparent 1px); background-size: 24px 24px; }
html[data-photos="off"] .pd-figure .service-drawing { position: relative; width: 100%; margin: 0; }
html[data-photos="off"] .pd-hero { padding-bottom: clamp(56px, 7vw, 96px); }
html[data-photos="off"] .pd-body { background: var(--white); }

.more-projects-link-wrap { margin-top: 48px; text-align: right; }
.more-projects-link { border: 0; border-bottom: 1px solid var(--ink); background: none; padding: 0 0 6px; font-size: 15px; font-weight: 600; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding: clamp(100px, 12vw, 170px) 0; background: linear-gradient(var(--line), var(--line)) center top / calc(min(100%, var(--max)) - 2 * var(--gutter)) 1px no-repeat, var(--white); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(40px, 8vw, 120px); }
.about-title { font-size: clamp(28px, 3.3vw, 46px); letter-spacing: -.04em; line-height: 1.02; }
.about-body > p { font-size: 17.5px; color: var(--muted); margin-bottom: 22px; max-width: 58ch; }
.about-body > p.about-lead { font-size: clamp(21px, 1.8vw, 25px); line-height: 1.45; color: var(--ink); letter-spacing: -.01em; margin-bottom: 28px; }
/* Credentials: a short list in the left column of About, under the title
   (on phones it follows the text and the three principles). Same scale as the principles. */
.credentials { border-top: 1px solid var(--line); }
.credentials li { padding: 11px 0 10px; border-bottom: 1px solid var(--line); }
.js .credentials li:nth-child(2) { transition-delay: .06s; }
.js .credentials li:nth-child(3) { transition-delay: .12s; }
.js .credentials li:nth-child(4) { transition-delay: .18s; }
.js .credentials li:nth-child(5) { transition-delay: .24s; }
/* Compact rows: red dot + bold term, one short line of description underneath.
   The small category label is hidden to keep the list short; delete the next line to show it again. */
.cred-label { display: none; }
.cred-term { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; color: var(--ink); }
.cred-term::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.credentials p { margin-top: 2px; padding-left: 16px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
@media (min-width: 861px) {
  .about-grid { grid-template-rows: auto 1fr; row-gap: 0; }
  .about-grid > div:first-child { grid-area: 1 / 1; }
  .about-body { grid-area: 1 / 2 / 3 / 3; }
  .credentials { grid-area: 2 / 1; align-self: start; max-width: 470px; margin-top: clamp(28px, 3vw, 40px); }
}
.principles { margin-top: 50px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; border-top: 1px solid var(--line); padding-top: 30px; }
.principles h3 { font-size: 17px; letter-spacing: -.01em; margin-bottom: 8px; }
.principles h3::before { content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-bottom: 14px; }
.principles p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* Digital workflow (in Services, under the four services): title + intro, then four drawings joined by red arrows */
.digital { margin-top: clamp(72px, 9vw, 130px); }
.digital-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(40px, 8vw, 120px); align-items: end; padding-top: 34px; border-top: 1px solid var(--line); }
.digital-head .section-tag { margin-bottom: 18px; }
.digital-head .section-tag span { display: inline-flex; align-items: center; gap: 10px; }
.digital-head .section-tag span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.digital-title { font-size: clamp(24px, 2.3vw, 32px); letter-spacing: -.03em; line-height: 1.15; max-width: 22ch; }
.digital-intro { font-size: 17px; color: var(--muted); max-width: 58ch; }
.digital-steps { --dg: clamp(20px, 2.4vw, 36px); margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--dg); }
.digital-fig { position: relative; --drawing-bg: #f1f3f4; background: var(--paper); border-radius: 4px; padding: 12px 10px; margin-bottom: 20px; }
.digital-fig::before { content: ""; position: absolute; inset: 0; border-radius: 4px; background-image: linear-gradient(rgba(17,19,21,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(17,19,21,.05) 1px, transparent 1px); background-size: 16px 16px; pointer-events: none; }
.digital-step:not(:last-child) .digital-fig::after { content: ""; position: absolute; top: 50%; right: calc(var(--dg) / -2 - 4px); width: 8px; height: 8px; margin-top: -4px; border-top: 1.5px solid var(--red); border-right: 1.5px solid var(--red); transform: rotate(45deg); }
.digital-fig .service-drawing { position: relative; width: 100%; margin: 0; }
.digital-num { display: block; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.digital-step h3 { font-size: 17px; letter-spacing: -.01em; line-height: 1.25; margin-bottom: 8px; }
.digital-step p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.js .digital-steps .digital-step:nth-child(2) { transition-delay: .08s; }
.js .digital-steps .digital-step:nth-child(3) { transition-delay: .16s; }
.js .digital-steps .digital-step:nth-child(4) { transition-delay: .24s; }
.digital-dots { display: none; }
.service-drawing .nd { fill: #111315; }
.service-drawing .d.bold { stroke-width: 2.4; }
.digital-step.is-in .service-drawing .d { animation: draw 1s var(--ease) forwards; animation-delay: calc(.2s + var(--i, 0) * 30ms); }
.digital-step.is-in .service-drawing .f { animation: fadeIn .6s var(--ease) .9s forwards; }

/* =========================================================
   ABOUT US / TEAM  (a sub-part of About, numbered 03.1)
   ========================================================= */
.team { padding: 0 0 clamp(100px, 12vw, 170px); background: var(--white); }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); }
.team-member { padding-top: 28px; border-top: 1px solid var(--ink); }
.team-name { font-size: clamp(22px, 2.1vw, 30px); letter-spacing: -.03em; line-height: 1.1; }
.team-role { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.team-role::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; }
.team-bio { margin-top: 20px; font-size: 16.5px; color: var(--ink-2); max-width: 52ch; }
.team-email { display: inline-block; margin-top: 18px; font-size: 16.5px; font-weight: 500; padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: color .2s; }
.team-email:hover { color: var(--red); }
/* Sections limited to one language: hidden when the page is in another language */
html:not([lang="el"]) [data-only-lang="el"] { display: none; }
html:not([lang="en"]) [data-only-lang="en"] { display: none; }
/* When the team section is showing, About flows straight into it */
html[lang="el"] .about:has(+ .team[data-only-lang="el"]), .about:has(+ .team:not([data-only-lang])) { padding-bottom: clamp(72px, 8.5vw, 124px); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { position: relative; overflow: hidden; background: linear-gradient(var(--line), var(--line)) center top / calc(min(100%, var(--max)) - 2 * var(--gutter)) 1px no-repeat, var(--white); color: var(--ink); padding: clamp(100px, 12vw, 170px) 0 clamp(90px, 10vw, 130px); }
.contact.is-in .contact.is-in .contact.is-in .contact.is-in .contact .wrap { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.contact-title { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.02; letter-spacing: -.04em; }
.contact-lead { font-size: 19px; color: var(--ink-2); max-width: 34ch; }
.contact-email { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; font-size: clamp(24px, 2.6vw, 36px); font-weight: 500; letter-spacing: -.025em; }
.contact-email span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 4px; transition: background-size .5s var(--ease); }
.contact-email:hover span { background-size: 0 1.5px; background-position: 100% 100%; }
.contact-email svg { width: 22px; height: 22px; fill: none; stroke: var(--red); stroke-width: 1.8; transition: transform .45s var(--ease); }
.contact-email:hover svg { transform: translate(4px, -4px); }
.contact-details { margin-top: clamp(64px, 8vw, 110px); padding-top: 28px; border-top: 1px solid rgba(17,19,21,.2); display: grid; grid-template-columns: minmax(max-content, 1fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.contact-col { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--muted); margin-bottom: 10px; line-height: 1.3; }
.contact-col a { width: fit-content; font-size: 17px; background: linear-gradient(var(--red), var(--red)) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.contact-col a:hover { background-size: 100% 1px; }
.contact-social { display: inline-flex; align-items: center; gap: 8px; }
.contact-social svg { width: 14px; height: 14px; fill: none; stroke: var(--red); stroke-width: 1.8; transition: transform .4s var(--ease); }
.contact-social:hover svg { transform: translate(3px, -3px); }
.contact-address { white-space: nowrap; font-size: 17px; line-height: 1.55; }
/* Office map: Google Maps turned grey to match the drawings; full width under the details */
.contact-map { margin-top: clamp(48px, 6vw, 80px); height: clamp(300px, 32vw, 420px); background: var(--paper-2); border-radius: 4px; overflow: hidden; }
.contact-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05) brightness(1.02); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--white); color: var(--muted); padding: 0 0 40px; font-size: 14px; }
.site-footer .footer-grid { padding-top: 32px; background: linear-gradient(rgba(17,19,21,.14), rgba(17,19,21,.14)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 32px; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a:hover { color: var(--ink); }

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(17,19,21,.12); background: rgba(241,243,244,.92); backdrop-filter: blur(8px); color: var(--ink); display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .35s, transform .35s var(--ease); box-shadow: 0 6px 24px rgba(17,19,21,.08); }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   PROJECT DETAIL PAGES
   ========================================================= */
.pd-hero { padding: calc(var(--header-h) + clamp(50px, 8vw, 110px)) 0 clamp(40px, 5vw, 64px); }
.pd-back { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 40px; transition: color .2s; }
.pd-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .35s var(--ease); }
.pd-back:hover { color: var(--ink); }
.pd-back:hover svg { transform: translateX(-4px); }
.pd-title { font-size: clamp(32px, 3.8vw, 54px); letter-spacing: -.04em; line-height: 1.08; max-width: 22ch; overflow-wrap: normal; text-wrap: balance; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 10px 48px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.pd-meta div { display: flex; flex-direction: column; gap: 4px; }
.pd-meta dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.pd-meta dd { margin: 0; font-size: 16px; font-weight: 500; }
.pd-body { padding: clamp(70px, 9vw, 130px) 0; }
.pd-body-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 120px); }
.pd-body h2 { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-bottom: 20px; }
.pd-body .pd-desc { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.5; letter-spacing: -.01em; }
.pd-scope li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.pd-scope li:first-child { border-top: 1px solid var(--ink); }
.pd-scope li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--red); }
.pd-next { display: block; background: var(--white); color: var(--ink); padding: clamp(70px, 9vw, 120px) 0; }
.pd-next-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.pd-next-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.pd-next-title { text-wrap: balance; font-size: clamp(26px, 3.2vw, 44px); letter-spacing: -.04em; line-height: 1.05; transition: transform .6s var(--ease); }
.pd-next:hover .pd-next-title { transform: translateX(14px); }
.pd-next-go { flex: none; width: clamp(60px, 7vw, 96px); height: clamp(60px, 7vw, 96px); border-radius: 50%; border: 1px solid rgba(17,19,21,.25); display: grid; place-items: center; transition: background .35s, border-color .35s, transform .6s var(--ease); }
.pd-next-go svg { width: 34%; height: 34%; fill: none; stroke: var(--ink); stroke-width: 1.5; transition: stroke .35s; }
.pd-next:hover .pd-next-go svg { stroke: var(--white); }
.pd-next:hover .pd-next-go { background: var(--red); border-color: var(--red); transform: rotate(-45deg); }
[data-lang-section] { display: none; }
[data-lang-section].active { display: block; }

/* =========================================================
   MORE PROJECTS WORLD MAP (modal)
   ========================================================= */
.project-map-modal { display: none; position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; padding: 30px; }
.project-map-modal.is-open { display: flex; }
.project-map-backdrop { position: absolute; inset: 0; background: rgba(17, 19, 21, .72); }
.project-map-dialog { position: relative; z-index: 10; width: min(1400px, 100%); max-height: 94vh; overflow: auto; background: var(--paper); padding: 42px 3vw 34px; }
.project-map-close { position: absolute; top: 18px; right: 24px; width: 42px; height: 42px; border: 0; background: none; font-size: 34px; line-height: 1; }
.project-map-dialog h2 { margin: 10px 0 30px; font-size: clamp(32px, 4.5vw, 58px); }
.interactive-project-map { position: relative; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.geographic-world-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.project-pin { position: absolute; z-index: 20; width: 34px; height: 34px; padding: 0; border: 0; background: transparent; transform: translate(-50%, -50%); }
.pin-ring { position: absolute; inset: 0; border: 1px solid rgba(17,19,21,.55); border-radius: 50%; background: rgba(241,243,244,.6); transition: transform .2s, background .2s; }
.pin-core { position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; border: 2px solid var(--paper); border-radius: 50%; background: var(--red); transform: translate(-50%, -50%); }
.project-pin:hover .pin-ring, .project-pin:focus-visible .pin-ring, .project-pin.is-active .pin-ring { transform: scale(1.22); background: rgba(255,255,255,.95); }
.project-map-tooltip { position: absolute; z-index: 50; display: none; width: 300px; max-height: 320px; overflow-y: auto; pointer-events: none; background: rgba(248,249,250,.98); border: 1px solid rgba(17,19,21,.08); box-shadow: 0 16px 40px rgba(17,19,21,.14); }
.project-map-tooltip strong { display: block; margin: 18px 18px 2px; font-size: 17px; font-weight: 600; letter-spacing: -.03em; }
.project-map-count { display: block; margin: 0 18px 4px; color: var(--muted); font-size: 12px; }
.project-map-list { padding: 6px 18px 16px; }
.project-map-list li { padding: 9px 0; border-top: 1px solid rgba(17,19,21,.1); font-size: 13px; line-height: 1.5; }
.project-map-list li:first-child { border-top: 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {

  .header-cta { display: none; }
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .process-rail { display: none; }
  .process-step.is-in .step-node { background: var(--red); border-color: var(--red); }
  .principles { grid-template-columns: 1fr; gap: 22px; }
  .digital-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .digital-step .digital-fig::after { display: none; }
  .footer-grid { grid-template-columns: 1fr auto; }
  .footer-note { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .site-header { background: rgba(241,243,244,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .site-header.is-scrolled { height: var(--header-h); }
  .menu-btn { display: block; }
  /* The menu is positioned from the header itself (not the viewport), so the
     header's blur can't clip it; it is a solid full-height panel. */
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow-y: auto; flex-direction: column; gap: 0; padding: 12px var(--gutter) 40px; background: var(--paper); font-size: 19px; font-weight: 500; letter-spacing: -.01em; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
  body.nav-lock .site-header { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 1px 0 var(--line); }
  .site-nav.nav-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { padding: 17px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav-indicator { display: none; }

  /* Phone hero: text and buttons first, the space frame underneath them */
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .hero::before { -webkit-mask-image: radial-gradient(ellipse 95% 45% at 50% 82%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 95% 45% at 50% 82%, #000 20%, transparent 75%); }
  /* Order on phones: label, title, lead text, space frame, then the two buttons.
     The wrappers are flattened so the canvas can sit between the text and the buttons. */
  .hero { padding: calc(var(--header-h) + 36px) 0 44px; }
  .hero-inner, .hero-copy { display: contents; }
  .hero .eyebrow, .hero-title, .hero-lead, .hero-actions { position: relative; z-index: 2; margin-left: var(--gutter); margin-right: var(--gutter); }
  .hero .eyebrow { order: 1; margin-bottom: 22px; align-self: flex-start; }
  .hero-title { order: 2; }
  .hero-lead { order: 3; margin-top: 22px; margin-bottom: 0; font-size: 17px; max-width: none; }
  .hero-frame { order: 4; position: relative; inset: auto; width: 100%; height: clamp(230px, 68vw, 380px); margin: 6px 0 10px; }
  .frame-tools { order: 5; position: relative; right: auto; bottom: auto; z-index: 2; flex-direction: column; gap: 10px; margin: -12px var(--gutter) 26px; }
  .frame-hint { text-align: center; }
  .hero-actions { order: 6; }
  .hero-meta { display: none; }
  .scroll-cue { display: none; }

  .approach, .services, .projects, .about, .contact { padding-top: 72px; padding-bottom: 72px; }
  .process { padding-top: 0; padding-bottom: 72px; }
  .section-head { margin-bottom: 36px; }
  .section-tag { margin-bottom: 18px; }
  .statement-body { margin-top: 24px; font-size: 17px; }
  .stats { margin-top: 48px; background-position: 0 0; background-size: 100% 1px; }
  .section-intro, .contact-lead { font-size: 17px; }
  .about-body > p { font-size: 16.5px; margin-bottom: 18px; }
  .about-body > p.about-lead { font-size: 18.5px; line-height: 1.5; margin-bottom: 22px; }
  .principles { margin-top: 36px; padding-top: 26px; }
  .principles h3 { display: flex; align-items: center; gap: 10px; }
  .principles h3::before { margin-bottom: 0; flex: none; }
  .contact-details { margin-top: 48px; }
  .digital { margin-top: 64px; }
  .digital-head { grid-template-columns: 1fr; gap: 16px; padding-top: 28px; }
  .digital-intro { font-size: 16.5px; }
  .digital-title { font-size: clamp(21px, 5.6vw, 28px); }
  .team { padding-bottom: 72px; }
  .team-grid { grid-template-columns: 1fr; gap: 36px; }
  .team-member { padding-top: 0; border-top: 0; }
  .team-name { font-size: 21px; }
  .team-bio { font-size: 16px; margin-top: 14px; }
  html[lang="el"] .about:has(+ .team[data-only-lang="el"]), .about:has(+ .team:not([data-only-lang])) { padding-bottom: 60px; }
  .contact-email { margin-top: 24px; }
  .pd-body { padding: 64px 0; }
  .pd-next { padding: 64px 0; }

  /* "How we work" becomes a vertical timeline */
  .process-steps { grid-template-columns: 1fr; gap: 0; row-gap: 0; }
  .process-step { padding: 0 0 34px 36px; }
  .process-step:last-child { padding-bottom: 0; }
  .process-step::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: -4px; width: 1px; background: var(--line); }
  .process-step:last-child::before { display: none; }
  .process-step .step-node { top: 3px; }
  .process-step .step-num { margin-bottom: 8px; }
  .process-step h3 { margin-bottom: 8px; }
  .process-step p { max-width: none; }

  .back-to-top { width: 42px; height: 42px; right: 14px; bottom: 14px; }

  /* Smaller headings on phones and small tablets */
  .hero-title { font-size: clamp(30px, 8.2vw, 44px); line-height: 1.04; }
  .section-head h2 { font-size: clamp(22px, 5.6vw, 30px); }
  .statement-title { font-size: clamp(22px, 5.8vw, 32px); line-height: 1.14; }
  .about-title { font-size: clamp(23px, 6vw, 32px); }
  .contact-title { font-size: clamp(23px, 6vw, 32px); }
  .contact-map { margin-top: 40px; height: 280px; }
  .contact-email { font-size: 21px; }
  .pd-title { font-size: clamp(26px, 7vw, 40px); }
  .pd-next-title { font-size: clamp(22px, 5.8vw, 32px); }
  .pd-body .pd-desc { font-size: 18px; }
  .service-name { font-size: 19px; }
  .process-step h3 { font-size: 18px; }
  .stat-number { font-size: 42px; }

  .approach-grid, .service-explorer, .about-grid, .contact-grid, .pd-body-grid { grid-template-columns: 1fr; }
  .approach-grid { gap: 0; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
  .stat-label { margin: 0; text-align: right; }

  .service-panel { display: none; }
  .service-item { padding: 24px 0; grid-template-columns: 44px 1fr 24px; }
  .service-item.is-active .service-name { transform: none; }
  .service-mobile { display: block; overflow: hidden; height: 0; transition: height .5s var(--ease); }
  .service-mobile { --drawing-bg: #ffffff; }
  .service-mobile .service-drawing { width: 100%; max-width: 420px; margin: 4px 0 20px 56px; }
  .service-mobile .service-desc, .service-mobile .service-tags { margin-left: 56px; }
  .service-mobile .service-desc { font-size: 17px; }
  .service-mobile-inner { padding-bottom: 28px; }

  /* Selected work on phones: number, title, then discipline and scope, arrow on the right */
  .project-card { grid-template-columns: 40px minmax(0, 1fr) 20px; grid-template-areas: "num name go" "num meta go"; align-items: start; row-gap: 8px; column-gap: 12px; padding: 22px 0; }
  .project-num { padding-top: 5px; }
  .project-name { font-size: 21px; }
  .project-meta { align-items: flex-start; text-align: left; }
  .project-go { align-self: center; opacity: .6; }  html[data-photos="off"] .pd-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  html[data-photos="off"] .pd-hero { padding-bottom: 48px; }

    .contact-details { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-logo, .site-header.is-scrolled .brand-logo { height: 34px; }
  .process-steps { grid-template-columns: 1fr; }
  .hero-actions .button { flex: 1 1 auto; justify-content: center; }
  .service-mobile .service-drawing, .service-mobile .service-desc, .service-mobile .service-tags { margin-left: 0; }
  .service-mobile .service-drawing { width: 100%; margin-right: 0; }
  /* Digital workflow on small phones: a sideways swipe row, the next step peeking in at the edge */
  .digital-steps { display: flex; gap: 14px; margin: 28px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .digital-steps::-webkit-scrollbar { display: none; }
  .digital-step { flex: 0 0 82%; scroll-snap-align: start; }
  .digital-fig { margin-bottom: 14px; }
  .digital-dots { display: flex; gap: 6px; margin-top: 18px; }
  .digital-dots span { width: 18px; height: 2px; background: var(--line); transition: background .3s, width .3s var(--ease); }
  .digital-dots span.is-on { width: 30px; background: var(--ink); }
  /* Comfortable tap sizes */
  .lang-btn { padding: 8px 12px; font-size: 12px; }
  .footer-nav { gap: 4px 22px; }
  .footer-nav a { padding: 11px 0; }
  .contact-col a { padding: 8px 0; margin: -8px 0; background-position: 0 calc(100% - 8px); }
  .contact-address { font-size: min(17px, 4.3vw); }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-nav { flex-wrap: wrap; }
  .back-to-top { right: 16px; bottom: 16px; }
  .project-map-modal { padding: 12px; }
  .project-map-tooltip { width: 230px; max-width: calc(100% - 20px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}

/* Phones: drop the closing line of a list when a section line (or the end of the
   section) follows straight after it, so two lines never sit close together. */
@media (max-width: 860px) {
  .stats .stat:last-child { border-bottom: 0; padding-bottom: 0; }
  .project-grid .project-card:last-child { border-bottom: 0; padding-bottom: 0; }
  /* About on phones: title, text, the three principles, then the credentials as a compact
     two-column block at the end of About — not one long list. */
  .about-grid { row-gap: 32px; }
  .credentials { order: 3; margin-top: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .about-body { order: 2; }
  .credentials li { padding: 14px 0 13px; border-bottom: 0; }
  .credentials li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cred-term { align-items: flex-start; font-size: 15.5px; }
  .cred-term::before { margin-top: .5em; }
  .credentials p { font-size: 13px; }
  .contact .contact-details { border-top: 0; padding-top: 0; margin-top: 40px; }
}

/* Mouse pointer: the red dot of the logo (thin white edge so it shows on red and on photos).
   Over links and buttons it opens into a red ring around the dot. Mouse only — phones have no pointer. */
@media (hover: hover) and (pointer: fine) {
  html, body, * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='9' cy='9' r='6' fill='%23ff0000' stroke='%23ffffff' stroke-width='1.5'/%3E%3C/svg%3E") 9 9, auto;
  }
  a, a *, button, button *, [role="button"], [role="tab"], label, summary, select {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38'%3E%3Ccircle cx='19' cy='19' r='14.5' fill='%23ff0000' fill-opacity='.1' stroke='%23ff0000' stroke-width='1.5'/%3E%3Ccircle cx='19' cy='19' r='4' fill='%23ff0000'/%3E%3C/svg%3E") 19 19, pointer;
  }
  input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]), textarea { cursor: text; }
}
