/* Homepage-only refinement. Shared project, privacy and support styles stay unchanged. */
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
[hidden] { display: none !important; }
.twp-page { -webkit-font-smoothing: antialiased; }
.twp-page button { font: inherit; cursor: pointer; }
.twp-page a, .twp-page button { -webkit-tap-highlight-color: transparent; }
.twp-page :is(a, button):focus-visible { outline: 3px solid #cde7ff; outline-offset: 6px; }
.twp-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
#intro-overlay { display: none; }
#intro-overlay.is-intro-active { display: grid; position: fixed; inset: 0; place-items: center; z-index: 999; background: #06090e; animation: intro-safety 2.5s step-end forwards; }
#intro-video { position: absolute; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
#intro-overlay.is-video-playing #intro-video { opacity: 1; }
.intro-brand-shell { display: grid; justify-items: center; gap: 18px; color: #f8f4ec; }
.intro-brand-mark { width: 76px; filter: brightness(1.8); }
.intro-brand-word { font-size: 22px; letter-spacing: .32em; }
.is-video-playing .intro-brand-shell { opacity: 0; }
.twp-intro-skip { position: absolute; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 2; border: 1px solid #7c818c; border-radius: 30px; background: #10141c; color: #fff; padding: 12px 18px; min-height: 46px; }
@keyframes intro-safety { to { visibility: hidden; pointer-events: none; } }
.twp-gallery { --twp-speed: 660ms; min-height: 720px; grid-template-rows: auto minmax(280px, 1fr) auto auto auto; padding-inline: clamp(20px, 4vw, 64px); }
.twp-header { column-gap: 30px; row-gap: 10px; padding-bottom: 16px; border-bottom: 1px solid #ffffff18; }
.twp-gallery-title { min-width: 0; gap: 15px; }
.twp-header .publisher-nav { gap: 8px 20px; }
.twp-header .publisher-nav a { font-size: 13px; color: #eeeae4; text-decoration: none; }
.twp-header .publisher-nav a:hover { color: #fff; text-decoration: underline; }
.twp-autoplay { min-height: 44px; padding: 8px 13px; border: 1px solid #ffffff40; border-radius: 24px; background: #07090d80; color: #f8f4ec; font-size: 11px !important; letter-spacing: .02em; white-space: nowrap; }
.twp-autoplay:hover { background: #ffffff16; }
.twp-stage { touch-action: pan-y; }
.twp-gallery:not([data-enhanced]) .twp-world:not(.is-active), .twp-gallery:not([data-enhanced]) :is(.twp-rail, .twp-arrow, .twp-auto-progress) { visibility: hidden; }
.twp-info { width: min(1120px, 100%); padding-bottom: 20px; gap: 32px; }
.twp-description { max-width: 65ch; font-size: 15px; line-height: 1.55; color: #dfdedc; }
.twp-info h1 { letter-spacing: -.055em; }
.twp-enter { min-height: 50px; white-space: nowrap; }
.twp-rail { width: min(1120px, 100%); }
.twp-rail button { min-height: 58px; padding: 12px 8px 8px; }
.twp-rail b { font-size: 12px; }
.twp-rail button:not(.is-active) { opacity: .72; }
.twp-hint { position: relative; inset: auto; transform: none; writing-mode: horizontal-tb; margin: 14px 0 0; text-align: center; font-size: 11px; letter-spacing: .08em; }
.twp-hint a { display: inline-flex; align-items: center; min-height: 30px; color: #dedbd5; text-decoration: none; }
.twp-hint a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.twp-world:not(.is-active):not(.is-leaving) *, .twp-world:not(.is-active):not(.is-leaving)::before, .twp-world:not(.is-active):not(.is-leaving)::after { animation-play-state: paused !important; }
.twp-gallery.is-motion-paused *, .twp-gallery.is-motion-paused *::before, .twp-gallery.is-motion-paused *::after, .twp-gallery.is-motion-paused::before, .twp-gallery.is-motion-paused::after { animation-play-state: paused; }
.twp-gallery.is-transitioning .twp-room, .twp-gallery.is-transitioning .twp-world.is-entering *, .twp-gallery.is-transitioning .twp-world.is-leaving * { animation-play-state: running; }
.twp-page .publisher-content { width: min(1200px, 100%); padding: 88px 40px; border-top: 1px solid #ffffff18; }
.twp-page .portfolio-eyebrow { margin: 0 0 16px; color: #f2a984; font: 650 11px/1.5 ui-sans-serif, system-ui, sans-serif; letter-spacing: .2em; }
.twp-page #projects-title { max-width: 780px; margin: 0 0 22px; font-size: clamp(32px, 4.5vw, 56px); line-height: 1.12; letter-spacing: -.045em; }
.twp-page .publisher-grid { margin-top: 40px; gap: 20px; }
.twp-page .publisher-card { display: flex; flex-direction: column; align-items: flex-start; border-color: #ffffff22; background: linear-gradient(150deg, #17202a 0%, #0d121a 100%); border-radius: 16px; padding: 28px; box-shadow: 0 12px 35px #0000001c; transition: border-color 180ms ease, transform 180ms ease; }
.twp-page .publisher-card:hover { border-color: #ffffff55; transform: translateY(-3px); }
.twp-page .publisher-card p { font-size: 15px; line-height: 1.75; }
.twp-page .publisher-card h3 { font-size: 25px; letter-spacing: -.025em; margin-bottom: 4px; }
.twp-page .publisher-card a { font-size: 14px; line-height: 1.6; padding-block: 6px; }
.twp-page .publisher-status { font-size: 10px; line-height: 1.5; letter-spacing: .12em; color: #c9dfd7; }
.twp-noscript { position: relative; z-index: 201; margin: 0; padding: 18px; text-align: center; background: #111923; }
.twp-noscript a { color: #bfe5ff; }
@media (max-width: 1100px) {
  .twp-header .publisher-nav { width: 100%; justify-content: center; margin: 0; border-top: 1px solid #ffffff12; }
  .twp-gallery-title { margin-left: auto; }
}
@media (max-width: 620px) {
  .twp-gallery { height: auto; min-height: 100svh; grid-template-rows: auto minmax(240px, 38svh) auto auto auto; padding: max(16px, env(safe-area-inset-top)) 18px 18px; }
  .twp-logo { font-size: 11px; gap: 7px; letter-spacing: .12em; }
  .twp-logo img { width: 27px; height: 27px; }
  .twp-gallery-title { gap: 9px; }
  .twp-gallery-title > span:first-child, .twp-auto-progress { display: none; }
  .twp-autoplay { font-size: 10px !important; padding-inline: 10px; }
  .twp-header { gap: 8px; padding-bottom: 7px; }
  .twp-header .publisher-nav { order: 3; justify-content: space-between; gap: 8px; }
  .twp-header .publisher-nav a { font-size: 12px; }
  .twp-world { width: 100vw; top: 0; bottom: 0; }
  .twp-wall { place-items: center; padding-top: 0; }
  .twp-frame { width: 88%; }
  .twp-exhibit-plaque { display: none; }
  .twp-arrow { width: 44px; height: 44px; top: calc(50% - 22px); }
  .twp-arrow-prev { left: -12px; } .twp-arrow-next { right: -12px; }
  .twp-info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 4px 0 20px; }
  .twp-info h1 { font-size: clamp(32px, 9vw, 44px); }
  .twp-kicker { font-size: 9px; line-height: 1.5; letter-spacing: .14em; }
  .twp-description { display: block; font-size: 14px; line-height: 1.55; margin: 10px 0 0; min-height: 66px; }
  .twp-enter { justify-self: start; min-height: 48px; font-size: 12px; padding-left: 18px; }
  .twp-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; }
  .twp-rail button { text-align: left; min-height: 56px; }
  .twp-rail b { display: block; margin-top: 4px; font-size: 11px; }
  .twp-rail span { font-size: 9px; }
  .twp-page .publisher-content { padding: 58px 20px; }
  .twp-page .publisher-card { padding: 24px; }
  .twp-hint { display: block; margin-top: 8px; }
}
@media (max-height: 620px) and (min-width: 621px) {
  .twp-gallery { height: auto; min-height: 720px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .twp-page *, .twp-page *::before, .twp-page *::after { animation: none !important; transition: none !important; }
  .twp-gallery { --twp-speed: 0ms; }
  .twp-gallery .twp-room { transform: none; }
  .twp-page .publisher-card:hover { transform: none; }
  .twp-auto-progress, .twp-autoplay, .twp-transition-veil, .twp-occluder { display: none !important; }
}
.twp-enter { gap: 14px; padding-right: 8px; }
.twp-enter > span { padding-right: 0; }
.twp-enter i { position: static; flex-shrink: 0; }
.twp-rail button:not(.is-active) { opacity: 1; }
.twp-rail button:not(.is-active) b { color: #c5c4c1; }
.twp-rail button:not(.is-active) span { color: #b2b0ad; }

.twp-enter > span { max-width: none; }
.twp-gallery.is-transitioning .twp-occluder, .twp-gallery.is-transitioning .twp-transition-veil, .twp-gallery.is-transitioning .twp-transition-veil > span, .twp-gallery.is-transitioning .twp-flow-signal, .twp-gallery.is-transitioning .twp-world.is-leaving * { animation-play-state: running !important; }
