:root {
  --ink: #1f285b;
  --heading: #0f0f0f;
  --paper: #eef0fa;
  --cream: #fcfbf4;
  --pink: #a39cf6;
  --orange: #3e51e1;
  --blue: #9fdfbd;
  --yellow: #f8f792;
  --coral: #f26f66;
  --accent: #3e51e1;
  --line: rgba(31, 40, 91, 0.18);
  --project-bg: #eef0fa;
  --project-a: #3e51e1;
  --project-b: #a39cf6;
  --project-type: #1f285b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: "Supreme", "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
a, button { touch-action: manipulation; }
h1, h2, h3 { color: var(--heading); }
::selection { color: var(--cream); background: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.site-header {
  min-height: 78px;
  padding: 0 clamp(24px, 6vw, 108px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(252, 251, 244, 0.96);
  border-bottom: 0;
  position: relative;
  z-index: 20;
}

.wordmark { font: 600 34px/1 "Chillax", "Supreme", sans-serif; letter-spacing: -1.2px; }
.wordmark span { color: var(--orange); }
.site-nav { display: flex; align-items: center; gap: clamp(22px, 3.2vw, 54px); }
.site-nav a { min-height: 44px; display: flex; align-items: center; position: relative; font-size: 14px; font-weight: 600; }
.site-nav a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--orange);
  transition: right 0.25s ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after { right: 0; }
.language-toggle {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--orange);
  border-radius: 100px;
  background: transparent;
  color: var(--orange);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.language-toggle:hover,
.language-toggle:focus-visible { background: var(--orange); color: var(--cream); }
.menu-toggle { display: none; }

.project-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
  min-height: 620px;
  border-bottom: 1px solid var(--line);
}
.project-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--line);
  pointer-events: none;
}
.project-hero > * {
  position: relative;
  z-index: 1;
}
.project-hero--image-led {
  grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr);
}
.project-hero--standard-height {
  height: 620px;
  min-height: 620px;
}
.project-hero--image-led .project-heading {
  padding-right: clamp(24px, 4vw, 68px);
  padding-left: clamp(24px, 4vw, 68px);
}
.project-hero--image-led .project-heading h1 {
  font-size: clamp(40px, 4.2vw, 64px);
}

.project-heading {
  padding: clamp(64px, 8vw, 112px) clamp(24px, 6vw, 108px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.breadcrumb,
.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.breadcrumb { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; width: fit-content; }
.breadcrumb span { color: var(--orange); }
.project-heading h1 {
  max-width: 900px;
  margin: 58px 0;
  font: 600 clamp(44px, 5vw, 78px)/0.95 "Chillax", "Supreme", sans-serif;
  letter-spacing: -0.055em;
}
.project-heading h1 em { color: var(--orange); font-weight: 400; }
.project-intro { max-width: 640px; margin: 0; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.55; }

.hero-visual,
.gallery-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--project-bg);
}
.hero-visual::before,
.hero-visual::after,
.gallery-card::before,
.gallery-card::after {
  content: "";
  position: absolute;
  z-index: -1;
}
.hero-visual::before {
  width: 68%;
  aspect-ratio: 1;
  top: 8%;
  left: -7%;
  border-radius: 50%;
  background: var(--project-a);
}
.hero-visual::after {
  width: 62%;
  height: 65%;
  right: -5%;
  bottom: -8%;
  border-radius: 48% 52% 8% 8%;
  background: var(--project-b);
  transform: rotate(-9deg);
}
.hero-visual.project-hero-image::before,
.hero-visual.project-hero-image::after { display: none; }
.project-hero-image { margin: 0; }
.project-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}
.project-hero-image { border-radius: 12px; }
.project-hero-image .visual-label {
  display: none;
}
.visual-label {
  position: absolute;
  top: 28px;
  right: 30px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.visual-phrase {
  position: absolute;
  right: 8%;
  bottom: 8%;
  left: 8%;
  color: var(--project-type);
  font: italic 600 clamp(36px, 4.4vw, 66px)/0.88 "Chillax", "Supreme", sans-serif;
  letter-spacing: -0.045em;
}

.project-overview {
  padding: clamp(68px, 8vw, 112px) clamp(24px, 6vw, 108px);
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(50px, 10vw, 170px);
}
.project-facts { margin: 0; display: grid; gap: 28px; align-content: start; }
.project-facts div { padding-top: 12px; border-top: 1px solid var(--ink); }
.project-facts dt {
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.project-facts dd { margin: 0; font: 600 20px/1.3 "Chillax", "Supreme", sans-serif; }
.project-story h2 {
  max-width: 800px;
  margin: 0 0 36px;
  font: 600 clamp(34px, 3.8vw, 54px)/1.02 "Chillax", "Supreme", sans-serif;
  letter-spacing: -0.04em;
}
.project-story p { max-width: 720px; margin: 0 0 22px; font-size: 16px; line-height: 1.7; }
.project-tags {
  max-width: 760px;
  margin: 42px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
}
.project-tags li {
  padding: 9px 13px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}
.design-case-study .project-heading {
  border-top: 4px solid var(--accent);
}
.design-case-study .project-heading h1,
.design-case-study .project-story > .eyebrow {
  color: var(--heading);
}
.design-case-study .project-story > .eyebrow { color: var(--accent); }
.design-case-study .project-facts div {
  border-top: 2px solid var(--accent);
}
.design-case-study .project-overview {
  background: linear-gradient(90deg, rgba(62, 81, 225, .07), transparent 46%);
}
.placeholder-note {
  max-width: 720px;
  margin-top: 38px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13px;
  line-height: 1.5;
}

.project-gallery {
  padding: 0 clamp(24px, 6vw, 108px) clamp(82px, 9vw, 120px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.gallery-card { min-height: clamp(360px, 52vw, 760px); }
.gallery-card.project-photo { margin:0; min-height:0; aspect-ratio:auto; padding:0; background:transparent; }
.gallery-card.project-photo::before,.gallery-card.project-photo::after { display:none; }
.gallery-card.project-photo img { width:100%; height:auto; display:block; object-fit:contain; border-radius:12px; }
.has-images .gallery-card:first-child { min-height:0; aspect-ratio:auto; }
.gallery-card.project-photo--wide { grid-column:1 / -1; }
.has-images .gallery-card:nth-child(2):last-child { grid-column:1 / -1; }
.has-images .gallery-card span {
  position: static;
  display: block;
  padding: 10px 0 2px;
  color: var(--ink);
  background: transparent;
  backdrop-filter: none;
}
.gallery-card:first-child { grid-column: 1 / -1; min-height: clamp(440px, 62vw, 880px); }
.project-gallery.has-images {
  display: block;
  columns: 2 380px;
  column-gap: 24px;
}
.project-gallery.has-images .gallery-card {
  width: 100%;
  margin: 0 0 24px;
  display: inline-block;
  vertical-align: top;
  break-inside: avoid;
  background: transparent;
}

.project-video-gallery {
  padding: 0 clamp(24px, 6vw, 108px) clamp(82px, 9vw, 120px);
  display: grid;
  gap: clamp(42px, 7vw, 92px);
}
.project-video-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.project-video-card:nth-child(even) video { order: 2; }
.project-video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  border-radius: 12px;
  background: var(--project-type);
  object-fit: contain;
}
.project-video-copy { max-width: 430px; }
.project-video-copy h2 {
  margin: 12px 0 18px;
  color: var(--heading);
  font: 600 clamp(30px, 3.6vw, 50px)/1.05 "Chillax", "Supreme", sans-serif;
}
.project-video-copy > p:not(.eyebrow) {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.72;
}
.project-video-copy .video-software {
  margin: 4px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
}
.video-software strong {
  display: block;
  margin-bottom: 3px;
  color: var(--project-a);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gallery-card::before {
  width: 54%;
  aspect-ratio: 1;
  top: calc(8% + var(--index, 0) * 3%);
  left: calc(-4% + var(--index, 0) * 7%);
  border-radius: 8% 50% 50%;
  background: var(--project-a);
  transform: rotate(calc(-12deg + var(--index, 0) * 14deg));
}
.gallery-card::after {
  width: 48%;
  height: 58%;
  right: calc(5% + var(--index, 0) * 2%);
  bottom: calc(-8% + var(--index, 0) * 6%);
  border-radius: 50%;
  background: var(--project-b);
}
.gallery-card:nth-child(2) { background: var(--project-b); }
.gallery-card:nth-child(2)::after { background: var(--project-bg); }
.gallery-card:nth-child(3) { background: var(--project-a); }
.gallery-card:nth-child(3)::before { background: var(--project-bg); }
.gallery-card span {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 2;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.project-pagination {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: clamp(44px, 5vw, 68px) clamp(24px, 6vw, 108px);
  background: var(--paper);
}
.project-pagination a {
  min-height: 210px;
  padding: 38px clamp(24px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.project-pagination a::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 7px;
  background: var(--accent);
}
.project-pagination a + a { text-align: right; }
.project-pagination a:hover {
  color: var(--cream);
  background: var(--ink);
  transform: translateY(-4px);
}
.project-pagination span { font-size: 10px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; }
.project-pagination strong { font: 600 clamp(24px, 2.8vw, 40px)/1.05 "Chillax", "Supreme", sans-serif; }

footer { padding: 72px clamp(24px, 6vw, 108px) 35px; background: var(--accent); color: var(--cream); }
footer p { margin: 0 0 10px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
footer > a { color: #fff; font: 600 clamp(26px, 3.2vw, 48px)/1.25 "Chillax", "Supreme", sans-serif; }
footer small { display: block; margin-top: 70px; opacity: 0.65; }

@media (max-width: 900px) {
  .site-header { min-height: 76px; }
  .menu-toggle { min-height: 44px; display: flex; padding: 12px 0; align-items: center; gap: 7px; border: 0; background: none; font: 600 13px "Supreme", "DM Sans", sans-serif; }
  .menu-toggle i { width: 15px; height: 1px; background: currentColor; }
  .menu-toggle i:last-child { display: none; }
  .site-nav { display: none; position: absolute; top: 76px; right: 0; left: 0; padding: 28px 24px 38px; flex-direction: column; align-items: flex-start; background: var(--cream); border-top: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { font: 600 26px "Chillax", "Supreme", sans-serif; }
  .project-hero { grid-template-columns: 1fr; }
  .project-hero--standard-height { height: auto; min-height: 0; }
  .project-heading { min-height: 560px; }
  .hero-visual { min-height: 580px; }
  .project-overview { grid-template-columns: 1fr; }
  .project-video-card { grid-template-columns: 1fr; }
  .project-video-card:nth-child(even) video { order: 0; }
  .project-video-copy { max-width: 620px; }
}

@media (max-width: 620px) {
  .wordmark { font-size: 32px; }
  .project-heading { min-height: 500px; padding-top: 58px; padding-bottom: 58px; }
  .project-heading h1 { margin: 42px 0; }
  .hero-visual { min-height: 460px; }
  .project-overview { padding-top: 74px; padding-bottom: 84px; gap: 62px; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-gallery.has-images { columns: 1; }
  .gallery-card:first-child { grid-column: auto; }
  .gallery-card,
  .gallery-card:first-child { min-height: 440px; }
  .gallery-card.project-photo,
  .has-images .gallery-card:first-child { min-height: 0; }
  .project-pagination { grid-template-columns: 1fr; }
  .project-pagination a + a { border-left: 1px solid var(--line); }
  footer > a { overflow-wrap: anywhere; font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-nav a::after,
  .project-pagination a { transition: none; }
}
