/* TECTON — homepage styles, v3 (minimal)
   Tokens follow the Tecton design system (brochure 2026/05). */

:root {
  --black: #000000;
  --ink: #222221;
  --charcoal: #2A2A28;
  --gold: #D2B12B;
  --green: #5E7462;
  --light: #F5F5F3;
  --line: #E6E6E4;
  --line-dark: #4A4A46;
  --grey: #6A6A68;
  --white: #FFFFFF;

  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --section-y: clamp(80px, 11vw, 160px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 16px; font-weight: 400; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.h2 { font-size: clamp(34px, 4.2vw, 60px); font-weight: 700; line-height: 1.05; letter-spacing: -.015em; color: var(--black); }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--grey); max-width: 520px; }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 28px; background: var(--charcoal); color: var(--white); text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: .03em; transition: background .25s var(--ease); }
.btn:hover { background: var(--black); }
.btn--light { background: var(--white); color: var(--black); }
.btn--light:hover { background: #EDEDEB; }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 600; letter-spacing: .03em; text-decoration: none; border-bottom: 1px solid currentColor; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.site-header .wrap { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: block; }
.logo img { height: 36px; width: auto; }
.logo .logo--dark { display: none; }
.nav { display: flex; align-items: center; gap: 36px; }
.site-header .logo { flex-shrink: 0; }
@media (max-width: 1320px) and (min-width: 1081px) { .nav { gap: 22px; } .nav .btn { padding: 0 16px; } }
.nav a { white-space: nowrap; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--white); }
.nav a:not(.btn):hover { opacity: .7; }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 13px; }
.site-header:not(.solid) .nav .btn { background: var(--white); color: var(--black); }
.site-header.solid { background: var(--white); box-shadow: 0 1px 0 var(--line); }
.site-header.solid .nav a:not(.btn) { color: var(--black); }
.site-header.solid .logo--light { display: none; }
.site-header.solid .logo--dark { display: block; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--white); margin: 6px 0; transition: transform .2s, opacity .2s; }
.site-header.solid .menu-toggle span, .site-header.open .menu-toggle span { background: var(--black); }

@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); padding: 8px var(--gutter) 28px; box-shadow: 0 12px 24px rgba(0,0,0,.06); }
  .nav a:not(.btn) { color: var(--black); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn, .site-header:not(.solid) .nav .btn { margin-top: 18px; justify-content: center; min-height: 52px; background: var(--charcoal); color: var(--white); }
  .site-header.open { background: var(--white); }
  .site-header.open .logo--light { display: none; }
  .site-header.open .logo--dark { display: block; }
  .site-header.open .nav { display: flex; }
  .site-header.open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .site-header.open .menu-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Hero — option B: video with large white logo */
body { padding-top: 80px; }
.hero .wrap { padding-top: clamp(20px, 3vw, 40px); }
.hero__media { position: relative; overflow: hidden; background: var(--charcoal); aspect-ratio: 21 / 9; max-height: calc(100vh - 140px); min-height: 360px; width: 100%; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 85%); }
.hero__logo { position: absolute; z-index: 1; left: clamp(24px, 4.5vw, 72px); top: 50%; transform: translateY(-50%); width: clamp(220px, 38vw, 560px); height: auto; }
.hero__caption { position: absolute; z-index: 1; right: 16px; bottom: 12px; font-size: 12px; color: rgba(255,255,255,.85); }
.hero__below { display: grid; grid-template-columns: 7fr 5fr; gap: 24px 64px; align-items: end; margin-top: clamp(32px, 4vw, 56px); }
.hero h1 { font-size: clamp(44px, 5.6vw, 84px); font-weight: 700; line-height: .95; letter-spacing: -.02em; color: var(--black); }
.hero__side { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero__side p { font-size: clamp(19px, 1.7vw, 24px); font-weight: 500; line-height: 1.2; color: var(--ink); max-width: 460px; }
@media (max-width: 860px) {
  .hero__media { aspect-ratio: 4 / 3; min-height: 0; }
  .hero__below { grid-template-columns: 1fr; }
}

/* Key facts */
.keyfacts .wrap { padding-top: 36px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.stat__label { font-size: 13px; color: var(--grey); }
.stat__value { font-size: clamp(22px, 2vw, 28px); font-weight: 600; line-height: 1.1; color: var(--black); white-space: nowrap; }
.stat__value small { font-size: .55em; font-weight: 600; }
.stat--est .stat__value { box-shadow: inset 0 -3px 0 var(--gold); align-self: flex-start; }
.footprint { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13px; color: var(--grey); }
.footprint span:first-child { color: var(--black); font-weight: 600; margin-right: 4px; }
@media (max-width: 1080px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; } }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sections */
.section { padding-top: var(--section-y); padding-bottom: 0; }
.section:last-of-type { padding-bottom: var(--section-y); }

/* Partner */
.partner .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 48px 64px; }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.role h3 { font-size: 18px; font-weight: 600; color: var(--black); margin-bottom: 12px; }
.role p { color: var(--grey); font-size: 15px; }
@media (max-width: 1080px) { .partner .wrap { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .roles { grid-template-columns: 1fr; gap: 28px; } }

/* Why */
.why .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 48px 64px; align-items: start; }
.why__img { overflow: hidden; aspect-ratio: 4 / 5; position: sticky; top: 112px; }
.why__img img { width: 100%; height: 100%; object-fit: cover; }
.why__text .lead { margin-top: 24px; }
.reasons { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: 48px 48px; }
.reason > span { font-size: 13px; color: var(--grey); }
.reason h3 { margin: 8px 0 10px; font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--black); }
.reason p { color: var(--grey); font-size: 15px; }
.reason p + p { margin-top: 10px; }
@media (max-width: 1080px) {
  .why .wrap { grid-template-columns: 1fr; }
  .why__img { position: static; aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) { .reasons { grid-template-columns: 1fr; gap: 32px; } }

/* References */
.refs__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 64px); }
.feature { display: grid; grid-template-columns: 8fr 4fr; gap: 0; margin-bottom: clamp(56px, 6vw, 88px); }
.feature__img { overflow: hidden; aspect-ratio: 16 / 9; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .feature__img img { transform: scale(1.03); }
.feature__info { background: var(--light); padding: clamp(28px, 3vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.feature__info h3 { font-size: clamp(26px, 2.4vw, 36px); font-weight: 700; line-height: 1.1; color: var(--black); }
.feature__info .type { display: block; margin-top: 8px; color: var(--grey); }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 20px; font-size: 14px; line-height: 1.45; }
.facts dt { color: var(--grey); }
.facts dd { color: var(--black); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 24px; list-style: none; padding: 0; margin: 0; }
.card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--light); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card__details { position: absolute; inset: auto 0 0 0; padding: 18px; background: rgba(42,42,40,.92); color: var(--white); font-size: 13px; line-height: 1.5; transform: translateY(100%); transition: transform .45s var(--ease); }
.card__details span { display: block; }
.card__details span + span { margin-top: 4px; opacity: .8; }
.card:hover .card__media img, .card:focus-within .card__media img { transform: scale(1.05); }
.card:hover .card__details, .card:focus-within .card__details { transform: translateY(0); }
.card h3 { margin-top: 16px; font-size: 17px; font-weight: 600; color: var(--black); line-height: 1.3; }
.card .type { display: block; margin-top: 2px; font-size: 14px; color: var(--grey); }
.card__meta { display: none; margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--grey); }
@media (hover: none) {
  .card__details { display: none; }
  .card__meta { display: block; }
}
@media (max-width: 1080px) {
  .feature { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 20px; }
}
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

/* Services */
.services .wrap { display: grid; grid-template-columns: 4fr 8fr; gap: 48px 64px; }
.services__intro .lead { margin-top: 24px; }
.services__intro .text-link { margin-top: 32px; }
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; }
.phase > span { font-size: 13px; color: var(--grey); }
.phase h3 { margin: 6px 0 12px; font-size: 18px; font-weight: 600; color: var(--black); }
.phase ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; color: var(--grey); }
@media (max-width: 1080px) { .services .wrap { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .phases { grid-template-columns: 1fr; gap: 32px; } }

/* CTA */
.cta .wrap { display: grid; grid-template-columns: 6fr 6fr; gap: 48px 64px; align-items: center; }
.cta__img { overflow: hidden; aspect-ratio: 3 / 2; }
.cta__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.cta__text .lead { margin-top: 24px; }
.cta__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
@media (max-width: 1080px) { .cta .wrap { grid-template-columns: 1fr; } }

/* Contact */
.contact { margin-top: var(--section-y); background: var(--charcoal); color: var(--white); }
.contact .wrap { padding-top: clamp(72px, 8vw, 120px); padding-bottom: clamp(72px, 8vw, 120px); display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; }
.contact h2 { font-size: clamp(36px, 4.2vw, 60px); font-weight: 700; line-height: 1.05; letter-spacing: -.015em; }
.contact__left { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.contact__left .btn { align-self: flex-start; }
.contact__list { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; align-content: end; font-size: 15px; line-height: 1.7; }
.contact__list h3 { font-size: 13px; font-weight: 400; color: #B2B2B0; margin-bottom: 8px; }
.contact__list .contact__more { margin-top: 24px; }
.contact__list a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.contact__list a:hover { border-color: var(--white); }
@media (max-width: 860px) { .contact .wrap, .contact__list { grid-template-columns: 1fr; } }

/* Footer */
.site-footer .wrap { padding-top: 36px; padding-bottom: 36px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--grey); }
.site-footer img { height: 30px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--black); }

/* Scroll fade-in (only when JS runs and motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Team */
.team__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 64px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 64px); }
.team__head .h2 { max-width: 640px; }
.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 48px 24px; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--light); filter: grayscale(1); }
.person h3 { margin-top: 14px; font-size: 16px; font-weight: 600; color: var(--black); line-height: 1.3; }
.person span { display: block; margin-top: 2px; font-size: 13px; color: var(--grey); line-height: 1.4; }
.people--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 1081px) { .people--4 .person--row { grid-column-start: 1; } }
@media (max-width: 1080px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; } }
.contact__face { width: 72px; height: 90px; object-fit: cover; filter: grayscale(1); margin-bottom: 14px; }

/* Projects page */
.projects-page { padding-top: clamp(56px, 7vw, 104px); }
.projects__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 64px; flex-wrap: wrap; }
.projects__head h1 { font-size: clamp(44px, 5.6vw, 84px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(32px, 4vw, 48px) 0 clamp(32px, 4vw, 48px); }
.filter { font: inherit; font-size: 14px; font-weight: 500; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); background: var(--white); color: var(--black); cursor: pointer; transition: border-color .2s, background .2s; }
.filter span { color: var(--grey); margin-left: 4px; }
.filter:hover { border-color: var(--black); }
.filter.is-active { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.filter.is-active span { color: #B2B2B0; }
.pgrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 24px; }
.pcard[hidden] { display: none; }
.pcard__media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--light); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--grey); }
.pcard h2 { margin-top: 16px; font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--black); }
.pcard__fn { display: block; margin-top: 2px; font-size: 14px; color: var(--ink); }
.pcard__meta { display: block; margin-top: 4px; font-size: 13px; color: var(--grey); }
.projects__more { margin-top: clamp(56px, 7vw, 96px); padding-top: 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; color: var(--grey); }
.projects-page + * { }
@media (max-width: 1080px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pgrid { grid-template-columns: 1fr; gap: 40px; } }

/* Project cards link to their detail page */
.pcard__link { display: block; text-decoration: none; color: inherit; }
.pcard__link:hover h2 { text-decoration: underline; text-underline-offset: 4px; }

/* Project detail page */
.project-page { padding-top: clamp(40px, 5vw, 72px); }
.project__back { margin-bottom: clamp(32px, 4vw, 56px); gap: 8px; }
.project__title { font-size: clamp(40px, 5vw, 76px); margin-bottom: clamp(32px, 4vw, 48px); }
.project__feature { margin-bottom: 0; }
.project__feature .feature__img { aspect-ratio: 4 / 3; background: var(--light); }
.project__feature .feature__info { justify-content: space-between; }
.project__feature .feature__info .text-link { align-self: flex-start; }
.project__text { max-width: 720px; margin-top: clamp(40px, 5vw, 64px); }
.project__text p + p { margin-top: 1em; }
/* Project photo gallery + lightbox */
.gallery { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1vw, 16px); }
.gallery__item { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--light); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.03); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0,0,0,.94); color: var(--white); }
.lightbox::backdrop { background: rgba(0,0,0,.94); }
.lightbox__img { position: absolute; inset: 64px 72px; width: calc(100% - 144px); height: calc(100% - 128px); object-fit: contain; }
.lightbox__count { position: absolute; left: 24px; top: 20px; font-size: 13px; letter-spacing: .04em; color: rgba(255,255,255,.75); }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; background: transparent; color: var(--white); cursor: pointer; opacity: .8; }
.lightbox__btn:hover, .lightbox__btn:focus-visible { opacity: 1; }
.lightbox__close { right: 12px; top: 8px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox__img { inset: 64px 0; width: 100%; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 8px; transform: none; }
}
.project__pager { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-top: clamp(56px, 7vw, 96px); padding-top: 24px; border-top: 1px solid var(--line); }
.project__pager .text-link { border-bottom: 0; }
.card__link, .feature__link { display: block; text-decoration: none; color: inherit; }
.card__link:hover h3, .feature__link:hover .feature__info h3 { text-decoration: underline; text-underline-offset: 4px; }

/* Inner page heading (Services and later pages) */
.page-head { padding-top: clamp(56px, 7vw, 104px); }
.page-head__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 32px 64px; align-items: start; }
.page-head h1 { font-size: clamp(44px, 5.6vw, 84px); }
.page-head__text { max-width: 680px; }
.page-head__text .lead { max-width: none; color: var(--black); font-weight: 500; }
.page-head__text p + p { margin-top: 16px; color: var(--grey); }
@media (max-width: 1080px) { .page-head__grid { grid-template-columns: 1fr; } }

/* Services: three roles */
.svc-roles__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
.svc-role__img { overflow: hidden; aspect-ratio: 4 / 3; background: var(--light); }
.svc-role__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.svc-role:hover .svc-role__img img { transform: scale(1.04); }
.svc-role__kicker { display: block; margin-top: 20px; font-size: 13px; color: var(--grey); }
.svc-role h2 { margin: 2px 0 12px; font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; line-height: 1.15; color: var(--black); }
.svc-role p { color: var(--grey); font-size: 15px; }
@media (max-width: 1080px) { .svc-roles__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .svc-roles__list { grid-template-columns: 1fr; } }

/* Services: delivery options */
.svc-delivery__grid { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; }
.svc-option { padding-top: 24px; border-top: 1px solid var(--line); }
.svc-option > span { font-size: 13px; color: var(--grey); }
.svc-option h3 { margin: 6px 0 16px; font-size: clamp(22px, 2vw, 28px); font-weight: 700; line-height: 1.2; color: var(--black); }
.svc-option p { color: var(--grey); font-size: 15px; }
.svc-option p + p { margin-top: 12px; color: var(--ink); }
@media (max-width: 860px) { .svc-delivery__grid { grid-template-columns: 1fr; } }

/* Services: technology image uses the "why" layout in landscape */
.svc-tech .why__img { aspect-ratio: 4 / 3; }

/* Services: clients */
.svc-clients__head { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 64px; align-items: start; }
.svc-clients__head .text-link { margin-top: 24px; }
.svc-clients__legend { margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--black); font-weight: 600; display: flex; align-items: center; }
.svc-clients__list { list-style: none; padding: 16px 0 0; margin: 0; columns: 4 220px; column-gap: 32px; font-size: 12px; line-height: 1.5; letter-spacing: .02em; color: var(--grey); }
.svc-clients__list li { break-inside: avoid; padding: 5px 0 5px 18px; position: relative; }
.svc-clients__list li .svc-clients__mark { position: absolute; left: 0; top: 9px; }
.svc-clients__mark { display: inline-block; width: 9px; height: 9px; border: 1.5px solid var(--charcoal); border-radius: 50%; margin-right: 9px; flex: none; }
.svc-clients__list li.is-repeat { color: var(--black); font-weight: 600; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 1080px) { .svc-clients__head { grid-template-columns: 1fr; } }

/* Team page */
.page-head__link { margin-top: 24px; }
.team__more { margin-top: 20px; }
.milestones__list { list-style: none; padding: 0; margin: clamp(40px, 5vw, 64px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; }
.milestones__list li { padding: 24px 0 32px; border-top: 1px solid var(--line); }
.milestones__list span { display: block; font-size: clamp(28px, 2.6vw, 40px); font-weight: 700; line-height: 1; letter-spacing: -.01em; color: var(--black); }
.milestones__list p { margin-top: 12px; font-size: 15px; color: var(--grey); max-width: 260px; }
@media (max-width: 1080px) { .milestones__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .milestones__list { grid-template-columns: 1fr; } }
.team__group { margin: clamp(48px, 6vw, 80px) 0 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--black); }
.team__head + .team__group { margin-top: 0; }
.team__names { list-style: none; padding: 0; margin: 0; columns: 4 200px; column-gap: 32px; font-size: 14px; line-height: 1.5; color: var(--grey); }
.team__names li { break-inside: avoid; padding: 3px 0; }
.life__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.life__grid figure { margin: 0; overflow: hidden; aspect-ratio: 3 / 2; background: var(--light); }
.life__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.life__grid figure:hover img { transform: scale(1.03); }
.life__grid .life__big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 760px) { .life__grid { grid-template-columns: 1fr 1fr; } .life__grid .life__big { grid-column: span 2; grid-row: auto; aspect-ratio: 3 / 2; } }

/* Team page heading: motto under the title */
.team-motto { margin-top: clamp(28px, 3vw, 44px); font-size: clamp(32px, 3.4vw, 52px); font-weight: 700; line-height: 1.08; letter-spacing: -.015em; color: var(--black); }
@media (max-width: 1080px) { .team-motto { margin-top: 20px; } }

/* Careers page */
.careers-reasons { grid-template-columns: 1fr; gap: 40px; max-width: 640px; }
.reason p a { color: inherit; text-underline-offset: 3px; }
.benefits__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; }
.benefits__list li { padding: 24px 0 40px; border-top: 1px solid var(--line); }
.benefits__list span { font-size: 13px; color: var(--grey); }
.benefits__list h3 { margin: 6px 0 10px; font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--black); }
.benefits__list p { font-size: 15px; color: var(--grey); }
@media (max-width: 1080px) { .benefits__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .benefits__list { grid-template-columns: 1fr; } }
.careers-join .cta__img img { filter: none; }
.page-head__text a:not(.text-link):not(.btn) { color: inherit; text-underline-offset: 3px; }
.page-head__text .cta__actions { margin-top: 28px; }

/* Job listings */
.jobs { padding-top: clamp(32px, 4vw, 56px); }
.jobs__list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.job { display: flex; align-items: center; justify-content: space-between; gap: 16px 40px; padding: clamp(28px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); }
.job__title { font-size: clamp(22px, 2.2vw, 32px); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--black); }
.job__loc { color: var(--grey); font-weight: 600; }
.job__meta { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 15px; color: var(--ink); }
.job__tag { display: inline-block; padding: 4px 10px; background: var(--charcoal); color: var(--white); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.job__apply { flex: none; }
.projects__more p a { color: inherit; text-underline-offset: 3px; }
@media (max-width: 640px) { .job { flex-direction: column; align-items: flex-start; } }

/* Contact page: offices */
.offices__grid { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.office { background: var(--light); padding: clamp(28px, 3vw, 48px); display: flex; flex-direction: column; gap: 24px; }
.office h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 700; line-height: 1.2; color: var(--black); }
.office .facts a { color: inherit; text-underline-offset: 3px; }
.office .text-link { align-self: flex-start; margin-top: auto; }
@media (max-width: 860px) { .offices__grid { grid-template-columns: 1fr; } }

/* Korean landing page (/ko/) */
html:lang(ko) body { font-family: "Montserrat", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; word-break: keep-all; overflow-wrap: break-word; }
html:lang(ko) .h2 { line-height: 1.2; letter-spacing: -.01em; }
html:lang(zh-Hans) body { font-family: "Montserrat", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; overflow-wrap: break-word; }
html:lang(zh-Hans) .h2 { line-height: 1.25; letter-spacing: 0; }
.ko-hero h1 { font-size: clamp(32px, 3.6vw, 54px); }
.ko-eyebrow { font-size: 14px; font-weight: 600; color: var(--grey); margin-bottom: 20px; }
.ko-badges { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--grey); }
.ko-badges li { padding-left: 14px; position: relative; }
.ko-badges li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1px; background: var(--ink); }
.ko-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ko-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ko-card { background: var(--light); padding: clamp(24px, 2.4vw, 36px); }
.ko-card > span { font-size: 13px; color: var(--grey); }
.ko-card h3 { margin: 8px 0 10px; font-size: 19px; font-weight: 600; line-height: 1.35; color: var(--black); }
.ko-card p { font-size: 15px; color: var(--grey); }
.ko-source { margin-top: 24px; font-size: 13px; color: var(--grey); }
.ko-source a { color: inherit; text-underline-offset: 3px; }
.reason--key { border: 1px solid var(--ink); padding: 24px; margin: -25px; }
.ko-tag { display: inline-block; margin-top: 16px; font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--grey); }
.ko-ref__title { margin-top: 4px; font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--black); }
.ko-phases { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ko-faq { display: grid; grid-template-columns: 5fr 7fr; gap: 32px 64px; align-items: start; }
.ko-faq__list details { border-top: 1px solid var(--line); }
.ko-faq__list details:last-child { border-bottom: 1px solid var(--line); }
.ko-faq__list summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-size: 17px; font-weight: 600; color: var(--black); }
.ko-faq__list summary::-webkit-details-marker { display: none; }
.ko-faq__list summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 22px; font-weight: 300; color: var(--grey); }
.ko-faq__list details[open] summary::after { content: "−"; }
.ko-faq__list details p { padding: 0 40px 24px 0; color: var(--grey); font-size: 15px; }
.ko-contact { margin-top: 24px; font-size: 14px; color: var(--grey); }
.ko-contact a { color: inherit; }
@media (max-width: 1080px) {
  .ko-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ko-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ko-phases { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ko-faq { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ko-cards, .ko-phases { grid-template-columns: 1fr; }
  .ko-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reason--key { margin: -17px; padding: 16px; }
}

/* Language switcher (header, right of the nav) */
.lang { position: relative; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--black); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { opacity: .7; }
.lang__caret { transition: transform .2s var(--ease); }
.lang[open] .lang__caret { transform: rotate(180deg); }
.lang__list { position: absolute; right: 0; top: 100%; min-width: 168px; margin: 8px 0 0; padding: 8px 0; list-style: none; background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 12px 24px rgba(0,0,0,.06); }
.lang__list a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 14px; color: var(--ink); text-decoration: none; }
.lang__list a:hover { background: var(--light); }
.lang__list a[aria-current] { font-weight: 600; color: var(--black); }
.lang__list .lang__code { width: 22px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--grey); }
@media (max-width: 1080px) {
  .lang { margin-left: auto; }
  .lang summary { padding: 0 8px; }
}
.site-header .nav { margin-left: auto; }
.ko-video + .ko-hero { padding-top: clamp(40px, 5vw, 72px); }

/* Direction page (src/direction-pages.njk) — reuses the Services, Team and "why" layouts */
.dir-values { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 80px) 48px; }
.dir-values h3 { margin: 8px 0 12px; font-size: clamp(18px, 1.5vw, 21px); font-weight: 600; line-height: 1.3; color: var(--ink); }
.dir-values .svc-role__kicker { margin-top: 20px; font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; line-height: 1.15; color: var(--black); }
.dir-values p + p { margin-top: 12px; }
.svc-role .dir-close, .dir-text .reveal > .dir-close { margin-top: 16px; color: var(--ink); font-weight: 500; }
.dir-eras { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dir-eras em { display: block; margin-top: 10px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--grey); }
.dir-eras p { max-width: 340px; }
.dir-vision__intro { margin: clamp(40px, 5vw, 64px) 0 32px; max-width: 760px; }
.dir-vision__outro { margin-top: 32px; max-width: 760px; font-size: 17px; font-weight: 500; color: var(--ink); }
.dir-kicker { display: block; margin-bottom: 12px; font-size: 13px; color: var(--grey); }
.dir-direction .why__img { aspect-ratio: 4 / 3; }
.dir-text .reveal > p { margin-top: 16px; max-width: 680px; color: var(--grey); }
.dir-for { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; max-width: 680px; font-size: 15px; }
.dir-for dt { font-weight: 600; color: var(--black); }
.dir-for dd { margin: 0; color: var(--grey); }
@media (min-width: 1081px) {
  .dir-direction--flip .wrap { grid-template-columns: 7fr 5fr; }
  .dir-direction--flip .why__img { order: 2; }
}
@media (max-width: 1080px) { .dir-eras { grid-template-columns: 1fr; } .dir-eras p { max-width: 560px; } }
@media (max-width: 640px) { .dir-values { grid-template-columns: 1fr; } .dir-for { grid-template-columns: 1fr; gap: 2px; } .dir-for dd { margin-bottom: 10px; } }
@media (max-width: 1080px) { .dir-devs { grid-template-columns: 1fr; } }
.office--photo { margin: 0; padding: 0; overflow: hidden; min-height: 320px; }
.office--photo img { width: 100%; height: 100%; object-fit: cover; }
/* Services: logo panel (BIM software on top, partners below) in place of the technology photo — partials/tech-logos.njk */
.svc-logos { background: var(--light); display: flex; flex-direction: column; padding: clamp(20px, 2.6vw, 40px); box-sizing: border-box; }
.svc-logos__group { display: flex; flex-direction: column; }
.svc-logos__group--tools { flex: 0 0 auto; padding-bottom: clamp(16px, 2vw, 28px); border-bottom: 1px solid var(--line); margin-bottom: clamp(16px, 2vw, 28px); }
.svc-logos__group:not(.svc-logos__group--tools) { flex: 1 1 auto; }
.svc-logos__label { font-size: 13px; color: var(--grey); }
.svc-logos__more { margin: 12px 0 0; text-align: center; font-size: 14px; font-weight: 500; color: var(--grey); }
.svc-logos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; align-content: space-evenly; flex: 1 1 auto; }
.svc-logos li { flex: 0 0 33.333%; display: flex; align-items: center; justify-content: center; min-height: 64px; min-width: 0; }
.svc-logos__group--tools li { flex-basis: 45%; min-height: 64px; }
.svc-tech .why__img.svc-logos { aspect-ratio: auto; position: static; }
.svc-tech .svc-logos img { width: auto; height: auto; max-width: 78%; max-height: 30px; object-fit: contain; }
.svc-tech .svc-logos img.is-square { max-height: 42px; }
.svc-logos__name { font-size: clamp(18px, 1.7vw, 24px); font-weight: 700; letter-spacing: -.01em; color: var(--grey); }
.svc-logos__tool { gap: 10px; }
.svc-tech .svc-logos .svc-logos__tool img { max-height: 44px; max-width: 86%; }
@media (max-width: 1080px) { .svc-tech .svc-logos { aspect-ratio: auto; } }

/* Privacy notice (src/privacy-pages.njk): headings and lists inside the page-head text column */
.legal .legal__h { font-size: 1.05rem; font-weight: 600; color: var(--black); margin: 40px 0 12px; }
.legal .legal__h + p { margin-top: 0; }
.legal .legal__list { margin: 12px 0 0; padding-left: 1.2em; color: var(--grey); }
.legal .legal__list li + li { margin-top: 6px; }
.legal .legal__note { color: var(--black); font-weight: 500; margin-bottom: 24px; }
.legal .legal__contact { margin-top: 40px; }
.legal .page-head__text p:not(.lead):not(.legal__note) { color: var(--grey); }

/* <picture> wrappers added by the "webp" transform (eleventy.config.js) must not change the layout */
picture { display: contents; }
picture > source { display: none; }

/* 404 page */
.notfound__langs { margin-top: 32px; display: grid; gap: 10px; }
.notfound__langs a { color: var(--grey); text-underline-offset: 3px; }
