@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .35s ease both fadeout; }
::view-transition-new(root) { animation: .5s ease both fadein; }
@keyframes fadeout { to { opacity: 0; } }
@keyframes fadein { from { opacity: 0; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); color-scheme: dark; }
html[data-mode=light] { color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 Manrope, system-ui, sans-serif; min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .8; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }
.wrap { max-width: 1440px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.kicker { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
em.accent, h1 em, h2 em { font-style: italic; color: var(--accent); }
.btn { padding: 16px 30px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; border: 1px solid transparent; cursor: pointer; background: none; }
.btn-fill { background: var(--accent); color: var(--ink); }
.btn-line { border-color: var(--line); font-weight: 400; }
.btn-accent { border-color: var(--accent); color: var(--accent); font-weight: 400; }
.sep { border-top: 1px solid var(--line); }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.placeholder { display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-family: 'Cormorant Garamond', serif; font-size: 40px; color: var(--muted); }

/* spotlight + atmosphere */
.spot { position: fixed; inset: 0; pointer-events: none; z-index: 50; mix-blend-mode: screen; opacity: 0; transition: opacity .6s;
  background: radial-gradient(circle var(--spot-r, 360px) at var(--x, 50%) var(--y, 30%), rgba(var(--rgb), calc(var(--spot) * .9)), transparent 70%); }
[data-mode=light] .spot { mix-blend-mode: multiply; background: radial-gradient(circle var(--spot-r, 360px) at var(--x, 50%) var(--y, 30%), rgba(var(--rgb), calc(var(--spot) * .35)), transparent 70%); }
.spot.on { opacity: 1; }
body.grain::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
body.grain::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 59; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.45)); }

/* header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; padding-bottom: 28px; position: relative; z-index: 20; }
.logo { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; letter-spacing: .18em; white-space: nowrap; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.nav .btn { padding: 12px 22px; font-weight: 400; }
.lang { color: var(--muted); white-space: nowrap; }
.lang .on { color: var(--text); }
.mode { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 1.5px; background: var(--text); margin: 6px 0; }

/* hero */
.hero { position: relative; overflow: hidden; }
.glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 55% 70% at 72% 38%, var(--glow), transparent 70%); }
.hero-in { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 40px; padding-bottom: 96px; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(56px, 7vw, 104px); line-height: .98; letter-spacing: -.01em; }
.hero p { margin: 0; max-width: 520px; font-size: 18px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }
.hero-media { flex: 1 1 420px; min-width: 0; margin: 0; position: relative; }
.hero-media img, .hero-media video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: var(--fx) var(--fy); display: block; border-radius: 4px; filter: saturate(.85) contrast(1.05); }
.hero-media figcaption { position: absolute; left: 20px; bottom: 20px; right: 20px; width: fit-content; padding: 10px 16px; background: var(--bg); font-size: 13px; letter-spacing: .06em; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.stats b { display: block; font: 400 56px/1 'Cormorant Garamond', serif; }
.stats span { color: var(--muted); font-size: 14px; }
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.marquee { overflow: hidden; padding: 48px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 72px; width: max-content; animation: marquee 40s linear infinite; font-family: 'Cormorant Garamond', serif; font-size: 30px; color: var(--muted); align-items: center; }
.marquee-track img { height: 40px; width: auto; opacity: .75; filter: grayscale(1) brightness(1.6); }
[data-mode=light] .marquee-track img { filter: grayscale(1) brightness(.4); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; } }

/* projects */
.section { padding-top: 72px; padding-bottom: 96px; }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.h2 { margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(44px, 5vw, 72px); line-height: 1; }
.h3 { margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 48px; line-height: 1.05; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 24px; }
.big { grid-column: 1 / -1; position: relative; display: block; border-radius: 4px; overflow: hidden; min-height: 520px; background: var(--surface); }
.big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.8); transition: transform 1.2s ease, filter .6s; }
.big:hover img { transform: scale(1.03); filter: brightness(.65) saturate(.9); }
.big .over { position: absolute; inset: auto 0 0 0; padding: 40px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; color: #F2EEF7; }
.big .t { font-family: 'Cormorant Garamond', serif; font-size: clamp(40px, 4.5vw, 64px); line-height: 1; max-width: 760px; }
.big .k { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px; }
.card { display: flex; flex-direction: column; gap: 16px; }
.card .pic { aspect-ratio: 4 / 3; overflow: hidden; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.85); transition: transform 1.2s ease; }
.card:hover .pic img { transform: scale(1.04); }
.card .placeholder { font-size: clamp(26px, 2.6vw, 40px); line-height: 1.1; }
.card .k { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.card h3 { margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 30px; line-height: 1.1; }
.card .m { color: var(--muted); font-size: 14px; }
.card.locked { cursor: default; }
.card.locked:hover { opacity: 1; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.filter-row { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 40px; }
.filter-row > div { display: flex; flex-direction: column; gap: 10px; }
.filter-row .lbl { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* reel */
.reel { position: relative; aspect-ratio: 21 / 9; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.reel .glow, .video .glow { background: radial-gradient(circle at 50% 50%, var(--glow), transparent 60%); }
.reel-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; padding: 20px; }
.play { width: 96px; height: 96px; border-radius: 50%; border: 1px solid var(--accent); background: transparent; color: var(--accent); display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; }
.reel iframe, .video iframe, .reel video, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

/* about */
.about-in { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.about-in img { flex: 1 1 340px; min-width: 0; max-width: 480px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; filter: saturate(.8); }
.about-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.manifesto { margin: 0; font-family: 'Cormorant Garamond', serif; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.12; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills span { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.prose { font-size: 19px; color: var(--muted); max-width: 760px; }
.prose p { margin: 0 0 1em; }

/* CTA */
.cta { position: relative; overflow: hidden; }
.cta .glow { background: radial-gradient(ellipse 50% 80% at 50% 100%, var(--glow), transparent 70%); }
.cta-in { position: relative; padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.cta h2 { margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(48px, 6vw, 96px); line-height: 1; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; color: var(--muted); font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; padding-top: 28px; padding-bottom: 28px; }

/* project page */
.p-hero { position: relative; min-height: 680px; display: flex; align-items: end; overflow: hidden; background: var(--surface); }
.p-hero:not(.has-img) { min-height: 380px; }
.p-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: brightness(.5) saturate(.8); }
.p-hero .fade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, transparent 55%); }
.p-hero .wrap { position: relative; width: 100%; padding-bottom: 56px; display: flex; flex-direction: column; gap: 20px; }
.p-hero.has-img .wrap { color: #F2EEF7; }
.p-hero h1 { margin: 0; max-width: 1000px; font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(52px, 7vw, 112px); line-height: .96; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.facts .lbl { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.facts .v { font-size: 18px; }
.idea { display: flex; flex-wrap: wrap; gap: 64px; padding-top: 96px; padding-bottom: 96px; }
.idea .h3 { flex: 1 1 320px; }
.idea .body { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; font-size: 19px; color: var(--muted); }
.idea .lead { margin: 0; font-family: 'Cormorant Garamond', serif; font-size: 34px; line-height: 1.2; color: var(--text); }
.idea .body p { margin: 0; }
.gallery { padding-bottom: 96px; }
.g-ctl { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 14px; }
.g-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.g-btn.next { border-color: var(--accent); color: var(--accent); }
.g-main { aspect-ratio: 16 / 9; position: relative; overflow: hidden; touch-action: pan-y; }
.g-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .5s ease; }
.g-main img.on { opacity: 1; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.thumbs button { aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--surface); cursor: pointer; }
.thumbs button.on { border: 2px solid var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video { position: relative; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.nextp { display: block; border-top: 1px solid var(--line); }
.nextp .wrap { padding-top: 72px; padding-bottom: 96px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.nextp .t { font-family: 'Cormorant Garamond', serif; font-size: clamp(40px, 5vw, 72px); line-height: 1; margin-top: 12px; }
.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 48px; }

/* forms */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-height: 52px; color: var(--text); width: 100%; }
.form textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { padding: 16px 20px; border-radius: 12px; border: 1px solid var(--accent); }
.contact-in { display: flex; flex-wrap: wrap; gap: 64px; padding-top: 48px; padding-bottom: 96px; }
.contact-in > form { flex: 2 1 560px; min-width: 0; }
.contact-in > aside { flex: 1 1 260px; display: flex; flex-direction: column; gap: 16px; font-size: 18px; }

.center { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; padding: 40px; }

@media (max-width: 760px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .burger { display: block; }
  .top .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 24px 20px 32px; background: var(--bg); flex-direction: column; align-items: flex-start; gap: 22px; border-bottom: 1px solid var(--line); }
  .top.open .nav { display: flex; }
  .top .lang-m { display: inline; }
  .logo { font-size: 20px; }
  .hero-in { padding-top: 0; padding-bottom: 48px; gap: 0; }
  .hero-media { order: -1; flex-basis: 100%; margin: 0 -20px; }
  .hero-media img, .hero-media video { aspect-ratio: 3 / 4; border-radius: 0; object-position: var(--mx) var(--my); filter: brightness(.7) saturate(.85); }
  .hero-media figcaption { display: none; }
  .hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 4%, color-mix(in srgb, var(--bg) 65%, transparent) 45%, transparent 75%); }
  .hero-text { margin-top: -220px; position: relative; gap: 20px; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 16px; }
  .actions .btn { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .stats b { font-size: 40px; }
  .big { min-height: 420px; }
  .big .over { padding: 20px; }
  .grid { grid-template-columns: 1fr; }
  .reel { aspect-ratio: 4 / 3; }
  .p-hero { min-height: 480px; }
  .idea, .about-in { padding-top: 56px; padding-bottom: 56px; gap: 32px; }
  .section { padding-top: 48px; padding-bottom: 64px; }
  .cta-in { padding-top: 80px; padding-bottom: 80px; }
}
