/* Ida Toninato — site styles (static rebuild) */
:root {
  --sqs-site-gutter: 4vw;
  --sqs-mobile-site-gutter: 6vw;
  --sqs-site-max-width: 1500px;
  --white: #fff;
  --paper: #fafafa;
  --bright: #f5f5f0;
  --ink: #28282a;
  --dark: #1c1c1d;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: Almarai, "Helvetica Neue", Arial, sans-serif;
  --header-h: 92.906px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/24px var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--white);
  border-top: 1px solid var(--ink);
  color: var(--dark);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: calc(var(--header-h) - 1px);
  padding: 0 var(--sqs-site-gutter);
}
.site-title {
  font: 400 24.64px/29.568px var(--serif);
  letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.site-nav { display: flex; align-items: center; gap: 22px; }
.nav-item { position: relative; }
.nav-link {
  font: 400 16px/24px var(--sans);
  color: var(--dark); text-decoration: none;
  background: none; border: 0; padding: 1.6px 0; cursor: pointer;
}
.nav-item.active > .nav-link { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.folder {
  display: none; position: absolute; right: -16px; top: 100%;
  min-width: 100%; padding: 8px 16px 12px; background: var(--white);
  text-align: right; white-space: nowrap; z-index: 5;
}
.folder::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }
.folder a { display: block; color: var(--dark); text-decoration: none; padding: 1.6px 0; }
.folder a:hover, .folder a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }
.has-folder:hover .folder, .has-folder:focus-within .folder, .has-folder.open .folder { display: block; }
.menu-btn { display: none; }

/* ---------- sections ---------- */
main { display: block; }
.page-section { position: relative; background: var(--paper); }
main > .page-section:first-child { padding-top: var(--header-h); }
.page-section.theme-bright { background: var(--bright); }
.page-section.theme-white { background: var(--paper); }
.content-wrapper { position: relative; padding: 1.44px 0; }
.fluid-engine { position: relative; }
.section-background { position: absolute; inset: 0; overflow: hidden; background: var(--paper); }
.section-background img { width: 100%; height: 100%; object-fit: cover; display: block; }
.section-background::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.15); }

.fe-block { min-width: 0; }
.sqs-block { display: flex; flex-direction: column; height: 100%; width: 100%; }
.sqs-block-content { flex: 1; width: 100%; min-height: 0; display: flex; flex-direction: column; }


/* ---------- text ---------- */
.sqs-html-content { width: 100%; }
.sqs-html-content > :first-child { margin-top: 0; }
.sqs-html-content > :last-child { margin-bottom: 0; }
.sqs-html-content h1, .sqs-html-content h2, .sqs-html-content h3, .sqs-html-content h4 {
  font-family: var(--serif); font-weight: 400; margin: 0;
}
.sqs-html-content h1 { font-size: 67.84px; line-height: 71.639px; letter-spacing: -0.02em; color: #000; }
.sqs-html-content h2 { font-size: 47.104px; line-height: 52.455px; letter-spacing: -0.02em; }
.sqs-html-content h3 { font-size: 36.736px; line-height: 41.967px; letter-spacing: -0.02em; margin: 32px 0; }
.sqs-html-content h4 { font-size: 26.368px; line-height: 30.882px; letter-spacing: -0.02em; text-align: center; }
.sqs-html-content p { margin: 16px 0; font-size: 16px; line-height: 24px; }
.sqs-html-content .sqsrte-small { font-size: 14.272px; line-height: 21.408px; }
.sqs-html-content a { color: #000; text-decoration: underline; }
.sqs-html-content strong { font-weight: 700; }
.sqs-html-content ul, .sqs-html-content ol { margin: 16px 0; padding-left: 40px; }
.sqs-html-content li p { margin: 8px 0; }
.sqs-html-content blockquote { margin: 16px 0; }
.sqs-html-content .sqsrte-text-color--lightAccent, .sqs-html-content .sqsrte-text-color--light { color: #fff; }
.sqs-html-content .sqsrte-text-color--darkAccent { color: var(--dark); }
.sqs-html-content .sqsrte-text-color--dark { color: #000; }
/* page text on the bright (about) section is pure black, as on the original */
.theme-bright .sqs-html-content p { color: #000; }

/* ---------- images / video / buttons ---------- */
.img-wrap { position: relative; width: 100%; height: 100%; overflow: hidden; display: flex; }
.img-wrap img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.video-wrap { position: relative; width: 100%; height: 0; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.button-wrap { width: 100%; height: 100%; display: flex; }
.button {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; min-height: 48px; padding: 0 20.8px;
  border: 1px solid #000; background: transparent; color: #000;
  font: 400 16px/24px var(--sans); text-decoration: none;
  transition: background .2s, color .2s;
}
.button:hover { background: #000; color: #fff; }

/* ---------- mobile ---------- */
@media (max-width: 767px) {
  :root { --header-h: 83px; }
  .header-inner { padding: 0 var(--sqs-mobile-site-gutter); }
  .site-title { font-size: 16px; line-height: 24px; }
  .site-nav { display: none; }
  .menu-btn {
    display: block; position: relative; width: 36px; height: 24px; background: none; border: 0; cursor: pointer; padding: 0;
  }
  .menu-btn span { position: absolute; left: 0; right: 0; height: 1px; background: var(--dark); transition: transform .25s, top .25s; }
  .menu-btn span:nth-child(1) { top: 8px; }
  .menu-btn span:nth-child(2) { top: 15px; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { top: 12px; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { top: 12px; transform: rotate(-45deg); }
  .mobile-menu {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--white);
    padding: 32px var(--sqs-mobile-site-gutter); overflow-y: auto;
    font: 400 28px/1.3 var(--serif); letter-spacing: -0.02em;
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a, .mobile-menu span { display: block; color: var(--ink); text-decoration: none; padding: 8px 0; }
  .mobile-menu .mm-group span { padding-bottom: 0; }
  .mobile-menu .mm-group a { font-size: 20px; padding: 6px 0 6px 16px; }
  .sqs-html-content h1 { font-size: 48.4px; line-height: 51.11px; }
  .sqs-html-content h2 { font-size: 35.44px; line-height: 39.466px; }
  .sqs-html-content h3 { font-size: 28.96px; line-height: 33.084px; }
  .sqs-html-content h4 { font-size: 22.48px; line-height: 26.329px; }
  .sqs-html-content .sqsrte-small { font-size: 14.92px; line-height: 22.38px; }
}


/* keep intentional blank lines */
.sqs-html-content p:empty::before { content: "\00a0"; }

@media (max-width: 767px) {
  .site-title { white-space: nowrap; margin-right: 10px; }
  .menu-btn { width: 34px; flex: none; }
}

/* ---------- v2: seven menu items collapse to the hamburger below 1100px ---------- */
@media (max-width: 1099px) {
  .site-nav { display: none; }
  .menu-btn { display: block; position: relative; width: 34px; height: 24px; flex: none; background: none; border: 0; cursor: pointer; padding: 0; }
  .menu-btn span { position: absolute; left: 0; right: 0; height: 1px; background: var(--dark); transition: transform .25s, top .25s; }
  .menu-btn span:nth-child(1) { top: 8px; }
  .menu-btn span:nth-child(2) { top: 15px; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { top: 12px; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { top: 12px; transform: rotate(-45deg); }
  .mobile-menu {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--white);
    padding: 32px var(--sqs-mobile-site-gutter); overflow-y: auto;
    font: 400 28px/1.3 var(--serif); letter-spacing: -0.02em;
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { display: block; color: var(--ink); text-decoration: none; padding: 8px 0; }
}
.mobile-menu .mm-portfolio { font: 400 16px/24px var(--sans); letter-spacing: 0; text-decoration: underline; margin-top: 16px; }
.site-nav { gap: 20px; }


/* ---------- v2: simple text pages (collaboration hub, placeholders) ---------- */
.simple-page { max-width: 880px; margin: 0 auto; padding: 56px var(--sqs-site-gutter) 96px; }
.simple-page h1 { font: 400 47px/52px var(--serif); letter-spacing: -0.02em; margin: 0 0 24px; }
.simple-page p { margin: 16px 0; }
.simple-page .lede { font: 400 20px/30px var(--serif); }
.card-list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.card-list li { border-bottom: 1px solid var(--ink); }
.card-list a { display: block; padding: 22px 0; text-decoration: none; }
.card-list a:hover strong { text-decoration: underline; text-underline-offset: 5px; }
.card-list strong { display: block; font: 400 26px/32px var(--serif); letter-spacing: -0.02em; }
.card-list span { display: block; margin-top: 4px; }
.soon { display: inline-block; margin-top: 8px; padding: 4px 12px; border: 1px solid var(--ink); font-size: 14px; }
@media (max-width: 767px) {
  .simple-page { padding: 40px var(--sqs-mobile-site-gutter) 72px; }
  .simple-page h1 { font-size: 35px; line-height: 39px; }
}

/* ---------- v2: project cards (Collaboration, Workshops) ---------- */
.simple-page.wide { max-width: 1100px; }
.project-cards { display: grid; gap: 48px; margin-top: 40px; }
.project-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: center; text-decoration: none; color: inherit; }
.project-card img { width: 100%; height: auto; display: block; }
.project-card h2 { font: 400 36px/41px var(--serif); letter-spacing: -0.02em; margin: 0 0 8px; }
.project-card .kicker { font: 400 14px/21px var(--sans); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
.project-card p { margin: 0 0 12px; }
.project-card .more { display: inline-block; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.project-card:hover .more, .project-card:focus-visible .more { border-bottom-width: 2px; }
.simple-page .note { margin-top: 56px; font-size: 14px; }
@media (max-width: 767px) {
  .project-card { grid-template-columns: 1fr; gap: 16px; }
  .project-card h2 { font-size: 28px; line-height: 33px; }
}

/* ---------- v2: language switch ---------- */
.lang-switch { margin-left: 8px; padding-left: 20px; border-left: 1px solid var(--ink); }
.mobile-menu .mm-small { font: 400 16px/24px var(--sans); letter-spacing: 0; text-decoration: underline; margin-top: 16px; }
.mobile-menu .mm-small + .mm-small { margin-top: 0; }

/* ---------- Footer (one layout for every page) ---------- */
.site-footer { position: relative; margin: var(--sqs-site-gutter); min-height: 300px; overflow: hidden; background: #222; color: #fff; display: flex; }
.site-footer-bg, .site-footer-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.site-footer-bg img { object-fit: cover; object-position: 50% 50%; }
.site-footer-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.site-footer-inner { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 40px 16px; text-align: center; }
.footer-email { font: 400 26px/32px var(--serif); color: #fff; text-decoration: none; }
.footer-email:hover, .footer-links a:hover { text-decoration: underline; }
.footer-social, .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.footer-social a { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; color: #fff; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; transition: background .15s, color .15s; }
.footer-social a:hover, .footer-social a:focus-visible { background: #fff; color: #111; }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-links a { color: #fff; text-decoration: underline; text-underline-offset: 4px; font: 400 14px/21px var(--sans); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 767px) { .site-footer { min-height: 260px; margin: 4vw; } .footer-email { font-size: 20px; line-height: 26px; } }

/* Works catalogue */
.works-page h2 { font: 400 28px/34px var(--serif); margin: 48px 0 8px; }
.works-list { list-style: none; margin: 0; padding: 0; }
.works-list li { border-top: 1px solid rgba(0,0,0,.12); }
.works-list li p { margin: 0; padding: 14px 0; }
.works-year { white-space: nowrap; }
