/* ============================================
   AP ARCHITECTS — Design tokens
   Palette: ink / paper / three grays. No color accent.
   Display: Archivo (heavy, wide) — Body: Inter — Mono labels: Archivo uppercase tracked
   Fonts are hosted on this site (fonts/ + css/fonts.css, loaded by every page before this file) — nothing is fetched from Google.
   ============================================ */

:root{
  --ink:#0a0a0a;
  --paper:#ffffff;    /* pure white — only for text on dark backgrounds */
  --bg:#EEEDF3;       /* page background (RGB 238, 237, 243) */
  --gray-1:#e4e3ea;   /* subtle tint against --bg: hatch lines, alt sections, hovers */
  --gray-2:#d8d8d5;   /* hairlines */
  --gray-3:#8a8a86;   /* muted text */
  --gray-4:#4a4a47;   /* secondary text on light */

  --display:'Archivo', sans-serif;
  --body:'Inter', sans-serif;

  --nav-h:76px;
  --max:1400px;
  --pad:6vw;
  --head-gap:40px;     /* page title -> first content: the same on every page (Services' "What we do." -> images) */

  --ease:cubic-bezier(.16,1,.3,1);
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:auto;}

/* ---------- Smooth scroll (Lenis) ---------- */
html.lenis, html.lenis body{height:auto;}
.lenis:not(.lenis-autoToggle).lenis-stopped{overflow:clip;}
.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch]{overscroll-behavior:contain;}
.lenis.lenis-smooth iframe{pointer-events:none;}
body{
  font-family:var(--body);
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
  overflow-x:hidden;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul{list-style:none;}
button{font:inherit; background:none; border:none; cursor:pointer; color:inherit;}

:focus-visible{outline:2px solid var(--ink); outline-offset:3px;}

.eyebrow{
  font-family:var(--display);
  font-size:12px;
  font-weight:600;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--gray-3);
}

h1,h2,h3{font-family:var(--display); font-weight:700; letter-spacing:-.01em; line-height:1.02;}

.container{max-width:var(--max); margin:0 auto; padding-left:var(--pad); padding-right:var(--pad);}

/* ---------- Placeholder image blocks (until real photography is added) ---------- */
.ph{
  position:relative;
  background:
    repeating-linear-gradient(135deg, var(--gray-1) 0 2px, var(--bg) 2px 34px);
  border:1px solid var(--gray-2);
  display:flex;
  align-items:flex-end;
  overflow:hidden;
}
.ph::after{
  content:attr(data-label);
  font-family:var(--display);
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--gray-3);
  padding:10px 12px;
  background:rgba(238,237,243,.9);
}

/* ---------- Nav ---------- */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  height:var(--nav-h);
  display:flex; align-items:center; justify-content:space-between; gap:28px;
  padding:0 var(--pad);
  background:rgba(238,237,243,.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--gray-2);
}
/* Logo: one box, one size on every page. The animated logo on the home page (inline SVG, 16302 x 960 units) and the static logo on all
   other pages (images/logo-static.svg = the same drawing at rest, same 16302 x 960 box) share these rules, so they can never differ in size
   or position. If the nav runs out of room both shrink together. */
.nav-logo{position:relative; z-index:2; display:block; flex:0 1 325.6px; min-width:0; line-height:0; padding:14px 0;}  /* padding = bigger tap target */
.nav-logo img, .nav-logo svg{display:block; width:100%; height:auto;}
.nav-links{position:relative; z-index:2; display:flex; flex:none; gap:36px; align-items:center;}
@media (min-width:1081px) and (max-width:1239px){ .nav-links{gap:24px;} }
.nav-links a{
  font-family:var(--display);
  font-size:14.4px;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  padding:6px 0;
  border-bottom:1px solid transparent;
  transition:border-color .25s var(--ease);
}
.nav-links a:hover, .nav-links a.active{border-color:var(--ink);}
.nav-toggle{position:relative; z-index:2; display:none; flex:none; flex-direction:column; gap:5px; width:26px;}
.nav-toggle span{height:2px; background:var(--ink); width:100%; transition:transform .25s var(--ease), opacity .25s var(--ease);}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--display); font-size:12px; font-weight:600;
  letter-spacing:.1em; text-transform:uppercase;
  padding:15px 26px;
  border:1px solid var(--ink);
  transition:background .25s var(--ease), color .25s var(--ease);
}
.btn.solid{background:var(--ink); color:var(--paper);}
.btn.solid:hover{background:var(--bg); color:var(--ink);}
.btn.line:hover{background:var(--ink); color:var(--paper);}

/* ---------- Hero ---------- */
/* ---------- Discipline pages (Architecture / Landscape / Interior / Engineering) ---------- */
.discipline-hero{
  --text-end:calc(var(--pad) + clamp(480px,44vw,640px));   /* right edge of the text column */
  min-height:100svh;
  display:flex; align-items:flex-end;                 /* the text sits at the bottom left, under the title */
  padding:calc(var(--nav-h) + 40px) var(--pad) clamp(40px,6vh,64px);
  position:relative;
  overflow:hidden;
}
.discipline-hero.is-empty{ background:repeating-linear-gradient(135deg, #141412 0 2px, #0a0a0a 2px 34px); }   /* until the service's picture arrives */
.discipline-hero img{
  position:absolute; inset:0; z-index:-2;
  width:100%; height:100%; object-fit:cover;
  transform:scale(1.02);
}
/* The older service pictures are small banners that the full-width hero enlarges, which gives them their slightly soft look. The Urban Design and BIM
   pictures are high-resolution, so they get the same slight softness: every service page then opens in the same style. The picture box is 24px larger
   on every side so the blur never leaves a light edge. */
.discipline-hero img.hero-soft{
  inset:-24px; width:calc(100% + 48px); height:calc(100% + 48px); max-width:none;   /* the global img rule caps the width at 100% */
  filter:blur(2px);
}
.discipline-hero::before{
  content:''; position:absolute; inset:0; z-index:-1;
  /* darker on the left, where the text is, so it stays readable on any photo; the right side of the picture stays open */
  background:linear-gradient(90deg, rgba(0,0,0,.66) 0, rgba(0,0,0,.56) var(--text-end), rgba(0,0,0,.12) calc(var(--text-end) + 34vw), rgba(0,0,0,.1) 100%);
}
.discipline-hero-title{
  position:absolute; top:calc(var(--nav-h) + 40px); left:var(--pad); z-index:2; max-width:70%;
}
.discipline-hero-title .eyebrow{ color:rgba(255,255,255,.72); }
.discipline-hero-title h1{
  font-family:var(--display); font-weight:900; text-transform:uppercase;
  font-size:clamp(21px,3.2vw,46px); color:#fff; margin-top:12px; line-height:1.02;
}
.discipline-hero-content{
  width:min(100%, clamp(480px,44vw,640px)); max-width:none; margin:0; padding:128px 0 0;
}
.discipline-hero-content p{
  font-size:clamp(14px,1.85vh,17px); line-height:1.6; color:rgba(255,255,255,.93); max-width:none;
  text-shadow:0 1px 16px rgba(0,0,0,.35);
}
.discipline-hero-content p + p{ margin-top:1em; }
@media (max-width:820px){
  .discipline-hero{ padding-top:calc(var(--nav-h) + 24px); }
  .discipline-hero-title{ top:calc(var(--nav-h) + 24px); }
  .discipline-hero::before{ background:linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.54) 30%, rgba(0,0,0,.76) 100%); }
  .discipline-hero-content{ width:100%; padding-top:84px; }
  .discipline-hero-content p{ font-size:13.5px; line-height:1.5; }
}
.discipline-other{
  display:flex; justify-content:center; gap:34px; flex-wrap:wrap;
  padding:56px 0; border-bottom:1px solid var(--gray-2);
}
.discipline-other a{
  font-family:var(--display); font-size:13px; font-weight:600;
  letter-spacing:.08em; text-transform:uppercase; border-bottom:1px solid transparent;
}
.discipline-other a:hover{ border-color:var(--ink); }

.hero{
  min-height:100svh;
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:calc(var(--nav-h) + 40px) var(--pad) 64px;
  position:relative;
  overflow:hidden;
}
.hero-photo{
  position:absolute; inset:0; z-index:-2;
  width:100%; height:100%; object-fit:cover;
  animation:heroZoom 22s ease-in-out infinite alternate, heroFadeIn 1.6s ease-out;
  transform-origin:center 40%;
}
.hero::before{
  content:'';
  position:absolute; inset:0; z-index:-1;
  background:linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.35) 100%);
}
@keyframes heroZoom{
  0%{transform:scale(1);}
  100%{transform:scale(1.09);}
}
@keyframes heroFadeIn{
  from{opacity:0;}
  to{opacity:1;}
}
.hero-head{max-width:980px;}
.hero-head h1{
  font-size:clamp(42px, 7.4vw, 108px);
  text-transform:uppercase;
  color:rgba(255,255,255,.6);
}
.hero-sub{
  margin-top:22px;
  max-width:520px;
  font-size:17px;
  color:var(--gray-4);
}
.hero-meta{
  margin-top:56px;
  display:flex; gap:64px; flex-wrap:wrap;
  padding-top:22px; border-top:1px solid var(--gray-2);
}
.hero-meta div p:first-child{
  font-family:var(--display); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--gray-3); margin-bottom:6px;
}
.hero-meta div p:last-child{font-size:15px;}

/* ---------- Section scaffolding ---------- */
section{padding:120px 0;}
section.tight{padding:80px 0;}
/* ---------- Home: About Us — a big statement, words light up as you pass over them ---------- */
section.about-us-section{padding:104px 0 112px;}
.about-head{display:flex; align-items:center; gap:24px; margin-bottom:56px;}
.about-label{
  font-family:var(--display); font-size:12px; font-weight:600; line-height:1.2;
  letter-spacing:.16em; text-transform:uppercase; color:var(--gray-4);
}
.about-line{flex:1; height:1px; background:var(--gray-2);}
.about-statement{
  max-width:1180px;
  font-family:var(--display); font-weight:600;
  font-size:clamp(34px,4.9vw,72px); line-height:1.04; letter-spacing:-.02em;
  text-wrap:balance;
  color:var(--gray-3);
}
.about-statement .k{color:var(--ink);}                 /* the key phrase stays dark (also without JavaScript) */
/* js/home-about.js wraps every word in .w; the first time the statement scrolls into view the words light up one after another */
.about-statement .w{color:var(--gray-3); transition:color 1.5s ease; cursor:default;}
.about-statement .w:hover{color:var(--ink); transition-duration:.08s;}
.about-us-section.is-in .w{animation:aboutSweep 1.7s ease-out backwards; animation-delay:calc(var(--i) * 75ms + 250ms);}
.about-us-section.is-in .w.k{color:var(--ink); --end:var(--ink);}
@keyframes aboutSweep{
  0%{color:var(--gray-3);}
  16%{color:var(--ink);}
  100%{color:var(--end, var(--gray-3));}
}
.about-cols{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr)); gap:40px 64px; align-items:start;
  margin-top:56px; padding-top:32px; border-top:1px solid var(--gray-2);
}
.about-cols p{font-size:16px; line-height:1.55; color:var(--gray-4); max-width:520px;}
.about-cta{display:flex; justify-content:flex-start;}
.about-cta .btn svg{width:16px; height:10px; flex:none;}
@media (min-width:900px){
  .about-cta{justify-content:flex-end;}
}
@media (prefers-reduced-motion:reduce){
  .about-statement .w{transition:none;}
  .about-us-section.is-in .w{animation:none;}
}
section.expertise-section{padding:84px 0;}  /* 70% of the standard 120px */
.section-head{
  display:flex; justify-content:space-between; align-items:flex-end; gap:40px;
  margin-bottom:56px; flex-wrap:wrap;
}
.section-head h2{font-size:clamp(30px,4vw,52px); text-transform:uppercase; max-width:640px;}
.section-head .eyebrow{margin-bottom:14px; display:block;}
.bg-gray{background:var(--gray-1);}

/* ---------- Portfolio index list ---------- */
.filter-bar{display:flex; gap:8px; flex-wrap:wrap;}
.filter-bar button{
  font-family:var(--display); font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  padding:9px 16px; border:1px solid var(--gray-2);
}
.filter-bar button.active{background:var(--ink); color:var(--paper); border-color:var(--ink);}

/* ---------- Portfolio page: dark background (site's standard black) ---------- */
.portfolio-page{background:var(--ink); color:#fff;}
.portfolio-page .nav{background:var(--bg) !important; backdrop-filter:none;}
.portfolio-page .nav-links a{color:var(--ink);}
.portfolio-page .nav-links a:hover, .portfolio-page .nav-links a.active{border-color:var(--ink);}
.portfolio-page .nav-toggle span{background:var(--ink);}
.portfolio-page .eyebrow{color:rgba(255,255,255,.55);}
.portfolio-page .project-title{color:#fff;}
.portfolio-page .hero-sub{color:rgba(255,255,255,.8);}
.portfolio-page .result-count{color:rgba(255,255,255,.55);}
.portfolio-page .filter-bar button{border-color:rgba(255,255,255,.25); color:#fff; background:transparent;}
.portfolio-page .filter-bar button.active{background:var(--bg); color:var(--ink); border-color:var(--bg);}

.portfolio-head{display:flex; justify-content:space-between; align-items:center; gap:24px 40px; flex-wrap:wrap;}
.portfolio-stack{display:flex; flex-direction:column; align-items:center; gap:40px; padding:var(--head-gap) 0 70px;}   /* category row -> first picture = the site-wide head gap */
.portfolio-item{width:100%; display:flex; flex-direction:column; align-items:center;}
.portfolio-item:has(.portfolio-expand.open) .portfolio-block{display:none;}
.portfolio-block{
  position:relative; width:min(697px, 73vw); aspect-ratio:2/1; overflow:hidden; display:block;
  cursor:pointer; border:none; background:none; padding:0;
}
.portfolio-block .ph{
  position:absolute; inset:0; width:100%; height:100%; border:1px solid rgba(255,255,255,.14);
  transition:transform .7s var(--ease);
  background:repeating-linear-gradient(135deg, #1c1c1a 0 2px, #0a0a0a 2px 34px);
}
.portfolio-block:hover .ph{transform:scale(1.035);}
.portfolio-block::before{
  content:''; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(0deg, rgba(0,0,0,.74) 0%, rgba(0,0,0,.38) 30%, rgba(0,0,0,0) 62%);
}
.portfolio-caption{position:absolute; left:22px; bottom:18px; z-index:2; color:#fff; text-align:left;}
.portfolio-caption .name{font-family:var(--display); font-weight:700; font-size:clamp(15px,1.7vw,22px); text-transform:uppercase;}
.portfolio-caption .meta{font-size:11px; letter-spacing:.06em; text-transform:uppercase; margin-top:4px; color:rgba(255,255,255,.75);}
.portfolio-block .ph::after{display:none;}
.portfolio-thumb{position:absolute; inset:0; width:100%; height:100%; max-width:none; object-fit:cover; transition:transform .7s var(--ease);}
.portfolio-block:hover .portfolio-thumb{transform:scale(1.035);}

/* ---------- Careers: open positions ---------- */
.job-list{border-top:1px solid var(--gray-2);}
.job{
  display:flex; align-items:center; justify-content:space-between; gap:32px;
  padding:38px 0; border-bottom:1px solid var(--gray-2);
  transition:padding-left .35s var(--ease);
}
.job:hover{padding-left:18px;}
.job{width:100%; text-align:left; background:none; color:inherit; cursor:pointer;}   /* the rows are buttons: they open the application form */
.job-title{display:block; font-family:var(--display); font-size:clamp(20px,2.6vw,34px); line-height:1.15;}
.job-title strong{font-weight:900; text-transform:uppercase; letter-spacing:.01em;}
.job-dash{margin:0 .5em; color:var(--gray-3);}
.job-role{font-weight:500;}
.job-apply{
  flex-shrink:0; font-family:var(--display); font-size:13px; font-weight:600; letter-spacing:.1em; text-transform:uppercase;
  border-bottom:1px solid var(--ink); padding-bottom:3px;
}
@media (max-width:720px){ .job{flex-direction:column; align-items:flex-start; gap:18px;} }

/* ---------- List / Grid toggle (top-right corner of the filter row) ---------- */
.view-toggle{display:flex; align-items:center; gap:24px;}
.view-toggle button{
  display:flex; align-items:center; gap:8px; padding:6px 0;
  font-family:var(--display); font-size:12px; font-weight:600; letter-spacing:.1em; text-transform:uppercase;
  color:rgba(255,255,255,.45); background:transparent; border:none; border-bottom:1px solid transparent; cursor:pointer;
  transition:color .2s var(--ease), border-color .2s var(--ease);
}
.view-toggle button:hover{color:#fff;}
.view-toggle button.active{color:#fff; border-bottom-color:#fff;}

/* ---------- Grid mode: rows of 4, pictures joined edge to edge, no text until hover ---------- */
.portfolio-stack.mode-grid{
  display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:0;
  align-items:start; padding:var(--head-gap) 0 70px;
}
.grid-tile{position:relative; display:block; cursor:pointer; outline:none;}
.grid-tile-media{
  position:relative; overflow:hidden; aspect-ratio:4/3; --f:0;
  backface-visibility:hidden; will-change:transform;
  transition:transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .16s ease;
  /* the raised "key": it casts a shadow on its neighbours the higher it comes (--f = 0..1, set by js/portfolio.js) */
  box-shadow:0 calc(var(--f) * 26px) calc(var(--f) * 56px) rgba(0,0,0,calc(var(--f) * .7)), 0 0 0 1px rgba(255,255,255,calc(var(--f) * .14));
}
.grid-tile .ph{
  aspect-ratio:4/3; width:100%; height:100%; border:0;
  background:repeating-linear-gradient(135deg, #1c1c1a 0 2px, #0a0a0a 2px 34px);
}
.grid-tile .ph::after{display:none;}
.grid-thumb{display:block; width:100%; height:100%; aspect-ratio:4/3; max-width:none; object-fit:cover;}
.grid-tile-info{
  position:absolute; inset:0; z-index:2; display:flex; align-items:flex-end; pointer-events:none;
  padding:clamp(10px,1.4vw,20px);
  background:linear-gradient(0deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.4) 36%, rgba(0,0,0,0) 68%);
  opacity:0; transition:opacity .22s ease;
}
.grid-tile-info .name{font-family:var(--display); font-weight:800; font-size:clamp(12px,1.2vw,17px); line-height:1.15; text-transform:uppercase; letter-spacing:.01em; color:#fff;}
.grid-tile:hover .grid-tile-info, .grid-tile:focus-visible .grid-tile-info{opacity:1;}
.grid-tile:focus-visible .grid-tile-media{outline:2px solid #fff; outline-offset:-2px;}
.grid-tile.is-active .grid-tile-media{outline:1px solid #fff; outline-offset:-1px;}
@media (hover:hover) and (pointer:fine){
  .grid-tile:hover{z-index:2;}                              /* until js sets the exact order */
}
@media (prefers-reduced-motion:reduce){
  .grid-tile-media{transition:none;}
  .grid-tile:hover .grid-tile-media{transform:scale(1.06);}
}
.portfolio-expand.in-grid{
  grid-column:1 / -1; width:auto; margin:0;
  transition:height .55s var(--ease), margin-bottom .55s var(--ease);
}
.portfolio-expand.in-grid.open{margin-top:0; margin-bottom:40px;}
@media (max-width:1000px){ .portfolio-stack.mode-grid{grid-template-columns:repeat(3, minmax(0,1fr));} }
@media (max-width:700px){ .portfolio-stack.mode-grid{grid-template-columns:repeat(2, minmax(0,1fr));} }

/* ---------- Inline expansion (BIG.dk-style): opens in place, page keeps scrolling ---------- */
.portfolio-expand{position:relative; width:min(1300px, 92vw); height:0; overflow:hidden; transition:height .55s var(--ease);}
.portfolio-expand.open{height:var(--open-h, 610px); margin-top:28px;}
.expand-inner{display:grid; grid-template-columns:260px minmax(0,1fr); gap:40px; height:560px; margin-top:50px;}   /* fixed: the panel itself may grow (--open-h) when the info column is taller, the gallery keeps its size */
.expand-info{position:relative; padding-right:20px;}
.expand-close{
  position:absolute; top:0; right:0; z-index:3;
  width:36px; height:36px; border:1px solid rgba(255,255,255,.3); border-radius:50%;
  background:transparent; color:#fff; font-size:18px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.expand-close:hover{background:rgba(255,255,255,.1);}
.expand-field{margin-top:26px;}
.expand-field:first-of-type{margin-top:0;}
.expand-field .k{font-family:var(--display); font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.45);}
.expand-field .v{font-size:15px; margin-top:6px; color:#fff;}
.expand-field .v.name{font-family:var(--display); font-weight:700; font-size:20px; text-transform:uppercase; line-height:1.15;}

.expand-gallery{
  height:560px; align-self:start;   /* fixed height: a taller info column (long role / client) must not stretch the photos */
  overflow-x:auto; overflow-y:hidden; cursor:grab;
  -webkit-user-select:none; user-select:none;
  scrollbar-width:none; -ms-overflow-style:none;
}
.expand-gallery::-webkit-scrollbar{display:none;}
.expand-gallery.dragging{cursor:grabbing;}
.expand-track{display:flex; gap:14px; height:100%; width:max-content;}
.expand-img{flex:0 0 auto; height:100%; width:auto; max-width:none; display:block; -webkit-user-drag:none; user-select:none;}
.expand-slide{
  flex:0 0 auto; width:auto; height:100%; aspect-ratio:4/3;
  border:1px solid rgba(255,255,255,.14); align-items:flex-end;
  background:repeating-linear-gradient(135deg, #1c1c1a 0 2px, #0a0a0a 2px 34px);
}
@media (max-width:820px){
  .expand-inner{grid-template-columns:minmax(0,1fr); height:auto;}
  .portfolio-expand.open{height:var(--open-h, 980px);}
  .expand-gallery{height:min(78vw, 380px);}
  .expand-slide{aspect-ratio:1/1;}
}

.hover-preview{
  position:fixed; width:260px; height:180px; pointer-events:none; z-index:900;
  opacity:0; transform:scale(.96); transition:opacity .18s var(--ease), transform .18s var(--ease);
  border:1px solid var(--gray-2); display:none;
}
.hover-preview.show{opacity:1; transform:scale(1);}
.hover-preview .ph{width:100%; height:100%; border:none;}

/* ---------- Expertise tiles ---------- */
.expertise-section{background:var(--ink); color:var(--paper);}
.expertise-section .eyebrow{color:var(--gray-3);}
.expertise-section .section-head h2{color:var(--paper);}
.expertise-grid{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:20px; background:transparent;}
.expertise-tile{
  position:relative; aspect-ratio:16/9; overflow:hidden; display:block;
}
.expertise-tile img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  transition:transform .5s var(--ease), filter .3s var(--ease);
}
.expertise-tile:hover img{transform:scale(1.05); filter:brightness(1.1);}
.expertise-tile::before{
  content:''; position:absolute; inset:0;
  background:linear-gradient(0deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,0) 45%);
  z-index:1;
}
.expertise-tile.is-empty{ background:repeating-linear-gradient(135deg, #1c1c1a 0 2px, #0a0a0a 2px 34px); }
.expertise-section .expertise-tile.is-empty{ box-shadow:inset 0 0 0 1px #1c1c1a; }   /* on the home page the tile sits on black: a hairline keeps its edge visible */
.expertise-tile .label{
  position:absolute; left:24px; bottom:22px; z-index:2;
  font-family:var(--display); font-size:19px; font-weight:600;
  color:rgba(255,255,255,.8); text-transform:none;
}

/* ---------- Split content blocks ---------- */
.split{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:80px; align-items:center;}
.split .ph{aspect-ratio:5/6;}
.copy p{font-size:16px; color:var(--gray-4); margin-top:18px; max-width:520px;}
.copy p + p{margin-top:14px;}

/* ---------- Dark section variant (e.g. Design Philosophy) ---------- */
.section-dark{background:var(--ink); color:var(--paper); padding:64px 0;}
.section-dark .split{align-items:start;}   /* the title sits at the top edge of the video, close to the start of the black band */
.section-dark h2{color:var(--paper);}
.section-dark .copy p{color:#c7c7c3;}
.video-embed{
  aspect-ratio:4/3; overflow:hidden; border:1px solid #333330; background:#000;
}
.video-embed video{width:100%; height:100%; object-fit:cover; display:block;}

/* ---------- About: "The Team." desks ----------
   Three bays of long desks seen from above, people as black dots on their chairs. Drawn straight on the page background:
   no sheet, no frame. Colours and fonts come from the site tokens; js/team-plan.js switches the entrance animation on. */
.team-plan{ width:100%; aspect-ratio:512/520; }
.tp-svg{ display:block; width:100%; height:100%; overflow:visible; }
.tp-svg text{ font-family:var(--display); }

.tp-table{ fill:none; stroke:var(--ink); stroke-width:1.1; }
.tp-mid{ stroke:var(--gray-2); stroke-width:.8; }
.tp-paper{ fill:var(--bg); stroke:var(--gray-3); stroke-width:.7; }
.tp-chair{ fill:none; stroke:var(--gray-3); stroke-width:.9; }
.tp-lap{ fill:var(--bg); stroke:var(--ink); stroke-width:.8; }
.tp-lapscr{ stroke:var(--ink); stroke-width:2.1; }
.tp-cup{ fill:var(--bg); stroke:var(--ink); stroke-width:.8; }
.tp-person{ fill:var(--ink); transform-box:fill-box; transform-origin:center; }

/* the empty seat: a link to Careers ("Your seat" + "Join our team") */
.tp-open{ cursor:pointer; outline:none; }
.tp-hit{ fill:transparent; }
.tp-focus{ fill:none; stroke:var(--ink); stroke-width:1.2; opacity:0; }
.tp-ghost{
  fill:none; stroke:var(--ink); stroke-width:1.2; stroke-dasharray:2.7 2.3;
  transform-box:fill-box; transform-origin:center; transition:fill .25s ease;
}
.tp-leader{ stroke:var(--ink); stroke-width:.8; }
.tp-leaddot{ fill:var(--ink); }
.tp-seatt{ font-weight:700; font-size:8.6px; letter-spacing:.14em; text-anchor:middle; fill:var(--ink); }
.tp-seats{ font-weight:600; font-size:7.4px; letter-spacing:.17em; text-anchor:middle; fill:var(--gray-4); }
.tp-open:hover .tp-ghost,
.tp-open:focus-visible .tp-ghost{ fill:var(--ink); stroke-dasharray:none; }
.tp-open:hover .tp-seatt,
.tp-open:hover .tp-seats{ text-decoration:underline; text-underline-offset:2px; }
.tp-open:hover .tp-seats{ fill:var(--ink); }
.tp-open:focus-visible .tp-focus{ opacity:1; }

/* entrance: js adds .is-armed (skipped for reduced motion), then .is-in when the sheet scrolls into view.
   Without JS the drawing is simply there. Delays: --b = bay number, --d = per-person delay. */
@keyframes tp-fadein{ from{ opacity:0; } }
@keyframes tp-pop{ from{ opacity:0; transform:scale(.2); } }
@keyframes tp-flow{ to{ stroke-dashoffset:-4.8; } }
@keyframes tp-spin{ to{ transform:rotate(360deg); } }
.is-armed:not(.is-in) .tp-fade,
.is-armed:not(.is-in) .tp-person,
.is-armed:not(.is-in) .tp-open{ opacity:0; }
.is-in .tp-fade{ animation:tp-fadein .6s ease calc(var(--b,0) * .75s) backwards; }
.is-in .tp-person{ animation:tp-pop .6s cubic-bezier(.2,.9,.3,1.3) var(--d,0s) backwards; }
.is-in .tp-open{ animation:tp-fadein .7s ease 2.6s backwards; }
.is-in .tp-ghost{ animation:tp-spin 28s linear 3.2s infinite; }   /* the empty seat's outline turns, slowly */

/* live layer, driven by js/team-plan.js: people walk the aisles, stop to talk, change seats;
   hover (or tap) a person to see who they work with */
.tp-live{ pointer-events:none; }
.tp-trail{
  fill:none; stroke:var(--ink); stroke-width:.8; stroke-dasharray:1.4 3; stroke-linecap:round;
  opacity:.6; transition:opacity 2.4s ease;
}
.tp-trail.is-fading{ opacity:0; }
.tp-talk,
.tp-net{
  stroke:var(--ink); stroke-width:.9; stroke-dasharray:2.4 2.4; opacity:0;
  transition:opacity .2s ease; animation:tp-flow 1.2s linear infinite;
}
.tp-talk.is-on,
.tp-net.is-on{ opacity:1; }
.tp-ring{ fill:none; stroke:var(--ink); stroke-width:.8; opacity:0; transition:opacity .2s ease; }
.tp-ring.is-on{ opacity:1; }
.tp-ring.is-main{ stroke-width:1.2; }
.is-live .tp-person{ transition:opacity .25s ease; }
.has-net .tp-person{ opacity:.2; }
.has-net .tp-person.is-linked{ opacity:1; }
.is-live .tp-open{ transition:opacity .3s ease; }
.tp-open.is-dim{ opacity:.16; }
.tp-open.is-away{ opacity:0; pointer-events:none; }
@media (prefers-reduced-motion:reduce){
  .is-in .tp-ghost, .tp-talk, .tp-net{ animation:none; }
}

@media (max-width:980px){
  .team-plan{ max-width:640px; }
}
@media (max-width:600px){                         /* small screens: the one label that matters stays legible */
  .tp-seatt{ font-size:15px; letter-spacing:.1em; transform:translateY(4px); }
  .tp-seats{ font-size:11.5px; letter-spacing:.12em; transform:translateY(11px); }
}

/* ---------- Stat / office strip ---------- */
.strip{display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); border-top:1px solid var(--gray-2); border-left:1px solid var(--gray-2);}
.strip > div{border-right:1px solid var(--gray-2); border-bottom:1px solid var(--gray-2); padding:34px 28px;}
.strip .k{font-family:var(--display); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--gray-3); margin-bottom:10px;}
.strip .v{font-size:17px;}

/* ---------- Offices ---------- */
.office-grid{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:2px; background:var(--gray-2);}
.office-card{background:var(--bg); padding:44px;}
.office-card .tag{font-family:var(--display); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--gray-3); margin-bottom:16px;}
.office-card h3{font-size:26px; text-transform:uppercase; margin-bottom:18px;}
.office-card p{font-size:15px; color:var(--gray-4); margin-bottom:6px;}

/* ---------- Globe ---------- */
.globe-wrap{display:flex; justify-content:center; margin:0 auto;}   /* the title→content gap is the site-wide --head-gap */
#globe{
  position:relative;
  width:min(620px, 86vw);
  aspect-ratio:1/1;
  overflow:hidden;
  flex-shrink:0;
}
.globe-tilt{width:100%; height:100%;}
.globe-expanded .globe-tilt{transform:none;}
.globe-tilt svg{display:block; overflow:hidden;}
.flight-path{
  stroke:#fff; stroke-width:2; stroke-linecap:round;
  filter:drop-shadow(0 0 2px rgba(255,255,255,.95)) drop-shadow(0 0 8px rgba(255,255,255,.6));
}
.flight-plane{
  fill:#fff;
  filter:drop-shadow(0 0 3px #fff) drop-shadow(0 0 7px rgba(255,255,255,.7));
}
.globe-marker-dot{ fill:#fff; }
.globe-leader{ stroke:#c9c9c7; stroke-width:1; opacity:.7; }
.globe-marker-pulse{ fill:none; stroke:#fff; stroke-width:1.4; transform-origin:center; animation:markerPulse 2.6s ease-out infinite; }
@keyframes markerPulse{ 0%{ r:4; opacity:.9; } 100%{ r:16; opacity:0; } }
.globe-hit, .globe-marker-link{ cursor:pointer; }
.globe-label{
  font-family:var(--display); font-size:12.5px; font-weight:600; letter-spacing:.06em; text-transform:uppercase;
  fill:#fff; paint-order:stroke; stroke:#000; stroke-width:2.5px; stroke-linejoin:round; cursor:pointer;
}
.globe-label:hover{ fill:#c9c9c7; }
.globe-tooltip{
  position:absolute; transform:translate(-50%, calc(-100% - 14px));
  background:var(--bg); color:var(--ink); padding:14px 16px; min-width:190px;
  border:1px solid var(--gray-2); box-shadow:0 10px 28px rgba(0,0,0,.22);
  pointer-events:none; opacity:0; transition:opacity .2s var(--ease);
  z-index:5; font-size:13px;
}
.globe-tooltip.show{ opacity:1; }
.globe-tooltip .gt-title{ font-family:var(--display); font-weight:700; font-size:12px; text-transform:uppercase; letter-spacing:.04em; margin-bottom:10px; }
.globe-tooltip .gt-row{ display:flex; align-items:center; gap:8px; }
.globe-tooltip .gt-icon{ width:16px; height:16px; display:inline-flex; color:var(--gray-4); }
.globe-tooltip .gt-icon svg{ width:100%; height:100%; }
.globe-tooltip .gt-weather-icon{ margin-left:10px; }
.offices-links{ display:flex; justify-content:center; gap:34px; flex-wrap:wrap; margin-top:44px; padding-top:28px; border-top:1px solid var(--gray-2); }
.offices-links a{ font-family:var(--display); font-size:13px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; border-bottom:1px solid transparent; }
.offices-links a:hover{ border-color:var(--ink); }

/* ---------- Office page: dominant active + 3 side cards ---------- */
.office-hero-grid{ display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:60px; align-items:start; }
.office-main-panel .office-live-row{ display:flex; gap:56px; margin:36px 0 34px; flex-wrap:wrap; }
.office-live-block .lbl{ font-family:var(--display); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--gray-3); margin-bottom:10px; display:flex; align-items:center; gap:8px; }
.office-live-block .lbl svg{ width:15px; height:15px; }
.office-live-block .big{ font-family:var(--display); font-size:40px; font-weight:700; }
.office-live-block .sub{ font-size:14px; color:var(--gray-4); margin-top:4px; }
.office-contact-list p{ font-size:15px; color:var(--gray-4); margin-bottom:10px; }
.office-contact-list a{ border-bottom:1px solid var(--gray-2); }

.office-side-list{ display:flex; flex-direction:column; gap:2px; background:var(--gray-2); border:1px solid var(--gray-2); }
.office-side-card{
  background:var(--bg); padding:18px 26px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  transition:background .2s var(--ease);
}
.office-side-card:hover{ background:var(--gray-1); }
.side-card-name{ font-family:var(--display); font-weight:700; font-size:18px; text-transform:uppercase; margin-bottom:6px; }
.side-card-country{ font-family:var(--display); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--gray-3); margin-bottom:8px; }
.side-card-live{ display:flex; gap:18px; flex-wrap:wrap; }
.side-card-live span{ display:flex; align-items:center; gap:6px; font-size:13.5px; color:var(--gray-4); }
.side-card-live svg{ width:14px; height:14px; }
.side-card-arrow{ font-family:var(--display); font-size:20px; color:var(--gray-3); flex-shrink:0; }
.office-side-card:hover .side-card-arrow{ color:var(--ink); }

/* ---------- Services list ---------- */
.service-row{
  display:grid; grid-template-columns:70px minmax(0,1fr) minmax(0,1.2fr); gap:32px;
  padding:38px 0; border-bottom:1px solid var(--gray-2); align-items:start;
}
.service-row .num{font-family:var(--display); font-size:14px; color:var(--gray-3);}
.service-row h3{font-size:24px; text-transform:uppercase;}
.service-row p{font-size:15px; color:var(--gray-4);}

/* ---------- Contact form ---------- */
.form-field{margin-bottom:26px;}
.form-field label{
  display:block; font-family:var(--display); font-size:12px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--gray-3); margin-bottom:10px;
}
.form-field input, .form-field textarea{
  width:100%; border:none; border-bottom:1px solid var(--gray-2);
  padding:12px 0; font-family:var(--body); font-size:16px; background:transparent;
}
.form-field input:focus, .form-field textarea:focus{outline:none; border-bottom-color:var(--ink);}
.form-note{font-size:13px; color:var(--gray-3); margin-top:18px;}

/* ---------- Contact page ----------
   Form on the left; a black panel on the right with the email address and the social links (so they are at the top of the page, not
   at the bottom); the three offices underneath as live cards (local time, weather, phone). */
.sr-only{position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;}
.contact-grid{display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:clamp(40px,6vw,96px); align-items:start;}
.contact-form{min-width:0;}

/* service chips (same look as the Portfolio filter buttons) */
.chip-group{border:0; padding:0; margin:0 0 34px; min-width:0;}
.form-legend{display:block; padding:0; margin-bottom:14px; font-family:var(--display); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--gray-3);}
.chip-row{display:flex; flex-wrap:wrap; gap:8px;}
.chip{position:relative; display:inline-block; cursor:pointer;}
.chip input{position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer;}
.chip span{
  display:inline-flex; align-items:center; padding:11px 17px; border:1px solid var(--gray-2); background:transparent;
  font-family:var(--display); font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  transition:background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); -webkit-user-select:none; user-select:none;
}
.chip:hover span{border-color:var(--ink);}
.chip input:checked + span{background:var(--ink); color:var(--paper); border-color:var(--ink);}
.chip input:focus-visible + span{outline:2px solid var(--ink); outline-offset:3px;}
.chip-tick{flex:none; width:0; height:10px; margin-right:0; overflow:hidden; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; transition:width .2s var(--ease), margin-right .2s var(--ease);}
.chip input:checked + span .chip-tick{width:12px; margin-right:9px;}

.form-two{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0 32px;}
.contact-form textarea{resize:vertical; min-height:150px; line-height:1.5;}
.form-field textarea[aria-invalid="true"]{border-bottom-color:#b3261e;}
.form-actions{display:flex; align-items:center; gap:14px 24px; flex-wrap:wrap; margin-top:10px;}
.form-actions .form-note{margin:0; max-width:340px;}
.contact-form .btn svg{flex:none; width:16px; height:10px; transition:transform .25s var(--ease);}
.contact-form .btn:hover svg{transform:translateX(4px);}
.form-status{margin-top:22px; padding-left:14px; border-left:2px solid var(--ink); font-size:14px; line-height:1.6; color:var(--gray-4);}
.form-status a{border-bottom:1px solid var(--gray-3);}
.link-btn{font:inherit; color:var(--ink); text-decoration:underline; text-underline-offset:3px; cursor:pointer;}
.link-btn:hover{text-decoration-thickness:2px;}

/* black panel: email + socials */
.contact-panel{
  position:sticky; top:calc(var(--nav-h) + 28px);
  display:flex; flex-direction:column; gap:clamp(30px,3.4vw,44px);
  padding:clamp(26px,3vw,44px); background:var(--ink); color:var(--paper);
}
.cp-label{margin-bottom:18px; font-family:var(--display); font-size:12px; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:rgba(255,255,255,.55);}
.cp-email{
  display:block; font-family:var(--display); font-weight:700; letter-spacing:-.01em; line-height:1.1; font-size:clamp(24px,3.05vw,46px);
  color:var(--paper); overflow-wrap:normal;
}
.cp-email .nb{white-space:nowrap; background:linear-gradient(currentColor,currentColor) 0 100%/0 2px no-repeat; padding-bottom:3px; transition:background-size .45s var(--ease);}
.cp-email:hover .nb, .cp-email:focus-visible .nb{background-size:100% 2px;}
.cp-email:focus-visible, .cp-btn:focus-visible, .social-tile:focus-visible, .cp-jump:focus-visible{outline:2px solid var(--paper); outline-offset:4px;}
.cp-btn{
  display:inline-flex; align-items:center; gap:10px; margin-top:20px; padding:11px 18px; border:1px solid rgba(255,255,255,.35);
  font-family:var(--display); font-size:12px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--paper);
  transition:background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.cp-btn-icon{flex:none; width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round;}
.cp-btn:hover, .cp-btn.is-copied{background:var(--paper); color:var(--ink); border-color:var(--paper);}

.social-tiles{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px;}
.social-tile{
  display:flex; flex-direction:column; justify-content:space-between; gap:36px; min-height:152px; padding:20px;
  border:1px solid rgba(255,255,255,.28); color:var(--paper);
  transition:background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .35s var(--ease);
}
.social-tile:hover, .social-tile:focus-visible{background:var(--paper); color:var(--ink); border-color:var(--paper); transform:translateY(-4px);}
.st-top{display:flex; justify-content:space-between; align-items:flex-start;}
.st-icon{width:34px; height:34px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round;}
.st-arrow{width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; transition:transform .35s var(--ease);}
.social-tile:hover .st-arrow, .social-tile:focus-visible .st-arrow{transform:translate(4px,-4px);}
.st-name{display:block; font-family:var(--display); font-weight:700; font-size:clamp(19px,1.7vw,24px); letter-spacing:-.005em; line-height:1.15;}
.cp-note{margin-top:14px; font-size:13px; line-height:1.5; color:rgba(255,255,255,.75);}
.cp-note[hidden]{display:none;}
.cp-jump{
  display:inline-flex; align-items:center; gap:10px; align-self:flex-start; padding-bottom:3px; border-bottom:1px solid rgba(255,255,255,.3);
  font-size:14px; color:#c7c7c3; transition:color .2s var(--ease), border-color .2s var(--ease);
}
.cp-jump svg{width:16px; height:10px; flex:none; transition:transform .3s var(--ease);}
.cp-jump:hover{color:var(--paper); border-color:var(--paper);}
.cp-jump:hover svg{transform:translateY(3px);}

/* offices: three live cards */
.contact-section{padding-bottom:100px;}
.contact-offices{padding-top:0; scroll-margin-top:96px;}
.office-cards{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:2px; margin-top:var(--head-gap); background:var(--gray-2); border:1px solid var(--gray-2);}
.oc{
  position:relative; isolation:isolate; overflow:hidden; display:flex; flex-direction:column; justify-content:space-between; gap:30px; min-height:320px;
  padding:clamp(22px,2.2vw,32px); background:var(--bg); color:var(--ink);
  transition:background .35s var(--ease), color .35s var(--ease);
}
.oc::before{   /* soft light that follows the pointer */
  content:''; position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:0; transition:opacity .35s var(--ease);
  background:radial-gradient(260px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.16), rgba(255,255,255,0) 70%);
}
.oc:hover{background:var(--ink); color:var(--paper);}
.oc:hover::before{opacity:1;}
.oc-head{display:flex; justify-content:space-between; align-items:flex-start; gap:16px;}
.oc-country{margin-bottom:8px; font-family:var(--display); font-size:11px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--gray-3); transition:color .35s var(--ease);}
.oc-city{font-size:clamp(24px,2.2vw,32px); text-transform:uppercase; letter-spacing:-.005em;}
.oc-main::after{content:''; position:absolute; inset:0; z-index:1;}   /* the whole card is the link to the office page */
.oc-main:focus-visible{outline:none;}
.oc:has(.oc-main:focus-visible){outline:2px solid var(--ink); outline-offset:-2px;}
.oc-arrow{flex:none; width:20px; height:20px; margin-top:2px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; transition:transform .35s var(--ease);}
.oc:hover .oc-arrow{transform:translate(4px,-4px);}
.oc-live{display:flex; flex-direction:column; align-items:flex-start; gap:10px;}
.oc-time{display:flex; align-items:center; gap:12px;}
.oc-time-icon svg{display:block; width:22px; height:22px;}
.oc-clock{font-family:var(--display); font-weight:700; font-size:clamp(36px,3.6vw,50px); line-height:1; letter-spacing:-.01em; font-variant-numeric:tabular-nums;}
.oc-clock .colon{animation:ocBlink 1s steps(1,end) infinite;}
@keyframes ocBlink{50%{opacity:.2;}}
.oc-meta{font-size:13.5px; color:var(--gray-4); line-height:1.35; transition:color .35s var(--ease);}
.oc-zone:not(:empty)::before{content:' · ';}
.oc-weather{display:flex; align-items:center; gap:8px; font-size:13.5px; line-height:1.35; color:var(--gray-4); transition:color .35s var(--ease);}
.oc-weather[hidden]{display:none;}
.oc-weather svg{display:block; width:16px; height:16px;}
.oc-label{margin-bottom:8px; font-family:var(--display); font-size:11px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--gray-3); transition:color .35s var(--ease);}
.oc-phone-row{display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:12px; border-top:1px solid var(--gray-2); transition:border-color .35s var(--ease);}
.oc-phone{
  position:relative; z-index:2; display:inline-block; padding:8px 0; margin:-8px 0;   /* taller tap target, same visual size */
  font-family:var(--display); font-weight:600; font-size:clamp(16px,1.4vw,19px); letter-spacing:.01em; font-variant-numeric:tabular-nums; white-space:nowrap;
  background:linear-gradient(currentColor,currentColor) 0 calc(100% - 5px)/0 1px no-repeat; transition:background-size .35s var(--ease);
}
.oc-phone:hover{background-size:100% 1px;}
.oc-copy{
  position:relative; z-index:2; flex:none; display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border:1px solid var(--gray-2); border-radius:50%;
  transition:background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.oc-copy svg{width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round;}
.oc-copy:hover, .oc-copy.is-copied{background:var(--ink); color:var(--paper); border-color:var(--ink);}
.oc-copy:focus-visible{outline-offset:3px;}
.oc:hover .oc-country, .oc:hover .oc-label{color:rgba(255,255,255,.55);}
.oc:hover .oc-meta, .oc:hover .oc-weather{color:#c7c7c3;}
.oc:hover .oc-phone-row{border-top-color:rgba(255,255,255,.25);}
.oc:hover .oc-copy{border-color:rgba(255,255,255,.35);}
.oc:hover .oc-copy:hover, .oc:hover .oc-copy.is-copied{background:var(--paper); color:var(--ink); border-color:var(--paper);}
.oc:hover .oc-phone{background-image:linear-gradient(var(--paper),var(--paper));}

@media (max-width:980px){
  .contact-grid{grid-template-columns:minmax(0,1fr); gap:48px;}
  .contact-panel{position:static; order:-1;}   /* on small screens the email and the socials come first, above the form */
}
@media (max-width:860px){
  .office-cards{grid-template-columns:minmax(0,1fr);}
  .oc{min-height:0; gap:26px;}
}
@media (max-width:720px){
  .form-two{grid-template-columns:minmax(0,1fr); gap:0;}
  .social-tile{min-height:132px; padding:16px;}
  .contact-section{padding-bottom:72px;}
}
@media (prefers-reduced-motion:reduce){
  .oc-clock .colon{animation:none;}
  .social-tile, .social-tile:hover, .oc, .oc-arrow, .st-arrow, .cp-email .nb, .chip-tick{transition:none;}
  .social-tile:hover{transform:none;}
}


/* ---------- Project detail page ---------- */
.project-hero{padding:calc(var(--nav-h) + 60px) 0 var(--head-gap);}
.project-hero + section:not(.section-dark){padding-top:0;}
.project-missing{min-height:70vh;}
.project-missing[hidden]{display:none;}
.missing-text{font-size:18px; line-height:1.55; color:var(--gray-4); max-width:46ch; margin:20px 0 34px; text-wrap:pretty;}
.missing-actions{display:flex; flex-wrap:wrap; gap:14px;}
.project-title{font-size:clamp(34px,5.6vw,72px); text-transform:uppercase; max-width:900px;}
.project-meta-row{display:flex; gap:56px; margin-top:34px; padding-top:22px; border-top:1px solid var(--gray-2); flex-wrap:wrap;}
.project-meta-row .k{font-family:var(--display); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--gray-3); margin-bottom:8px;}
.project-meta-row > div{max-width:420px;}
.drag-gallery{
  margin-top:70px; overflow-x:auto; overflow-y:hidden; cursor:grab;
  -webkit-user-select:none; user-select:none;
  scrollbar-width:none; -ms-overflow-style:none;
}
.drag-gallery::-webkit-scrollbar{display:none;}
.drag-gallery.dragging{cursor:grabbing;}
.drag-track{display:flex; gap:14px; width:max-content;}
.drag-img{flex:0 0 auto; height:clamp(260px, 62vh, 620px); width:auto; max-width:none; display:block; -webkit-user-drag:none; user-select:none;}
.drag-slide{flex:0 0 auto; width:min(860px, 78vw); aspect-ratio:4/3; border:none; align-items:flex-end;}
.drag-hint{
  display:flex; align-items:center; gap:10px; margin-top:16px;
  font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--gray-3);
}
.drag-hint svg{flex-shrink:0;}

/* ---------- Video slide (project gallery + portfolio panel) ---------- */
video.drag-img, video.expand-img{background:#000; object-fit:contain;}
/* hosted preview: while the video is still being fetched it is a pending tile (same look as the "photo pending" ones; the label shows progress) */
.video-loading{display:flex; align-items:flex-end; cursor:default;}
.expand-track .video-loading{border:1px solid rgba(255,255,255,.14); background:repeating-linear-gradient(135deg, #1c1c1a 0 2px, #0a0a0a 2px 34px);}
.video-loading.video-retry{cursor:pointer;}
.video-note{font-family:var(--display); font-size:11px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:rgba(255,255,255,.6);}
/* shown in place of a video the browser cannot decode */
.video-failed{display:flex; align-items:center; justify-content:center; padding:0 24px; background:#0a0a0a; text-align:center;}
.video-failed .video-note{line-height:2;}

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .split{grid-template-columns:minmax(0,1fr); gap:40px;}
  .office-grid{grid-template-columns:minmax(0,1fr);}
  .office-hero-grid{grid-template-columns:minmax(0,1fr); gap:40px;}
  .strip{grid-template-columns:repeat(2, minmax(0,1fr));}
  .portfolio-block{aspect-ratio:4/3;}
}
/* 7 menu links need ~1080px: below that, use the hamburger drawer */
@media (max-width:1080px){
  .nav-links{
    position:fixed; top:var(--nav-h); left:0; right:0; bottom:auto;      /* the header's backdrop-filter makes the header the containing block, so the drawer gets its own height */
    height:calc(100vh - var(--nav-h)); height:calc(100dvh - var(--nav-h)); overflow-y:auto;
    background:var(--bg); flex-direction:column; justify-content:flex-start;
    padding:40px var(--pad); gap:26px;
    transform:translateX(100%); transition:transform .35s var(--ease);
  }
  .nav-links.open{transform:translateX(0);}
  .nav-toggle{display:flex;}
}
@media (max-width:720px){
  section{padding:72px 0;}
  .service-row{grid-template-columns:minmax(0,1fr); gap:10px;}
}

/* ---------- Careers: application form (dialog) ---------- */
html:has(dialog[open]){overflow:hidden;}
.apply-dialog{
  width:min(640px, calc(100vw - 24px)); max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px);
  margin:auto; padding:0; border:0; background:var(--bg); color:var(--ink); overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.35);
}
.apply-dialog[open]{animation:applyIn .32s var(--ease);}
.apply-dialog::backdrop{background:rgba(10,10,10,.66); backdrop-filter:blur(3px);}
@keyframes applyIn{from{opacity:0; transform:translateY(14px);}}
.apply-form{padding:44px 48px 38px; max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px); overflow-y:auto; overscroll-behavior:contain;}
.apply-form .form-field{margin-bottom:20px;}
.apply-close{
  position:absolute; z-index:3; top:16px; right:16px; width:38px; height:38px; border:1px solid var(--gray-2); border-radius:50%; background:var(--bg);
  font-size:22px; line-height:1; display:flex; align-items:center; justify-content:center; background:transparent;
  transition:background .2s var(--ease), border-color .2s var(--ease);
}
.apply-close:hover{background:var(--ink); color:var(--paper); border-color:var(--ink);}
.apply-kicker{font-family:var(--display); font-size:12px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--gray-3); padding-right:46px;}
.apply-title{font-size:clamp(28px,4.4vw,44px); text-transform:uppercase; margin:10px 0 26px;}
.apply-thanks{font-size:17px; color:var(--gray-4); margin:0 0 30px; max-width:420px;}
.apply-submit{margin-top:6px;}
.apply-submit[disabled]{opacity:.55; cursor:default;}
/* data-consent window (opens over the form when "Send application" is pressed) */
.apply-dialog.consent-dialog{width:min(520px, calc(100vw - 24px));}
.consent-box{padding:44px 44px 38px; max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px); overflow-y:auto; overscroll-behavior:contain;}
.consent-title{font-size:clamp(24px,3.8vw,34px); margin:0 0 18px; outline:none;}
.consent-text{margin:0 0 30px; max-width:46ch; font-size:16px; line-height:1.65; color:var(--gray-4);}
.consent-actions{display:flex; flex-wrap:wrap; gap:12px;}
.apply-status{margin-top:18px; font-size:14px; line-height:1.5; color:var(--gray-4);}
.apply-status.is-error{color:#b3261e;}
.apply-status.is-note{border-left:2px solid var(--ink); padding-left:12px;}
.field-error{color:#b3261e; font-size:13px; line-height:1.4; margin-top:8px;}
.form-field input[aria-invalid="true"]{border-bottom-color:#b3261e;}
.hp{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden;}

/* phone: country prefix picker + number */
.phone-row{display:flex; align-items:flex-end; gap:14px;}
.phone-row > input{flex:1 1 auto; min-width:0; width:auto;}
.cc{position:relative; flex:none;}
.cc-btn{
  display:flex; align-items:center; gap:10px; height:100%; min-height:49px; padding:12px 2px 12px 0;
  border-bottom:1px solid var(--gray-2); font-family:var(--body); font-size:16px; color:var(--ink); white-space:nowrap;
}
.cc-btn:hover, .cc-btn[aria-expanded="true"]{border-bottom-color:var(--ink);}
.cc-flag{font-family:'Twemoji Country Flags','Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif; font-size:21px; line-height:1; flex:none;}
.cc-code{font-variant-numeric:tabular-nums;}
.cc-chev{flex:none; opacity:.6; transition:transform .2s var(--ease);}
.cc-btn[aria-expanded="true"] .cc-chev{transform:rotate(180deg);}
.cc-panel{
  position:absolute; z-index:20; top:calc(100% + 8px); left:0; width:min(360px, calc(100vw - 72px));
  background:var(--paper); border:1px solid var(--gray-2); box-shadow:0 18px 44px rgba(0,0,0,.2);
}
.form-field .cc-search{
  display:block; width:100%; border:0; border-bottom:1px solid var(--gray-2); padding:14px 16px; font-size:15px; background:transparent;
}
.form-field .cc-search:focus{border-bottom-color:var(--ink);}
.cc-list{max-height:min(280px, 42vh); overflow-y:auto; overscroll-behavior:contain; padding:4px 0;}
.cc-list li{display:flex; align-items:center; gap:12px; padding:9px 16px; font-size:15px; cursor:pointer;}
.cc-list li[hidden]{display:none;}
.cc-list li.is-hi{background:var(--gray-1);}
.cc-list li[aria-selected="true"] .cc-name{font-weight:600;}
.cc-name{flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.cc-dial{flex:none; color:var(--gray-3); font-variant-numeric:tabular-nums; font-size:14px;}
.cc-empty{padding:16px; font-size:14px; color:var(--gray-3);}

/* file drop zones */
.dz{position:relative;}
.dz-input{position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; clip:rect(0 0 0 0); pointer-events:none;}
.form-field .dz-box{
  display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; padding:22px 20px; margin:0;
  font-family:var(--body); font-size:15px; letter-spacing:0; text-transform:none;
  border:1px dashed var(--gray-3); cursor:pointer; color:var(--gray-4);
  transition:border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.dz-box svg{margin-bottom:2px; color:var(--ink);}
.dz-main{color:var(--ink);}
.dz-hint{font-size:13px; color:var(--gray-3);}
.form-field .dz-box:hover, .dz.is-over .dz-box{border-color:var(--ink); border-style:solid; background:rgba(255,255,255,.55);}
.dz.is-over .dz-box{background:var(--paper);}
.dz-input:focus-visible + .dz-box{outline:2px solid var(--ink); outline-offset:3px;}
.dz-input[aria-invalid="true"] + .dz-box{border-color:#b3261e;}
.form-field .dz.has-file .dz-box{padding:14px 20px; flex-direction:row; justify-content:center; gap:10px;}
.dz.has-file .dz-box svg, .dz.has-file .dz-hint{display:none;}
.dz-file{display:flex; align-items:center; gap:14px; margin-top:10px; padding:12px 14px; background:var(--paper); border:1px solid var(--gray-2); font-size:14px;}
.dz-file[hidden]{display:none;}
.dz-name{flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:500;}
.dz-size{flex:none; color:var(--gray-3); font-size:13px;}
.dz-remove{flex:none; font-family:var(--display); font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; border-bottom:1px solid currentColor; padding-bottom:1px;}
.dz-remove:hover{color:#b3261e;}
@media (max-width:600px){
  .apply-form{padding:60px 22px 28px;}
  .phone-row{gap:10px;}
  .consent-box{padding:34px 22px 24px;}
  .consent-actions{flex-direction:column;}
  .consent-actions .btn{width:100%; justify-content:center;}
}
@media (prefers-reduced-motion:reduce){ .apply-dialog[open]{animation:none;} }


/* ============================================================================================================
   Language: footer, change-of-language veil, right-to-left and per-script typography  (see js/i18n.js)
   ============================================================================================================ */

/* A visitor whose language is not English never sees the English text flash: the page stays hidden until it is translated.
   (If the script were ever blocked, the page appears by itself after 2.8 s.) */
html.i18n-wait body{opacity:0; animation:i18nFailsafe 0s linear 2.8s forwards;}
html.i18n-ready body{animation:i18nIn .5s ease both;}
@keyframes i18nFailsafe{ to{opacity:1;} }
@keyframes i18nIn{ from{opacity:0;} to{opacity:1;} }

/* ---------- Mini footer: the language, nothing else. It shows the chosen language; a click opens a small menu (upwards) with the others ---------- */
.lang-footer{position:relative; z-index:10; background:var(--bg); border-top:1px solid var(--gray-2);}
.lang-footer-in{
  max-width:var(--max); margin:0 auto; padding:18px var(--pad);
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px 32px;
}
.lf-label{display:flex; align-items:center; gap:10px; font-family:var(--display); font-size:11px; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:var(--gray-3);}
.lf-globe{width:18px; height:18px; flex:none;}
.lf-pick{position:relative;}
.lf-flag{display:block; flex:none; width:22px; height:15px; border-radius:2px; overflow:hidden; box-shadow:0 0 0 1px rgba(10,10,10,.16);}
.lf-flag svg{display:block; width:100%; height:100%;}
.lf-current{
  display:inline-flex; align-items:center; gap:12px; padding:11px 16px 11px 14px; border:1px solid var(--gray-2);
  font-family:var(--display); font-size:12px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--ink);
  transition:border-color .25s var(--ease);
}
.lf-current:hover, .lf-pick.is-open .lf-current{border-color:var(--ink);}
.lf-chev{width:10px; height:6px; flex:none; margin-inline-start:4px; transition:transform .35s var(--ease);}
.lf-pick.is-open .lf-chev{transform:rotate(180deg);}
.lf-menu{
  position:absolute; inset-inline-end:0; bottom:calc(100% + 10px); z-index:5;
  /* 20 languages: a grid of four columns of five, read down each column in the order of the list (three columns of seven, then two of ten on narrower screens) */
  display:grid; grid-auto-flow:column; grid-template-rows:repeat(5, auto); grid-auto-columns:max-content;
  width:max-content; max-width:calc(100vw - 2 * var(--pad)); max-height:calc(100vh - 170px); overflow:auto; overscroll-behavior:contain;
  padding:6px 0; background:var(--paper); border:1px solid var(--ink); box-shadow:0 26px 54px -24px rgba(10,10,10,.5);
  opacity:0; visibility:hidden; transform:translateY(8px);
  transition:opacity .18s ease, transform .32s var(--ease), visibility 0s linear .32s;
}
.lf-pick.is-open .lf-menu{opacity:1; visibility:visible; transform:none; transition-delay:0s;}
.lf-opt{
  display:flex; align-items:center; gap:12px; width:100%; padding:11px 24px 11px 16px; text-align:start;
  font-family:var(--display); font-size:12px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--gray-4);
  transition:background .2s ease, color .2s ease;
}
.lf-name{min-width:0;}
.lf-opt:hover, .lf-opt:focus-visible{background:var(--bg); color:var(--ink);}
.lf-opt:focus-visible{outline:2px solid var(--ink); outline-offset:-2px;}
.lf-current:focus-visible{outline-offset:3px;}
.portfolio-page .lang-footer{background:var(--ink); border-top-color:rgba(255,255,255,.16);}
.portfolio-page .lf-label{color:rgba(255,255,255,.5);}
.portfolio-page .lf-current{color:#fff; border-color:rgba(255,255,255,.24);}
.portfolio-page .lf-current:hover, .portfolio-page .lf-pick.is-open .lf-current{border-color:#fff;}
.portfolio-page .lf-current:focus-visible, .portfolio-page .lf-opt:focus-visible{outline-color:#fff;}
.portfolio-page .lf-menu{background:#121212; border-color:rgba(255,255,255,.4); box-shadow:0 26px 54px -24px rgba(0,0,0,.9);}
.portfolio-page .lf-opt{color:rgba(255,255,255,.62);}
.portfolio-page .lf-opt:hover, .portfolio-page .lf-opt:focus-visible{background:#1d1d1d; color:#fff;}
.portfolio-page .lf-flag{box-shadow:0 0 0 1px rgba(255,255,255,.2);}
@media (max-width:1000px){ .lf-menu{grid-template-rows:repeat(7, auto);} }          /* three columns */
@media (max-width:759px){                                       /* phones: two columns as wide as the page's text, the menu spanning the footer */
  .lang-footer-in{position:relative; padding-top:14px; padding-bottom:14px;}
  .lf-pick{position:static;}
  .lf-menu{inset-inline:var(--pad); bottom:calc(100% - 4px); width:auto; max-width:none; grid-template-rows:repeat(10, auto); grid-auto-columns:minmax(0, 1fr);}
  .lf-opt{padding:12px 10px 12px 14px; gap:10px; font-size:11px; letter-spacing:.06em;}
  .lf-name{overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
}
@media (max-width:339px){                                       /* the very narrowest phones: one scrolling column */
  .lf-menu{grid-auto-flow:row; grid-template-rows:none; grid-template-columns:minmax(0, 1fr);}
}
@media (max-height:520px){                                      /* a phone held sideways: a low, wide menu so that the whole list still fits */
  .lf-menu{max-height:calc(100vh - 96px);}
  .lf-opt{padding:7px 12px; gap:10px; letter-spacing:.08em;}
}
@media (max-height:520px) and (min-width:560px) and (max-width:759px){ .lf-menu{grid-template-rows:repeat(7, auto);} }
@media (max-height:520px) and (min-width:760px){ .lf-menu{grid-template-rows:repeat(5, auto);} }
@media (prefers-reduced-motion:reduce){
  .lf-menu{transform:none; transition:opacity .15s ease, visibility 0s linear .15s;}
  .lf-chev{transition:none;}
}

/* ---------- The transition shown while the language changes: a black curtain rises, a hairline fills, the curtain lifts ---------- */
.lang-veil{
  position:fixed; inset:0; z-index:100000; display:flex; align-items:center; justify-content:center; direction:ltr;
  background:var(--ink); color:#fff; overflow:hidden; overscroll-behavior:contain; touch-action:none;
  clip-path:inset(100% 0 0 0);
  transition:clip-path .5s cubic-bezier(.76,0,.24,1);
}
.lang-veil.is-in{clip-path:inset(0 0 0 0);}
.lang-veil.is-out{clip-path:inset(0 0 100% 0); transition:clip-path .6s cubic-bezier(.76,0,.24,1);}
.lv-stage{
  display:flex; flex-direction:column; align-items:center; gap:18px;
  opacity:0; transform:translateY(8px); transition:opacity .35s ease .28s, transform .6s var(--ease) .28s;
}
.lang-veil.is-in .lv-stage{opacity:1; transform:none;}
.lang-veil.is-out .lv-stage{opacity:0; transform:translateY(-8px); transition:opacity .2s ease, transform .4s var(--ease);}
.lv-name{font-family:var(--display); font-size:12px; font-weight:600; line-height:1; letter-spacing:.42em; text-indent:.42em; text-transform:uppercase; color:#fff; margin:0;}
.lv-name[lang="ar"]{text-indent:0;}                      /* joined Arabic letters are not tracked, so nothing to balance */
/* the name is shown while the page is still in the old language, so it brings its own fonts: Archivo for Latin letters, then one that has the script */
.lv-name[lang="ru"], .lv-name[lang="bg"], .lv-name[lang="el"]{font-family:'Archivo','Inter',sans-serif;}
.lv-name[lang="ja"]{font-family:'Archivo','Noto Sans JP','Hiragino Sans','Hiragino Kaku Gothic ProN','Yu Gothic','Meiryo','Noto Sans CJK JP',sans-serif;}
.lv-name[lang="zh-Hans"]{font-family:'Archivo','Noto Sans SC','PingFang SC','Hiragino Sans GB','Microsoft YaHei','Noto Sans CJK SC',sans-serif;}
.lv-name[lang="ar"]{font-family:'Noto Kufi Arabic','Noto Sans Arabic','Segoe UI',Tahoma,'Geeza Pro','Arabic Typesetting',sans-serif;}
.lv-line{position:relative; width:min(180px, 50vw); height:1px; background:rgba(255,255,255,.18); overflow:hidden;}
.lv-bar{position:absolute; inset:0; background:#fff; transform-origin:0 50%; transform:scaleX(0);}
.lv-pct{min-height:1em; margin:0; font-family:var(--display); font-size:11px; font-weight:500; line-height:1; letter-spacing:.2em; text-indent:.2em; font-variant-numeric:tabular-nums; color:rgba(255,255,255,.42);}
.lv-pct::after{content:'%';}
@media (prefers-reduced-motion:reduce){
  .lang-veil, .lang-veil.is-in, .lang-veil.is-out{clip-path:none; transition:opacity .2s ease;}
  .lang-veil{opacity:0;} .lang-veil.is-in{opacity:1;} .lang-veil.is-out{opacity:0;}
  .lv-stage, .lang-veil.is-in .lv-stage, .lang-veil.is-out .lv-stage{transform:none; transition:opacity .2s ease;}
  html.i18n-ready body{animation:none;}
}

/* ---------- Other scripts: the right fonts, no letter-spacing on joined Arabic letters, room for long words ---------- */
html[lang="ar"]{
  --display:'Noto Kufi Arabic','Noto Sans Arabic','Segoe UI',Tahoma,'Geeza Pro','Arabic Typesetting',sans-serif;
  --body:'Noto Sans Arabic','Segoe UI',Tahoma,'Geeza Pro',sans-serif;
}
html[lang="zh-Hans"]{
  --display:'Archivo','Noto Sans SC','PingFang SC','Hiragino Sans GB','Microsoft YaHei','Noto Sans CJK SC',sans-serif;
  --body:'Inter','Noto Sans SC','PingFang SC','Hiragino Sans GB','Microsoft YaHei','Noto Sans CJK SC',sans-serif;
}
html[lang="ja"]{
  --display:'Archivo','Noto Sans JP','Hiragino Sans','Hiragino Kaku Gothic ProN','Yu Gothic','Meiryo','Noto Sans CJK JP',sans-serif;
  --body:'Inter','Noto Sans JP','Hiragino Sans','Hiragino Kaku Gothic ProN','Yu Gothic','Meiryo','Noto Sans CJK JP',sans-serif;
}
/* Archivo, the headline font, has no Cyrillic or Greek letters: those pages take them from Inter (loaded by js/i18n.js) */
html[lang="ru"], html[lang="bg"], html[lang="el"]{--display:'Archivo','Inter',sans-serif;}
html[lang="ar"] *, html[lang="ar"] *::before, html[lang="ar"] *::after, [lang="ar"]{letter-spacing:0 !important;}
html[lang="ar"] body, html[lang="zh-Hans"] body, html[lang="ja"] body{line-height:1.75;}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] .about-statement,
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3, html[lang="zh-Hans"] .about-statement,
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] .about-statement{line-height:1.28;}
html[lang="ar"] .job-title, html[lang="zh-Hans"] .job-title, html[lang="ja"] .job-title{line-height:1.4;}
html[lang="zh-Hans"] .eyebrow, html[lang="zh-Hans"] .nav-links a, html[lang="zh-Hans"] .btn, html[lang="zh-Hans"] .lf-current, html[lang="zh-Hans"] .lf-opt,
html[lang="ja"] .eyebrow, html[lang="ja"] .nav-links a, html[lang="ja"] .btn, html[lang="ja"] .lf-current, html[lang="ja"] .lf-opt{letter-spacing:.06em;}
html:not([lang="en"]) h1, html:not([lang="en"]) h2, html:not([lang="en"]) h3, html:not([lang="en"]) .project-title{overflow-wrap:break-word; -webkit-hyphens:manual; hyphens:manual; text-wrap:balance;}
html:not([lang="en"]) .about-statement{overflow-wrap:break-word; -webkit-hyphens:auto; hyphens:auto;}
html:not([lang="en"]) p{overflow-wrap:break-word;}
/* the home headline "Space Shaped Around People" is never translated: in every language and script it is set exactly as on the English page
   (its own Latin font, tracking and line height, left-to-right), whatever the page language swaps around it */
.hero-head h1[lang="en"]{
  font-family:'Archivo','Inter',Arial,sans-serif;
  letter-spacing:-.01em !important; line-height:1.02;
  text-wrap:wrap; -webkit-hyphens:manual; hyphens:manual; overflow-wrap:normal;
  direction:ltr; text-align:left; unicode-bidi:isolate;
}
html[dir="rtl"] .hero-head h1[lang="en"]{text-align:right;}           /* the mirrored (Arabic) page keeps its hero text on the right edge */

/* ---------- Right-to-left (Arabic): the layout is mirrored; pictures, the globe and the sliding galleries keep their own direction ---------- */
html[dir="rtl"] .discipline-hero-title{left:auto; right:var(--pad);}
html[dir="rtl"] .discipline-hero::before{background:linear-gradient(270deg, rgba(0,0,0,.66) 0, rgba(0,0,0,.56) var(--text-end), rgba(0,0,0,.12) calc(var(--text-end) + 34vw), rgba(0,0,0,.1) 100%);}
html[dir="rtl"] .portfolio-caption{left:auto; right:22px; text-align:right;}
html[dir="rtl"] .job{text-align:right; transition-property:padding-right;}
html[dir="rtl"] .job:hover{padding-left:0; padding-right:18px;}
html[dir="rtl"] .expand-info{padding-right:0; padding-left:20px;}
html[dir="rtl"] .expand-close{right:auto; left:0;}
html[dir="rtl"] .expand-gallery, html[dir="rtl"] .drag-gallery{direction:ltr;}
html[dir="rtl"] .expand-slide, html[dir="rtl"] .drag-gallery .ph{direction:rtl;}
html[dir="rtl"] .expertise-tile .label{left:auto; right:24px;}
html[dir="rtl"] .strip{border-left:0; border-right:1px solid var(--gray-2);}
html[dir="rtl"] .strip > div{border-right:0; border-left:1px solid var(--gray-2);}
html[dir="rtl"] #globe{direction:ltr;}
html[dir="rtl"] .globe-tooltip{direction:rtl;}
html[dir="rtl"] .globe-tooltip .gt-weather-icon{margin-left:0; margin-right:10px;}
html[dir="rtl"] .apply-close{right:auto; left:16px;}
html[dir="rtl"] .apply-kicker{padding-right:0; padding-left:46px;}
html[dir="rtl"] .apply-status.is-note{border-left:0; border-right:2px solid var(--ink); padding-left:0; padding-right:12px;}
html[dir="rtl"] .form-status{border-left:0; border-right:2px solid var(--ink); padding-left:0; padding-right:14px;}
html[dir="rtl"] .cc-panel{left:auto; right:0;}
html[dir="rtl"] .cc-btn{padding:12px 0 12px 2px;}
html[dir="rtl"] .phone-row input[type="tel"], html[dir="rtl"] .cc-code, html[dir="rtl"] .cc-dial{direction:ltr; text-align:left;}
html[dir="rtl"] .cc-list li{text-align:right;}
html[dir="rtl"] .chip-tick{margin-right:0;}
html[dir="rtl"] .chip input:checked + span .chip-tick{margin-right:0; margin-left:9px;}
html[dir="rtl"] .btn svg, html[dir="rtl"] .about-cta .btn svg, html[dir="rtl"] .contact-form .btn svg{transform:scaleX(-1);}
html[dir="rtl"] .contact-form .btn:hover svg{transform:scaleX(-1) translateX(4px);}
html[dir="rtl"] .st-arrow, html[dir="rtl"] .oc-arrow{transform:scaleX(-1);}
html[dir="rtl"] .social-tile:hover .st-arrow, html[dir="rtl"] .social-tile:focus-visible .st-arrow, html[dir="rtl"] .oc:hover .oc-arrow{transform:scaleX(-1) translate(4px,-4px);}
html[dir="rtl"] .cp-email, html[dir="rtl"] .oc-phone, html[dir="rtl"] .oc-clock, html[dir="rtl"] .office-phone{unicode-bidi:plaintext;}
html[dir="rtl"] .cp-email{direction:ltr; text-align:right;}
/* the logo is a Latin wordmark drawn in a box that is wider than the word (the home animation types longer phrases into it), so the header keeps its
   own left-to-right frame: logo on the left edge, menu on the right; only the menu's own order follows the language */
html[dir="rtl"] .nav{direction:ltr;}
html[dir="rtl"] .nav-links{direction:rtl;}

/* ---------- long words and narrow screens (translated text is often longer than the English) ---------- */
html[lang="de"] .project-title, html[lang="nl"] .project-title{font-size:clamp(30px, 4.6vw, 64px);}
@media (max-width:820px){
  html[lang="de"] .discipline-hero-title h1, html[lang="nl"] .discipline-hero-title h1{font-size:clamp(19px, 5vw, 30px);}
}
@media (max-width:700px){
  html:not([lang="en"]) .expertise-tile .label{font-size:clamp(13px, 3.9vw, 19px); left:14px; right:10px; bottom:14px; line-height:1.2;}
  html[dir="rtl"]:not([lang="en"]) .expertise-tile .label{left:10px; right:14px;}
  html:not([lang="en"]) .strip > div{padding-left:18px; padding-right:18px;}
}
@media (max-width:600px){
  html:not([lang="en"]) .strip .k{letter-spacing:.06em;}
  html:not([lang="en"]) .strip .v{font-size:15px;}
}
@media (max-width:359px){                                 /* the very smallest phones: one column where two would be too tight */
  .project-title{font-size:30px;}
  .strip{grid-template-columns:minmax(0,1fr);}
  .social-tiles{grid-template-columns:minmax(0,1fr);}
  .social-tile{min-height:104px;}
}
