:root {
  --ink: #222; --soft: #555; --paper: #fff; --accent: #9b4a72; --line: #ddd;
  --side: 288px; --gutter: 40px;
}
@font-face { font-family: Roboto; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/roboto-normal-300.woff2) format("woff2"); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/roboto-normal-400.woff2) format("woff2"); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/roboto-normal-500.woff2) format("woff2"); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/roboto-normal-700.woff2) format("woff2"); }
@font-face { font-family: Roboto; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/roboto-italic-400.woff2) format("woff2"); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 Roboto, system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: .15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
main:focus { outline: none; }
button { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--soft); padding: .35em .8em; min-height: 36px; cursor: pointer; }
button:hover { background: var(--ink); color: var(--paper); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: var(--paper); padding: .5em 1em; }
.skip-link:focus { left: 0; }
.draft-ribbon { background: var(--ink); color: var(--paper); font-size: .875rem; text-align: center; position: relative; z-index: 30; }
.draft-ribbon p { margin: 0; padding: .35em 1em; }

/* Layout: fixed column on the left, content on the right */
.site-header { padding: 16px; }
.logo { display: block; width: 56px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { display: flex; align-items: center; min-height: 44px; color: var(--soft); text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current] { color: #000; }
.main-nav a:hover { text-decoration: underline; }
.lang { margin: 8px 0 0; }
main { padding: 0 16px 48px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: 16px; font-size: .8125rem; color: var(--soft); }
.site-footer p { margin: 0; }
.site-footer a { color: var(--soft); }
.instagram { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; color: var(--ink) !important; }

/* Phone: compact bar stays on top while there is room for it */
.js .menu-toggle { display: inline-block; }
.menu-toggle { display: none; }
@media (max-width: 899.98px) {
  .site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; background: var(--paper); padding: 8px 16px; }
  .js .main-nav { display: none; flex-basis: 100%; }
  .js .main-nav.open { display: block; }
}
@media (max-width: 899.98px) and (min-height: 400px) {
  .js .site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
  .js .main-nav.open { max-height: calc(100vh - 72px); overflow-y: auto; }
  html { scroll-padding-top: 80px; }
}
@media (min-width: 900px) {
  body { font-size: .9375rem; }
  .site-header { position: fixed; top: 0; left: 0; bottom: 0; width: var(--side); padding: 64px var(--gutter) 64px; overflow-y: auto; background: var(--paper); z-index: 10; }
  .draft-ribbon + .site-header { top: 30px; }
  .logo { width: 192px; margin: -16px 0 40px 0; }
  .js .menu-toggle { display: none; }
  .main-nav a { min-height: 24px; font-size: .875rem; line-height: 22px; }
  .lang { margin-top: 26px; }
  main { margin-left: var(--side); padding: 48px var(--gutter) 80px 16px; }
  .site-footer { margin-left: 0; padding: 0 var(--gutter) 24px; position: relative; z-index: 11; background: transparent; }
}

/* Text */
.prose { max-width: 860px; overflow-wrap: anywhere; }
.prose p { margin: 0 0 1em; }
.prose h3 { font-size: .9375rem; font-weight: 700; margin: 1.5em 0 .5em; }
.lead-first > p:first-child strong:first-child { font-size: 1.2em; }
.legal h1 { font-size: 1.4rem; font-weight: 500; margin: 0 0 .5em; }
.legal h2 { font-size: 1.05rem; font-weight: 500; margin: 1.5em 0 .4em; }
.wide { max-width: 860px; margin-top: 1.5em; }
figcaption { font-size: .8125rem; color: var(--soft); margin-top: .4em; }

/* Home slideshow */
.page-home main { padding-bottom: 0; }
.slideshow { position: relative; }
.slides { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slides { height: min(125vw, calc(100vh - 240px)); }
.slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; display: flex; justify-content: center; align-items: center; }
.slide picture { display: contents; }
.slide img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.slide-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: .8125rem; }
.slide-controls[hidden] { display: none; }
@media (min-width: 900px) { .slides { height: calc(100vh - 190px); min-height: 360px; } .slide { align-items: flex-start; } }

/* Team */
.team, .gallery, .logos { list-style: none; margin: 0; padding: 0; }
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
.team figcaption { font-size: .875rem; color: var(--ink); line-height: 1.35; }
.team .voice { color: var(--soft); }
@media (min-width: 900px) { .team { grid-template-columns: repeat(3, 1fr); gap: 40px 32px; max-width: 1100px; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery a { display: block; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1100px; } }
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(0, 0, 0, .92); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; }
.lightbox img { max-height: calc(100vh - 100px); width: auto; object-fit: contain; }
.lightbox-controls { display: flex; gap: 8px; }

/* Projects */
.project { padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--line); max-width: 860px; scroll-margin-top: 80px; }
.project:last-child { border-bottom: 0; }
.project .wide { margin-top: 0; }
.project h2 { font-size: 1rem; font-style: italic; font-weight: 500; margin: 1em 0 .75em; }
.project-gallery { display: grid; gap: 16px; margin-top: 1.5em; }
.logos { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 1.5em; }
.logos img { max-width: 100%; height: auto; }

@media (prefers-reduced-motion: no-preference) { .slides { scroll-behavior: smooth; } }
