/* Jost (self-hosted, latin) */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 200; font-display: swap; src: url('../assets/fonts/jost-200.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: 'Jost'; font-style: normal; font-weight: 300; font-display: swap; src: url('../assets/fonts/jost-300.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: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/jost-400.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; }

/* Ítalo Nanais — front-end preview · v2
   Visual model: juncha.com — matt black / off-white, ultra-light geometric sans,
   thin fixed bar + side menu, full-bleed imagery, tight 9px gallery gutters.
   Accent colour (gold / cyan) is kept only for small details. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #000;
  --bg: #0e0e0e;
  --surface: #171717;
  --surface-2: #1f1f1f;
  --line: #2a2a2a;
  --text: #faf9f6;
  --muted: #c0c0c0;
  --accent: #8d8d8d;                /* minimalist: neutral grey, no gold */
  --accent-soft: #c4c4c4;
  --accent-ink: #5a5a5a;           /* accent when sitting on a light section */
  --accent-rgb: 141,141,141;
  --bg-rgb: 17,17,17;
  --shade-rgb: 0,0,0;
  --on-accent: #111;
  --hero-filter: grayscale(.92) contrast(1.05) brightness(.72);
  --font: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
  --nav-h: 50px;
  --grid: 30px;
  --gap: 9px;
  --pad: clamp(20px, 4vw, 60px);
  --max: 1240px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); font-size: 15px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.8;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 200; line-height: 1.15; letter-spacing: .05rem; }
em { font-style: normal; font-weight: 200; color: inherit; opacity: .62; }
.muted { opacity: .72; }
.center { text-align: center; margin-top: 48px; }
::selection { background: var(--text); color: var(--bg); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.wrap.narrow { max-width: 820px; }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section.alt { background: var(--black); }

/* Light sections (juncha's off-white article pages) */
.section.light {
  --bg: #e8e8e6; --surface: #f2f2f0; --surface-2: #d9d9d7; --line: #c9c9c6;
  --text: #0e0e0e; --muted: #555; --accent: var(--accent-ink); --on-accent: #fff;
  background: var(--bg); color: var(--text);
}

.eyebrow {
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  opacity: .6; margin-bottom: 18px; font-weight: 400;
}
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 { font-size: clamp(30px, 4vw, 48px); }

/* Buttons: thin, square, uppercase — like juncha's ENTER / EXPLORE links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 34px; border: 1px solid var(--text); background: var(--text); color: var(--bg);
  cursor: pointer; font: 400 12px/1 var(--font); letter-spacing: .3em; text-transform: uppercase;
  transition: background .35s, color .35s, border-color .35s;
}
.btn:hover { background: transparent; color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(250,249,246,.45); }
.btn-ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.light .btn-ghost { border-color: rgba(17,17,17,.4); }
.link-arrow {
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase; padding-bottom: 6px;
  border-bottom: 1px solid currentColor; transition: opacity .3s; font-weight: 400;
}
.link-arrow:hover { opacity: .55; }

/* ---------- Loading screen ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transition: opacity .9s ease .1s, visibility 0s linear 1s;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark { position: relative; width: 130px; height: 100px; }
.loader-mark i { position: absolute; width: 64px; height: 64px; border-radius: 50%; background: #fff; opacity: 0; animation: bloom 1.5s ease-out forwards; }
.loader-mark i:nth-child(1) { left: 0; top: 0; --o: .12; }
.loader-mark i:nth-child(2) { left: 32px; top: 30px; --o: .18; animation-delay: .25s; }
.loader-mark i:nth-child(3) { left: 66px; top: 14px; --o: .9; animation-delay: .5s; }
@keyframes bloom { from { opacity: 0; transform: scale(.4); } to { opacity: var(--o); transform: none; } }
.loader-name { font-size: 13px; letter-spacing: .5em; text-transform: uppercase; font-weight: 200; opacity: 0; animation: fadein 1s ease .7s forwards; }
@keyframes fadein { to { opacity: .85; } }

/* ---------- Top bar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--pad) 0 calc(var(--pad) * .6);
  background: var(--black);
}
.nav-left { display: flex; align-items: center; }
.brand { font-size: 13px; letter-spacing: .5em; text-transform: uppercase; font-weight: 300; padding-left: .5em; white-space: nowrap; }
.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.lang { display: flex; gap: 2px; }
.lang button { background: none; border: 0; color: var(--text); opacity: .45; cursor: pointer; font: 400 11px var(--font); letter-spacing: .2em; padding: 8px 6px; transition: opacity .25s; }
.lang button:hover { opacity: .9; }
.lang button.on { opacity: 1; }

.burger { position: relative; width: 38px; height: 38px; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.burger span { position: absolute; left: 9px; width: 20px; height: 1.5px; background: var(--text); transition: transform .4s, opacity .3s, top .4s; }
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ---------- Side menu ---------- */
.side {
  position: fixed; z-index: 55; top: var(--nav-h); bottom: 0; left: 0; width: min(420px, 100%);
  background: var(--black); padding: clamp(28px, 5vh, 56px) var(--pad) 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  transform: translateX(-102%); transition: transform .6s cubic-bezier(.7,0,.2,1); overflow-y: auto;
}
.side.open { transform: none; }
.side-links { display: flex; flex-direction: column; gap: 6px; }
.side-links a { font-size: clamp(26px, 4.4vh, 34px); font-weight: 200; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; opacity: .85; transition: opacity .3s, padding .4s; }
.side-links a:hover { opacity: 1; padding-left: 14px; }
.side-foot { padding-top: 30px; }
.side-cols a { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; opacity: .6; transition: opacity .3s; }
.side-cols a:hover { opacity: 1; }
.side-copy { margin-top: 16px; font-size: 11px; letter-spacing: .15em; opacity: .4; }
.side-scrim { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 54; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .5s; }
.side-scrim.on { opacity: 1; pointer-events: auto; }

/* ---------- Hero: full-bleed image ---------- */
main { padding-top: var(--nav-h); }
.hero {
  position: relative; min-height: calc(100svh - var(--nav-h)); display: flex; align-items: flex-end;
  padding: 0 var(--pad) clamp(110px, 16vh, 150px); overflow: hidden; background: var(--black);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-photo {
  position: absolute; inset: -4% 0; will-change: transform;
  transform: translate3d(0, calc(var(--sy, 0) * 1px), 0) scale(1.04);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: var(--hero-filter); }
.hero-photo .ph { border: 0; justify-content: flex-end; align-items: flex-end; padding: 0 12% 14% 0; font-size: 10px; text-align: right; }
.hero-tint { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.35) 100%); }
.hero-text { position: relative; z-index: 2; max-width: 780px; }
.hero-title { font-size: clamp(40px, 6.4vw, 92px); font-weight: 200; letter-spacing: .04em; margin: 4px 0 24px; text-transform: uppercase; line-height: 1.05; }
.hero-title span, .hero-title em { display: block; }
.hero-title em { opacity: .6; }
.lead { font-size: clamp(15px, 1.2vw, 17px); opacity: .82; max-width: 500px; margin-bottom: 34px; }
.hero-meta {
  position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 28px;
  display: flex; gap: clamp(24px, 5vw, 72px); padding-top: 20px; border-top: 1px solid rgba(250,249,246,.25);
}
.hero-meta strong { display: block; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; font-weight: 400; }
.hero-meta span { font-size: 12px; letter-spacing: .08em; opacity: .6; }

/* ---------- Hero, juncha-style: centred, one big thin title, one link ---------- */
.hero { align-items: center; justify-content: center; text-align: center; padding: 0 var(--pad); }
.hero-text { max-width: 980px; display: flex; flex-direction: column; align-items: center; }
.hero-title { font-size: clamp(34px, 6vw, 84px); letter-spacing: .14em; margin: 8px 0 28px; }
.hero .eyebrow::before { display: none; }
.hero .lead { margin: 0 auto 44px; max-width: 460px; font-size: 14px; opacity: .75; }
.hero-tint { background: rgba(0,0,0,.5); }
.hero-meta { justify-content: center; border-top: 0; padding-top: 0; }
.hero-meta strong::before { margin: 0 auto 10px; }
.hero-meta li { text-align: center; }
.enter {
  display: inline-block; font-size: 12px; letter-spacing: .4em; text-transform: uppercase; font-weight: 400;
  padding: 0 0 8px .4em; border-bottom: 1px solid currentColor; transition: opacity .3s, letter-spacing .5s;
}
.enter:hover, .panel:hover .enter { opacity: .7; letter-spacing: .55em; }
.hero-book { margin-top: 26px; font-size: 14px; }
/* cover photos (home hero + contact header): same softer, darker, less saturated look */
.hero-photo img, .page-head.top img { filter: var(--hero-filter) brightness(.85); }

/* Full-screen image panels */
.panels { background: var(--black); }
.panel { cursor: pointer; }
.panel { position: relative; display: block; height: calc(100svh - var(--nav-h)); min-height: 420px; overflow: hidden; }
.panel img, .panel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.9) brightness(.5); transform: scale(1.02); transition: transform 1.6s cubic-bezier(.2,.7,.2,1), filter .8s; }
.panel:hover img, .panel:hover video { transform: scale(1.07); filter: grayscale(.6) brightness(.66); }
.panel::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 34% 26% at 50% 50%, rgba(0,0,0,.62), transparent 100%); }   /* keeps the title and link readable over busy photos */
.panel-in h2, .panel-in .enter { text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.panel-in { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; text-align: center; }
.panel-in h2 { font-size: clamp(32px, 5vw, 64px); font-weight: 200; letter-spacing: .3em; text-transform: uppercase; padding-left: .3em; margin: 0; }
@media (max-width: 860px) { .hero-meta { display: none; } }

/* ---------- Inner pages ---------- */
.page-head { position: relative; height: clamp(300px, 52svh, 540px); overflow: hidden; background: var(--black); display: flex; align-items: flex-end; justify-content: center; padding-bottom: clamp(26px, 5svh, 52px); }
.page-head img, .page-head video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: grayscale(.9) brightness(.62); }
.page-head::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 38%, transparent 62%); }   /* title sits at the bottom, faces stay clear */
.page-head-in { position: relative; z-index: 2; text-align: center; }
.photo-band { position: relative; height: clamp(240px, 44svh, 480px); overflow: hidden; background: var(--black); }
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.9) brightness(.6); }
.photo-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 30%, transparent 70%, rgba(0,0,0,.35)); }
.page-head.top { align-items: flex-start; padding: clamp(22px, 4svh, 44px) 0 0; }   /* photo has the faces filling the band: title goes up on the dark ceiling instead */
.page-head.top::after { background: linear-gradient(to bottom, rgba(0,0,0,.7) 0%, rgba(0,0,0,.2) 40%, transparent 60%); }
.page-head h1 { font-size: clamp(30px, 4.8vw, 68px); font-weight: 200; letter-spacing: .3em; text-transform: uppercase; padding-left: .3em; margin: 0; animation: headin 1.2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes headin { from { opacity: 0; transform: translateY(18px); letter-spacing: .5em; } }

.next-page { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: clamp(60px, 9vw, 120px) var(--pad); background: var(--black); text-align: center; transition: background .5s; }
.next-page small { font-size: 11px; letter-spacing: .4em; text-transform: uppercase; opacity: .5; }
.next-page span { font-size: clamp(28px, 4.4vw, 56px); font-weight: 200; letter-spacing: .3em; text-transform: uppercase; padding-left: .3em; transition: letter-spacing .6s cubic-bezier(.2,.7,.2,1); }
.next-page span::after { content: ' →'; letter-spacing: 0; opacity: .5; }
.next-page:hover { background: #0a0a0a; }
.next-page:hover span { letter-spacing: .42em; }

.side-links a.current { opacity: 1; }
.side-links a.current::before { content: ''; display: inline-block; width: 22px; height: 1px; background: var(--accent); vertical-align: middle; margin-right: 14px; }

/* page fade */
body { animation: pagein .6s ease both; }
@keyframes pagein { from { opacity: 0; } }
body.leaving { opacity: 0; transition: opacity .26s ease; }

/* ---------- Image frames + placeholders ---------- */
.frame { position: relative; overflow: hidden; background: var(--surface-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.ph {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px dashed var(--line);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .7;
}

/* ---------- Portfolio: tight gallery, hover-to-play videos ---------- */
#work { padding-bottom: clamp(60px, 8vw, 110px); }
.work-hint { margin: -34px 0 28px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .5; }
#work .wrap, #photos .wrap { max-width: none; padding: 0 var(--gap); }
#work .sec-head, #work .work-hint, #work .center, #photos .sec-head, #photos .work-hint { padding: 0 calc(var(--pad) - var(--gap)); }
#photos { padding-top: 0; padding-bottom: clamp(60px, 8vw, 110px); }
.vgrid { display: block; columns: 3; column-gap: var(--gap); }
.v-item {
  position: relative; display: block; width: 100%; margin: 0 0 var(--gap); break-inside: avoid;
  overflow: hidden; background: var(--surface-2); cursor: pointer; aspect-ratio: var(--ratio, 9/16); isolation: isolate;
}
.v-item video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.001); transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .6s; filter: grayscale(.7) brightness(.7); }
.v-item.playing video, .v-item:hover video { transform: scale(1.035); filter: none; }
.v-item::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; z-index: 1; pointer-events: none; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.v-meta { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 4; display: flex; justify-content: space-between; align-items: center; color: #fff; font: 400 11px var(--font); letter-spacing: .3em; text-transform: uppercase; }
.v-play { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); display: grid; place-items: center; transition: opacity .3s, transform .3s; }
.v-play::before { content: ''; border-left: 8px solid #fff; border-block: 5px solid transparent; margin-left: 3px; }
.v-item.playing .v-play { opacity: 0; transform: scale(.6); }
.v-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: #fff; z-index: 5; }
.v-fail { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 24px; text-align: center; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; opacity: .7; background: var(--surface-2); }
.lb-stage video { display: block; width: auto; max-width: 100%; max-height: 86vh; margin: 0 auto; background: #000; }

/* ---------- Photos grid ---------- */
.pgrid { columns: 3; column-gap: var(--gap); }
.p-item { display: block; width: 100%; margin: 0 0 var(--gap); padding: 0; border: 0; background: var(--surface-2); cursor: pointer; break-inside: avoid; overflow: hidden; }
.p-item img { width: 100%; height: auto; display: block; filter: grayscale(.7) brightness(.8); transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .6s; }
.p-item:hover img, .p-item:focus-visible img { transform: scale(1.035); filter: none; }
.lb-stage img { display: block; max-width: 100%; max-height: 86vh; width: auto; height: auto; margin: 0 auto; }

/* ---------- Feedback (social proof): vertical clips, with speech ---------- */
.fb .sec-head .muted { margin-top: 14px; max-width: 460px; }
.fbgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 340px)); gap: var(--gap); justify-content: start; }
.fbgrid .v-item { margin: 0; aspect-ratio: 9/16; }
.fbgrid .v-item video { filter: grayscale(.2) brightness(.9); }
@media (max-width: 560px) { .fbgrid { grid-template-columns: 1fr 1fr; } .fbgrid .v-meta { left: 12px; right: 12px; font-size: 10px; letter-spacing: .2em; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 7vw, 110px); align-items: center; }
.about-photo { position: relative; max-width: 520px; }
.about-photo .about-img { aspect-ratio: 4/5; }
.about-photo .about-img img { object-position: 50% 30%; transition: transform 1.6s cubic-bezier(.2,.7,.2,1), opacity .5s; }
.about-photo:hover .about-img img { transform: scale(1.04); }
.about-tag { position: absolute; left: 0; bottom: 0; z-index: 4; padding: 14px 22px; background: var(--black); color: #faf9f6; display: grid; gap: 2px; }
.about-tag span { font-size: 14px; letter-spacing: .3em; text-transform: uppercase; font-weight: 300; }
.about-tag small { font-size: 10px; letter-spacing: .25em; text-transform: uppercase; opacity: .6; }
.about-copy h2 { font-size: clamp(30px, 3.8vw, 46px); margin-bottom: 26px; }
.about-copy p { opacity: .8; margin-bottom: 16px; max-width: 520px; }
.ticks { margin-top: 28px; display: grid; gap: 10px; }
.ticks li { padding-left: 34px; position: relative; font-size: 14px; letter-spacing: .04em; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .95em; width: 20px; height: 1px; background: currentColor; opacity: .6; }

/* ---------- Journey: numbers ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 36px); }
.stat { position: relative; padding-top: 20px; border-top: 1px solid rgba(250,249,246,.2); }
.stat::before { content: ''; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: var(--text); transition: width 1.2s cubic-bezier(.2,.7,.2,1) .15s; }
.stat.in::before { width: 100%; }
.stat-i { font-size: 11px; letter-spacing: .3em; opacity: .5; font-weight: 400; }
.stat-n { margin: 14px 0 10px; line-height: .9; }
.stat-n b { font-weight: 200; font-size: clamp(64px, 8vw, 120px); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.stat-l { display: block; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; font-weight: 400; }
.stat p { display: none; }

/* ---------- Recognition: index list ---------- */
.light .btn { border-color: var(--text); }
.light .btn:hover { color: var(--text); background: transparent; }
.rn { font-size: 11px; letter-spacing: .25em; opacity: .5; font-weight: 400; }
.proof { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--gap); margin-top: 36px; }
.proof[hidden] { display: none; }
.proof figure { display: flex; flex-direction: column; }
.proof figure.wide { grid-column: 1 / -1; }
.proof figure .frame { aspect-ratio: 3/4; }
.proof figure .frame:not([style*="aspect-ratio"]) { aspect-ratio: auto; flex: 1; min-height: 240px; }   /* no ratio given: fills the row height set by its neighbour */
.proof figure .frame img { object-position: var(--pos, 50% 50%); transition: transform 1.4s cubic-bezier(.2,.7,.2,1); filter: grayscale(.25); }
.proof figure:hover .frame img { transform: scale(1.04); filter: none; }
.proof figcaption { margin-top: 8px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; opacity: .6; }


/* ---------- Achievements: one specific photo set per conquest (About) ---------- */
.achv { display: grid; gap: clamp(56px, 8vw, 112px); }
.achv-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.achv-row:nth-child(even) { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
.achv-row:nth-child(even) .achv-text { order: -1; }
.achv-imgs { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: var(--gap); }
.achv-imgs .frame { aspect-ratio: var(--r, 4/5); }
.achv-imgs .frame img { object-position: var(--pos, 50% 40%); filter: grayscale(.85) contrast(1.03); transition: transform 1.4s cubic-bezier(.2,.7,.2,1), filter .8s; }
.achv-imgs:hover .frame img { filter: grayscale(.35); }
.achv-imgs .frame:hover img { transform: scale(1.04); }
.achv-text .rn { display: block; margin-bottom: 14px; }
.achv-text h3 { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: 10px; }
.achv-text p { opacity: .7; max-width: 340px; }
.recog-end { display: flex; gap: 12px; flex-wrap: wrap; margin-top: clamp(48px, 7vw, 90px); }
.recog-top { margin-bottom: clamp(40px, 6vw, 80px); }
.recog-top h2 { font-size: clamp(30px, 3.8vw, 48px); }

/* ---------- Art page: original works that may be for sale ---------- */
.art-intro { max-width: 460px; margin-top: 18px; }
.artgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.art-item { position: relative; display: block; cursor: pointer; background: var(--surface-2); overflow: hidden; aspect-ratio: var(--r, 3/4); }
.art-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) brightness(.9); transition: transform 1.4s cubic-bezier(.2,.7,.2,1), filter .8s; }
.art-item:hover img { transform: scale(1.04); filter: none; }
.art-item::after { content: ''; position: absolute; inset: auto 0 0 0; height: 36%; pointer-events: none; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.art-meta { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; display: flex; justify-content: space-between; align-items: center; color: #fff; font: 400 11px var(--font); letter-spacing: .3em; text-transform: uppercase; }
.art-end { margin-top: clamp(40px, 6vw, 72px); display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.art-end p { opacity: .65; max-width: 380px; font-size: 14px; }

/* ---------- Process ---------- */
.proc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 90px); align-items: center; }
.proc-tabs { display: flex; flex-direction: column; }
.proc-tab { position: relative; display: grid; grid-template-columns: clamp(60px, 7vw, 90px) 1fr; column-gap: 14px; align-items: center; text-align: left; width: 100%; padding: 26px 0; background: none; border: 0; border-top: 1px solid rgba(250,249,246,.18); color: var(--text); opacity: .5; cursor: pointer; transition: opacity .35s, padding .4s; font: inherit; }
.proc-tab:last-child { border-bottom: 1px solid rgba(250,249,246,.18); }
.proc-tab::after { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--text); transition: width .7s cubic-bezier(.2,.7,.2,1); }
.proc-tab.on::after { width: 100%; }
.pn { grid-row: 1 / 3; font-size: clamp(36px, 4.6vw, 58px); font-weight: 200; line-height: 1; }
.pt { font-size: clamp(18px, 2vw, 24px); letter-spacing: .12em; text-transform: uppercase; font-weight: 300; line-height: 1.25; }
.pd { grid-column: 2; font-size: 14px; line-height: 1.7; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s ease, opacity .4s ease, margin .4s; }
.proc-tab:hover { opacity: .85; padding-left: 10px; }
.proc-tab.on { opacity: 1; }
.proc-tab.on .pd { max-height: 120px; opacity: .75; margin-top: 8px; }
.proc-tab:focus-visible { outline: 1px solid var(--text); outline-offset: 4px; }
.proc-stage { position: relative; aspect-ratio: 5/6; max-height: 660px; width: 100%; justify-self: end; }
.proc-stage::after { content: ''; position: absolute; inset: auto 0 0 0; height: 30%; z-index: 3; pointer-events: none; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.proc-media { position: absolute; inset: 0; }
.pm-layer { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .8s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.pm-layer.in { opacity: 1; transform: none; }
.pm-layer img, .pm-layer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proc-count { position: absolute; right: 18px; bottom: 16px; z-index: 5; color: #fff; font: 400 11px var(--font); letter-spacing: .3em; }

/* ---------- FAQ ---------- */
#faq.section { padding: clamp(60px, 8vw, 100px) 0; }
#faq .sec-head h2 { font-size: clamp(26px, 3.2vw, 38px); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-size: clamp(16px, 1.6vw, 19px); font-weight: 300; letter-spacing: .04em; transition: opacity .25s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 200; transition: transform .3s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { opacity: .6; }
.faq-item p { opacity: .75; padding: 0 40px 20px 0; max-width: 680px; font-size: 14px; }

/* ---------- Contact ---------- */
.contact { background: #070707; }
.contact .form input, .contact .form textarea { border-bottom-color: rgba(250,249,246,.22); }
.contact .info dd a[href^="tel:"] { font-size: 1.15em; letter-spacing: .08em; }
.contact .info dd.todo { opacity: .5; font-style: italic; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.contact h2 { font-size: clamp(32px, 4.6vw, 60px); margin-bottom: 22px; text-transform: uppercase; letter-spacing: .06em; }
.info { margin-top: 40px; display: grid; gap: 18px; }
.info div { display: flex; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid rgba(250,249,246,.18); }
.info dt { flex: 0 0 110px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .5; padding-top: 3px; font-weight: 400; }
.info a { border-bottom: 1px solid rgba(250,249,246,.4); }
.form { display: grid; gap: 20px; }
.form label { display: grid; gap: 6px; }
.form label span { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .6; font-weight: 400; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input, .form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(250,249,246,.35); border-radius: 0;
  color: var(--text); font: 300 16px var(--font); padding: 10px 0; transition: border-color .25s;
}
.form input[type="file"] { padding: 10px 0; font-size: 13px; opacity: .7; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--text); }
.form input.err, .form textarea.err { border-color: #d96a55; }
.form .btn { justify-self: start; margin-top: 8px; }
.form-msg { min-height: 1.4em; font-size: 14px; opacity: .85; }

/* ---------- Footer ---------- */
.footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 24px var(--pad); background: var(--black); border-top: 1px solid #1e1e1e; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.footer span { opacity: .55; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.95); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lb-stage { width: min(860px, 86vw); max-height: 86vh; }
.lb-stage .frame { aspect-ratio: var(--ratio, 3/4); max-height: 86vh; margin: 0 auto; }
.lb-stage img { object-fit: contain; background: #000; }
.lb-close, .lb-nav { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 38px; font-weight: 200; line-height: 1; padding: 14px; opacity: .7; transition: opacity .2s; }
.lb-close:hover, .lb-nav:hover { opacity: 1; }
.lb-close { top: 10px; right: 14px; font-size: 44px; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }

/* ---------- Scroll reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }

/* ---------- Custom cursor (3 modes, press C to cycle) ---------- */
.has-cur, .has-cur * { cursor: none !important; }
.has-cur input, .has-cur textarea { cursor: text !important; }
.cur { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .2s; }
.cur.on { opacity: 1; }
.cur.hide { opacity: 0; }
.cur-core, .cur-ring, .cur-h, .cur-v, .cur-xy, .cur-label { position: absolute; left: 0; top: 0; }
.cur-core { width: 12px; height: 12px; margin: -6px 0 0 -6px; background: #fff; mix-blend-mode: difference; transition: width .18s, height .18s, margin .18s, transform .18s; }
.cur-ring { width: 0; height: 0; border: 1px solid #fff; mix-blend-mode: difference; margin: 0; transition: width .25s cubic-bezier(.2,.8,.2,1), height .25s cubic-bezier(.2,.8,.2,1), margin .25s cubic-bezier(.2,.8,.2,1), transform .25s; }
.cur.hov .cur-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; transform: rotate(45deg); }
.cur.hov .cur-core { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
.cur.down .cur-core { transform: scale(.5); }
.cur.down .cur-ring { transform: rotate(45deg) scale(.7); }
.cur-label { transform: translate(18px, 18px); font: 400 10px/1 var(--font); letter-spacing: .3em; text-transform: uppercase; color: #fff; mix-blend-mode: difference; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.cur.hov .cur-label { opacity: 1; }
.cur-h, .cur-v, .cur-xy { display: none; }
.cur[data-mode="cross"] .cur-h { display: block; left: -100vw; top: 0; width: 200vw; height: 1px; background: #fff; mix-blend-mode: difference; opacity: .6; }
.cur[data-mode="cross"] .cur-v { display: block; top: -100vh; left: 0; width: 1px; height: 200vh; background: #fff; mix-blend-mode: difference; opacity: .6; }
.cur[data-mode="cross"] .cur-xy { display: block; transform: translate(14px, -22px); font: 400 10px/1 ui-monospace, Consolas, monospace; letter-spacing: .1em; color: #fff; mix-blend-mode: difference; }
.cur[data-mode="needle"] .cur-core { width: 8px; height: 22px; margin: -2px 0 0 -4px; background: #fff; clip-path: polygon(50% 0, 100% 40%, 60% 100%, 40% 100%, 0 40%); transform: rotate(-30deg); transform-origin: 50% 0; }
.cur[data-mode="needle"].hov .cur-core { transform: rotate(-30deg) scale(1.5); }
.cur[data-mode="needle"].down .cur-core { transform: rotate(-30deg) translateY(4px) scaleY(.8); }
.cur[data-mode="needle"] .cur-ring { display: none; }
.ink { position: fixed; z-index: 9998; pointer-events: none; background: #fff; mix-blend-mode: difference; border-radius: 50%; opacity: .9; animation: ink .9s ease-out forwards; }
@keyframes ink { to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3); } }
.cur-hint { position: fixed; right: 18px; bottom: 18px; z-index: 9997; font: 400 10px var(--font); letter-spacing: .25em; text-transform: uppercase; border: 1px solid rgba(250,249,246,.3); background: rgba(0,0,0,.8); color: #fff; padding: 8px 12px; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cur-hint.show { opacity: 1; }
@media (pointer: coarse) { .cur, .cur-hint { display: none; } }

/* Accent touches (kept very small, in juncha's restrained spirit) */
.eyebrow::before { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--accent); vertical-align: middle; margin-right: 14px; opacity: 1; }
.eyebrow { opacity: 1; color: var(--text); }
.eyebrow { --o: .65; }
.hero-meta strong::before { content: ''; display: block; width: 16px; height: 1px; background: var(--accent); margin-bottom: 10px; }
.v-bar { background: var(--accent); }
.lang button.on { color: var(--accent-soft); }
.rn, .stat-i { color: var(--accent); opacity: 1; }
.light .rn { color: var(--accent-ink); }
.ticks li::before { background: var(--accent); opacity: 1; }

/* File picker: same look as the rest of the form instead of the browser's grey button */
.form input[type="file"]::file-selector-button { background: transparent; color: var(--text); border: 1px solid rgba(250,249,246,.4); border-radius: 0; padding: 8px 14px; margin-right: 12px; font: 400 11px var(--font); letter-spacing: .25em; text-transform: uppercase; cursor: pointer; transition: background .3s, color .3s; }
.form input[type="file"]::file-selector-button:hover { background: var(--text); color: var(--bg); }

/* Touch: bigger hit areas without changing how anything looks */
@media (pointer: coarse) {
  .lang button, .side-cols a, .enter, .link-arrow, .info a, .next-page, .footer a { position: relative; }
  .lang button::after, .side-cols a::after, .enter::after, .link-arrow::after, .info a::after { content: ''; position: absolute; inset: -10px -8px; }
  .side-cols a { display: inline-block; }
  .faq-item summary { min-height: 48px; }
}

/* Keyboard focus (invisible for mouse users) */
a:focus-visible, button:focus-visible, .v-item:focus-visible, summary:focus-visible { outline: 1px solid var(--text); outline-offset: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .vgrid, .pgrid { columns: 2; }
  .artgrid { grid-template-columns: repeat(2, 1fr); }
  .achv-row, .achv-row:nth-child(even) { grid-template-columns: 1fr; }
  .achv-row:nth-child(even) .achv-text { order: 0; }
  .about, .contact-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 440px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
}
@media (max-width: 860px) {
  .proc { grid-template-columns: 1fr; }
  .proc-stage { order: -1; aspect-ratio: 4/3; max-height: none; justify-self: stretch; }
  .brand { letter-spacing: .35em; font-size: 12px; }
  .hero-meta { display: none; }
  .hero { padding-bottom: 90px; }
}
@media (max-width: 560px) {
  .vgrid { columns: 1; }
  .pgrid { columns: 2; }
  .artgrid { grid-template-columns: 1fr; }
  .form .two { grid-template-columns: 1fr; }
  .info div { flex-direction: column; gap: 4px; }
  .info dt { flex: none; padding-top: 0; }
  .stat-n b { font-size: clamp(56px, 18vw, 84px); }
  .proof { grid-template-columns: 1fr 1fr; }
  .lb-nav { display: none; }
  .nav-right { gap: 8px; }
  .brand { display: none; }
  .nav { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; }
}

/* ---------- Mobile only (11/11): cover framing + touch video. Desktop untouched. ---------- */
@media (max-width: 560px) {
  /* Home hero: photo fills the whole screen, Ítalo centered; text over a dark gradient at the bottom */
  .hero { align-items: flex-end; padding-bottom: 40px; min-height: calc(100svh - var(--nav-h)); }
  .hero-photo { inset: 0; transform: scale(1.02); }
  .hero-photo img { object-position: 72% 50% !important; filter: grayscale(.85) contrast(1.05) brightness(1.0); }
  .hero-tint { background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.62) 34%, rgba(0,0,0,.1) 62%, rgba(0,0,0,.25) 100%); }
  .hero-title { font-size: clamp(30px, 9.4vw, 40px); letter-spacing: .1em; margin-bottom: 18px; }
  .hero .lead { margin-bottom: 26px; }

  /* Home panels: triptych images show ONE photo only, slight zoom, centered.
     Image is 3 photos wide: 312vw wide, each photo ≈104vw (a bit wider than the screen = zoom). */
  .panel { height: min(78svh, 640px); min-height: 380px; }
  .panels .panel:nth-child(1) img,
  .panels .panel:nth-child(2) img,
  .panels .panel:nth-child(4) img,
  .panels .panel:nth-child(5) img { inset: auto; top: calc(50% - 92.4vw); width: 312vw; height: 184.8vw; max-width: none; object-fit: fill; }
  .panels .panel:nth-child(1) img { left: -210vw; }   /* work: woman's portrait (3rd photo) */
  .panels .panel:nth-child(2) img { left: -106vw; }    /* art: astronaut (2nd) */
  .panels .panel:nth-child(4) img { left: -2vw; }     /* process: Ítalo with glasses (1st) */
  .panels .panel:nth-child(5) img { left: -106vw; }    /* contact: blue shirt + trophy (2nd) */
  .panels .panel:nth-child(3) img { object-position: 50% 30% !important; }   /* about: single photo, unchanged */
  .panel::after { background: radial-gradient(ellipse 70% 22% at 50% 50%, rgba(0,0,0,.6), transparent 100%); }

  /* Page headers: shorter band, so the wide covers are not cut to a thin slice */
  .page-head { height: clamp(280px, 42svh, 360px); padding-bottom: 26px; }
  .page-head img { object-position: 50% 40%; }
  body[data-page="work"] .page-head img { inset: auto; top: calc(50% - 52vw); left: -210vw; width: 312vw; height: 104vw; max-width: none; object-fit: fill; }   /* woman only, slight zoom */
  body[data-page="about"] .page-head img { object-position: 40% 50% !important; }   /* needle */
  body[data-page="art"] .page-head img { object-position: 52% 45% !important; }     /* astronaut helmet */
  body[data-page="process"] .page-head img { object-position: 68% 62% !important; } /* hands + stencil */
  body[data-page="contact"] .page-head img { object-position: 58% 40% !important; } /* face + glasses */
  .page-head h1 { font-size: clamp(26px, 8.4vw, 34px); }
  .photo-band { height: clamp(220px, 36svh, 300px); }
  .photo-band img { object-position: 46% 30% !important; }

  /* Videos: bigger touch feedback, play icon hides while playing */
  .v-item { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  .v-item video { filter: grayscale(.4) brightness(.85); }
  .v-item.playing video { filter: none; }
}
