/* ooll architecture studio — site styles
   Colors and type are set once here; change them in :root. */
:root {
  --bg: #f0f0e9;
  --blue: #266cf1;
  --ink: #1d1d1b;
  --field: #f8f8f8;
  --gutter: clamp(20px, 3vw, 56px);
  --font: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-logo: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--blue);
  font-family: var(--font);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: clamp(24px, 3vw, 44px) var(--gutter);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo svg { height: clamp(26px, 2.4vw, 38px); width: auto; }
.logo-text {
  font-family: var(--font-logo); font-weight: 500;
  font-size: clamp(10px, 0.85vw, 13px);
  letter-spacing: 0.06em; line-height: 1.2; text-transform: uppercase;
}
.nav { display: flex; gap: clamp(28px, 4.5vw, 80px); font-size: clamp(15px, 1.1vw, 18px); }
.nav a, .nav button { position: relative; padding-bottom: 2px; }
.nav a.active, .nav a:hover, .nav button:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.nav-item { position: relative; }
.submenu {
  /* sits flush under its link; the padding is an invisible bridge so the
     menu stays open while the cursor moves down onto it */
  position: absolute; right: 0; top: 100%; padding-top: 12px;
  display: none; flex-direction: column; align-items: flex-end; gap: 4px;
  white-space: nowrap;
}
.nav-item:hover .submenu, .nav-item:focus-within .submenu, .nav-item.open .submenu { display: flex; }
.lang-btn {
  background: none; border: 0; color: inherit; font: inherit; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
.lang-btn svg { width: 12px; height: 12px; }
.lang-menu { min-width: 90px; }
.lang-menu button { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }

/* ---------- home: full-bleed slideshow ---------- */
.hero { position: fixed; inset: 0; background: #999; overflow: hidden; }
.hero img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1); opacity: 0; transition: opacity 1.4s ease;
}
.hero img.show { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(240, 240, 233, 0.42); }

/* ---------- projects list ---------- */
.project-list {
  min-height: 100vh; position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 140px var(--gutter) 80px;
}
.project-list .previews { position: absolute; inset: 0; pointer-events: none; }
.project-list .previews img {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: min(44vw, 820px); aspect-ratio: 3 / 2; object-fit: cover;
  filter: grayscale(1) contrast(.85) brightness(1.08);
  opacity: 0; transition: opacity .5s ease;
}
.project-list .previews img.show { opacity: 1; }
.project-list .previews img:nth-child(3n+1) { left: 16%; }
.project-list .previews img:nth-child(3n+2) { left: 36%; }
.project-list .previews img:nth-child(3n)   { left: 28%; }
.names {
  position: relative; z-index: 2; list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  font-size: clamp(40px, 4.4vw, 96px); line-height: 1.15; letter-spacing: -0.01em;
}
.names li { display: flex; align-items: baseline; }
.names li + li::before { content: "/"; margin: 0 0.3em; }
.names li[hidden] { display: none; }
.names a { text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.names a:hover, .names a.current { text-decoration: underline; }

/* ---------- single project ---------- */
.project { padding: clamp(160px, 18vw, 300px) var(--gutter) 60px; }
/* project name is kept for search engines and screen readers but hidden, like the original */
.project-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.project-grid { display: grid; grid-template-columns: 1fr clamp(160px, 16vw, 280px); gap: var(--gutter); }
.collage { display: grid; grid-template-columns: repeat(12, 1fr); }
.collage img { border-radius: 10px; width: 100%; object-fit: cover; }
.collage img:nth-child(3n+1) { grid-column: 5 / 12; }
.collage img:nth-child(3n+2) { grid-column: 1 / 7; margin-top: -60%; z-index: 1; position: relative; }
.collage img:nth-child(3n)   { grid-column: 8 / 13; margin-top: -8%; }
.meta { list-style: none; position: sticky; top: 160px; align-self: start; display: grid; gap: 72px; }
.meta strong { display: block; font-weight: 300; font-size: clamp(22px, 1.7vw, 32px); }
.meta span { font-size: 15px; }
.pager {
  display: flex; justify-content: space-between; align-items: center;
  font-size: clamp(22px, 1.8vw, 32px); padding: 120px 0 40px;
}
.pager a { display: flex; align-items: center; gap: 22px; }
.pager a:hover span { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.pager svg { width: 14px; height: 28px; }

/* ---------- contact ---------- */
.contact { padding: clamp(180px, 20vw, 360px) var(--gutter) 80px clamp(24px, 11vw, 290px); max-width: 1400px; }
.contact h1 { font-weight: 400; font-size: clamp(64px, 9.5vw, 190px); line-height: .9; letter-spacing: -0.01em; margin-bottom: clamp(40px, 5vw, 90px); }
.contact form { max-width: 520px; display: grid; gap: 22px; }
.contact label { display: grid; gap: 10px; font-size: 13px; letter-spacing: .18em; }
.contact input, .contact textarea {
  width: 100%; background: var(--field); border: 1px solid var(--ink); border-radius: 0;
  font: 400 16px var(--font); color: var(--ink); padding: 10px 12px;
}
.contact textarea { min-height: 64px; resize: vertical; }
.contact input:focus, .contact textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.contact button {
  justify-self: start; background: none; border: 0; color: var(--blue);
  font: 400 15px var(--font); padding: 8px 22px; cursor: pointer;
}
.contact button:hover { text-decoration: underline; text-underline-offset: 5px; }
.form-note { font-size: 15px; min-height: 1.4em; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .site-header { flex-direction: column; gap: 18px; background: var(--bg); }
  .home .site-header { background: transparent; }
  .nav { width: 100%; justify-content: space-between; }
  .submenu { right: auto; left: 0; align-items: flex-start; background: var(--bg); padding: 12px 0 8px; }
  .lang-menu { right: 0; left: auto; align-items: flex-end; }
  .names { flex-direction: column; align-items: center; }
  .names li + li::before { display: none; }
  .project-list .previews img { width: 90vw; left: 5vw !important; }
  .project { padding-top: 170px; }
  .project-grid { grid-template-columns: 1fr; }
  .meta { position: static; grid-auto-flow: column; gap: 20px; order: -1; }
  .collage { display: grid; gap: 16px; grid-template-columns: 1fr; }
  .collage img:nth-child(n) { grid-column: 1; margin: 0; }
  .contact { padding-top: 190px; }
}
