[data-site="portfolio"] {
  --paper: #f4f3ed;
  --ink: #1d2b42;
  --accent: #2146eb;
  --muted: #5b6472;
  --line: #1d2b4230;
}
[data-site="portfolio"] .header { position: absolute; inset: 0 0 auto; color: #fff; }
[data-site="portfolio"] .language select { background: transparent; }
[data-site="portfolio"] .language select option { color: #1d2b42; background: #f4f3ed; }
.studio-hero { --scene-distance: 280svh; background: var(--accent); color: #fff; }
.studio-stage {
  position: relative; height: 100svh; min-height: 710px; overflow: clip; isolation: isolate;
  background: radial-gradient(ellipse at 72% 38%, #3858ed 0%, transparent 65%), linear-gradient(145deg, #2146eb, #1c3bd0);
}
.studio-stage::after, .project::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("./surface-grain.webp") repeat; opacity: .065; mix-blend-mode: soft-light; z-index: 4;
}
.studio-wordmark {
  position: absolute; z-index: 1; left: 3.3vw; top: 18%;
  font: 600 clamp(90px, 16vw, 250px)/.94 Onest, sans-serif; letter-spacing: -.065em; direction: ltr;
}
.studio-wordmark > span { display: block; transform-origin: 0 50%; }
.studio-wordmark > span:last-child { font-weight: 300; margin-left: 12vw; }
.studio-frame { position: absolute; inset: 8% -3% 13% 0; transform: translateX(18%); z-index: 2; pointer-events: none; }
.studio-frame canvas, .studio-frame .scene-fallback { transition: none; }
.studio-frame .scene-fallback { width: 100%; left: 0; height: 100%; object-fit: contain; }
.studio-bottom { position: absolute; inset: auto 0 22px; z-index: 5; display: flex; justify-content: flex-start; }
.studio-bottom a {
  font: 550 1.125rem/1.4 Onest, sans-serif; display: inline-flex; align-items: center;
  min-height: 48px; border-bottom: 1px solid currentColor; padding: 8px 0;
}
.studio-portal { position: absolute; inset: 0; background: var(--paper); z-index: 1; clip-path: circle(0% at 50% 55%); }
.studio-outro { position: absolute; right: 6%; top: 34%; z-index: 3; color: var(--ink); opacity: 0; pointer-events: none; max-width: 48%; }
.studio-outro b { display: block; font: 500 clamp(36px, 6vw, 84px)/1.12 Onest, sans-serif; letter-spacing: -.055em; }
.studio-hero.has-motion .studio-wordmark > span:first-child { transform: translateX(calc(var(--depart, 0) * -110%)) rotate(calc(var(--depart, 0) * -9deg)); }
.studio-hero.has-motion .studio-wordmark > span:last-child { transform: translateX(calc(var(--depart, 0) * 75%)) translateY(calc(var(--depart, 0) * 30vh)); opacity: calc(1 - var(--depart, 0)); }
.studio-hero.has-motion .studio-portal { clip-path: circle(calc(var(--portal, 0) * 150%) at 50% 55%); }
.studio-hero.has-motion .studio-outro { opacity: var(--arrive, 0); transform: translateY(calc((1 - var(--arrive, 0)) * 100px)); }
.studio-hero.has-motion .studio-bottom { color: color-mix(in srgb, #fff calc((1 - var(--portal, 0)) * 100%), #1d2b42); }
.studio-hero.has-motion .studio-frame { transform: translateX(calc(18% * (1 - var(--depart, 0)))); }
.studio-hero.has-motion .scene-fallback { opacity: 1; }
.studio-hero.has-motion [data-scene-ready] .scene-fallback { opacity: 0; }
.portfolio-index { background: var(--paper); padding-top: 70px; }
.catalog-heading { padding-block: 0 40px; border-top: 1px solid var(--line); }
.catalog-heading h2 { padding-top: 30px; font: 500 clamp(52px, 7.2vw, 108px)/1.14 Onest, sans-serif; letter-spacing: -.06em; }
.project-entry { --scene-distance: 160svh; }
.project-stage { min-height: 100svh; padding-block: 28px 48px; display: flex; align-items: center; }
.project {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 4%; align-items: center; width: 100%; padding: clamp(28px, 4vw, 62px); border-radius: 28px; overflow: clip;
  background: radial-gradient(ellipse at 86% 20%, #dbe6ed, transparent 60%), linear-gradient(125deg, #e7e9e6, #e0e8ee);
}
.project-description { position: relative; z-index: 2; min-width: 0; }
.project-title { display: flex; align-items: center; gap: 22px; direction: ltr; }
.project-title img { border-radius: 15px; width: 56px; height: 56px; flex-shrink: 0; }
.project-title h3 { font: 550 clamp(48px, 6vw, 88px)/1.1 Onest, sans-serif; letter-spacing: -.06em; }
.project-description > p { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.6; margin-block: 28px; max-width: 46ch; letter-spacing: -.025em; }
.project-explore {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: min(100%,404px); min-height: 80px; margin-block: 0 28px; padding-block: 16px; padding-inline: 24px 18px;
  border: 1px solid #f05b29; border-radius: 16px; background: #ff6a32; color: #181917;
  font-size: 1.25rem; font-weight: 600; line-height: 1.35; text-decoration: none;
  transition: background .2s, box-shadow .2s, transform .2s;
}
.project-explore > span:first-child { min-width: 0; text-align: start; }
.project-explore-symbol { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 11px; background: #181917; color: #ff6a32; }
.project-explore-symbol svg { width: 24px; height: 24px; transition: transform .2s; }
[dir="rtl"] .project-explore-symbol svg { rotate: 180deg; }
@media (max-width: 700px) {
  .project-explore { gap: 12px; padding-inline: 16px; }
}
@media (hover: hover) {
  .project-explore:hover { background: #ff804f; box-shadow: 0 10px 24px #1d2b4226; transform: translateY(-2px); }
  .project-explore:hover svg { transform: translateX(3px); }
}
.project-explore:focus-visible { outline: 3px solid #1d2b42; outline-offset: 5px; }
.project-explore:active { background: #ff6a32; transform: translateY(0); box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .project-explore, .project-explore-symbol svg { transition: none; }
  .project-explore:hover, .project-explore:hover svg { transform: none; }
}
.project-description .install-panel { max-width: 100%; }
.project-visual { position: relative; display: block; min-width: 0; height: 600px; max-height: 70svh; border-radius: 20px; }
.project-visual::before { content: ""; position: absolute; inset: 16% -10% 6%; border-radius: 50%; background: #638ab022; filter: blur(35px); pointer-events: none; }
.project-phones { position: absolute; inset: 4% 0; display: flex; align-items: center; justify-content: center; gap: 8%; perspective: 1100px; }
.project-phones .phone { width: 42%; max-width: 228px; flex-shrink: 0; box-shadow: 0 30px 35px #16274726; transform: rotate(-7deg); }
.project-phones .phone:last-child { transform: translateY(30px) rotate(7deg); }
.project-entry.has-motion .project-phones .phone:first-child { transform: translateX(calc((1 - var(--unfold, 0)) * 30%)) rotate(calc(-11deg + var(--unfold, 0) * 7deg)) rotateY(calc((1 - var(--unfold, 0)) * -18deg)); }
.project-entry.has-motion .project-phones .phone:last-child { transform: translateX(calc((1 - var(--unfold, 0)) * -30%)) translateY(calc(65px - var(--unfold, 0) * 35px)) rotate(calc(11deg - var(--unfold, 0) * 7deg)) rotateY(calc((1 - var(--unfold, 0)) * 18deg)); }
.studio-about { padding-block: 60px 85px; }
.studio-statement { max-width: 1100px; padding-block: 70px 110px; }
.studio-statement p { font: 400 clamp(24px, 3.2vw, 49px)/1.5 Onest, sans-serif; letter-spacing: -.035em; }
.studio-colophon { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; font: .875rem Onest, sans-serif; }
.studio-colophon a { display: flex; align-items: center; min-height: 48px; }
.studio-bottom a:hover, .studio-colophon a:hover { text-decoration: underline; text-underline-offset: 6px; }
[data-site="portfolio"] .contact { background: var(--accent); color: #fff; --line: #ffffff50; }
[data-site="portfolio"] .contact-copy h2 { font-size: clamp(26px, 3.2vw, 47px); line-height: 1.3; }
[data-site="portfolio"].error-page .brand { position: static; }
@media (min-width: 1800px) { .studio-frame { inset: 8% 0 13% 0; } }
@media (max-width: 1000px) {
  .studio-stage { min-height: 780px; }
  .studio-wordmark { top: 22%; font-size: 14.8vw; }
  .studio-frame { inset: 18% -6% 17% 0; }
  .project { gap: 5%; padding: 30px; }
  .project-visual { height: 510px; }
  .project-title { gap: 14px; }
  .project-title h3 { font-size: 52px; }
  .project-title img { width: 44px; height: 44px; border-radius: 12px; }
}
@media (max-width: 900px) { [data-site="portfolio"] .header { position: relative; background: var(--accent); } }
@media (max-width: 700px) {
  .studio-stage { height: auto; min-height: calc(100svh - 84px); display: flex; flex-direction: column; padding-top: 40px; }
  .studio-hero { --scene-distance: 260svh; }
  .studio-wordmark { position: relative; left: auto; top: auto; margin-inline: 6%; display: flex; gap: .04em; font-size: 16.5vw; line-height: 1.04; letter-spacing: -.07em; }
  .studio-wordmark > span:last-child { margin-left: 0; }
  .studio-frame { position: relative; inset: auto; width: 100%; height: clamp(280px, 43svh, 420px); margin-block: 12px 24px; transform: none; }
  .studio-hero.has-motion .studio-frame { transform: none; }
  .studio-bottom { position: relative; inset: auto; margin-block: auto 28px; }
  .studio-outro { right: 6%; top: 35%; }
  .studio-outro b { font-size: 8vw; }
  .portfolio-index { padding-top: 40px; }
  .catalog-heading { padding-bottom: 10px; }
  .catalog-heading h2 { font-size: clamp(48px, 9vw, 64px); }
  .project-stage { padding-block: 24px; }
  .project { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px 22px; border-radius: 20px; }
  .project-title h3 { font-size: 56px; }
  .project-description > p { font-size: 1.125rem; margin-block: 24px; }
  .project-visual { height: 510px; max-height: 65svh; }
  .project-phones { gap: 10%; }
  .project-phones .phone { width: 39%; max-width: 200px; }
  .studio-about { padding-block: 40px 65px; }
  .studio-statement { padding-block: 30px 65px; }
  .studio-statement p { font-size: clamp(21px, 4.6vw, 32px); }
}
@media (hover: none), (pointer: coarse) {
  .studio-hero.has-motion .scene-fallback { transform: perspective(900px) rotateY(calc(var(--depart, 0) * 24deg)) rotateZ(calc(var(--depart, 0) * -10deg)) scale(calc(1 + var(--depart, 0) * .12)); opacity: calc(1 - var(--portal, 0)); }
}
