:root {
  --bg: #07141f;
  --panel: #0d1d29;
  --panel-2: #142838;
  --text: #f4f1e9;
  --muted: #a9b6c0;
  --line: rgba(183, 199, 211, .17);
  --accent: #d2b06c;
  --accent-soft: #f0ddae;
  --paper: #e8ecee;
  --ink: #0a1b28;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--accent); color: var(--ink); padding: 12px 18px; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.wrap { width: min(calc(100% - 44px), var(--max)); margin-inline: auto; }
.grain { position: fixed; inset: 0; pointer-events: none; opacity: .04; z-index: 90; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }

nav { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: .3s ease; }
nav.scrolled { background: rgba(7, 20, 31, .9); border-color: var(--line); backdrop-filter: blur(14px); }
.nav-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: baseline; gap: 12px; font-weight: 750; letter-spacing: .12em; }
.brand span { color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 28px; color: #d5dde2; font-size: 14px; }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta { border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; }
.lang-switch { display: inline-flex; align-items: center; gap: 4px; margin-left: 20px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(7,20,31,.48); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.lang-switch a, .lang-switch span { min-width: 34px; padding: 7px 8px; border-radius: 999px; text-align: center; }
.lang-switch a { color: var(--muted); transition: color .2s ease, background .2s ease; }
.lang-switch a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.lang-switch [aria-current="page"] { color: var(--ink); background: var(--accent); }
.menu-btn { display: none; width: 42px; height: 42px; padding: 10px; border: 0; background: none; }
.menu-btn span { display: block; height: 1px; margin: 7px 0; background: currentColor; }

.hero { min-height: 100svh; position: relative; display: flex; align-items: flex-end; padding: 145px 0 94px; overflow: hidden; }
.hero-media, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { object-fit: cover; object-position: center; filter: saturate(.82) contrast(1.06); }
.hero-shade { background: linear-gradient(90deg, rgba(4, 16, 26, .97), rgba(5, 20, 32, .76) 47%, rgba(5, 19, 30, .22) 82%), linear-gradient(180deg, rgba(5, 18, 29, .12), rgba(5, 18, 29, .88)); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 25%; background: linear-gradient(to top, var(--bg), transparent); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .55fr); align-items: end; gap: 70px; }
h1 { max-width: 900px; margin: 22px 0 0; font-size: clamp(56px, 7.2vw, 108px); line-height: .92; letter-spacing: -.058em; font-weight: 500; }
.hero-copy { max-width: 460px; color: #d9e0e4; font-size: clamp(17px, 1.5vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 50px; padding: 13px 20px; border: 1px solid var(--line); border-radius: 999px; transition: .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 700; }
.btn-secondary:hover { border-color: rgba(255,255,255,.5); }
.hero-index { position: absolute; z-index: 3; right: 26px; bottom: 22px; display: flex; gap: 22px; color: rgba(255,255,255,.72); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.hero-index strong { color: var(--accent); font-size: 13px; }

section { padding: 118px 0; }
.section-head { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; align-items: start; margin-bottom: 60px; }
h2 { margin: 0; font-size: clamp(40px, 5vw, 70px); line-height: 1.02; letter-spacing: -.046em; font-weight: 500; }
.lead { max-width: 740px; margin: 24px 0 0; color: var(--muted); font-size: 19px; }
.manifesto { border-block: 1px solid var(--line); background: #091823; }
.manifesto-line { max-width: 1130px; margin: 0; color: #dce3e7; font-size: clamp(32px, 4.5vw, 66px); line-height: 1.13; letter-spacing: -.04em; }
.manifesto-line strong { color: var(--accent); font-weight: 520; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { min-height: 315px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; transition: background .25s ease; }
.service:hover { background: var(--panel); }
.service small { color: var(--accent); }
.service h3 { margin: 52px 0 10px; font-size: 25px; font-weight: 500; letter-spacing: -.025em; }
.service p { margin: 0; color: var(--muted); }

.projects { background: var(--paper); color: var(--ink); }
.projects .eyebrow, .projects .lead { color: #58666f; }
.projects .eyebrow::before { background: var(--ink); }
.project-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 18px 30px; border-top: 1px solid rgba(0,0,0,.18); }
.filters { display: flex; flex-wrap: wrap; gap: 9px; }
.filter { cursor: pointer; border: 1px solid rgba(10,27,40,.24); border-radius: 999px; background: transparent; color: #344955; padding: 10px 15px; transition: .2s ease; }
.filter:hover, .filter.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.filter span { margin-left: 5px; opacity: .58; }
#projectCount { flex: 0 0 auto; margin: 0; color: #676a66; font-size: 13px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.project-card { position: relative; min-height: 430px; overflow: hidden; border: 0; border-radius: 18px; padding: 0; background: var(--panel-2); cursor: pointer; text-align: left; isolation: isolate; }
.project-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(6,7,7,.94), rgba(6,7,7,.08) 62%); }
.project-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.project-card:hover img { transform: scale(1.045); }
.project-card:hover .project-open { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.project-card-copy { position: absolute; inset: auto 0 0; z-index: 2; padding: 24px; color: #fff; }
.project-topline { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: rgba(255,255,255,.68); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.project-card h3 { margin: 0; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.02; letter-spacing: -.035em; font-weight: 520; }
.project-card p { margin: 10px 0 20px; color: rgba(255,255,255,.73); font-size: 14px; }
.project-open { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; transition: .2s ease; }
.project-disclaimer { max-width: 900px; margin: 34px 0 0; color: #656863; font-size: 13px; }
.project-card[hidden] { display: none; }

.approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.approach-item { min-height: 290px; padding: 30px 26px 44px; background: var(--bg); }
.approach-item span { color: var(--accent); font-size: 13px; }
.approach-item h3 { margin: 66px 0 13px; font-size: 25px; font-weight: 500; }
.approach-item p { margin: 0; color: var(--muted); }

.team { background: var(--panel); }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.person { min-height: 560px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 38px; border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(circle at 82% 8%, rgba(210,176,108,.17), transparent 38%), linear-gradient(145deg, #142a39, #091823); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.person::before { content: attr(data-initial); position: absolute; right: -18px; top: -55px; color: rgba(255,255,255,.035); font-size: 260px; font-weight: 750; letter-spacing: -.1em; }
.person-kicker { position: relative; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.person h3 { position: relative; margin: 10px 0 5px; font-size: 38px; font-weight: 500; letter-spacing: -.035em; }
.role { position: relative; margin-bottom: 18px; color: var(--accent); }
.person p { position: relative; max-width: 550px; margin: 0; color: var(--muted); }
.person-skills { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.person-skills span { padding: 8px 11px; border: 1px solid rgba(210,176,108,.3); border-radius: 999px; color: var(--accent-soft); background: rgba(210,176,108,.055); font-size: 11px; letter-spacing: .02em; }
.team-members { margin-top: 52px; }
.team-members > h3 { margin: 0 0 18px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.team-members-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.team-member { min-height: 150px; padding: 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); }
.team-member h4 { margin: 36px 0 7px; font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.team-member p { margin: 0; color: var(--accent); }

.contact { padding: 105px 0; background: #d8e2e7; color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.contact .eyebrow { color: rgba(10,27,40,.64); }
.contact .eyebrow::before { background: var(--accent); }
.contact h2 { margin-top: 22px; }
.contact-copy > p { max-width: 590px; margin: 0 0 25px; color: rgba(10,27,40,.72); font-size: 20px; }
.contact-detail { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid rgba(10,27,40,.2); border-radius: 15px; background: rgba(255,255,255,.42); }
.contact-detail span { color: rgba(10,27,40,.62); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.contact-detail a { width: fit-content; color: var(--ink); font-size: clamp(21px, 2.4vw, 30px); font-weight: 520; letter-spacing: -.025em; text-decoration: none; }
.contact-detail a:hover { color: #8e641e; }
footer { padding: 42px 0; border-top: 1px solid var(--line); }
.footer-affiliation { max-width: 1050px; margin: 0 0 34px; padding-bottom: 30px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.7; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; color: var(--muted); font-size: 13px; }
.footer-grid strong { color: var(--text); letter-spacing: .12em; }

.project-dialog { width: min(1180px, calc(100% - 36px)); max-height: calc(100svh - 36px); margin: auto; padding: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; color: var(--text); background: #091823; box-shadow: 0 35px 120px rgba(0,0,0,.55); overflow: hidden; }
.project-dialog::backdrop { background: rgba(3,11,17,.86); backdrop-filter: blur(8px); }
.dialog-close { position: absolute; z-index: 4; right: 14px; top: 14px; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(11,12,13,.75); color: #fff; cursor: pointer; font-size: 26px; line-height: 1; }
.dialog-layout { display: grid; grid-template-columns: 1.35fr .65fr; min-height: min(740px, calc(100svh - 36px)); }
.dialog-gallery { min-width: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: #080909; }
.dialog-main-image { position: relative; min-height: 560px; }
.dialog-main-image img { width: 100%; height: 100%; object-fit: cover; }
.gallery-arrow { position: absolute; top: 50%; width: 42px; height: 42px; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(8,9,9,.72); color: white; cursor: pointer; }
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }
.gallery-index { position: absolute; right: 16px; bottom: 14px; padding: 6px 9px; border-radius: 999px; background: rgba(8,9,9,.72); font-size: 11px; }
.dialog-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px; }
.dialog-thumb { aspect-ratio: 1.6; padding: 0; border: 2px solid transparent; background: #222; cursor: pointer; opacity: .6; }
.dialog-thumb.active { border-color: var(--accent); opacity: 1; }
.dialog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dialog-copy { overflow-y: auto; padding: 72px 36px 36px; }
.dialog-category { color: var(--accent); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.dialog-copy h2 { margin: 16px 0 8px; font-size: clamp(36px, 4vw, 58px); }
.dialog-location { margin: 0; color: var(--muted); }
.dialog-rule { height: 1px; margin: 30px 0; background: var(--line); }
.dialog-copy h3 { margin: 0 0 10px; font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.dialog-copy > p:not(.dialog-location):not(.dialog-note) { color: #d2d1cb; font-size: 17px; }
.dialog-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.dialog-meta span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; }
.dialog-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: #777b78; font-size: 11px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-gallery { min-height: 620px; }
  .dialog-copy { overflow: visible; }
  .project-dialog { overflow-y: auto; }
}

@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 70px; left: 20px; right: 20px; flex-direction: column; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: #0d1d29; }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
  .lang-switch { margin-left: auto; margin-right: 8px; }
  .hero-grid, .section-head, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 30px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .approach-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .team-members-grid { grid-template-columns: 1fr 1fr; }
  .hero-index { display: none; }
}

@media (max-width: 620px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  section { padding: 84px 0; }
  .brand span { display: none; }
  .lang-switch a, .lang-switch span { min-width: 30px; padding: 6px; }
  .hero { min-height: 780px; padding: 120px 0 62px; }
  .hero-shade { background: linear-gradient(180deg, rgba(5,18,29,.27), rgba(5,18,29,.96) 72%); }
  h1 { font-size: clamp(50px, 16vw, 76px); }
  .services-grid, .approach-grid, .project-grid, .team-members-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 490px; }
  .project-toolbar { align-items: flex-start; flex-direction: column; }
  .filters { flex-wrap: nowrap; width: calc(100vw - 28px); margin-right: -14px; padding-right: 14px; overflow-x: auto; scrollbar-width: none; }
  .filter { flex: 0 0 auto; }
  .footer-grid { flex-direction: column; }
  .dialog-layout { min-height: auto; }
  .dialog-gallery { min-height: 410px; }
  .dialog-main-image { min-height: 330px; }
  .dialog-copy { padding: 46px 22px 28px; }
  .project-dialog { width: calc(100% - 16px); max-height: calc(100svh - 16px); border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
