/* Web / 02. An open specimen sheet, with the sculpture as the primary material.
   Kept after mobile-viewport.css; all changes are local to this scene. */
#estudio {
 --identity-yellow: #ffd333;
 --identity-ink: #f4f0e5;
 --identity-muted: #a9a5a0;
 --identity-rule: #e8dfca28;
 background: #10131b;
 color: var(--identity-ink);
}

#estudio::before {
 content: "";
 position: absolute;
 z-index: -1;
 inset: 0;
 background: linear-gradient(90deg, transparent calc(40% - 1px), #eee3cb0c 40%, transparent calc(40% + 1px));
 pointer-events: none;
}

#estudio .scene-copy {
 left: max(var(--gutter), env(safe-area-inset-left, 0px));
 top: 50%;
 width: 35%;
 max-width: 610px;
 transform: translateY(-43%);
}

#estudio .eyebrow {
 max-width: 390px;
 margin-bottom: clamp(22px, 3.3vh, 40px);
 padding-bottom: 13px;
 border-bottom: 1px solid var(--identity-rule);
 color: #cbc5b7;
 font: 10px/1.4 "Courier New", monospace;
 letter-spacing: .16em;
}

#estudio .registration {
 color: var(--identity-yellow);
 font-size: 23px;
}

#estudio .scene-copy h2 {
 font-size: clamp(52px, 5.9vw, 112px);
 font-weight: 500;
 line-height: .98;
 letter-spacing: -.065em;
 text-wrap: balance;
}

#estudio .scene-copy h2 em {
 color: var(--identity-yellow);
 font-weight: 400;
 letter-spacing: -.065em;
}

#estudio .scene-description {
 max-width: 360px;
 margin: clamp(20px, 3vh, 34px) 0 24px;
 color: #b9b7b0;
 font-size: clamp(13px, 1.04vw, 16px);
 line-height: 1.7;
}

#estudio .text-link {
 min-height: 48px;
 padding: 11px 0;
 gap: 30px;
 border-radius: 0;
 border-bottom: 1px solid #ffd33385;
 background: transparent;
 color: var(--identity-yellow);
 font-size: 12px;
 letter-spacing: .015em;
 transition: border-color .2s, color .2s;
}

#estudio .text-link span {
 position: relative;
 display: inline-block;
 flex: none;
 width: 18px;
 height: 18px;
 font-size: 0;
 transition: transform .2s;
}
#estudio .text-link span::before {
 content: "";
 position: absolute;
 right: 1px;
 top: 1px;
 width: 10px;
 height: 10px;
 border-top: 1px solid currentColor;
 border-right: 1px solid currentColor;
}
#estudio .text-link span::after {
 content: "";
 position: absolute;
 width: 20px;
 height: 1px;
 right: -2px;
 top: 8px;
 background: currentColor;
 transform: rotate(-45deg);
}

#estudio .text-link:hover {
 border-color: #fff0b4;
 background: transparent;
 color: #fff0b4;
}

#estudio .text-link:hover span { transform: translate(2px, -2px); }
#estudio .text-link:focus-visible,
#estudio .identity-controls button:focus-visible {
 outline: 2px solid var(--identity-yellow);
 outline-offset: 4px;
}

#estudio .scene-note {
 margin-top: clamp(26px, 4.5vh, 56px);
 color: var(--identity-muted);
 font: 9px/1.9 "Courier New", monospace;
 letter-spacing: .03em;
}
#estudio .identity-note-title { color: #d8d0bb; }

#estudio .identity-experience {
 position: absolute;
 top: max(124px, 15vh);
 right: max(var(--gutter), env(safe-area-inset-right, 0px));
 bottom: max(108px, 12vh);
 left: 44%;
 width: auto;
 height: auto;
 min-width: 0;
 min-height: 0;
 margin: 0;
 gap: 0;
}

#estudio .identity-experience::after {
 content: "TOPPIC / DISEÑO EN MOVIMIENTO";
 position: absolute;
 top: 40%;
 right: -25px;
 writing-mode: vertical-rl;
 color: #989286;
 font: 8px/1 "Courier New", monospace;
 letter-spacing: .17em;
 pointer-events: none;
}

#estudio .identity-specimen-line {
 display: flex;
 flex: none;
 align-items: center;
 justify-content: space-between;
 gap: 12px;
 min-height: 31px;
 padding: 0 0 11px;
 border-bottom: 1px solid var(--identity-rule);
 color: #a9a39a;
 font: 9px/1.4 "Courier New", monospace;
 letter-spacing: .08em;
}

#estudio .identity-specimen-line > span {
 display: inline-flex;
 align-items: center;
 gap: 9px;
 text-transform: uppercase;
 white-space: nowrap;
}

#estudio .identity-specimen-line > span::before {
 content: "";
 width: 4px;
 height: 4px;
 flex: none;
 border-radius: 50%;
 background: var(--identity-yellow);
}

#estudio .identity-gesture {
 margin: 0;
 color: #c7c0b2;
 text-align: right;
 letter-spacing: 0;
}
#estudio .identity-touch-hint { display: none; }

#estudio .identity-stage {
 flex: 1 1 0%;
 min-height: 0;
 margin-block: 12px 7px;
 isolation: isolate;
 background: transparent;
 touch-action: pinch-zoom;
}
#estudio .identity-stage canvas { touch-action: pinch-zoom; }

/* A real brand silhouette remains when the browser cannot provide WebGL. */
#estudio .identity-static-mark {
 position: absolute;
 inset: 0;
 width: 70%;
 height: 76%;
 margin: auto;
 background: #ffffff;
 -webkit-mask: url('../assets/toppic-logo-charcoal.svg') center / contain no-repeat;
 mask: url('../assets/toppic-logo-charcoal.svg') center / contain no-repeat;
 pointer-events: none;
}
#estudio .identity-stage.is-ready .identity-static-mark { visibility: hidden; }

/* Perimeter registration marks stay out of the sculpture's central field. */
#estudio .identity-stage::before {
 content: "";
 position: absolute;
 z-index: 1;
 inset: 4% 1%;
 background:
  linear-gradient(#b7ac8940, #b7ac8940) left top / 12px 1px,
  linear-gradient(#b7ac8940, #b7ac8940) left top / 1px 12px,
  linear-gradient(#b7ac8940, #b7ac8940) right top / 12px 1px,
  linear-gradient(#b7ac8940, #b7ac8940) right top / 1px 12px,
  linear-gradient(#b7ac8940, #b7ac8940) left bottom / 12px 1px,
  linear-gradient(#b7ac8940, #b7ac8940) left bottom / 1px 12px,
  linear-gradient(#b7ac8940, #b7ac8940) right bottom / 12px 1px,
  linear-gradient(#b7ac8940, #b7ac8940) right bottom / 1px 12px;
 background-repeat: no-repeat;
 pointer-events: none;
}

#estudio .identity-controls {
 display: grid;
 grid-template-columns: repeat(3, minmax(0, 1fr));
 flex: none;
 margin: 0;
 gap: 16px;
 border: 0;
}

#estudio .identity-controls button {
 position: relative;
 display: flex;
 align-items: center;
 gap: 10px;
 min-width: 0;
 min-height: 54px;
 padding: 9px 0;
 border: 0;
 border-top: 1px solid var(--identity-rule);
 border-radius: 0;
 background: transparent;
 color: #a9a5a0;
 font-size: 12px;
 font-weight: 400;
 text-align: left;
 transition: color .2s, border-color .2s;
}

#estudio .identity-controls button span {
 color: #a09a8c;
 margin: 0;
 font: 9px/1 "Courier New", monospace;
}

#estudio .identity-controls button[aria-pressed="true"] {
 border-top-color: var(--identity-yellow);
 color: var(--identity-yellow);
}
#estudio .identity-controls button[aria-pressed="true"] span { color: var(--identity-yellow); }
#estudio .identity-controls button:hover:not(:disabled) { color: #fff0b4; border-top-color: #d9c791; }
#estudio .identity-controls button:disabled { opacity: .55; }

#estudio .identity-caption {
 flex: none;
 min-height: 28px;
 margin: 0;
 color: #b5aea1;
 font: 10px/1.6 "Courier New", monospace;
 text-align: left;
 letter-spacing: .005em;
}

@media (pointer: coarse) {
 #estudio .identity-pointer-hint { display: none; }
 #estudio .identity-touch-hint { display: inline; }
}

@media (min-width: 701px) and (max-width: 1100px) and (min-height: 501px) {
 #estudio .scene-copy { width: 36%; }
 #estudio .scene-copy h2 { font-size: clamp(46px, 6.1vw, 68px); }
 #estudio .scene-description { font-size: 13px; line-height: 1.6; }
 #estudio .identity-experience { left: 44%; right: 4%; }
 #estudio .identity-specimen-line { font-size: 8px; letter-spacing: .025em; }
 #estudio .identity-experience::after { right: -19px; font-size: 7px; }
 #estudio .identity-controls { gap: 10px; }
 #estudio .identity-controls button { gap: 6px; font-size: 11px; }
}

@media (min-width: 701px) and (max-height: 700px) {
 #estudio .scene-copy { transform: translateY(-42%); }
 #estudio .scene-copy h2 { font-size: clamp(42px, 5.2vw, 72px); }
 #estudio .eyebrow { margin-bottom: 20px; padding-bottom: 10px; }
 #estudio .scene-description { margin: 18px 0 12px; font-size: 13px; line-height: 1.55; }
 #estudio .scene-note { margin-top: 18px; }
 #estudio .identity-experience { top: 116px; bottom: 88px; }
}

/* Ordinary phones use the existing viewport composition and reflow observer. */
@media (max-width: 700px), (max-height: 500px) {
 #scene-estudio::before { display: none; }
 #estudio.scene-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: var(--header) var(--gutter) var(--footer);
  gap: 14px;
  overflow: hidden;
 }
 #estudio::before { background: none; }
 #estudio .scene-copy {
  position: relative;
  inset: auto;
  flex: none;
  width: 100%;
  max-width: none;
  transform: none;
 }
 #estudio .eyebrow {
  max-width: none;
  margin: 0 0 10px;
  padding: 0 0 8px;
  font-size: 9px;
  line-height: 1.4;
 }
 #estudio .registration { font-size: 16px; }
 #estudio .scene-copy h2 {
  max-width: 550px;
  font-size: clamp(35px, 10.2vw, 56px);
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
 }
 #estudio .scene-copy h2 br { display: none; }
 #estudio .scene-description {
  max-width: 38rem;
  margin: 11px 0 0;
  font-size: 13px;
  line-height: 1.45;
 }
 #estudio .scene-note, #estudio .text-link { display: none; }
 #estudio .identity-experience {
  position: relative;
  inset: auto;
  flex: 1 1 0%;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  gap: 0;
 }
 #estudio .identity-experience::after { display: none; }
 #estudio .identity-specimen-line {
  min-height: 23px;
  padding-bottom: 7px;
  gap: 8px;
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: .04em;
 }
 #estudio .identity-specimen-line > span { gap: 6px; }
 #estudio .identity-gesture { font-size: 9px; }
 #estudio .identity-stage { margin-block: 5px 2px; }
 #estudio .identity-stage::before { inset: 5% 0; opacity: .7; }
 #estudio .identity-controls { gap: 12px; }
 #estudio .identity-controls button { min-height: 46px; padding: 8px 0; gap: 7px; font-size: 11px; }
 #estudio .identity-controls button span { font-size: 8px; }
 #estudio .identity-caption { min-height: 24px; margin: 0; font-size: 9px; line-height: 1.4; }
 /* Essential copy remains reachable at large text sizes or exceptional heights. */
 #scene-estudio.mobile-reflow { overflow-y: auto; overscroll-behavior: contain; }
 #scene-estudio.mobile-reflow #estudio { height: auto; min-height: 100%; overflow: visible; }
 #scene-estudio.mobile-reflow .identity-experience { flex: none; height: 320px; }
 #scene-estudio.mobile-reflow .identity-stage,
 #scene-estudio.mobile-reflow .identity-stage canvas { touch-action: pan-y pinch-zoom; }
}

@media (max-width: 700px) and (max-height: 650px) {
 #estudio.scene-layout { gap: 9px; }
 #estudio .eyebrow { margin-bottom: 7px; padding-bottom: 5px; }
 #estudio .scene-copy h2 { font-size: clamp(31px, 9.5vw, 43px); }
 #estudio .scene-description { margin-top: 8px; font-size: 12px; line-height: 1.4; }
 #estudio .identity-specimen-line { min-height: 20px; padding-bottom: 5px; }
 #estudio .identity-controls { gap: 9px; }
 #estudio .identity-controls button { min-height: 44px; font-size: 10px; gap: 5px; }
 #estudio .identity-caption { min-height: 25px; font-size: 9px; }
}

/* Short landscape is a two-column sheet rather than a squeezed phone stack. */
@media (min-width: 560px) and (max-height: 500px) {
 #estudio.scene-layout {
  display: grid;
  grid-template-columns: 39% minmax(0, 1fr);
  gap: 25px;
  align-items: stretch;
 }
 #estudio .scene-copy { align-self: center; }
 #estudio .scene-copy h2 { font-size: clamp(33px, 4.5vw, 44px); }
 #estudio .eyebrow { margin-bottom: 10px; }
 #estudio .scene-description { font-size: 12px; line-height: 1.45; }
 #estudio .identity-experience { height: 100%; min-height: 0; }
 #estudio .identity-caption { min-height: 25px; font-size: 9px; }
 #scene-estudio.mobile-reflow .identity-experience { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
 #estudio .text-link, #estudio .text-link span, #estudio .identity-controls button { transition: none; }
}
