/* Spazio.97 — Giacomo Bosi
   Layout: griglia a blocchi (bento) come il sito attuale; ingresso sferico 360 in home. */

@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/mulish-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/mulish-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Mulish";
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/mulish-latin-wght-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
}

:root {
  --bg: #0d0d0c;
  --card: #141413;
  --card-2: #1b1b19;
  --line: #262624;
  --line-2: #34332f;
  --ink: #f1efe9;
  --muted: #a7a39b;
  --dim: #6e6b65;
  --accent: #ff5a33;
  --ok: #3ccf7e;
  --ph: #1f1f1d;
  --sans: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --grot: "Space Grotesk", ui-monospace, "SF Mono", Menlo, sans-serif;
  --r: 28px;
  --r-sm: 18px;
  --gap: clamp(12px, 1.4vw, 20px);
  --pad: clamp(20px, 2.2vw, 32px);
  --max: 1320px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.serif { font-family: var(--grot); font-weight: 500; letter-spacing: -0.01em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; justify-self: start; }
.brand-icon { width: 38px; height: 38px; flex: none; color: var(--ink); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.brand:hover .brand-icon { transform: scale(1.08); }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-mark { font-family: var(--grot); font-weight: 600; font-size: 22px; line-height: 1; letter-spacing: -0.01em; }
.brand-mark b { color: var(--accent); font-weight: 400; }
.brand-name { font-family: var(--grot); font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1; }
.nav { display: contents; }
.nav-links { grid-column: 2; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.nav-links a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--muted); padding: 9px 16px; border-radius: 999px; transition: background .2s, color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.nav-side { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 22px; }
.lang { font-family: var(--grot); font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--dim); }
.lang a { color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--ink); }
.lang span { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: var(--bg); padding: 13px 22px; border-radius: 999px; border: 0;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: var(--accent); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.nav-side .btn { color: var(--bg); padding: 12px 20px; font-size: 14px; }
.menu-toggle { display: none; background: none; border: 0; color: var(--ink); font: 600 15px var(--sans); padding: 8px 0; cursor: pointer; }
@media (max-width: 1080px) {
  .nav-links a { padding: 9px 11px; font-size: 14px; }
  .nav-side { gap: 14px; }
}
@media (max-width: 920px) {
  .header-grid { display: flex; justify-content: space-between; height: 72px; }
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-left, 0px)) 24px; display: none; max-height: calc(100dvh - 72px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; background: none; box-shadow: none; padding: 0; gap: 0; }
  .nav-links a, .nav-links a[aria-current="page"] { font-size: 26px; color: var(--ink); padding: 10px 0; font-weight: 600; letter-spacing: -.02em; background: none; box-shadow: none; border-radius: 0; }
  .nav-links a[aria-current="page"] { color: var(--accent); }
  .nav-side { flex-direction: column-reverse; align-items: stretch; gap: 14px; margin-top: 16px; }
  .nav-side .btn { font-size: 16px; }
}

/* ---------- Bento grid */
main { padding-bottom: var(--gap); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.s2 { grid-column: span 2; }
.s3 { grid-column: span 3; }
.s4 { grid-column: 1 / -1; }
.r2 { grid-row: span 2; }
@media (max-width: 1060px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s3, .s4 { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .s2, .s3, .s4 { grid-column: auto; }
  .r2 { grid-row: auto; }
}

.card {
  position: relative; min-width: 0;
  background: linear-gradient(150deg, var(--card-2) 0%, var(--card) 60%);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--pad);
  display: flex; flex-direction: column;
  overflow: hidden;
}
a.card { text-decoration: none; transition: border-color .25s, transform .35s cubic-bezier(.2,.7,.2,1); }
a.card:hover { color: inherit; border-color: var(--line-2); transform: translateY(-3px); }
.c-eyebrow { font-family: var(--grot); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.c-title { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.015em; font-weight: 600; line-height: 1.1; margin-top: 6px; }
.c-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 18px; }
.arrow {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--muted);
  transition: background .25s, color .25s, transform .35s;
}
.arrow svg { width: 16px; height: 16px; }
a.card:hover .arrow { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: rotate(-45deg); }
.c-media { margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 18px; background: var(--ph); aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.c-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
a.card:hover .c-media img { transform: scale(1.04); }
.c-media .ph-label { position: absolute; left: 20px; bottom: 16px; right: 20px; font-family: var(--grot); font-weight: 500; font-size: 24px; color: var(--dim); }
.c-media--inset { margin: 0 0 18px; border-radius: var(--r-sm); }

/* Profile card */
.profile { flex-direction: row; gap: clamp(18px, 2vw, 32px); align-items: stretch; }
.profile-photo { flex: 0 0 38%; border-radius: var(--r-sm); overflow: hidden; background: var(--ph); position: relative; min-height: 220px; }
.profile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-text { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }
.profile h1 { font-size: clamp(40px, 4.6vw, 64px); letter-spacing: -0.02em; line-height: .95; }
.profile h1 .serif { display: block; }
.profile p { color: var(--muted); font-size: 16px; }
@media (max-width: 640px) { .profile { flex-direction: column; } .profile-photo { flex-basis: auto; aspect-ratio: 1; min-height: 0; } }
.status { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; color: var(--ink); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); }

/* Ticker */
.ticker { padding: 18px 0; justify-content: center; }
.ticker-track { display: flex; gap: 40px; width: max-content; animation: tick 28s linear infinite; font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.ticker-track span::before { content: "✦"; color: var(--accent); margin-right: 40px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 20px 16px; text-align: center; }
.stat b { display: block; font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -0.02em; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

/* Social card */
.socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.socials a { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-size: 13px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.socials a:hover { background: var(--ink); color: var(--bg); }
.socials svg { width: 22px; height: 22px; }

/* CTA card */
.cta-card h2 { font-size: clamp(36px, 4.6vw, 64px); letter-spacing: -0.02em; line-height: .95; margin-top: 10px; }
.cta-card h2 .serif { color: var(--accent); }

/* Sphere entry card */
.sphere-card { cursor: pointer; text-align: left; font: inherit; color: inherit; }
.sphere-orb { display: block; width: 100%; max-width: 220px; aspect-ratio: 1; margin: -6px auto 14px; }

/* Services list in card */
.svc-list { list-style: none; margin: 14px 0 0; padding: 0; }
.svc-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; display: flex; justify-content: space-between; gap: 12px; }
.svc-list li:last-child { border-bottom: 0; }
.svc-list li span { color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }

/* Services, big home card */
.svc-grid { list-style: none; margin: 22px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.svc-grid li { padding: 18px 18px 6px 0; border-top: 1px solid var(--line); }
.svc-grid li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.svc-grid .svc-n { font: 500 13px/1 var(--grot); color: var(--accent); letter-spacing: .04em; }
.svc-grid h3 { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.15; margin: 12px 0 10px; }
.svc-grid p { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }
@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-grid li, .svc-grid li + li { padding-left: 0; border-left: 0; }
}

/* Clients: logo wall, airy like the old site */
.logos { list-style: none; padding: 0; margin: 26px 0 4px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logos li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 8% 14%; }
.logos a { display: grid; place-items: center; width: 100%; height: 100%; }
.logos img { width: 100%; height: 100%; object-fit: contain; opacity: .62; transition: opacity .25s, transform .4s; }
.logos li:hover img { opacity: 1; transform: scale(1.05); }
@media (max-width: 1100px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } .logos li { padding: 6% 10%; } }
.clients { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.clients li { border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; font-size: 14px; color: var(--muted); }

/* Testimonials carousel */
.testi { justify-content: space-between; gap: 18px; }
.testi-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.testi-nav { display: flex; gap: 6px; }
.testi-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font: 500 16px/1 var(--grot); cursor: pointer; transition: background .2s, color .2s; }
.testi-arrow:hover { background: var(--ink); color: var(--bg); }
.testi-track { display: grid; flex: 1; }
.testi-slide { grid-area: 1 / 1; margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; animation: testiIn .5s ease both; }
.testi-slide[hidden] { display: none; }
@keyframes testiIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.quote { margin: 0; }
.quote p { font-family: var(--sans); font-style: italic; font-weight: 400; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; margin: 0; color: var(--ink); max-width: 62ch; }
.testi-by { display: flex; align-items: center; gap: 14px; }
.testi-by > span { display: flex; flex-direction: column; gap: 3px; }
.testi-by b { font-size: 17px; font-weight: 800; color: var(--ink); }
.testi-role { font: 500 13px/1.3 var(--grot); color: var(--accent); letter-spacing: .02em; }
.testi-place { font-size: 13px; color: var(--dim); }
.testi-av { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--line-2); }
.testi-av--ini { display: grid; place-items: center; background: var(--accent); color: #111; font: 700 22px/1 var(--grot); border-color: transparent; }
.testi-dots { display: flex; gap: 8px; }
.testi-dot { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: var(--line-2); cursor: pointer; transition: width .3s, background .3s; }
.testi-dot[aria-current="true"] { width: 26px; background: var(--ink); }
@media (prefers-reduced-motion: reduce) { .testi-slide { animation: none; } }

/* Page title card */
.page-title h1 { font-size: clamp(44px, 7vw, 100px); letter-spacing: -0.02em; line-height: .92; margin-top: 10px; }
.page-title .lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); max-width: 720px; margin-top: 20px; line-height: 1.45; }
.crumbs { font-size: 13px; color: var(--dim); }
.crumbs a { text-decoration: none; color: var(--muted); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter { background: transparent; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 16px; font: 500 14px/1 var(--sans); cursor: pointer; }
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pcard[hidden] { display: none; }
.pcard .c-kind { color: var(--muted); font-size: 14px; margin-top: 6px; }
.pcard .c-year { font-family: var(--grot); font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }

/* Project page */
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin: 0; }
.meta dt { font-family: var(--grot); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.meta dd { margin: 0; font-weight: 500; }
.cover { padding: 0; aspect-ratio: 16 / 9; background: var(--ph); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover button, .gal button { all: unset; display: block; position: absolute; inset: 0; cursor: zoom-in; }
.cover button:focus-visible, .gal button:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: var(--r); }
.text-card h2 { font-family: var(--grot); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin-bottom: 12px; }
.text-card p { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--ink); }
.list { list-style: none; margin: 12px 0 0; padding: 0; }
.list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list li span { color: var(--dim); }
.gal { padding: 0; aspect-ratio: 4 / 3; background: var(--ph); }
.gal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.gal:hover img { transform: scale(1.03); }
.video-card { padding: 0; aspect-ratio: 16 / 9; background: var(--ph); }
.video-card iframe, .video-card video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.next-card strong { display: block; font-size: clamp(30px, 4vw, 56px); letter-spacing: -0.02em; line-height: 1; margin-top: 10px; }

/* Identity archive */
.ident-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.ident-imgs figure { margin: 0; aspect-ratio: 1; background: var(--ph); border-radius: var(--r-sm); overflow: hidden; position: relative; }
.ident-imgs button { all: unset; position: absolute; inset: 0; cursor: zoom-in; }
.ident-imgs img { width: 100%; height: 100%; object-fit: cover; }

/* Timeline */
.tl { list-style: none; margin: 14px 0 0; padding: 0; }
.tl li { display: grid; grid-template-columns: 120px 1fr; gap: 4px 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.tl li:last-child { border-bottom: 0; }
.tl .when { color: var(--dim); font-size: 14px; font-variant-numeric: tabular-nums; grid-row: span 2; }
.tl .what { font-weight: 600; }
.tl .role { color: var(--muted); font-size: 14px; }
@media (max-width: 480px) { .tl li { grid-template-columns: 1fr; } .tl .when { grid-row: auto; } }
.about-photo { padding: 0; min-height: 360px; background: var(--ph); }
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bio p { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; }

/* FAQ */
.faq { margin-top: 10px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; letter-spacing: -0.015em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 26px; font-weight: 300; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); max-width: 760px; padding-bottom: 14px; }

/* Services page */
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.tags li { border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px; font-size: 13px; color: var(--muted); }
.mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.mini a { text-decoration: none; }
.mini figure { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r-sm); background: var(--ph); overflow: hidden; position: relative; }
.mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini span { display: block; font-size: 13px; margin-top: 8px; color: var(--muted); }
.mini a:hover span { color: var(--accent); }
.big-num { font-family: var(--grot); font-weight: 500; font-size: 34px; color: var(--accent); line-height: 1; }

/* Contact */
.contact-list dt { font-family: var(--grot); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-top: 22px; }
.contact-list dt:first-child { margin-top: 10px; }
.contact-list dd { margin: 6px 0 0; font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; letter-spacing: -0.02em; word-break: break-word; }
.contact-list dd a { text-decoration: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px;
}
.field select option { background: var(--card); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 150px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 4px 0 22px; }
.check input { margin-top: 4px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 14px; font-weight: 500; }
.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="error"] { color: var(--accent); }

/* Prose */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin: 30px 0 10px; }
.prose p { color: var(--muted); }

/* Footer */
.site-footer { padding: 40px 0 32px; font-size: 14px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 28px; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-row a { text-decoration: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(5,5,5,.95); display: none; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font: 500 15px var(--sans); cursor: pointer; padding: 14px; }
.lb-close { top: calc(8px + env(safe-area-inset-top, 0px)); right: 8px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); font-size: 28px !important; }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); font-size: 28px !important; }

/* ---------- Sphere 360 */
.sphere { position: fixed; inset: 0; z-index: 200; background: radial-gradient(ellipse at 50% 45%, #1a1917 0%, var(--bg) 70%); display: none; touch-action: none; user-select: none; -webkit-user-select: none; }
.sphere.open { display: block; }
.sphere:focus { outline: none; }
.sphere::before, .sphere::after { content: ""; position: absolute; left: 0; right: 0; height: 120px; pointer-events: none; z-index: 1; }
.sphere::before { top: 0; background: linear-gradient(var(--bg), transparent); }
.sphere::after { bottom: 0; background: linear-gradient(transparent, var(--bg)); }
.sphere-ui, .sphere-label { z-index: 2; }
.sphere canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; outline: none; }
.sphere canvas.dragging { cursor: grabbing; }
.sphere canvas.hovering { cursor: pointer; }
.sphere-ui { position: absolute; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; pointer-events: none; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.sphere-top { top: 0; padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
.sphere-bottom { bottom: 0; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 13px; }
.sphere-ui > * { pointer-events: auto; }
.sphere-hint { position: absolute; left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--muted); letter-spacing: .04em; white-space: nowrap; pointer-events: none; transition: opacity .6s; }
.sphere-close { display: inline-flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--card-2) 80%, transparent); color: var(--ink); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 8px 8px 16px; font: 600 14px var(--sans); cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sphere-close i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); font-style: normal; font-size: 16px; transition: transform .3s, background .2s; }
.sphere-close:hover i { transform: rotate(90deg); background: var(--accent); }
.sphere-label { position: absolute; left: 50%; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none; }
.sphere-label.show { opacity: 1; }
@media (max-width: 640px) { .sphere-hint { position: fixed; top: auto; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); } .sphere-bottom .s-name { display: none; } .sphere-bottom { padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px)); justify-content: center; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.skill-group + .skill-group { margin-top: 18px; }
.skill-group h3 { font-family: var(--grot); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin: 0; }
.skill-group .tags { margin-top: 10px; }

/* ---------- Projects: 3D model + random mosaic */
.model-card { padding: 0; min-height: 420px; background: radial-gradient(120% 90% at 50% 40%, #1d1c1a 0%, var(--card) 70%); cursor: grab; touch-action: pan-y; }
.model-card:active { cursor: grabbing; }
.model-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.model-card .c-eyebrow { position: absolute; top: var(--pad); left: var(--pad); pointer-events: none; }
.model-hint { position: absolute; left: var(--pad); bottom: var(--pad); font-size: 13px; font-weight: 600; color: var(--muted); background: color-mix(in srgb, var(--bg) 70%, transparent); padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); pointer-events: none; }
.filters-card { justify-content: flex-end; }
.shuffle { align-self: flex-start; margin-top: 16px; background: none; border: 0; color: var(--muted); font: 600 14px var(--sans); cursor: pointer; padding: 6px 0; }
.shuffle:hover { color: var(--accent); }
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(92px, 9.5vw, 132px); grid-auto-flow: dense; gap: var(--gap); margin-top: var(--gap); }
.mcard { padding: 0; text-decoration: none; background: var(--ph); justify-content: flex-end; isolation: isolate; }
.mcard[hidden] { display: none; }
.mcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .5s; }
.mcard:hover img { transform: scale(1.05); }
.mcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(10,10,9,.88) 100%); }
.mcard .ph-label { position: absolute; left: var(--pad); top: var(--pad); right: var(--pad); font-family: var(--grot); font-weight: 500; font-size: 22px; color: var(--dim); z-index: -2; }
.m-info { display: flex; flex-direction: column; gap: 4px; padding: var(--pad); padding-right: 76px; }
.m-title { font-size: clamp(19px, 1.6vw, 26px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
.mcard .c-kind { font-size: 13.5px; color: var(--muted); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s, opacity .4s; }
.mcard:hover .c-kind, .mcard:focus-visible .c-kind { max-height: 60px; opacity: 1; }
.mcard .c-year { font-family: var(--grot); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mcard .arrow { position: absolute; right: var(--pad); bottom: var(--pad); background: color-mix(in srgb, var(--bg) 55%, transparent); }
.m-big .m-title { font-size: clamp(24px, 2.4vw, 38px); }
.m-sq { grid-column: span 1; grid-row: span 2; }
.m-tall { grid-column: span 1; grid-row: span 3; }
.m-wide { grid-column: span 2; grid-row: span 2; }
.m-big { grid-column: span 2; grid-row: span 3; }
.m-pop { animation: mpop .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes mpop { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@media (max-width: 1060px) { .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; } .model-card { min-height: 360px; } }
@media (max-width: 640px) {
  .mosaic { grid-auto-rows: 92px; }
  .m-sq .c-year, .m-tall .c-year { display: none; }
  .m-sq .m-info, .m-tall .m-info { padding: 16px; padding-right: 16px; }
  .m-sq .arrow, .m-tall .arrow { display: none; }
  .m-sq .m-title, .m-tall .m-title { font-size: 16px; }
  .model-card { min-height: 320px; }
}
.mfill { padding: var(--pad); justify-content: flex-end; font-family: var(--grot); font-weight: 500; font-size: clamp(20px, 2vw, 30px); line-height: 1.05; color: var(--muted); text-decoration: none; background: transparent; border-style: dashed; border-color: var(--line-2); }
.mfill--accent { color: var(--accent); }
.mfill--link { color: var(--ink); background: linear-gradient(150deg, var(--card-2) 0%, var(--card) 60%); border-style: solid; border-color: var(--line); transition: background .25s, color .25s; }
.mfill--link:hover { background: var(--accent); color: var(--bg); }
@media (max-width: 640px) { .mfill { padding: 16px; font-size: 19px; } }
.sphere-brand { display: inline-flex; align-items: center; gap: 10px; }
.sphere-brand .brand-icon { width: 30px; height: 30px; }
