/* ======================================================================
   Fonts
   ====================================================================== */
@font-face {
  font-family: 'Helvetica Now Display';
  src: url('fonts/helvetica-now/HelveticaNowDisplay-Regular.woff2') format('woff2'),
       url('fonts/helvetica-now/HelveticaNowDisplay-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Helvetica Now Display';
  src: url('fonts/helvetica-now/HelveticaNowDisplay-Medium.woff2') format('woff2'),
       url('fonts/helvetica-now/HelveticaNowDisplay-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-foreground: #000;
  --color-foreground-faded: #777;
  --color-background: #fff;
  --color-card: #f3f3f3;
  --color-dark: #000;
  --color-dark-text: #efefef;
  --color-dark-muted: #999;
  --color-dark-line: #242424;
  --frame-bg: #fff;
  --gap: 8px;
  --radius: 4px;
  --font-sans: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html,
body {
  width: 100%;
  min-height: 100%;
  overflow: auto;
  background: var(--frame-bg);
  color: var(--color-foreground);
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 0;
  font-weight: 400;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  opacity: 0;
  animation: pageIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video { max-width: 100%; }

:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.faded { color: var(--color-foreground-faded); }
.muted { color: var(--color-dark-muted); }

/* ======================================================================
   Split frame
   ====================================================================== */
.frame {
  background: var(--frame-bg);
}

.page {
  width: 100%;
}

.col {
  width: 100%;
}

@media (min-width: 700px) {
  html.js-ready.is-split,
  html.js-ready.is-split body {
    height: 100%;
    overflow: hidden;
  }

  html.js-ready.is-split .frame {
    position: fixed;
    inset: 0;
    overflow: hidden;
  }

  html.js-ready.is-split .page {
    position: absolute;
    inset: 0;
  }

  html.js-ready.is-split .col {
    position: absolute;
    top: 0;
    left: 0;
    width: 50vw;
    height: 100vh;
    will-change: transform;
  }

  html.js-ready.is-split .col-left {
    transform: translate3d(var(--gap), 0, 0) scale(calc((50vw - 12px) / 50vw));
    transform-origin: 0 50vh;
  }

  html.js-ready.is-split .col-right {
    transform: translate3d(calc(50vw + 4px), 0, 0) scale(calc((50vw - 12px) / 50vw));
    transform-origin: 0 50vh;
  }
}

.track {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  will-change: gap;
}

.page .track > :first-child { margin-top: var(--gap); }

/* ======================================================================
   Work column
   ====================================================================== */
.case {
  display: flex;
  flex-direction: column;
  background: transparent;
}

.case .gallery {
  aspect-ratio: 1904 / 1292;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-card);
}

.gallery-track {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 420ms cubic-bezier(.65, .05, .36, 1);
  will-change: transform;
}

.slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
  background: #ddd;
}

.slide img,
.slide video,
.asset-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case[data-tint="a"] .slide { background-image: linear-gradient(135deg, #b89a6b, #4a3a28); }
.case[data-tint="b"] .slide { background-image: linear-gradient(135deg, #8ab0cf, #2a3b55); }
.case[data-tint="c"] .slide { background-image: linear-gradient(135deg, #3a3a3a, #101010); }
.case[data-tint="d"] .slide { background-image: linear-gradient(135deg, #a5b89a, #3e4a38); }
.case[data-tint="e"] .slide { background-image: linear-gradient(135deg, #d9d4c4, #6a665b); }
.case[data-tint="f"] .slide { background-image: linear-gradient(135deg, #a0b0c0, #2a3640); }
.case[data-tint="g"] .slide { background-image: linear-gradient(135deg, #d9a890, #5a3a2a); }

.case-meta {
  background: var(--color-background);
  padding: 6px 0 0;
}

.grid-case,
.accordion-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 8px;
  padding: 0 12px;
}

.top-bar {
  align-items: start;
  padding-top: 2px;
}

.top-bar .arrows {
  grid-column: 1 / span 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: -12px;
}

.arrow,
.read-more {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: #e9e9e9;
  color: #1a1a1a;
  -webkit-backdrop-filter: blur(23px);
  backdrop-filter: blur(23px);
  transition: background 180ms ease, opacity 180ms ease;
}

.arrow:hover,
.read-more:hover { background: #ddd; }
.arrow svg { width: 10px; height: 10px; }

.top-bar .title-and-client {
  grid-column: 3 / span 4;
  display: flex;
  flex-direction: column;
}
.title-and-client .title { white-space: nowrap; }
.top-bar .category { grid-column: 7 / span 3; }
.top-bar .pagination { grid-column: 10 / span 2; padding-left: 30px; white-space: nowrap; }
.top-bar .year { grid-column: 12 / span 1; text-align: right; white-space: nowrap; margin-right: -12px; }

.accordion-container {
  position: relative;
  padding-top: 0;
}

.accordion {
  grid-column: 3 / span 8;
  overflow: visible;
}

.accordion .content {
  height: 0;
  overflow: hidden;
}

.accordion .description {
  color: var(--color-foreground);
  column-count: 2;
  column-gap: 16px;
  column-fill: balance;
  padding-right: 8px;
  padding-bottom: 16px;
}

.accordion .description.two-col {
  column-count: unset;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
}

.read-more {
  position: relative;
  grid-column: 3;
  margin-left: -2px;
  overflow: visible;
  font-size: 0;
  color: transparent;
}

.read-more .line {
  position: absolute;
  width: 12px;
  height: 1px;
  background: #1a1a1a;
}

/* ======================================================================
   Studio column
   ====================================================================== */
.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-background);
}

.card.dark,
.contact {
  background: var(--color-dark);
  color: var(--color-dark-text);
}

.intro {
  aspect-ratio: 1.42;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 12px;
  background: #000;
  color: var(--color-dark-text);
}

.intro-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.intro-nav {
  display: flex;
  gap: 12px;
  color: var(--color-dark-muted);
}

.intro-label {
  color: var(--color-dark-text);
}

.intro-contact-link {
  color: var(--color-dark-muted);
  text-align: right;
}

.intro-nav a,
.intro-contact-link,
.contact-links a,
.row-label a {
  transition: opacity 180ms ease;
}

.intro-nav a:hover,
.intro-contact-link:hover,
.contact-links a:hover,
.row-label a:hover { opacity: 0.55; }

.intro-note {
  position: absolute;
  top: 44px;
  right: 12px;
  width: 220px;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(239, 239, 239, 0.96);
  color: #000;
  z-index: 1;
}

.intro-body {
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.intro-summary {
  max-width: 310px;
  color: var(--color-dark-muted);
}

.intro-title {
  max-width: none;
  color: var(--color-dark-text);
  font-size: 64px;
  line-height: 0.9;
  font-weight: 400;
  white-space: nowrap;
}

.intro-bottom {
  grid-row: 2 / 4;
  align-self: end;
}

.intro-bio {
  max-width: 100%;
  color: var(--color-dark-text);
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 400;
}

.intro-bio a {
  color: inherit;
}

.intro-bio .glow-link {
  color: #5e5e5e;
  text-decoration: none;
  background: linear-gradient(
    90deg,
    #5e5e5e 0%,
    #888 15%,
    #bbb 44%,
    #fff 50%,
    #bbb 56%,
    #888 85%,
    #5e5e5e 100%
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

.intro-bio .glow-link:hover {
  color: transparent;
  animation: shimmer-light 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes shimmer-light {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.card.media {
  aspect-ratio: 1904 / 1292;
  background: var(--color-card);
}

.portrait-card {
  aspect-ratio: 1904 / 1292;
}

.studio,
.contact {
  padding: 0 0 24px;
}

.row-label {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 8px;
  padding: 9px 12px;
  color: var(--color-dark-muted);
}

.row-label .left {
  grid-column: 1 / span 6;
  color: var(--color-dark-text);
}

.row-label .right {
  grid-column: 8 / span 5;
  text-align: right;
}

.label-badge,
.label-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  min-width: 22px;
  padding: 0 5px;
  margin-right: 4px;
  border-radius: 2px;
  vertical-align: middle;
  font-size: 11px;
  line-height: 1;
}

.label-badge { background: #efefef; color: #000; }
.label-num { background: #777; color: #000; border-radius: 999px; }

.side-padding {
  padding: 9px 12px 20px;
}

.skills-card {
  padding-bottom: 10px;
}

.skills-section {
  padding-bottom: 8px;
}

.text-large {
  color: var(--color-dark-text);
  font-size: 36px;
  line-height: 110%;
  letter-spacing: 0;
  font-weight: 400;
}

.studio-copy {
  max-width: 34em;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 8px 14px;
  border: 1px solid var(--color-dark-line);
  border-radius: 6px;
  background: #202020;
  color: var(--color-dark-text);
}

.contact-card {
  min-height: min(560px, calc(100vh - 160px));
  display: flex;
  flex-direction: column;
  padding-bottom: 12px;
}

.contact-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 12px 0;
}

.contact-title {
  max-width: 860px;
  color: var(--color-dark-text);
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: 0;
}

.desktop-break {
  display: block;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: auto;
  padding-bottom: 32px;
}

.contact-col {
  color: var(--color-dark-muted);
  font-size: 16px;
  line-height: 20px;
}

.contact-col p + p {
  margin-top: 5px;
}

.contact-strong {
  color: var(--color-dark-text);
}

.contact-gap {
  margin-top: 22px;
}

.contact-col a,
.contact-social a,
.contact-link-disabled {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 180ms ease;
}

.contact-col a:hover,
.contact-social a:hover {
  color: var(--color-dark-text);
}

.contact-link-disabled {
  text-decoration-color: currentColor;
}

.contact-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-end;
  margin: 0 12px;
  color: var(--color-dark-muted);
  font-size: 16px;
  line-height: 20px;
}

.contact-footer .meta {
  white-space: nowrap;
}

.contact-social {
  display: flex;
  gap: 20px;
}

.contact-time {
  flex: 0 0 auto;
}

.contact-footer .meta:last-child {
  text-align: right;
}

/* ======================================================================
   Cursor follow
   ====================================================================== */
.cursor-follow {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  padding: 6px 12px;
  border-radius: var(--radius);
  background: #e9e9e9;
  color: #1a1a1a;
  -webkit-backdrop-filter: blur(23px);
  backdrop-filter: blur(23px);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cursor-follow.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

body.cursor-hidden,
body.cursor-hidden * { cursor: none; }

/* ======================================================================
   Mobile toggle
   ====================================================================== */
.mobile-tabs {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 9998;
  min-width: 136px;
  height: 41px;
  transform: translateX(-50%);
  padding: 0 16px;
  border-radius: 10px;
  background: rgba(19, 19, 19, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.mobile-tabs-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  height: 100%;
}

.mobile-tabs-indicator { display: none; }

.mobile-tab {
  position: relative;
  z-index: 1;
  color: #fff;
  opacity: 0.5;
  font-size: 13.5px;
  line-height: 15.5px;
  white-space: nowrap;
  transition: opacity 180ms ease;
}

.mobile-tab.active { opacity: 1; }

/* ======================================================================
   Mobile (<700px)
   ====================================================================== */
@media (max-width: 699px) {
  html,
  body {
    height: auto;
    overflow: auto;
    font-size: 13.5px;
    line-height: 15.5px;
  }

  .frame,
  .page,
  .col {
    position: static;
    width: 100%;
    height: auto;
    transform: none !important;
    transform-origin: 0 0 !important;
  }

  .track {
    gap: var(--gap) !important;
    padding: 0 8px;
  }

  .page .track > :first-child { margin-top: 0; }
  .mobile-tabs { display: flex; }
  .cursor-follow { display: none !important; }
  .col-right:not(.visible),
  .col-left.hidden { display: none; }

  .case-meta { padding: 0; }

  .top-bar.grid-case {
    grid-template-columns: repeat(12, 1fr);
    padding: 8px 0 0;
  }

  .top-bar .arrows,
  .top-bar .pagination { display: none; }
  .top-bar .title-and-client { grid-column: 1 / span 5; }
  .top-bar .category { grid-column: 6 / span 4; }
  .top-bar .year { grid-column: 11 / span 2; margin-right: 0; }

  .accordion-container {
    display: block;
    padding: 0;
  }

  .accordion .description,
  .accordion .description.two-col {
    display: block;
    column-count: 1;
    padding-right: 0;
  }

  .read-more {
    display: flex;
    margin-top: 8px;
  }

  .intro {
    min-height: min(480px, calc(100svh - 220px));
    aspect-ratio: auto;
    padding: 12px 8px;
  }

  .intro-note,
  .intro-nav {
    display: none;
  }

  .intro-body { gap: 18px; }
  .intro-title {
    font-size: 54px;
    line-height: 0.92;
    max-width: none;
  }

  .intro-bio {
    font-size: 26px;
    line-height: 1.08;
  }

  .text-large {
    font-size: 22px;
    line-height: 110%;
  }

  .row-label {
    grid-template-columns: repeat(6, 1fr);
    padding: 9px 8px;
  }

  .row-label .left { grid-column: 1 / span 3; }
  .row-label .right { grid-column: 4 / span 3; }

  .side-padding { padding: 9px 8px 20px; }

  .skills-card {
    padding-bottom: 8px;
  }

  .skills-section {
    padding-bottom: 6px;
  }

  .skill-tag {
    min-height: 28px;
    padding: 7px 11px;
  }

  .contact-card {
    min-height: min(520px, calc(100svh - 140px));
    padding-bottom: 0;
  }

.contact-content {
    padding: 14px 8px 0;
  }

  .contact-title {
    font-size: 26px;
    line-height: 1.08;
  }

  .desktop-break {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 20px;
  }

  .contact-col {
    font-size: 16px;
    line-height: 20px;
  }

  .contact-gap {
    margin-top: 12px;
  }

  .label-badge,
  .label-num {
    height: 18px;
    min-width: 18px;
    font-size: 9px;
  }

  .contact-footer {
    gap: 12px;
    margin: 0 8px;
    padding-bottom: 64px;
    font-size: 16px;
    line-height: 20px;
  }

  .contact-social {
    grid-column: 1 / -1;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .intro-title {
    font-size: 36px;
  }

  .intro-bio {
    font-size: 22px;
  }
}

/* ======================================================================
   Tablet split (700px-1199px)
   ====================================================================== */
@media (min-width: 700px) and (max-width: 1199px) {
  html,
  body {
    font-size: 10px;
    line-height: 12px;
  }

  .grid-case,
  .accordion-container,
  .row-label,
  .side-padding {
    padding-left: 9px;
    padding-right: 9px;
  }

  .top-bar .arrows {
    gap: 4px;
    margin-left: -9px;
  }

  .arrow,
  .read-more {
    width: 14px;
    height: 14px;
  }

  .arrow svg {
    width: 8px;
    height: 8px;
  }

  .read-more .line {
    width: 8px;
  }

  .label-badge,
  .label-num {
    height: 14px;
    min-width: 14px;
    font-size: 8px;
    padding: 0 3px;
  }

  .intro {
    padding: 9px;
  }

  .intro-note {
    top: 35px;
    right: 9px;
    width: 172px;
    min-height: 50px;
    padding: 8px;
  }

  .intro-title {
    font-size: 52px;
  }

  .intro-bio {
    font-size: 28px;
  }

  .contact-card {
    min-height: min(500px, calc(100vh - 160px));
  }

  .contact-content {
    padding-top: 14px;
  }

  .contact-title {
    font-size: 28px;
  }

  .contact-col,
  .contact-footer {
    font-size: 16px;
    line-height: 20px;
  }

  .contact-grid {
    padding-bottom: 24px;
  }

  .text-large {
    font-size: 23px;
    line-height: 110%;
  }

  .top-bar .pagination {
    padding-left: 18px;
  }
}
