/* Studio Marco Widmann — style.css
   Editorial / architecture-magazine language (grotesque type, hard rules, numbered captions).
   Palette: off-white / black + one accent. Fonts are bundled locally. */
@font-face { font-family: "Inter Tight"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("../fonts/inter-tight-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }

:root {
  --bg: #f5f3ee;          /* off-white */
  --bg-tint: #ebe8e0;
  --ink: #1d1d1b;         /* charcoal */
  --ink-2: #55524c;       /* secondary text (6.7:1 on --bg) */
  --line: #d4d0c6;
  --accent: #9a4f2e;      /* terracotta (5.6:1 on --bg) */
  --accent-on-dark: #e0a283;
  --dark: #1d1d1b;
  --on-dark: #f5f3ee;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html.is-locked { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.section--dark :focus-visible, .hero :focus-visible, .lightbox :focus-visible { outline-color: var(--on-dark); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.muted { color: var(--ink-2); }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: 1560px; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 243, 238, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: background .35s, border-color .35s, color .35s; }
.site-header[data-hero] { position: fixed; left: 0; right: 0; }
.site-header[data-hero]:not(.is-solid):not(.menu-open) { background: transparent; border-color: transparent; color: var(--on-dark); -webkit-backdrop-filter: none; backdrop-filter: none; }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { margin-right: auto; display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo__mark { font: 300 1.9rem/1 var(--sans); letter-spacing: -.09em; padding-right: .1em; font-stretch: expanded; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; border-left: 1px solid currentColor; padding-left: 14px; }
.logo__text strong { font: 600 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.logo__text small { font: 400 .66rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.nav { display: flex; align-items: center; }
.header-inner > .lang { margin-left: 28px; }
.nav ul { display: flex; gap: 32px; }
.nav a { font: 500 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; position: relative; padding: 8px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.lang { display: flex; align-items: center; gap: 2px; font: 500 .75rem/1 var(--sans); letter-spacing: .1em; }
.lang button { background: none; border: 0; padding: 12px 8px; min-width: 40px; opacity: .78; }
.lang button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.lang button:hover { opacity: 1; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:first-child { top: 18px; } .menu-btn span:last-child { top: 26px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .menu-btn { display: block; }
  .header-inner { gap: 8px; } .header-inner > .lang { margin-left: 0; }
  .logo__text small { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--bg); color: var(--ink); flex-direction: column; align-items: flex-start; gap: 24px; padding: 28px var(--gutter) 36px; border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 6px; width: 100%; }
  .nav a { font-size: 1.05rem; display: block; padding: 12px 0; }
  .site-header.menu-open { background: var(--bg); color: var(--ink); }
}

/* ---------------------------------------------------------------- buttons, links */
.kicker { font: 600 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.lead { font: 400 clamp(1.2rem, 2vw, 1.55rem)/1.5 var(--serif); max-width: 40em; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border: 1px solid var(--ink); text-decoration: none; font: 500 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; transition: background .3s, color .3s; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--light { border-color: var(--on-dark); color: var(--on-dark); }
.btn--light:hover { background: var(--on-dark); color: var(--ink); }
.link-arrow { display: inline-block; font: 500 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 10px 0; border-bottom: 1px solid currentColor; }
.link-arrow::after { content: " \2192"; display: inline-block; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }
.link-arrow--back { border: 0; color: var(--ink-2); }
.link-arrow--back::after { content: none; }
.link-arrow--back::before { content: "\2190  "; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: var(--on-dark); background: #2a2420; overflow: hidden; }
.hero__media, .hero__shade { position: absolute; inset: 0; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 30% 50%; transform: scale(1.04); transition: transform 2.4s var(--ease), opacity 1s; opacity: 0; }
.hero__media img.is-loaded { opacity: 1; transform: none; }
.hero__shade { background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .15) 55%, rgba(0, 0, 0, .72) 100%); }
.hero__content { position: relative; padding-bottom: clamp(56px, 10vh, 120px); }
.hero__kicker { font: 500 .75rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; margin-bottom: 22px; opacity: .9; }
.hero__title { font-size: clamp(2.6rem, 7.2vw, 6.6rem); font-weight: 400; max-width: 14ch; margin-bottom: 22px; text-wrap: balance; }
.hero__tagline { font: 400 clamp(1.05rem, 1.7vw, 1.35rem)/1.5 var(--sans); max-width: 36em; opacity: .92; margin-bottom: 34px; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 36px; display: flex; flex-direction: column; align-items: center; gap: 12px; font: 500 .68rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; text-decoration: none; writing-mode: vertical-rl; }
.hero__scroll i { width: 1px; height: 56px; background: currentColor; transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 820px) { .hero__scroll { display: none; } }

/* ---------------------------------------------------------------- sections */
.section { padding-block: clamp(72px, 11vw, 150px); }
.section-tight { padding-block: clamp(24px, 4vw, 56px) clamp(72px, 10vw, 140px); }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark .kicker { color: var(--accent-on-dark); }
.section__head { margin-bottom: clamp(36px, 5vw, 72px); }
.section__head h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.page-head { padding-top: clamp(48px, 8vw, 110px); padding-bottom: clamp(24px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 400; margin-bottom: 20px; }

/* ---------------------------------------------------------------- services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.service { border-right: 1px solid var(--line); }
.service:last-child { border-right: 0; }
.service > a, .service > div { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 28px clamp(18px, 2vw, 32px) 40px; text-decoration: none; position: relative; transition: background .4s; }
.service > a:hover { background: var(--bg-tint); }
.service__n { font: 500 .75rem/1 var(--sans); letter-spacing: .16em; color: var(--accent); }
.service__title { font-size: clamp(1.6rem, 2.1vw, 2rem); margin-bottom: 4px; }
.service p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.service__arrow { margin-top: auto; padding-top: 18px; font-size: 1.3rem; color: var(--accent); transition: transform .35s var(--ease); }
.service > a:hover .service__arrow { transform: translateX(8px); }
@media (max-width: 1100px) { .services { grid-template-columns: repeat(2, 1fr); } .service:nth-child(2) { border-right: 0; } .service:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } .service { border-right: 0; border-top: 1px solid var(--line); } .service:first-child { border-top: 0; } }

/* ---------------------------------------------------------------- project cards */
.card { display: block; text-decoration: none; }
.card__img { position: relative; overflow: hidden; background: #cfcabd; aspect-ratio: 4 / 3; }
.card__img picture, .card__img img { width: 100%; height: 100%; }
.card__img img { object-fit: cover; opacity: 0; transition: opacity .8s, transform 1.1s var(--ease); }
.card__img img.is-loaded { opacity: 1; }
.card:hover .card__img img, .card:focus-visible .card__img img { transform: scale(1.035); }
.card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .25)); opacity: 0; transition: opacity .5s; }
.card:hover .card__img::after { opacity: 1; }
.card__meta { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; }
.card__year { font: 500 .72rem/1 var(--sans); letter-spacing: .18em; color: var(--accent); }
.card__title { font-size: clamp(1.35rem, 1.8vw, 1.7rem); transition: color .3s; text-wrap: balance; }
.card:hover .card__title { color: var(--accent); }
.card[hidden] { display: none; }

.featured { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 3.4vw, 56px) clamp(16px, 2vw, 32px); }
.featured .card { grid-column: span 6; }
.featured .card:nth-child(1), .featured .card:nth-child(4) { grid-column: span 7; }
.featured .card:nth-child(2), .featured .card:nth-child(3) { grid-column: span 5; }
.featured .card__img { aspect-ratio: auto; height: clamp(260px, 34vw, 520px); }
@media (max-width: 760px) { .featured .card, .featured .card:nth-child(n) { grid-column: span 12; } .featured .card__img, .featured .card:nth-child(n) .card__img { height: auto; aspect-ratio: 4 / 3; } }

.studio { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.studio .section__head { margin: 0; }
@media (max-width: 820px) { .studio { grid-template-columns: 1fr; gap: 24px; } }

.contact__text { max-width: 30em; opacity: .85; margin-top: 18px; }
.section__head h2.kicker, .contact h2.kicker { font: 600 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 0 0 22px; max-width: none; }
.contact .contact__text { font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.45; max-width: 34em; opacity: .92; margin-top: 0; }
.links li { border-top: 1px solid rgba(245, 243, 238, .2); }
.links a { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; text-decoration: none; padding: 16px 0; transition: padding .35s var(--ease), color .3s; }
.links a span { opacity: .65; font-size: .9rem; }
.links a:hover { padding-left: 12px; color: var(--accent); }
.links--big a { font: 400 clamp(1.5rem, 3.2vw, 2.7rem)/1.2 var(--serif); padding-block: 22px; }
.links--big a span { font: 400 .9rem/1 var(--sans); }
.section--dark .links a:hover, .links--big a:hover { color: var(--accent-on-dark); }
.info .links li { border-top-color: var(--line); } .info .links a:hover { color: var(--accent); }

/* ---------------------------------------------------------------- projects page */
.filters { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 36px; border-bottom: 1px solid var(--line); }
.chip { background: none; border: 0; padding: 14px 0; font: 500 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); position: relative; min-height: 44px; }
.chip::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .35s var(--ease); }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--ink); }
.chip[aria-pressed="true"]::after { transform: scaleX(1); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 64px) clamp(16px, 2vw, 32px); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- project detail */
.pd-head { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(32px, 5vw, 64px); }
.pd-title { font-size: clamp(2.2rem, 5.6vw, 5rem); font-weight: 400; max-width: 20ch; margin: 22px 0 clamp(28px, 4vw, 48px); text-wrap: balance; }
.pd-info { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px 64px; border-top: 1px solid var(--ink); padding-top: 24px; }
.pd-meta { margin: 0; display: grid; gap: 16px; }
.pd-meta dt { font: 600 .68rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.pd-meta dd { margin: 0; font-size: 1.05rem; }
.pd-meta a { text-decoration: none; border-bottom: 1px solid var(--accent); }
.pd-lines li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.pd-lines li:first-child { padding-top: 0; }
@media (max-width: 760px) { .pd-info { grid-template-columns: 1fr; } }
.pd-gallery { display: grid; gap: clamp(12px, 2vw, 28px); }
.shot { margin: 0; background: var(--bg-tint); min-height: 38vh; }
.shot__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shot picture { display: block; }
.shot img { width: 100%; height: auto; max-height: 92vh; object-fit: contain; margin-inline: auto; opacity: 0; transition: opacity .9s; }
.shot img.is-loaded { opacity: 1; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-block: clamp(56px, 9vw, 120px); }
.pn__link { display: flex; flex-direction: column; gap: 12px; text-decoration: none; border-top: 1px solid var(--ink); padding-top: 22px; transition: color .3s; }
.pn__link--next { text-align: right; }
.pn__dir { font: 500 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.pn__title { font: 500 clamp(1.4rem, 2.6vw, 2.2rem)/1.15 var(--serif); text-wrap: balance; }
.pn__link:hover { color: var(--accent); }
@media (max-width: 620px) { .pn { grid-template-columns: 1fr; } .pn__link--next { text-align: left; } }

/* ---------------------------------------------------------------- competitions */
.banner { margin: 0; background: var(--bg-tint); aspect-ratio: 21 / 9; overflow: hidden; }
.banner picture, .banner img { width: 100%; height: 100%; }
.banner img { object-fit: cover; opacity: 0; transition: opacity .9s; } .banner img.is-loaded { opacity: 1; }
@media (max-width: 700px) { .banner { aspect-ratio: 4 / 3; } }
.comp-wrap { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; padding-top: clamp(40px, 6vw, 80px); }
.comp-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.timeline li a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: .92rem; color: var(--ink-2); transition: color .3s, padding .3s var(--ease); }
.timeline li a:hover { color: var(--accent); padding-left: 6px; }
.timeline li a span { font-weight: 600; color: var(--ink); margin-right: 6px; }
.comp { padding-bottom: clamp(40px, 6vw, 80px); margin-bottom: clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.comp:last-child { border-bottom: 0; }
.comp__title { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin-bottom: 10px; }
.comp__title span { color: var(--accent); margin-right: 10px; }
.comp__text { color: var(--ink-2); max-width: 44em; margin-bottom: 22px; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.thumb { display: block; width: 100%; padding: 0; border: 0; background: var(--bg-tint); aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; }
.thumb picture, .thumb img { width: 100%; height: 100%; }
.thumb img { object-fit: cover; opacity: 0; transition: opacity .8s, transform 1s var(--ease); } .thumb img.is-loaded { opacity: 1; }
.thumb:hover img { transform: scale(1.04); }
@media (max-width: 900px) { .comp-wrap { grid-template-columns: 1fr; } .comp-aside { position: static; } .timeline { columns: 2; column-gap: 24px; } .thumbs { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------- info page */
.info { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 7vw, 120px); align-items: start; padding-top: clamp(32px, 5vw, 64px); }
.info__side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 36px; }
.info__block p { margin-bottom: .5em; }
.info .kicker { margin-bottom: 14px; }
.cv__sec { padding-block: 28px; border-top: 1px solid var(--line); }
.cv__sec:first-of-type { border-top: 1px solid var(--ink); }
.cv__sec h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 18px; }
.cv__sec dl { margin: 0; display: grid; gap: 14px; }
.cv__sec dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; }
.cv__sec dt { font: 600 .8rem/1.7 var(--sans); letter-spacing: .06em; color: var(--accent); }
.cv__sec dd { margin: 0; }
@media (max-width: 900px) { .info { grid-template-columns: 1fr; } .info__side { position: static; } .cv__sec dl > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 48px; font-size: .9rem; }
.footer-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.footer-inner p { margin: 0; }
.footer-inner a { text-decoration: none; border-bottom: 1px solid var(--line); }
.footer-inner a:hover { border-color: var(--accent); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: rgba(15, 15, 14, .96); color: var(--on-dark); }
.lightbox::backdrop { background: rgba(15, 15, 14, .96); }
.lightbox[open] { display: grid; grid-template-columns: 72px 1fr 72px; grid-template-rows: 1fr; align-items: center; animation: lbin .35s var(--ease); }
@keyframes lbin { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { margin: 0; grid-column: 2; grid-row: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 56px 0 24px; min-width: 0; }
.lb-img { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.lb-img picture { display: contents; }
.lb-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; opacity: 0; transition: opacity .4s; }
.lb-img img.is-loaded { opacity: 1; }
.lb-cap { font: 400 .8rem/1.4 var(--sans); letter-spacing: .06em; opacity: .75; text-align: center; padding-inline: 12px; }
.lb-btn { background: none; border: 0; color: var(--on-dark); width: 56px; height: 56px; font-size: 2rem; line-height: 1; border-radius: 50%; transition: background .3s; }
.lb-btn:hover { background: rgba(255, 255, 255, .12); }
.lb-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.lb-prev { grid-column: 1; grid-row: 1; justify-self: center; } .lb-next { grid-column: 3; grid-row: 1; justify-self: center; }
.lb-single .lb-prev, .lb-single .lb-next { visibility: hidden; }
@media (max-width: 700px) { .lightbox[open] { grid-template-columns: 1fr; } .lb-stage { grid-column: 1; padding: 64px 0 80px; } .lb-prev, .lb-next { grid-column: 1; grid-row: 1; align-self: end; margin-bottom: 12px; } .lb-prev { justify-self: start; margin-left: 12px; } .lb-next { justify-self: end; margin-right: 12px; } }

/* ---------------------------------------------------------------- motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
img.is-missing { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .hero__scroll, .lightbox { display: none; } .reveal { opacity: 1; transform: none; } }

/* ==========================================================================
   REFINED LAYER — simple and elegant: light grotesque (Inter Tight), generous
   whitespace, hairline rules, one muted accent. Tokens are at the top of the file.
   ========================================================================== */
:root { --serif: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif; }   /* display face */
h1, h2, h3 { font-weight: 400; letter-spacing: -.025em; line-height: 1.06; }
.lead { font: 400 clamp(1.15rem, 1.8vw, 1.5rem)/1.5 var(--serif); letter-spacing: -.012em; max-width: 34em; }

.hero__title { font-size: clamp(2.5rem, 6.2vw, 5.8rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.02; max-width: 15ch; margin-bottom: 24px; }
.hero__tagline { font-weight: 400; max-width: 32em; }
.section__head h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 400; letter-spacing: -.035em; }
.pd-title { font-size: clamp(2.1rem, 4.8vw, 4.2rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.04; max-width: 20ch; }

.service__title { font-size: clamp(1.35rem, 1.7vw, 1.6rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.12; }
.service__n { letter-spacing: .16em; }
.card__title { font-size: clamp(1.2rem, 1.5vw, 1.45rem); font-weight: 500; letter-spacing: -.018em; line-height: 1.15; }
.comp__title { font-weight: 400; letter-spacing: -.03em; }
.cv__sec h3 { font-weight: 500; letter-spacing: -.02em; }
.pn__title { font: 400 clamp(1.4rem, 2.6vw, 2.2rem)/1.1 var(--serif); letter-spacing: -.025em; }
.links--big a { font: 400 clamp(1.5rem, 3.2vw, 2.7rem)/1.15 var(--serif); letter-spacing: -.03em; }

/* documents (PDF plans) under a project gallery */
.pd-docs { padding-block: clamp(48px, 7vw, 96px) 0; }
.pd-docs .kicker { margin-bottom: 22px; }
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px) clamp(16px, 2vw, 28px); border-top: 1px solid var(--ink); padding-top: 28px; }
.doc a { display: block; text-decoration: none; }
.doc__img { display: block; background: #fff; border: 1px solid var(--line); aspect-ratio: 1.414 / 1; overflow: hidden; }
.doc__img picture, .doc__img img { width: 100%; height: 100%; }
.doc__img img { object-fit: contain; opacity: 0; transition: opacity .8s, transform 1s var(--ease); } .doc__img img.is-loaded { opacity: 1; }
.doc a:hover .doc__img img { transform: scale(1.03); }
.doc__meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding-top: 14px; align-items: baseline; }
.doc__n { font: 600 .78rem/1 var(--sans); letter-spacing: .08em; color: var(--accent); min-width: 2.2em; }
.doc__title { font: 500 1.05rem/1.25 var(--serif); letter-spacing: -.015em; }
.doc__pdf { grid-column: 2; font: 600 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.doc a:hover .doc__title { color: var(--accent); }
@media (max-width: 1000px) { .docs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .docs { grid-template-columns: 1fr; } }

/* logo MW (supplied image: black on transparent; inverted over the hero) */
.logo__mark { display: block; width: 2.9rem; height: auto; padding: 0; }
.site-header[data-hero]:not(.is-solid):not(.menu-open) .logo__mark { filter: invert(1); }

/* home: nome in maiuscolo; 5 ambiti di competenza su una riga */
.hero__title--caps { text-transform: uppercase; letter-spacing: .02em; max-width: none; }
.hero__tagline { letter-spacing: .02em; }
.service p:empty { display: none; }
@media (min-width: 1101px) { .services { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 641px) and (max-width: 1100px) { .service:nth-child(4) { border-right: 0; } .service:nth-child(3) { border-right: 1px solid var(--line); } .service:nth-child(5) { border-right: 0; } }
