/* ==========================================================================
   Benni Sinaga — Portfolio
   Home & About follow the minimal white layout from the Figma reference.
   Case studies follow the sidebar + narrow column layout (joesakjf.framer.website).
   ========================================================================== */

@font-face {
  font-family: "DeFonte Reduced";
  src: url("../fonts/DeFonteReduced-DemiGras.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #222;
  --ink-strong: #111;
  --muted: #5c5c5c;
  --faint: rgba(92, 92, 92, 0.6);
  --label: #969696;
  --line: #ececec;
  --surface: #f5f5f5;
  --bg: #fff;
  --available: #00a281;
  --accent: #037f7f;
  --alert: #d92d20;
  --header-bg: rgba(255, 255, 255, 0.86);
  --callout-bg: #fafafa;
  --callout-strong-bg: #000;
  --callout-strong-ink: #fff;
  --shadow: rgba(0, 0, 0, 0.12);
  color-scheme: light;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Segoe Print", cursive;

  --page: 1280px;
  --gutter: 40px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark theme: only when the visitor picks it with the toggle (light is the default) */
:root[data-theme="dark"] {
  --ink: #ededed;
  --ink-strong: #f5f5f5;
  --muted: #a3a3a3;
  --faint: rgba(163, 163, 163, 0.75);
  --label: #8a8a8a;
  --line: #262626;
  --surface: #171717;
  --bg: #000;
  --available: #2fcf9f;
  --alert: #ff6b5e;
  --header-bg: rgba(0, 0, 0, 0.8);
  --callout-bg: #141414;
  --callout-strong-bg: #f5f5f5;
  --callout-strong-ink: #000;
  --shadow: rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
  color: var(--ink);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
ul,
ol {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Shared bits ---------- */

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 22.4px;
  color: var(--muted);
  transition: color 0.2s var(--ease), transform 0.16s var(--ease);
}

.arrow-link svg {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform 0.25s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
.arrow-link:hover {
  color: var(--ink);
}

.arrow-link:hover svg {
  transform: translate(2px, -2px);
}
}

.arrow-link--ink {
  color: var(--ink);
}

.arrow-link--lg {
  font-size: 16px;
  line-height: 25.6px;
}

/* ---------- Heatmap wordmark (DeFonte + Paper heatmap shader in heat.js) ---------- */

.heat {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.heat__text {
  display: block;
  font-family: "DeFonte Reduced", var(--font);
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
  /* fallback before the shader is ready, or without WebGL */
  background: linear-gradient(180deg, #ff4c00 0%, #ff991e 30%, #ffe679 50%, #6bd7ff 70%, #2f63e7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: opacity 0.6s var(--ease);
}

.heat__stage {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: opacity 0.8s var(--ease);
}

.heat__stage canvas {
  display: block;
}

.heat--ready .heat__text {
  opacity: 0;
}

.heat--ready .heat__stage {
  opacity: 1;
}

.heat--lg .heat__text {
  font-size: 34px;
}

/* ---------- Theme switch ---------- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
  margin: -4px 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
}

.theme-toggle__track {
  position: relative;
  display: block;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.16s var(--ease);
}

.theme-toggle__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #e08a00;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.theme-toggle svg {
  width: 12px;
  height: 12px;
  grid-area: 1 / 1;
}

.theme-toggle .icon-moon {
  display: none;
}

.theme-toggle:hover .theme-toggle__track {
  border-color: var(--faint);
}

:root[data-theme="dark"] .theme-toggle__track {
  background: #2a2a2a;
  border-color: #3a3a3a;
}

:root[data-theme="dark"] .theme-toggle__knob {
  transform: translateX(20px);
  background: #111;
  color: #f5f5f5;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.case-aside__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 12px;
}

.case-aside__tools {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

@media (max-width: 809px) {
  .case-aside__tools {
    width: auto;
  }
}

/* ---------- Language dropdown ---------- */

.lang-menu {
  position: relative;
}

.lang-menu__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px 5px 8px;
  margin: -5px 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.16s var(--ease);
}

.lang-menu__globe {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.lang-menu__btn:hover {
  border-color: var(--faint);
}

.lang-menu__btn[aria-expanded="true"],
.lang-menu__btn:focus-visible {
  border-color: #3b6fd8;
  box-shadow: 0 0 0 3px rgba(59, 111, 216, 0.15);
  outline: none;
}

.lang-menu__chevron {
  width: 12px;
  height: 12px;
  color: var(--muted);
  transition: transform 0.25s var(--ease);
}

.lang-menu__btn[aria-expanded="true"] .lang-menu__chevron {
  transform: rotate(180deg);
}

.lang-menu__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 30;
  /* hugs its content: as wide as the longest name plus its code */
  width: max-content;
  min-width: 148px;
  padding: 5px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 40px rgba(15, 23, 42, 0.12);
  transform-origin: top right;
  animation: lang-menu-in 0.22s var(--ease);
}

.lang-menu__panel[hidden] {
  display: none;
}

.lang-menu__panel.is-instant {
  animation: none;
}

.lang-menu__panel.is-closing {
  pointer-events: none;
  animation: lang-menu-out 0.12s var(--ease) forwards;
}

@keyframes lang-menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
  }
}

@keyframes lang-menu-out {
  to {
    opacity: 0;
  }
}

.lang-menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lang-menu__list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 8px 8px 12px;
  border-radius: 11px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.lang-menu__name {
  flex: 1;
}

.lang-menu__code {
  padding: 1px 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--faint);
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.lang-menu__list a:hover,
.lang-menu__list a:focus-visible,
.lang-menu__list a[aria-current] {
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.lang-menu__list a:hover .lang-menu__code,
.lang-menu__list a:focus-visible .lang-menu__code,
.lang-menu__list a[aria-current] .lang-menu__code {
  background: var(--bg);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  color: var(--ink);
}

.lang-menu__list a[aria-current] .lang-menu__name {
  font-weight: 500;
}

.case-aside .lang-menu__panel {
  left: 0;
  right: auto;
  transform-origin: top left;
}

/* ---------- Site header (home / about) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1230px;
  height: 73px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  box-sizing: content-box;
}

.site-header__mark {
  font-size: 14px;
  line-height: 22.4px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

/* ---------- Intro / hero ---------- */

.intro {
  width: min(805px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding-top: 120px;
}

.profile {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.profile__id {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile__avatar {
  width: 60px;
  height: 60px;
  flex: none;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  /* the illustration has a transparent background: give it a warm tile in both themes */
  background: #f4efe8;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.profile__avatar svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- Avatar dog: tail wags now and then; sits up on hover or tap ---------- */

.avatar-art .dog-lie,
.avatar-art .dog-sit {
  transform-box: view-box;
  transform-origin: 206px 140px;
}

.avatar-art .dog-lie {
  transition: opacity 0.15s var(--ease), transform 0.2s var(--ease);
}

.avatar-art .dog-sit {
  opacity: 0;
  transform: translateY(12px) scale(0.94);
  /* lying back down is quicker than sitting up */
  transition: opacity 0.12s var(--ease), transform 0.2s var(--ease);
}

.is-sitting .avatar-art .dog-lie {
  opacity: 0;
  transform: translateY(6px) scale(0.97);
}

.is-sitting .avatar-art .dog-sit {
  opacity: 1;
  transform: none;
  transition: opacity 0.15s var(--ease), transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (hover: hover) and (pointer: fine) {
  .profile:hover .avatar-art .dog-lie,
  .site-footer__person:hover .avatar-art .dog-lie {
    opacity: 0;
    transform: translateY(6px) scale(0.97);
  }

  .profile:hover .avatar-art .dog-sit,
  .site-footer__person:hover .avatar-art .dog-sit {
    opacity: 1;
    transform: none;
    transition: opacity 0.15s var(--ease), transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}

.avatar-art .dog-tail {
  transform-box: view-box;
}

.avatar-art .dog-tail--lie {
  transform-origin: 262px 112px;
  animation: dog-wag 3.2s ease-in-out infinite;
}

.avatar-art .dog-tail--sit {
  transform-origin: 240px 116px;
  animation: dog-wag-happy 0.3s ease-in-out infinite alternate;
}

@keyframes dog-wag {
  0%, 60%, 100% { transform: rotate(0); }
  66% { transform: rotate(14deg); }
  72% { transform: rotate(-8deg); }
  78% { transform: rotate(12deg); }
  84% { transform: rotate(-4deg); }
}

@keyframes dog-wag-happy {
  from { transform: rotate(-10deg); }
  to { transform: rotate(16deg); }
}

.profile__name {
  font-size: 18px;
  line-height: 28.8px;
  color: var(--ink);
}

.profile__role {
  font-size: 16px;
  line-height: 25.6px;
  font-weight: 300;
  color: var(--muted);
  white-space: nowrap;
}

.role-rotator {
  position: relative;
  display: inline-block;
  vertical-align: bottom;
  height: 25.6px;
  overflow: hidden;
}

/* the suffix slides (transform, via JS) instead of animating the box width */
.role-suffix {
  display: inline-block;
  white-space: pre;
}

.role-rotator__word {
  display: inline-block;
  font-weight: 450;
  color: var(--ink);
  white-space: nowrap;
}

/* With JS the words stack and slide; without it only the first shows */
.js .role-rotator__word {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translateY(100%);
  filter: blur(4px);
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease), filter 0.45s var(--ease);
}

.js .role-rotator__word.is-active {
  position: relative;
  opacity: 1;
  transform: none;
  filter: none;
}

.js .role-rotator__word.is-leaving {
  opacity: 0;
  transform: translateY(-100%);
  filter: blur(4px);
}

.role-rotator__word:not(.is-active) {
  display: none;
}

.js .role-rotator__word:not(.is-active) {
  display: inline-block;
}

.wave {
  display: inline-block;
  transform-origin: 70% 75%;
  animation: wave 1.6s ease-in-out 0.8s 1;
}

@media (hover: hover) and (pointer: fine) {
  .profile:hover .wave {
    animation: wave 1.2s ease-in-out 1;
  }
}

@keyframes wave {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}

.profile__email {
  font-size: 16px;
  line-height: 25.6px;
  font-weight: 300;
  color: var(--muted);
}

.profile__email:hover {
  color: var(--ink);
}

.profile__time {
  font-size: 14px;
  line-height: 22px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.profile__time span {
  display: block;
  color: var(--faint);
  font-size: 13px;
  line-height: 18px;
}

.intro__body {
  margin-top: 40px;
}

.intro__title {
  max-width: 600px;
  font-size: 26px;
  line-height: 31.2px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.intro__text {
  margin-top: 20px;
  font-size: 17px;
  line-height: 27.2px;
  font-weight: 300;
  color: var(--muted);
}

.intro__text + .intro__text {
  margin-top: 14px;
}

.intro__text strong {
  font-weight: 300;
  color: var(--ink);
}

.intro__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 40px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 25.6px;
  color: var(--available);
}

.status__dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--available);
}

.status__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--available);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  80%,
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* ---------- Section headings ---------- */

.section {
  width: min(var(--page), 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding-top: 120px;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
  position: relative;
}

.section__title {
  font-size: 16px;
  line-height: 25.6px;
  font-weight: 400;
  color: var(--ink);
}

.section__head .arrow-link {
  position: absolute;
  right: 0;
}

/* ---------- Work grid ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px 30px;
  padding: 0;
  list-style: none;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.work-card__year {
  font-size: 15px;
  line-height: 24px;
  color: var(--faint);
}

.work-card__media {
  position: relative;
  aspect-ratio: 387 / 430;
  overflow: hidden;
  background: var(--surface);
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.5s var(--ease);
}

.work-card a:focus-visible .work-card__media img {
  scale: 1.035;
}

@media (hover: hover) and (pointer: fine) {
  .work-card a:hover .work-card__media img {
    scale: 1.035;
  }
}

.work-card__link {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.work-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.work-card__title {
  font-size: 18px;
  line-height: 28.8px;
  font-weight: 400;
  color: var(--ink);
}

.work-card__title small {
  font-size: 15px;
  color: var(--faint);
  margin-left: 6px;
}

.work-card__desc {
  font-size: 16px;
  line-height: 21.6px;
  font-weight: 300;
  color: var(--muted);
}

.work-card .arrow-link {
  color: var(--ink);
  font-weight: 300;
}

/* ---------- June card (live mesh gradient in june.js) ---------- */

.june-card {
  container-type: size;
  background:
    radial-gradient(120% 80% at 50% 0%, #ffc39f 0%, rgba(255, 195, 159, 0) 60%),
    radial-gradient(90% 70% at 15% 90%, #e6d9f6 0%, rgba(230, 217, 246, 0) 70%),
    radial-gradient(80% 60% at 90% 75%, #ff9d63 0%, rgba(255, 157, 99, 0) 70%),
    #fbf6f1;
  color: #1a1a1a;
}

.june-card__mesh {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.june-card__mesh.is-ready {
  opacity: 1;
}

.june-card__content {
  position: absolute;
  inset: 0;
  padding: 6.8cqw;
  display: flex;
  flex-direction: column;
}

.june-card__meta {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  font-size: 3.1cqw;
  line-height: 1.3;
  font-weight: 450;
}

.june-card__live {
  display: inline-flex;
  align-items: center;
  gap: 1.3cqw;
  padding: 0.7cqw 2cqw 0.7cqw 1.6cqw;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 2.7cqw;
  color: #3a2a20;
}

.june-card__live i {
  position: relative;
  width: 1.5cqw;
  height: 1.5cqw;
  border-radius: 50%;
  background: #ff6a1a;
}

.june-card__live i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #ff6a1a;
  animation: pulse 2s var(--ease) infinite;
}

.june-card__title {
  margin-top: 3.2cqw;
  font-size: 7.6cqw;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #17120e;
}

.june-card__brand {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.june-card__logo {
  width: 58cqw;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 2.4cqw rgba(255, 250, 245, 0.95)) drop-shadow(0 0 6cqw rgba(255, 248, 240, 0.7))
    drop-shadow(0 1.5cqw 3cqw rgba(160, 70, 20, 0.16));
}

.june-card__cta {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 1.6cqw;
  padding: 2.4cqw 4.4cqw;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 1cqw 4cqw rgba(160, 70, 20, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 3cqw;
  font-weight: 500;
  color: #17120e;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.june-card__cta svg {
  width: 3cqw;
  height: 3cqw;
  transition: transform 0.25s var(--ease);
}

.work-card a:focus-visible .june-card__cta {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-0.6cqw);
}

@media (hover: hover) and (pointer: fine) {
  .work-card a:hover .june-card__cta {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-0.6cqw);
  }

  .work-card a:hover .june-card__cta svg {
    transform: translate(0.4cqw, -0.4cqw);
  }
}

/* ---------- UI shots ---------- */

.section__head--split {
  justify-content: space-between;
}

.section__head--split .arrow-link {
  position: static;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 30px;
  padding: 0;
  list-style: none;
}

.shot-card a {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shot-card__media {
  aspect-ratio: 387 / 487.62;
  overflow: hidden;
  background: var(--surface);
}

.shot-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.5s var(--ease);
}

.shot-card a:focus-visible .shot-card__media img {
  scale: 1.04;
}

@media (hover: hover) and (pointer: fine) {
  .shot-card a:hover .shot-card__media img {
    scale: 1.04;
  }
}

.shot-card__title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 22.4px;
  color: var(--faint);
  transition: color 0.2s var(--ease);
}

.shot-card__title svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.shot-card a:hover .shot-card__title {
  color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .shot-card a:hover .shot-card__title svg {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Split sections (Experience, Services) ---------- */

.split {
  display: grid;
  grid-template-columns: 325px minmax(0, 764px);
  justify-content: center;
  gap: 40px 100px;
}

.split__title {
  font-size: 20px;
  line-height: 32px;
  font-weight: 400;
  color: var(--muted);
}

.split__lede {
  margin-top: 5px;
  max-width: 309px;
  font-size: 16px;
  line-height: 25.6px;
  color: var(--faint);
}

.timeline {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 160px;
  gap: 4px 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.timeline__org {
  font-size: 16px;
  line-height: 25.6px;
  color: var(--ink);
}

.timeline__role {
  font-size: 15px;
  line-height: 24px;
  color: var(--muted);
}

.timeline__date {
  font-size: 15px;
  line-height: 24px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 90px;
}

.service {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service__icon {
  width: 44px;
  height: 44px;
  color: var(--ink);
  margin-bottom: 8px;
}

.service__name {
  font-size: 16px;
  line-height: 19.2px;
  font-weight: 400;
  color: var(--ink);
}

.service__label {
  font-size: 15px;
  line-height: 24px;
  color: var(--faint);
}

.service__outcome {
  font-size: 16px;
  line-height: 25.6px;
  color: var(--muted);
}

.service__desc {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.services-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-size: 15px;
  line-height: 24px;
  color: var(--faint);
}

.services-note svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.services-note a {
  color: var(--muted);
}

.services-note a:hover {
  color: var(--ink);
}

/* ---------- About page ---------- */

.about-hero {
  width: min(805px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding-top: 120px;
}

.about-hero__eyebrow {
  font-size: 15px;
  line-height: 24px;
  color: var(--faint);
}

.about-hero__title {
  margin-top: 10px;
  font-size: 26px;
  line-height: 31.2px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.about-hero__title span {
  color: var(--muted);
}

.photo-strip {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 12px;
  width: min(1080px, 100% - 2 * var(--gutter));
  margin: 60px auto 0;
}

.photo-strip figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface);
}

.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-strip figure:nth-child(2) img {
  object-position: 30% 50%;
}

.prose {
  width: min(805px, 100% - 2 * var(--gutter));
  margin: 60px auto 0;
}

.prose p {
  font-size: 17px;
  line-height: 27.2px;
  font-weight: 300;
  color: var(--muted);
}

.prose p + p {
  margin-top: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  width: min(var(--page), 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: 120px 0 80px;
  display: grid;
  grid-template-columns: 408px minmax(0, 749px);
  align-items: center;
  justify-content: center;
  gap: 40px 60px;
}

.site-footer__info {
  display: flex;
  flex-direction: column;
  gap: 70px;
}

.site-footer__person {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.site-footer__headline {
  max-width: 260px;
  font-size: 20px;
  line-height: 26px;
  font-weight: 400;
  color: var(--ink);
}

.site-footer__headline .word {
  display: inline-block;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.site-footer__social .arrow-link {
  font-size: 15px;
  line-height: 24px;
  gap: 3px;
}

.site-footer__legal {
  font-size: 13px;
  line-height: 20.8px;
  color: var(--faint);
}

.polaroids {
  position: relative;
  aspect-ratio: 749 / 600;
}

.polaroid {
  position: absolute;
  margin: 0;
  padding: 3.2% 3.2% 0;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 40px var(--shadow);
  transition: translate 0.6s var(--ease);
}

.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}

.polaroid figcaption {
  padding: 4% 0 5%;
  font-family: var(--font-hand);
  font-size: clamp(15px, 1.6vw, 21px);
  line-height: 1.1;
  color: #333;
}

.polaroid--back {
  left: 6%;
  top: 22%;
  width: 52%;
  transform: rotate(-6deg);
}

.polaroid--front {
  right: 4%;
  top: 4%;
  width: 52%;
  transform: rotate(5deg);
}

@media (hover: hover) and (pointer: fine) {
  .polaroids:hover .polaroid--back {
    translate: -10px 0;
  }

  .polaroids:hover .polaroid--front {
    translate: 10px 0;
  }
}

/* ==========================================================================
   Case study layout
   ========================================================================== */

.case {
  --case-accent: var(--case-accent-light, var(--accent));
  color: var(--ink-strong);
}

:root[data-theme="dark"] .case {
  --case-accent: var(--case-accent-dark, #3ccfcf);
}

.case-aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 272px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10;
}

.case-aside__top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: flex-start;
  font-size: 26px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}

.logo sup {
  font-size: 11px;
  font-weight: 400;
  margin-left: 2px;
  line-height: 1;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 300;
  color: var(--ink-strong);
}

.back-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .back-link:hover svg {
    transform: translateX(-3px);
  }
}

.meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meta div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta dt {
  font-size: 14px;
  line-height: 19.6px;
  font-weight: 300;
  color: var(--label);
}

.meta dd {
  margin: 0;
  white-space: nowrap;
  font-size: 14px;
  line-height: 19.6px;
  font-weight: 300;
  color: var(--ink-strong);
}

.meta--inline {
  display: none;
}

.case-main {
  width: calc(70vw - 270px + 80px);
  margin-left: 272px;
  padding: 88px 40px 80px;
}

@media (max-width: 1199px) {
  .case-main {
    width: calc(100vw - 272px);
  }
}

.case-head__line {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  font-size: 14px;
  line-height: 20px;
}

.case-head__client {
  font-weight: 300;
  color: var(--label);
}

.case-head__title {
  font-size: inherit;
  font-weight: 500;
  color: var(--case-accent);
}

.case-head__date {
  margin-top: 8px;
  font-size: 12px;
  line-height: 20px;
  font-weight: 300;
  color: var(--label);
}

.case-block {
  margin-top: 24px;
}

.case-block h2 {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink-strong);
}

.case-block h3 {
  margin: 20px 0 6px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink-strong);
}

.case-block p,
.case-block li {
  font-size: 14px;
  line-height: 20px;
  font-weight: 300;
  color: var(--ink-strong);
}

.case-block p + p,
.case-block p + ul,
.case-block p + ol,
.case-block ul + p,
.case-block ol + p,
.case-block blockquote + p,
.case-block p + blockquote {
  margin-top: 20px;
}

.case-block p + ul.tight,
.case-block p + ol.tight {
  margin-top: 0;
}

.case-block ul,
.case-block ol {
  padding-left: 21px;
}

.case-block strong {
  font-weight: 500;
}

.case-block .hl {
  color: var(--case-accent);
}

.case-block .warn {
  color: var(--alert);
}

.case-block blockquote {
  margin: 0;
  font-style: italic;
  font-size: 14px;
  line-height: 20px;
  font-weight: 300;
  color: var(--case-accent);
}

.case-block .flow {
  color: var(--case-accent);
}

.callout {
  margin-top: 24px;
  padding: 16px;
  border-radius: 16px;
  background: var(--callout-bg);
  font-size: 14px;
  line-height: 20px;
  font-weight: 300;
}

.callout--dark {
  background: var(--callout-strong-bg);
  color: var(--callout-strong-ink);
  text-align: center;
}

.callout--dark strong {
  font-weight: 600;
}

.callout--dark b {
  font-weight: 500;
}

.case-figure {
  margin: 24px 0 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}

.case-figure img {
  width: 100%;
}

.case-figure figcaption {
  padding: 10px 16px 14px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 300;
  color: var(--label);
  background: var(--surface);
}

.case-next {
  margin-top: 24px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}

.case-next a {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.case-next span {
  font-size: 14px;
  line-height: 20px;
  font-weight: 300;
  color: var(--label);
}

.case-next strong {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink-strong);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s var(--ease);
}

.case-next strong svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s var(--ease);
}

.case-next a:hover strong {
  color: var(--case-accent);
}

@media (hover: hover) and (pointer: fine) {
  .case-next a:hover strong svg {
    transform: translateX(3px);
  }
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .site-footer__headline .word {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(6px);
  transition: opacity 0.7s var(--ease), filter 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i) * 60ms);
}

.js .site-footer__headline.is-visible .word {
  opacity: 1;
  filter: none;
  transform: none;
}

/* ---------- Japanese ---------- */

:root:lang(ja) {
  --font: "Inter", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}

:lang(ja) body {
  line-break: strict;
  overflow-wrap: anywhere;
}

:lang(ja) h1,
:lang(ja) h2,
:lang(ja) h3,
:lang(ja) .june-card__title,
:lang(ja) .site-footer__headline {
  word-break: auto-phrase;
  letter-spacing: 0;
}

:lang(ja) .intro__text,
:lang(ja) .prose p {
  line-height: 1.85;
}

:lang(ja) .case-block p,
:lang(ja) .case-block li,
:lang(ja) .case-block blockquote,
:lang(ja) .callout {
  line-height: 1.8;
}

:lang(ja) .case-block .justify {
  text-align: justify;
  hyphens: none;
}

:lang(ja) .site-footer__headline {
  max-width: 300px;
  line-height: 1.5;
}

/* ---------- GSAP-driven motion ---------- */

/* Set by an inline script before first paint; GSAP reveals each element */
.motion .reveal {
  visibility: hidden;
}

.has-gsap .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.has-gsap .site-footer__headline .word {
  transition: none;
}

.split-line {
  padding-bottom: 0.06em;
}

/* Press feedback */
.back-link,
.case-next a,
.work-card__link,
.shot-card a {
  transition: transform 0.16s var(--ease);
}

.case-next a {
  transform-origin: right center;
}

.arrow-link:active,
.lang-menu__btn:active,
.theme-toggle:active .theme-toggle__track,
.back-link:active,
.case-next a:active {
  transform: scale(0.97);
}

/* big surfaces press less, or they look pulled away */
.work-card__link:active,
.shot-card a:active {
  transform: scale(0.99);
}

/* ---------- Image zoom (case studies) ---------- */

.js .case-figure img {
  cursor: zoom-in;
}

.case-figure img.is-zoomed {
  visibility: hidden;
}

.zoom {
  position: fixed;
  inset: 0;
  z-index: 1000;
  cursor: zoom-out;
}

.zoom__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.86);
}

.zoom__img {
  position: fixed;
  max-width: none;
  border-radius: 8px;
  transform-origin: 0 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

/* Light / dark switch: one crossfade for the whole page */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.25s;
  animation-timing-function: var(--ease);
}

/* Lenis smooth scroll */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-property: opacity, color, background-color, border-color !important;
    transition-duration: 0.2s !important;
    transition-delay: 0s !important;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }

  .js .reveal,
  .js .site-footer__headline .word {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .polaroids {
    max-width: 640px;
  }
}

@media (max-width: 809px) {
  .case-aside {
    position: static;
    width: auto;
    padding: 40px var(--gutter) 0;
  }

  .case-aside .meta {
    display: none;
  }

  .meta--inline {
    display: flex;
    margin-top: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 32px;
  }

  .case-main {
    margin: 0 auto;
    padding: 48px var(--gutter) 80px;
    width: auto;
  }
}

@media (max-width: 900px) {
  .work-grid,
  .shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  .site-header__inner {
    height: 60px;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav .hide-sm {
    display: none;
  }

  .profile__time {
    display: none;
  }

  .work-card__media {
    aspect-ratio: 4 / 3;
  }

  .intro,
  .about-hero {
    padding-top: 56px;
  }

  .section {
    padding-top: 88px;
  }

  .section__head {
    justify-content: flex-start;
  }

  .intro__title,
  .about-hero__title {
    font-size: 23px;
    line-height: 29px;
  }

  .intro__text,
  .prose p {
    font-size: 16px;
    line-height: 25.6px;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .shot-grid {
    gap: 24px 12px;
  }

  .shot-card__title {
    font-size: 13px;
    line-height: 18px;
  }

  .section__head--split {
    flex-wrap: wrap;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .timeline__role {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .photo-strip {
    grid-template-columns: 1fr 1fr;
  }

  .photo-strip figure:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
  }

  .site-footer {
    padding: 88px 0 48px;
  }

  .site-footer__info {
    gap: 48px;
  }

  .case-block p,
  .case-block li,
  .case-block blockquote {
    text-align: left;
  }

  .case-figure,
  .callout {
    border-radius: 12px;
  }
}

@media (min-width: 641px) {
  .case-block .justify {
    text-align: justify;
    hyphens: auto;
  }
}

.case-head__line {
  margin: 0;
  font-weight: 400;
}
