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

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  background-color: #fff;
  background-image: radial-gradient(circle, rgba(37, 37, 37, 0.12) 0.8px, transparent 0.9px);
  background-size: 18px 18px;
  overflow-x: hidden;
  position: relative;
}

#scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: #252525;
  border-radius: 999px;
  clip-path: inset(0 round 999px);
  z-index: 9999;
  pointer-events: none;
}

.work-mobile-header {
  display: none;
  color: #252525;
  text-decoration: none;
}

.work-mobile-header__inner {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
}

.work-mobile-header__back {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #252525;
  background: transparent;
  flex-shrink: 0;
  position: relative;
  font-size: 0;
}

.work-mobile-header__back::before {
  content: '';
  width: 26px;
  height: 26px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 26px 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26' fill='none'%3E%3Cpath d='M21 13H5' stroke='%23252525' stroke-width='2.6' stroke-linecap='round'/%3E%3Cpath d='M11.5 6.5 5 13l6.5 6.5' stroke='%23252525' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.home-mobile-header__back::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26' fill='none'%3E%3Cpath d='M13 21V5' stroke='%23252525' stroke-width='2.6' stroke-linecap='round'/%3E%3Cpath d='M19.5 11.5 13 5 6.5 11.5' stroke='%23252525' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.work-mobile-header__title {
  min-width: 0;
  margin-left: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  color: #252525;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-logo {
  position: fixed;
  --logo-final-top: 42px;
  --logo-final-left: 48px;
  --logo-final-size: 56px;
  --logo-current-left: var(--logo-final-left);
  --logo-current-top: var(--logo-final-top);
  --logo-current-size: var(--logo-final-size);
  --logo-current-opacity: 1;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  width: var(--logo-current-size);
  height: var(--logo-current-size);
  opacity: var(--logo-current-opacity);
  transform: translate3d(var(--logo-current-left), var(--logo-current-top), 0);
  transform-origin: top left;
  will-change: transform, opacity;
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: auto;
}

.site-logo::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 10px 28px rgba(37, 37, 37, 0.08);
  opacity: 0;
  pointer-events: none;
}

.site-logo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 3px solid #252525;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(37, 37, 37, 0.12);
}

.site-logo:hover,
.site-logo:focus-visible {
  transform: translate3d(var(--logo-current-left), var(--logo-current-top), 0);
}

.home-page .site-logo {
  --logo-current-left: 0px;
  --logo-current-top: 0px;
  --logo-current-opacity: 0;
  pointer-events: none;
  transition: none;
}

body.work-body:not(.home-page) .site-logo {
  animation: case-logo-fade-in 180ms ease-out both;
}

@keyframes case-logo-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.home-page .site-logo.is-interactive {
  pointer-events: auto;
}

[data-home-photo] {
  opacity: 1;
  transition: none;
}

.home-page [data-home-photo].is-hidden {
  opacity: 0;
}

/* ── Global Motion Preferences ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #scroll-indicator {
    transition: none !important;
  }

  .site-logo {
    transition: none;
  }
}

/* ── Constellation background canvas ──────────────── */
#constellation {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
}

body.is-drawing-mode.is-emoji-cursor,
body.is-drawing-mode.is-emoji-cursor #constellation {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ctext x='16' y='16.2' text-anchor='middle' dominant-baseline='middle' font-size='28' font-family='Apple Color Emoji%2C Segoe UI Emoji%2C Noto Color Emoji%2C sans-serif'%3E🐱%3C/text%3E%3C/svg%3E") 16 16, crosshair;
}

body.is-drawing-mode.is-pen-cursor,
body.is-drawing-mode.is-pen-cursor #constellation {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg transform='translate(32 0) scale(-1 1)'%3E%3Ctext x='16' y='16' text-anchor='middle' dominant-baseline='middle' font-size='28' font-family='Apple Color Emoji%2C Segoe UI Emoji%2C Noto Color Emoji%2C sans-serif'%3E%E2%9C%8F%EF%B8%8F%3C/text%3E%3C/g%3E%3C/svg%3E") 16 16, crosshair;
}

body.is-drawing-mode a,
body.is-drawing-mode button,
body.is-drawing-mode input,
body.is-drawing-mode textarea,
body.is-drawing-mode select,
body.is-drawing-mode summary,
body.is-drawing-mode [role="button"] {
  cursor: pointer;
}

body.is-drawing-mode input,
body.is-drawing-mode textarea,
body.is-drawing-mode select,
body.is-drawing-mode [contenteditable="true"] {
  cursor: text;
}

body.is-drawing-mode.is-eraser-mode,
body.is-drawing-mode.is-eraser-mode #constellation {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ctext x='16' y='16' text-anchor='middle' dominant-baseline='middle' font-size='28' font-family='Apple Color Emoji%2C Segoe UI Emoji%2C Noto Color Emoji%2C sans-serif'%3E%F0%9F%A7%BD%3C/text%3E%3C/svg%3E") 16 16, cell;
}

.drawing-toolbar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 9997;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  box-shadow: 0 10px 30px rgba(37, 37, 37, 0.09);
  transform: translateX(-50%);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.drawing-toolbar.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px);
}

.drawing-toolbar__group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawing-toolbar__divider {
  display: none;
}

.drawing-tool {
  appearance: none;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.74);
  padding: 0;
  margin: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #252525;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(37, 37, 37, 0.06);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.drawing-tool--color {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.drawing-tool--emoji {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.drawing-tool:hover,
.drawing-tool:focus-visible {
  background: rgba(245, 245, 243, 0.96);
  border-color: rgba(37, 37, 37, 0.12);
  outline: none;
}

.drawing-tool--color:hover,
.drawing-tool--color:focus-visible,
.drawing-tool--emoji:hover,
.drawing-tool--emoji:focus-visible,
.drawing-tool--eraser:hover,
.drawing-tool--eraser:focus-visible {
  background: transparent;
  border-color: transparent;
}

.drawing-tool.is-active:not(.drawing-tool--color):not(.drawing-tool--emoji):not(.drawing-tool--eraser) {
  background: #252525;
  border-color: #252525;
  box-shadow: 0 8px 18px rgba(37, 37, 37, 0.12);
}

.drawing-tool--color::before {
  content: '';
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--swatch-color, #252525);
  box-shadow: none;
}

.drawing-tool--color.is-active::before {
  box-shadow: none;
}

.drawing-tool--color.is-active {
  background: rgba(224, 224, 224, 0.7);
  box-shadow: 0 0 0 2px rgba(224, 224, 224, 0.7);
}

.drawing-tool__emoji {
  display: block;
  width: 24px;
  height: 24px;
  font-size: 24px;
  line-height: 24px;
  text-align: center;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  transform: translateY(1px);
}

.drawing-tool--emoji.is-active {
  background: rgba(224, 224, 224, 0.7);
  box-shadow: 0 0 0 2px rgba(224, 224, 224, 0.7);
}

.drawing-tool--eraser {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.drawing-tool__sponge {
  display: block;
  width: 24px;
  height: 24px;
  font-size: 24px;
  line-height: 24px;
  text-align: center;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.drawing-tool--eraser.is-active {
  background: rgba(224, 224, 224, 0.7);
  box-shadow: 0 0 0 2px rgba(224, 224, 224, 0.7);
}

/* Curl filter is attached/detached via JS for smooth hover-out animation. */

/* ── White content card ───────────────────────────── */
.work-wrap {
  background: transparent;
  color: #252525;
  position: relative;
  z-index: 2;
}

/* ── Main column ──────────────────────────────────── */
.work-main {
  max-width: 768px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 24px 120px;
  display: flex;
  flex-direction: column;
  gap: 112px;
  background: transparent;
}

/* ── Bio ──────────────────────────────────────────── */
.bio-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  min-height: calc(100vh - 48px);
  background: transparent;
}

.bio-photo {
  display: block;
  width: 144px;
  height: 144px;
  border: 3px solid #252525;
  border-radius: 50%;
  object-fit: cover;
}

.bio-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  background: transparent;
}

.bio-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.bio-text p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

/* ── Work entries ─────────────────────────────────── */
.work-entry {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.entry-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.entry-text-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.entry-text h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-left: -34px;
}

.entry-text h2 .star,
.tt-up-next-link .star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: #4760FF;
  font-size: 26px;
  line-height: 1;
  animation: spin-star 2s linear infinite;
  transition: color 0.15s ease, transform 0.15s ease;
}

/* On hover: hide the ✳, show SVG arrow */
.entry-text h2:hover .star,
.entry-text h2:focus-within .star,
.tt-up-next-link:hover .star,
.tt-up-next-link:focus-visible .star {
  animation: none;
  color: transparent;
}

.entry-text h2:hover .star .star-arrow,
.entry-text h2:focus-within .star .star-arrow,
.tt-up-next-link:hover .star .star-arrow,
.tt-up-next-link:focus-visible .star .star-arrow {
  opacity: 1;
}

.star .star-arrow {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.concept-sessions-entry .star {
  position: relative;
}

.concept-sessions-entry .entry-text h2:hover .star {
  animation: none;
  color: #4760FF;
}

.concept-sessions-entry .entry-text h2:hover .star .star-arrow,
.concept-sessions-entry .entry-text h2:focus-within .star .star-arrow {
  opacity: 0;
}

@keyframes spin-star {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.type-cursor {
  display: inline-block;
  font-weight: 400;
  color: #4760FF;
  margin-left: 1px;
  animation: blink-cursor 0.6s steps(1) infinite;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.entry-text h2 a {
  color: inherit;
  text-decoration: none;
}

.entry-text h2 a:hover {
  text-decoration: underline;
}

.entry-text .entry-role {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}

.entry-text p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.inline-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inline-link:hover {
  opacity: 0.6;
}

/* ── Image containers ─────────────────────────────── */

/* Default: gray card, padding on top + sides, image sits at bottom */
.entry-img {
  width: 100%;
  background: rgb(228, 226, 220);
  border-radius: 16px;
  overflow: hidden;
  padding: 24px 24px 0;
}

/* Padded all sides (Tippy — illustration with its own background) */
.entry-img-padded {
  padding: 24px;
}

/* Full-bleed (Concept Sessions — artwork fills the frame) */
.entry-img-full {
  background: transparent;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
}

.entry-img-plain {
  background: #252525;
  border: 3px solid #252525;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
}

.entry-img img {
  display: block;
  width: 100%;
  height: auto;
}

.entry-img video {
  display: block;
  width: 100%;
  height: auto;
}

.skyeng-opening-preview {
  background: transparent;
  padding: 0;
  border-radius: 0;
  overflow: visible;
}

.skyeng-opening-gallery {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  width: min(100%, 720px);
  margin: 0 auto;
}

.skyeng-opening-card {
  position: relative;
  width: calc((100% - 32px) / 3);
  aspect-ratio: 460 / 997;
  background: #fff;
  border: 3px solid #252525;
  border-radius: 16px;
  overflow: hidden;
}

.skyeng-opening-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity;
}

.skyeng-opening-frame.is-active {
  opacity: 1;
  transition: opacity 0.6s linear;
}

.skyeng-opening-frame.is-leaving {
  opacity: 0;
  transition: opacity 0.6s linear;
}

.skyeng-opening-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.concept-sessions-preview {
  background: transparent;
  padding: 0;
  border-radius: 0;
  overflow: visible;
}

.concept-sessions-gallery {
  width: min(100%, 720px);
  margin: 0 auto;
}

.concept-sessions-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 1000;
  background: #fff;
  border: 3px solid #252525;
  border-radius: 16px;
  overflow: hidden;
}

.concept-sessions-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity;
}

.concept-sessions-frame.is-active {
  opacity: 1;
  transition: opacity 0.6s linear;
}

.concept-sessions-frame.is-leaving {
  opacity: 0;
  transition: opacity 0.6s linear;
}

.work-wrap .concept-sessions-preview,
.work-wrap .concept-sessions-preview * {
  pointer-events: none;
}

.concept-sessions-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Reveal animation ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Global Responsive ────────────────────────────── */
/* tablet / small laptop header: 1024px */
@media (max-width: 1024px) {
  body.work-body {
    --mobile-header-height: 68px;
  }

  body.home-page {
    --mobile-header-height: 68px;
  }

  .site-logo {
    --logo-final-top: 32px;
    --logo-final-left: 32px;
    --logo-final-size: 48px;
  }

  body.work-body .site-logo {
    display: none;
  }

  body.work-body .work-mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    min-height: var(--mobile-header-height);
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(16px) saturate(1.08);
    -webkit-backdrop-filter: blur(16px) saturate(1.08);
    border-bottom: 1px solid rgba(37, 37, 37, 0.08);
    opacity: 0;
    transform: translateY(calc(-100% - 8px));
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
  }

  body.home-page .home-mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    min-height: var(--mobile-header-height);
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(16px) saturate(1.08);
    -webkit-backdrop-filter: blur(16px) saturate(1.08);
    border-bottom: 1px solid rgba(37, 37, 37, 0.08);
    opacity: 0;
    transform: translateY(calc(-100% - 8px));
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
    color: #252525;
    text-decoration: none;
  }

  body.work-body.work-mobile-header-visible .work-mobile-header {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  body.home-page.home-mobile-header-visible .home-mobile-header {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  body.home-page.home-mobile-header-visible .site-logo {
    opacity: 0;
    pointer-events: none;
  }

  body.work-body.work-mobile-header-visible #scroll-indicator {
    top: calc(var(--mobile-header-height) - 3px);
  }

  body.home-page.home-mobile-header-visible #scroll-indicator {
    top: calc(var(--mobile-header-height) - 3px);
  }
}

/* tablet: 768px */
@media (max-width: 768px) {
  .drawing-toolbar {
    display: none;
  }

  .entry-text h2,
  .tt-up-next-link {
    margin-left: 0;
  }

  .entry-text h2 .star,
  .tt-up-next-link .star {
    display: none;
  }

  .work-main {
    gap: 64px;
  }

  .bio-photo {
    width: 160px;
    height: 160px;
  }
}

/* mobile: 480px */
@media (max-width: 480px) {
  body.work-body:not(.home-page) .site-logo::before {
    opacity: 1;
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
  }

  .work-main {
    gap: 48px;
  }
}

/* ── Work page (work.html — standalone) ───────────── */
body.work-body {
  background: #fff;
  background-image: radial-gradient(circle, rgba(37, 37, 37, 0.12) 0.8px, transparent 0.9px);
  background-size: 18px 18px;
  color: #252525;
}

.work-nav {
  position: relative;
  z-index: 2;
  pointer-events: none;
  padding: 20px 24px;
}

.work-nav a {
  pointer-events: auto;
}

.work-back {
  font-size: 13px;
  font-weight: 500;
  color: #252525;
  text-decoration: none;
  opacity: 0.4;
  transition: opacity 0.15s;
}

.work-back:hover {
  opacity: 1;
}

/* ── TripleTen page ────────────────────────────────── */
.tt-main {
  padding: 48px 24px 120px;
  position: relative;
  z-index: 2;
}

.case-intro-group {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.case-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tt-intro-title,
.tt-label,
.tt-sub-label {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.case-meta {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}

.tt-p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.tt-p strong {
  font-weight: 700;
}

.tt-p a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tt-p a:hover {
  opacity: 0.6;
}

.tt-up-next {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: calc(0.18em + 2px);
  row-gap: 0;
}

.tt-p .tt-up-next-link,
.tt-p .tt-up-next-link:visited {
  display: inline-flex;
  align-items: center;
  margin-left: -34px;
  color: #252525;
  font-weight: 700;
  text-decoration: none;
}

.tt-up-next-link-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tt-up-next-link .star {
  margin-right: 0;
  vertical-align: baseline;
}

.tt-up-next-copy {
  display: inline;
}

.tt-p .tt-up-next-link:hover,
.tt-p .tt-up-next-link:focus-visible,
.tt-p .tt-up-next-link:visited:hover,
.tt-p .tt-up-next-link:visited:focus-visible {
  color: #252525;
  opacity: 1;
  text-decoration: none;
}

@media (min-width: 769px) {
  .tt-p .tt-up-next-link:hover .tt-up-next-title,
  .tt-p .tt-up-next-link:focus-visible .tt-up-next-title,
  .tt-p .tt-up-next-link:visited:hover .tt-up-next-title,
  .tt-p .tt-up-next-link:visited:focus-visible .tt-up-next-title {
    text-decoration: underline;
    text-underline-offset: 2px;
  }
}

@media (max-width: 768px) {
  .tt-up-next {
    display: block;
    width: auto;
  }

  .tt-p .tt-up-next-link,
  .tt-p .tt-up-next-link:visited {
    display: inline;
    margin-left: 0;
  }

  .tt-up-next-link-inner {
    display: inline;
  }
}

.tt-img {
  width: 100%;
  background: rgb(228, 226, 220);
  border-radius: 16px;
  overflow: hidden;
  padding: 24px 24px 0;
}

.tt-img img {
  display: block;
  width: 100%;
  height: auto;
}

.tt-img-empty {
  width: 100%;
  min-height: 300px;
  background: rgb(228, 226, 220);
  border-radius: 16px;
}

.tt-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tt-case {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tt-case-title {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
}

.tt-case-body,
.tt-case-body-compact {
  display: flex;
  flex-direction: column;
}

.tt-case-body {
  gap: 32px;
}

.tt-case-media {
  width: 100%;
}

.tt-case-media > img {
  display: block;
  width: 100%;
  height: auto;
}

.tt-quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin: 0;
  padding: 32px 40px;
}

.tt-quote-avatar {
  width: 100px;
  height: 100px;
  border: 3px solid #252525;
  border-radius: 50%;
  object-fit: cover;
}

.tt-quote-text {
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: #252525;
  max-width: 460px;
}

.tt-quote-author {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}

.tt-quote-link {
  color: inherit;
  text-decoration: none;
}

.tt-quote-link:hover,
.tt-quote-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.tt-case-body-compact {
  gap: 8px;
}

.tippy-page .tippy-lottie {
  display: block;
  width: 100%;
  aspect-ratio: 640 / 152;
  height: auto;
}

.tippy-page .tippy-character-media {
  padding: 0 24px;
}

.tippy-page .tippy-chat-swap {
  position: relative;
  width: min(100%, 384px);
  height: 368px;
  aspect-ratio: 768 / 736;
  display: grid;
  place-items: center;
  margin: 0 auto;
  background: #fff;
  border: 3px solid #252525;
  border-radius: 16px;
  overflow: hidden;
}

.tippy-page .tippy-chat-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Tippy Motion Preferences ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .tippy-page .tippy-chat-swap {
    height: auto;
  }
}

.skyeng-page .skyeng-old-gallery {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  width: min(100%, 720px);
  margin: 0 auto;
}

.skyeng-page .skyeng-old-gallery-item {
  width: calc((100% - 32px) / 3);
  background: #252525;
  border: 3px solid #252525;
  border-radius: 16px;
  overflow: hidden;
}

.skyeng-page .skyeng-old-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

.skyeng-page .skyeng-dino {
  display: block;
  width: min(100%, 375px);
  aspect-ratio: 375 / 246;
  height: auto;
  margin: 0 auto;
}

.skyeng-page .skyeng-stack-wrap {
  --skyeng-stage-scale: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 700px;
  height: 497px;
  margin: 0 auto;
}

.skyeng-page .skyeng-stack-viewport {
  position: relative;
  width: 542px;
  height: 497px;
}

.skyeng-page .skyeng-stack {
  --skyeng-stage-width: 542px;
  --skyeng-stage-height: 497px;
  --skyeng-stage-radius: 16px;
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: hidden;
  background: #fff;
  border: 3px solid #252525;
  border-radius: var(--skyeng-stage-radius);
  width: var(--skyeng-stage-width);
  height: var(--skyeng-stage-height);
  transform: translate(-50%, -50%);
  transition: none;
}

.skyeng-page .skyeng-stack.is-ready {
  transition:
    width 0.65s cubic-bezier(0.1, 1.3, 0.64, 1),
    height 0.65s cubic-bezier(0.1, 1.3, 0.64, 1),
    border-radius 0.65s cubic-bezier(0.1, 1.3, 0.64, 1);
}

.skyeng-page .skyeng-stack-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skyeng-page .skyeng-stack-item img {
  display: block;
  flex-shrink: 0;
  width: var(--skyeng-item-width, auto);
  height: var(--skyeng-item-height, auto);
}

.skyeng-page .skyeng-stack-item.is-active {
  opacity: 1;
}

/* ── Case Responsive ──────────────────────────────── */
/* mobile: 480px */
@media (max-width: 480px) {
  .tt-main {
    gap: 64px;
  }

  .tt-case-title {
    font-size: 24px;
  }

  .tt-quote {
    padding: 32px 0;
  }

}

@media (max-width: 768px) {
  #constellation {
    display: none;
  }

  .skyeng-page .skyeng-dino {
    display: none;
  }

  .skyeng-page .skyeng-stack-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    height: calc(499px * var(--skyeng-stage-scale));
    overflow: visible;
  }

  .skyeng-page .skyeng-stack-viewport {
    width: calc(var(--skyeng-stage-base-width, 542px) * var(--skyeng-stage-scale));
    height: calc(var(--skyeng-stage-base-height, 499px) * var(--skyeng-stage-scale));
  }

  .skyeng-page .skyeng-stack {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(var(--skyeng-stage-scale));
    transform-origin: center center;
  }
}

/* ── TripleTen plain page ─────────────────────────── */
body.tt-plain-body {
  background: #e8e5df;
  background-image: radial-gradient(circle, rgba(37, 37, 37, 0.12) 0.8px, transparent 0.9px);
  background-size: 18px 18px;
  color: #111;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.tt-plain-body #constellation,
.tt-plain-body svg {
  display: none;
}

.tt-plain-body .work-wrap {
  pointer-events: auto;
}

.tt-plain-nav {
  padding: 10px 12px 0;
}

.tt-plain-nav .work-back {
  opacity: 1;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.tt-plain-main {
  max-width: none;
  padding: 0 12px 96px;
  gap: 0;
}

.tt-plain-topline {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding: 0 0 18px;
  border-bottom: 1px solid #252525;
}

.tt-plain-brand,
.tt-plain-marquee,
.tt-plain-meta,
.tt-plain-kicker,
.tt-plain-spec-label,
.tt-plain-case-number,
.tt-plain-body .tt-sub-label {
  font-size: 17px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.tt-plain-brand {
  font-size: clamp(34px, 4vw, 60px);
}

.tt-plain-marquee,
.tt-plain-meta {
  max-width: 920px;
}

.tt-plain-meta {
  text-align: right;
}

.tt-plain-body .tt-intro-group {
  gap: 0;
  padding-top: 10px;
}

.tt-plain-hero {
  min-height: 66vh;
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
  border-bottom: 1px solid #252525;
}

.tt-plain-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 24px 36px 0;
}

.tt-plain-kicker {
  margin-bottom: 18px;
}

.tt-plain-title {
  font-size: clamp(54px, 7vw, 104px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.08em;
  max-width: 5ch;
}

.tt-plain-body .tt-intro {
  min-width: 0;
  border-left: 1px solid #252525;
  padding-left: 24px;
}

.tt-plain-hero-media {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #ddd9d2;
}

.tt-plain-hero-media video {
  filter: grayscale(1) contrast(1.1);
}

.tt-plain-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid #252525;
}

.tt-plain-spec {
  min-height: 220px;
  padding: 18px 16px 28px 0;
}

.tt-plain-spec:not(:first-child) {
  border-left: 1px solid #252525;
  padding-left: 16px;
}

.tt-plain-spec-label {
  margin-bottom: 10px;
}

.tt-plain-case {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 0;
  border-bottom: 1px solid #252525;
}

.tt-plain-case-head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px 24px 0;
}

.tt-plain-case-number {
  font-size: 54px;
}

.tt-plain-body .tt-case-title {
  font-size: clamp(34px, 4.8vw, 68px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.tt-plain-body .tt-case-body {
  gap: 0;
  border-left: 1px solid #252525;
}

.tt-plain-body .tt-sub,
.tt-plain-body .tt-quote,
.tt-plain-body .tt-case-body > .tt-p,
.tt-plain-body .tt-case-body > .tt-img-empty {
  padding: 18px 0 22px 20px;
  border-top: 1px solid #252525;
}

.tt-plain-body .tt-case-body > :first-child {
  border-top: 0;
}

.tt-plain-body .tt-sub {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.tt-plain-body .tt-sub-label {
  font-weight: 500;
}

.tt-plain-body .tt-p,
.tt-plain-body .tt-quote-text {
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.tt-plain-body .tt-quote {
  align-items: flex-start;
  text-align: left;
  gap: 14px;
  margin: 0;
}

.tt-plain-body .tt-quote-avatar {
  width: 72px;
  height: 72px;
  border: 1px solid #252525;
  border-radius: 0;
}

.tt-plain-body .tt-quote-text {
  max-width: 30ch;
  color: #111;
  font-style: normal;
}

.tt-plain-body .tt-img-empty,
.tt-plain-body .entry-img-plain {
  border: 1px solid #252525;
  border-radius: 0;
  background: #ddd9d2;
}

.tt-plain-body .tt-img-empty {
  min-height: 340px;
}

/* ── Plain Responsive ─────────────────────────────── */
/* small desktop / tablet landscape: 1024px */
@media (max-width: 1024px) {
  .tt-plain-topline,
  .tt-plain-specs,
  .tt-plain-hero,
  .tt-plain-case,
  .tt-plain-body .tt-sub {
    grid-template-columns: 1fr;
  }

  .tt-plain-meta {
    text-align: left;
  }

  .tt-plain-body .tt-intro,
  .tt-plain-body .tt-case-body,
  .tt-plain-spec:not(:first-child) {
    border-left: 0;
    padding-left: 0;
  }

  .tt-plain-case-head,
  .tt-plain-body .tt-sub,
  .tt-plain-body .tt-quote,
  .tt-plain-body .tt-case-body > .tt-p,
  .tt-plain-body .tt-case-body > .tt-img-empty {
    padding-left: 0;
  }

  .tt-plain-body .tt-intro {
    padding-top: 18px;
  }
}

/* small tablet / large mobile: 640px */
@media (max-width: 640px) {
  .tt-plain-main {
    padding: 0 10px 72px;
  }

  .tt-plain-brand,
  .tt-plain-marquee,
  .tt-plain-meta,
  .tt-plain-kicker,
  .tt-plain-spec-label,
  .tt-plain-case-number,
  .tt-plain-body .tt-sub-label {
    font-size: 15px;
  }

  .tt-plain-body .tt-p,
  .tt-plain-body .tt-quote-text {
    font-size: 18px;
    line-height: 1.14;
  }

  .tt-plain-body .tt-img-empty {
    min-height: 220px;
  }
}
