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

@font-face {
  font-family: "NB International";
  src: url("./NB%20International%20Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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;
}

#scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: #252525;
  z-index: 9999;
  pointer-events: none;
}

body.work-body #scroll-indicator {
  height: 3px;
}

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

.site-logo img {
  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: translateY(0) scale(1);
}

.home-page .site-logo {
  top: 0;
  left: 0;
  opacity: 0;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  #scroll-indicator {
    transition: none !important;
  }

  .site-logo {
    transition: none;
  }
}

/* ── Constellation background canvas ──────────────── */
#constellation {
  display: none;
}

/* 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;
  pointer-events: none; /* let clicks pass to canvas except on text/links */
}

/* re-enable pointer events on actual interactive content */
.work-wrap h1, .work-wrap h2, .work-wrap p,
.work-wrap a, .work-wrap img {
  pointer-events: auto;
}

/* ── 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-photo-legacy {
  display: none;
  border: 0;
  border-radius: 32% 68% 58% 42% / 46% 38% 62% 54%;
}

.bio-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  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 h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.entry-text h2 .star,
.up-next-link .star,
.tt-up-next-lead .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;
}

.entry-text h2 {
  margin-left: -34px;
}

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

.entry-text h2:hover .star .star-arrow,
.up-next-link:hover .star .star-arrow,
.up-next-link:focus-visible .star .star-arrow,
.tt-up-next-lead:hover .star .star-arrow,
.tt-up-next-lead:focus-within .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 .star::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 3px solid #4760FF;
  border-radius: 999px;
  background: radial-gradient(circle at 55% 45%, #9CD303 0 32%, transparent 34%);
  opacity: 0;
  transform: scale(0.35);
  transition: opacity 140ms ease, transform 180ms ease;
}

.concept-sessions-entry .entry-text h2:hover .star {
  animation: none;
  transform: none;
  font-size: 0;
}

.concept-sessions-entry .entry-text h2:hover .star .star-arrow {
  display: none;
}

.concept-sessions-entry .entry-text h2:hover .star::after {
  opacity: 1;
  transform: scale(1);
}

@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-role {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.6;
}

.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;
  transform: scale(1.004);
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.skyeng-opening-frame.is-active {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
}

.skyeng-opening-frame.is-leaving {
  opacity: 0;
  transform: scale(0.998);
  transition:
    opacity 0.34s ease-out,
    transform 0.34s ease-out;
}

.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;
  transform: scale(1.004);
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.concept-sessions-frame.is-active {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
}

.concept-sessions-frame.is-leaving {
  opacity: 0;
  transform: scale(0.998);
  transition:
    opacity 0.34s ease-out,
    transform 0.34s ease-out;
}

.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);
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 780px) {
  .site-logo {
    --logo-final-top: 32px;
    --logo-final-left: 32px;
    --logo-final-size: 48px;
  }

  .work-main {
    padding: 24px 24px 120px;
    gap: 64px;
  }

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

@media (max-width: 480px) {
  .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;
}

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

.tt-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.tt-intro-role {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.6;
}

.tt-p {
  font-size: 16px;
  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-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: calc(0.18em + 2px);
  row-gap: 0;
}

.tt-up-next-lead {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-left: -34px;
}

.tt-up-next-lead .star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: #4760FF;
  font-size: 26px;
  line-height: 1;
  animation: spin-star 2s linear infinite;
}

.tt-p a.up-next-link {
  display: inline;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

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

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

.is-hidden {
  display: none !important;
}

.tt-case-body.tt-case-body-final {
  margin-bottom: -96px;
}

.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: 12px;
}

.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 {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

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

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

.tt-sub {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tt-quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin: 16px 0;
  padding: 16px 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: rgba(0, 0, 0, 0.45);
  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-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 0;
}

.tt-divider .star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #4760FF;
  font-size: 26px;
  line-height: 1;
  animation: spin-star 2s linear infinite;
}

@media (max-width: 480px) {
  .tt-main {
    gap: 64px;
  }

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

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

/* ── 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: "NB International", "Helvetica Neue", Helvetica, Arial, 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;
}

@media (max-width: 980px) {
  .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;
  }
}

@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;
  }
}
