@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600&display=swap');

:root {
  color-scheme: dark;
  --navy: #151d29;
  --white: #f0f1ed;
  --soft: #bec7d1;
  --line-dark: #3e4855;
  --paper: #eeefed;
  --ink: #18212e;
  --muted: #465363;
  --line-light: #c7cccf;
  --gutter: clamp(21px, 5vw, 86px);
  --font: Geist, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--navy); color: var(--white); font: 400 1rem / 1.6 var(--font); }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2 { font-weight: 500; line-height: .96; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
[id] { scroll-margin-top: 26px; }
.wrap { width: min(1500px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }

.skip-link { position: absolute; top: -100px; left: 12px; z-index: 5; padding: 9px 13px; background: var(--navy); }
.skip-link:focus { top: 12px; }
.site-header { position: absolute; z-index: 3; inset: 0 0 auto; }
.header-layout { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.wordmark { font-weight: 600; text-decoration: none; white-space: nowrap; }
nav { display: flex; gap: clamp(14px, 3vw, 42px); }
nav a { display: flex; align-items: center; min-height: 44px; font-size: .9375rem; text-decoration: none; }
nav a:hover, .wordmark:hover { text-decoration: underline; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 59% 27%, #465264, #242e3e 55%, var(--navy) 95%);
}
.hero-photo {
  position: absolute;
  z-index: -2;
  inset-block: 0;
  left: 50%;
  width: min(85vw, 1000px);
  transform: translateX(-50%);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 77%, transparent);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 53% 38%; filter: saturate(.87); }
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, #151d29cb, transparent 23%, transparent 45%, #151d29c9 83%, #151d29 100%);
}
.hero-layout {
  min-height: clamp(660px, 90svh, 970px);
  position: relative;
  display: grid;
  align-items: end;
  padding-block: 100px clamp(30px, 5.4vh, 60px);
}
.hero-role {
  position: absolute;
  top: 45%;
  right: 0;
  max-width: 19ch;
  padding-left: 13px;
  border-left: 1px solid #f0f1ed80;
  font-size: clamp(1.07rem, 1.65vw, 1.5rem);
  font-weight: 500;
  line-height: 1.15;
}
.hero-role span { display: block; margin-top: 8px; color: #e1e7ef; font-size: .7em; line-height: 1.4; }
.hero h1 { font-size: clamp(4rem, 14.5vw, 15.5rem); letter-spacing: -.084em; white-space: nowrap; margin-left: -.063em; }
.hero-link { display: inline-flex; min-height: 44px; gap: 9px; align-items: center; margin-top: 15px; text-decoration: none; }
.hero-link:hover { text-decoration: underline; }
.hero-link span { width: 13px; height: 1px; background: currentColor; }

.paper { color-scheme: light; background: var(--paper); color: var(--ink); }
.intro { padding-block: clamp(55px, 9vw, 122px) clamp(46px, 7vw, 94px); }
.intro-statement { max-width: 24ch; font-size: clamp(2.35rem, 5.25vw, 5.1rem); line-height: 1.03; letter-spacing: -.058em; }
.intro-note { max-width: 52ch; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.22rem); margin-top: 20px; }
.ventures, .career { border-top: 1px solid var(--line-light); padding-top: 19px; }
.ventures > h2, .career > h2 { color: var(--muted); font-size: 1.06rem; line-height: 1.4; }
.venture-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  gap: clamp(30px, 8vw, 125px);
  align-items: start;
  padding-top: clamp(28px, 4.6vw, 64px);
}
.venture { min-width: 0; }
.venture-logo { width: var(--mark-width); height: auto; max-width: 100%; margin-bottom: clamp(14px, 2.4vw, 32px); }
.artistix-mark { --mark-width: clamp(173px, 21vw, 273px); margin-left: -.7em; }
.jsan-mark { --mark-width: clamp(150px, 17vw, 211px); margin-left: -.55em; }
.venture-title { font-size: clamp(2.3rem, 4.3vw, 4rem); line-height: 1.02; font-weight: 500; letter-spacing: -.063em; }
.venture-lead .venture-title { font-size: clamp(3.15rem, 6.7vw, 6.1rem); }
.venture p { max-width: 48ch; margin-top: 8px; color: var(--muted); }
.venture .venture-role { margin-top: 12px; color: var(--ink); font-weight: 600; }
.venture-link, .venue-details summary { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; font-weight: 600; }
.venture-link, .venue-details { margin-top: 8px; }
.venture-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 8px; }
.venture-links .venture-link { margin-top: 0; }
.venue-details summary { list-style: none; cursor: pointer; text-decoration: underline; text-underline-offset: .25em; }
.venue-details summary::-webkit-details-marker { display: none; }

.venture-group { margin-top: clamp(21px, 3.5vw, 46px); }
.venture-group > h3 { font-size: clamp(1.12rem, 2vw, 1.65rem); line-height: 1.3; font-weight: 500; letter-spacing: -.035em; }
.venture-grid .venture-logo { height: clamp(82px, 9.2vw, 122px); object-fit: contain; object-position: left center; }
.kanvas-venture-mark { --mark-width: clamp(73px, 9vw, 109px); }
.venture-jsan {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  gap: clamp(18px, 3.4vw, 45px) clamp(30px, 8vw, 125px);
  align-items: end;
  margin-top: clamp(37px, 6.5vw, 91px);
  padding-top: clamp(26px, 4.5vw, 60px);
  border-top: 1px solid var(--line-light);
}
.venue-copy .venture-role { margin-top: 0; }
.jsan-gallery { grid-column: 1 / -1; }
.jsan-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px clamp(8px, 1.5vw, 21px); }
.jsan-photos img { width: 100%; aspect-ratio: 1.42; object-fit: cover; object-position: 50% 52%; }
.jsan-angles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); aspect-ratio: 1.42; gap: 4px; overflow: hidden; }
.jsan-angles img { height: 100%; min-width: 0; min-height: 0; aspect-ratio: auto; }
.jsan-photos figcaption { margin-top: 5px; color: var(--muted); font-size: .875rem; line-height: 1.4; }
.venue-details .jsan-photos { margin-top: 9px; }

.career { margin-block: clamp(58px, 9vw, 130px) clamp(54px, 8.5vw, 120px); }
.career-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 18px clamp(25px, 5vw, 78px); padding-top: 24px; }
.career-school { display: flex; align-items: center; gap: clamp(13px, 3vw, 43px); }
.career-school img { width: clamp(77px, 11vw, 155px); height: auto; mix-blend-mode: multiply; }
.career-school h3 { max-width: 13ch; font-size: clamp(2rem, 4.15vw, 3.85rem); line-height: 1; font-weight: 500; letter-spacing: -.06em; }
.career-copy { color: var(--muted); }
.career-copy .career-role { color: var(--ink); font-size: clamp(1.1rem, 1.85vw, 1.4rem); font-weight: 600; margin-bottom: 4px; }

.work { border-top: 1px solid var(--line-light); padding-top: 19px; }
.work > h2 { color: var(--muted); font-size: 1.06rem; line-height: 1.4; }
.brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 18px clamp(22px, 4.4vw, 64px); }
.brand-project { min-width: 0; border-bottom: 1px solid var(--line-light); }
.brand-project summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  row-gap: 6px;
  padding-block: 12px 19px;
  list-style: none;
  cursor: pointer;
}
.brand-project summary::-webkit-details-marker { display: none; }
.brand-mark {
  grid-column: 1 / -1;
  display: grid;
  align-items: center;
  min-width: 0;
  height: clamp(118px, 14vw, 195px);
  margin-bottom: 4px;
}
.brand-mark img { width: var(--mark-width); height: auto; max-width: 85%; transition: transform .2s ease; }
.fd-mark { --mark-width: clamp(108px, 13vw, 173px); }
.dunia-mark { --mark-width: clamp(85px, 11vw, 131px); }
.kanvas-mark { --mark-width: clamp(71px, 9vw, 110px); }
.project-title { grid-column: 1; font-size: clamp(1.27rem, 2.45vw, 2.25rem); line-height: 1.12; letter-spacing: -.044em; }
.project-role { grid-column: 1; grid-row: 3; color: var(--muted); font-size: .925rem; line-height: 1.4; }
.project-toggle { position: relative; grid-column: 2; grid-row: 2 / span 2; place-self: center end; width: 16px; height: 16px; }
.project-toggle::before, .project-toggle::after { content: ''; position: absolute; background: currentColor; inset: 8px 0 auto; height: 1px; }
.project-toggle::after { transform: rotate(90deg); }
details[open] .project-toggle::after { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .brand-project summary:hover img { transform: translateY(-4px); }
  .brand-project summary:hover .project-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .17em; }
}
.project-detail { padding: 0 16px 24px 0; }
.project-detail p { max-width: 58ch; color: var(--muted); }
.project-detail a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; font-weight: 500; }

.creative {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr);
  align-items: center;
  gap: clamp(23px, 5.5vw, 80px);
  padding-block: clamp(52px, 9.1vw, 135px);
}
.creative h2, .contact h2 { font-size: clamp(2.8rem, 6.2vw, 5.8rem); letter-spacing: -.068em; }
.creative p { color: var(--muted); max-width: 43ch; margin-top: 17px; }
.creative p strong { color: var(--ink); font-weight: 600; }
.creative-archive { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: clamp(10px, 2vw, 25px); }
.archive img { display: block; width: 100%; height: auto; aspect-ratio: 1.42; object-fit: cover; }
.archive + .archive img { aspect-ratio: 1.7; }
.archive figcaption { display: grid; gap: 2px; margin-top: 8px; color: var(--muted); font-size: .875rem; line-height: 1.35; }
.archive cite { color: var(--ink); font-style: normal; font-weight: 600; }

.studio-work { padding-block: 19px clamp(62px, 10vw, 130px); border-top: 1px solid var(--line-light); }
.studio-work-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px 20px; }
.studio-work-header h2 { color: var(--muted); font-size: 1.06rem; line-height: 1.4; }
.studio-work-header a, .drive-more a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 500; }
.drive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3.4vw, 49px); margin-top: clamp(16px, 2.4vw, 33px); }
.drive-project { display: grid; align-content: start; text-decoration: none; }
.drive-project img { width: 100%; aspect-ratio: 1.08; object-fit: cover; object-position: 50% 43%; }
.drive-project strong { margin-top: 10px; font-size: clamp(1.14rem, 2vw, 1.65rem); font-weight: 500; letter-spacing: -.042em; line-height: 1.2; }
.drive-project span { margin-top: 3px; color: var(--muted); font-size: .875rem; }
.drive-project:hover strong, .drive-project:focus-visible strong { text-decoration: underline; }
.drive-more { display: flex; flex-wrap: wrap; gap: 0 32px; margin: 22px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line-light); list-style: none; }

.contact { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-block: 32px clamp(44px, 8vw, 85px); border-top: 1px solid var(--line-dark); }
.contact a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }

@media (max-width: 1060px) {
  .hero-photo { width: 94vw; }
  .hero-role { top: 39%; }
}
@media (max-width: 860px) {
  .creative { grid-template-columns: minmax(0, 1fr); }
  .creative-archive { max-width: 650px; }
}
@media (max-width: 680px) {
  .header-layout { min-height: 61px; }
  .wordmark, nav a { font-size: .875rem; }
  nav { gap: clamp(10px, 2.6vw, 15px); }
  .header-layout { gap: 10px; }
  .hero-layout { min-height: clamp(570px, 88svh, 770px); padding-bottom: 29px; }
  .hero-photo { width: 100%; mask-image: none; }
  .hero-photo img { object-position: 54% 40%; }
  .hero::after { background: linear-gradient(180deg, #151d29df, #151d2944 23%, transparent 43%, #151d2944 59%, #151d29f5 76%, var(--navy) 96%); }
  .hero-role { inset: 101px auto auto 0; max-width: 100%; padding-left: 10px; text-shadow: 0 1px 8px #151d29; }
  .hero h1 { font-size: clamp(2.9rem, 15vw, 6rem); }
  .hero-link { margin-top: 6px; }

  .work { padding-top: 15px; }
  .brand-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .brand-project summary { grid-template-columns: 78px minmax(0, 1fr) 18px; min-height: 99px; align-content: center; gap: 5px 13px; padding-block: 14px; }
  .brand-mark { grid-column: 1; grid-row: 1 / span 2; height: auto; margin: 0; }
  .brand-mark img { max-width: 100%; max-height: 68px; object-fit: contain; object-position: left center; }
  .dunia-mark, .kanvas-mark { --mark-width: 62px; }
  .project-title { grid-column: 2; grid-row: 1; }
  .project-role { grid-column: 2; grid-row: 2; font-size: .875rem; }
  .project-toggle { grid-column: 3; grid-row: 1 / span 2; }
  .jsan-photos { grid-template-columns: 1fr 1fr; }
  .jsan-pair { grid-column: 1 / -1; }
  .jsan-angles { aspect-ratio: 1.52; }
  .drive-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .drive-project img { aspect-ratio: 1.25; }
  .creative-archive { grid-template-columns: 1fr; gap: 21px; }
  .archive img, .archive + .archive img { aspect-ratio: 1.72; }
  .venture-grid, .venture-jsan, .career-layout { grid-template-columns: minmax(0, 1fr); }
  .venture-grid { gap: 35px; }
  .venture-jsan { gap: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand-mark img { transition: none; }
}

.opening { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .opening {
    position: fixed;
    z-index: 6;
    inset: 0;
    display: grid;
    place-items: center;
    padding: var(--gutter);
    background: var(--navy);
    color: var(--white);
    pointer-events: none;
    animation: opening-exit 460ms cubic-bezier(.65, 0, .25, 1) 570ms both;
  }
  .opening span {
    text-align: center;
    font-size: clamp(2.8rem, 8.5vw, 8.8rem);
    line-height: 1;
    letter-spacing: -.085em;
    animation: opening-name 560ms cubic-bezier(.18, .75, .24, 1) both;
  }
  body:focus-within .opening { display: none; }
  .hero-heading, .hero-role { animation: hero-arrival 660ms cubic-bezier(.2, .65, .25, 1) 430ms both; }

  .scroll-motion [data-reveal].is-visible {
    transition: transform 620ms cubic-bezier(.2, .65, .25, 1), opacity 520ms ease-out;
  }
  .scroll-motion [data-reveal]:not(.is-visible):not(:focus-within) {
    opacity: 0;
    transform: translateY(24px);
  }
  .scroll-motion [data-reveal]:focus-within { transition: none; }
  .drive-project:nth-child(2) { transition-delay: 45ms; }
  .drive-project:nth-child(3) { transition-delay: 85ms; }
  .venue-details[open] .jsan-photos { animation: gallery-arrival 330ms ease-out both; }

  @supports (animation-timeline: scroll()) {
    .hero-photo img {
      animation: portrait-drift linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 615px;
    }
  }

  @keyframes opening-name { from { opacity: 0; transform: translateY(23px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes opening-exit { to { opacity: 0; visibility: hidden; } }
  @keyframes hero-arrival { from { opacity: 0; transform: translateY(17px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes gallery-arrival { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes portrait-drift { to { transform: translateY(27px) scale(1.05); } }
}
