/* Studio Verdi Architetti — a quiet white page, scattered photographs, a project index you can filter. */
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted.woff2") format("woff2-variations"), url("../fonts/schibsted.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader.woff2") format("woff2-variations"), url("../fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-italic.woff2") format("woff2-variations"), url("../fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --paper: #f3f2ee;
  --white: #fbfbf9;
  --ink: #1b1c1a;
  --muted: #6a6b66;
  --line: rgba(27, 28, 26, .15);
  --terra: #a44a2f;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --pad: clamp(16px, 3.4vw, 48px);
  --top: 60px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 .95rem/1.6 var(--sans); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1400px, 100% - 2 * var(--pad)); margin-inline: auto; }
.sr { 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; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
h2 { font: 300 clamp(2rem, 4vw, 3.6rem)/1.05 var(--serif); letter-spacing: -.015em; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper);
  font: 500 .9rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.btn:hover { background: transparent; color: var(--ink); }

/* header */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px; height: var(--top); padding: 0 var(--pad); background: rgba(243, 242, 238, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { font: 500 .95rem/1 var(--sans); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--muted); font-weight: 400; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); margin-left: auto; font-size: .9rem; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--terra); }
.lang-switch { display: flex; gap: 8px; font-size: .8rem; }
.lang-switch a { text-decoration: none; color: var(--muted); }
.lang-switch a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.nav-toggle { display: none; margin-left: auto; min-height: 38px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; font: 500 .85rem var(--sans); color: var(--ink); }

/* hero: one large photograph, a blended headline, a vertical caption */
.hero { position: relative; height: calc(100svh - var(--top)); min-height: 580px; max-height: 1000px; overflow: hidden; }
.vert { position: absolute; left: calc(var(--pad) - 4px); bottom: 26px; writing-mode: vertical-rl; transform: rotate(180deg); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero-fig { position: absolute; top: 3%; right: var(--pad); width: 63%; height: 82%; margin: 0; overflow: hidden; background: #dcdad3; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.js .hero-fig { animation: unveil 1.5s cubic-bezier(.7, 0, .2, 1) .1s both; }
.js .hero-img { animation: settle 2.4s cubic-bezier(.2, .6, .2, 1) .1s both; }
@keyframes unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.18); } to { transform: scale(1); } }
.hero-small { position: absolute; z-index: 2; left: 12%; top: 9%; width: min(16vw, 240px); aspect-ratio: 4 / 5; margin: 0; transform: translateY(var(--d, 0px)); }
.hs-img { width: 100%; height: 100%; object-fit: cover; }
.js .hero-small { animation: unveil 1.2s cubic-bezier(.7, 0, .2, 1) .7s both; }
.hero-title { position: absolute; z-index: 3; left: calc(var(--pad) + 40px); bottom: 17%; max-width: 12ch; font: 300 clamp(3rem, 7.6vw, 8.6rem)/.92 var(--serif); letter-spacing: -.035em; color: #fff; mix-blend-mode: difference; }
.hero-title span { display: block; }
.hero-title em { display: block; font-style: italic; padding-left: .9em; }
.js .hero-title span, .js .hero-title em { animation: rise 1.2s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero-title em { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(.4em); } to { opacity: 1; transform: none; } }
.hero-foot { position: absolute; z-index: 3; left: calc(var(--pad) + 40px); right: var(--pad); bottom: 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.now { color: var(--muted); font-size: .88rem; background: var(--paper); padding: 4px 0; }
.now strong { color: var(--ink); font-weight: 500; margin-right: 4px; }
.now .dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--terra); vertical-align: 1px; }

/* statement with photos inside the sentence */
.statement { padding: clamp(90px, 13vw, 200px) 0; }
.st-text { font: 300 clamp(1.8rem, 4.4vw, 4.4rem)/1.18 var(--serif); letter-spacing: -.02em; max-width: 22ch; max-width: none; }
.st-text em { font-style: italic; }
.inl { display: inline-block; width: 2em; height: .9em; margin: 0 .18em 0 .1em; vertical-align: -.06em; border-radius: 999px; overflow: hidden; background: #dcdad3; transition: width 1s cubic-bezier(.7, 0, .2, 1); }
.inl img { width: 100%; height: 100%; object-fit: cover; }
.js .statement:not(.in) .inl { width: 0; margin: 0; }

/* gallery: a horizontal strip that moves while you scroll */
.gallery { position: relative; background: var(--ink); color: #ecebe6; }
.g-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 4vh; }
.g-head { display: flex; justify-content: space-between; align-items: baseline; }
.g-head h2 { color: #fff; }
.g-count { font: italic 300 1.4rem var(--serif); color: rgba(236, 235, 230, .6); }
.g-track { display: flex; align-items: flex-start; gap: 5vw; width: max-content; padding: 0 var(--pad); will-change: transform; }
.g-panel { flex: none; width: 40vw; display: grid; gap: 16px; }
.gp-1 { width: 25vw; margin-top: 7vh; }
.gp-2 { width: 48vw; margin-top: 2vh; }
.g-img { height: 52vh; overflow: hidden; }
.gp-1 .g-img { height: 46vh; }
.g-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .6, .2, 1); }
.g-panel:hover .g-img img { transform: scale(1.04); }
.g-cap { display: grid; grid-template-columns: auto 1fr; gap: 0 18px; }
.g-n { grid-row: span 3; font: italic 300 3.4rem/.9 var(--serif); color: var(--terra); }
.g-cap h3 { font: 400 1.7rem/1.1 var(--serif); color: #fff; }
.g-meta { font-size: .8rem; color: rgba(236, 235, 230, .55); margin-top: 4px; }
.g-desc { font-size: .9rem; color: rgba(236, 235, 230, .75); max-width: 44ch; margin-top: 8px; }
.g-bar { position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; height: 1px; background: rgba(236, 235, 230, .2); }
.g-bar span { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(var(--gp, 0)); }
.gallery.g-static .g-sticky { position: static; height: auto; padding: clamp(70px, 9vw, 120px) 0; }
.gallery.g-static .g-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; transform: none !important; }
.gallery.g-static .g-panel { scroll-snap-align: start; }
.gallery.g-static .g-bar { display: none; }

/* reveal */
.js .rv { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s cubic-bezier(.7, 0, .2, 1); }
.js .rv.in { clip-path: inset(0 0 0 0); }
figure.rv, .rv { margin: 0; }

/* index */
.index { position: relative; padding: clamp(80px, 10vw, 150px) 0; }
.index-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 30px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.index-title { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font: 500 .82rem var(--sans); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ptable { width: 100%; border-collapse: collapse; }
.ptable th, .ptable td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: baseline; }
.ptable thead th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ptable tbody th { font: 400 1.35rem/1.2 var(--serif); }
.ptable td { color: var(--muted); white-space: nowrap; }
.ptable .n { color: var(--terra); width: 56px; font-variant-numeric: tabular-nums; }
.ptable tbody tr:hover th { color: var(--terra); }
.peek { position: fixed; left: 0; top: 0; z-index: 40; width: 240px; aspect-ratio: 4 / 3; object-fit: cover; pointer-events: none; box-shadow: 0 20px 40px rgba(0, 0, 0, .18); }

/* studio */
.studio { padding: clamp(80px, 10vw, 150px) 0; background: var(--white); border-top: 1px solid var(--line); }
.lead { max-width: 30ch; font: 300 clamp(1.8rem, 3.6vw, 3.2rem)/1.15 var(--serif); letter-spacing: -.01em; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 40px clamp(24px, 4vw, 60px); margin-top: clamp(48px, 6vw, 90px); align-items: start; }
.studio-img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.tools { margin-top: 30px; }
.tools img, .contact-info .rv img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.studio-p { color: var(--muted); max-width: 54ch; }
.mini { font: 500 .74rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 34px 0 12px; }
.studio-grid > div > .mini:first-child { margin-top: 0; }
.process li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.process span { color: var(--terra); font-size: .85rem; }
.process h4 { font: 400 1.25rem/1.2 var(--serif); }
.process p { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.people li { display: grid; padding: 10px 0; border-top: 1px solid var(--line); }
.people strong { font: 400 1.25rem/1.2 var(--serif); }
.people span { color: var(--muted); font-size: .85rem; }
.awards li { display: grid; grid-template-columns: 50px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .88rem; }
.awards span { color: var(--terra); }

/* contact */
.contact { padding: clamp(80px, 10vw, 150px) 0; }
.contact-title { max-width: 16ch; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px clamp(30px, 6vw, 90px); margin-top: clamp(36px, 5vw, 64px); align-items: start; }
.contact-info { display: grid; gap: 18px; color: var(--muted); }
.contact-info address { font-style: normal; color: var(--ink); line-height: 1.8; }
.contact-form form { display: grid; gap: 22px; }
.types legend { font-size: .82rem; font-weight: 500; margin-bottom: 10px; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.type-row { display: flex; flex-wrap: wrap; gap: 8px; }
.type-row label { position: relative; }
.type-row input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.type-row span { display: block; padding: 8px 16px; border: 1px solid rgba(27, 28, 26, .3); border-radius: 999px; font-size: .88rem; }
.type-row input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.type-row input:focus-visible + span { outline: 2px solid var(--terra); outline-offset: 2px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(27, 28, 26, .35); border-radius: 0; background: transparent; color: var(--ink); font: 400 1.1rem/1.4 var(--serif); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--terra); }
.field [aria-invalid] { border-bottom-color: #b3261e; }
.check label { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--terra); padding: 0; }
.field-error { color: #b3261e; font-size: .85rem; }
.form-alert { margin-bottom: 18px; padding: 12px 16px; background: #f1dfd8; color: #8f2d17; }
.send { justify-self: start; min-height: 48px; padding: 0 28px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 .95rem var(--sans); cursor: pointer; }
.send:hover { background: transparent; color: var(--ink); }
.sent { display: grid; gap: 12px; justify-items: start; padding: 30px; background: var(--white); }
.sent-title { font: 300 1.9rem/1.15 var(--serif); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* footer */
.foot { padding: 30px 0 26px; border-top: 1px solid var(--line); overflow: hidden; font-size: .85rem; color: var(--muted); }

.foot-brand { font: 400 1.2rem var(--serif); color: var(--ink); }
.foot-brand em { font-style: italic; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 20px 30px; }
.foot address { font-style: normal; }
.foot a { color: var(--ink); text-decoration: none; }
.foot-note { margin-top: 22px; font-size: .78rem; }
.shinpo-credit { margin-top: 10px; }
.shinpo-credit a { text-decoration: underline; text-underline-offset: 3px; }

/* responsive */
@media (max-width: 1000px) {
  .studio-grid { grid-template-columns: 1fr 1fr; }
  .studio-img { display: none; }
  .ptable th:nth-child(4), .ptable td:nth-child(4) { display: none; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; top: var(--top); left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; margin: 0; padding: 6px var(--pad) 18px; background: var(--paper); border-bottom: 1px solid var(--line); font: 300 1.8rem/1.2 var(--serif); }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
  .nav .lang-switch { padding-top: 12px; font: 400 .9rem var(--sans); }
  .hero { height: auto; min-height: 0; max-height: none; display: grid; padding: 18px var(--pad) 26px; gap: 18px; }
  .vert, .hero-small { display: none; }
  .hero-fig { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 4 / 5; }
  .hero-title { position: static; color: var(--ink); mix-blend-mode: normal; font-size: 14vw; margin-top: 4px; }
  .hero-foot { position: static; flex-direction: column; align-items: flex-start; }
  .gallery .g-panel, .gallery .gp-1, .gallery .gp-2 { width: 80vw; margin-top: 0; }
  .g-img, .gp-1 .g-img { height: auto; aspect-ratio: 4 / 3; }
  .contact-grid, .cols, .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .ptable thead { display: none; }
  .ptable tr { display: grid; grid-template-columns: 40px 1fr auto; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .ptable th, .ptable td { border: 0; padding: 0; }
  .ptable td:nth-child(3), .ptable td:nth-child(4), .ptable td:nth-child(5) { display: none; }
  .ptable tr[hidden] { display: none; }
  .foot-cols { grid-template-columns: 1fr; }
}
