/* Olive anchors the page, sage identifies actions and ivory supports reading. */
body[data-page="home"] {
  --night: #19221a;
  --olive: #4b5b43;
  --forest: #24352b;
  --sage: #cad8b7;
  --sage-hover: #dce5cd;
  --brass: #bda477;
  --ivory: #f5f1e9;
  --cream: #fbf9f4;
  --ink: #1b251d;
  --paper: var(--cream);
  --muted: #525b50;
  --line: #d9ddd1;
  --focus: var(--forest);
}

.site-header, .hero-evidence, .project-media, .principles-section, .video-dialog, .footer {
  --focus: var(--sage);
}

.site-header .languages a,
.mobile-nav a,
.footer .languages a {
  color: #c6cec0;
  opacity: 1;
}

.site-header .languages a[aria-current],
.footer .languages a[aria-current] {
  color: var(--sage);
}

.site-header .languages a:hover,
.mobile-nav a:hover,
.footer .languages a:hover {
  color: var(--ivory);
}

.intro, .footer {
  background: var(--night);
}

.hero-evidence {
  position: relative;
  isolation: isolate;
  color: var(--ivory);
  background:
    radial-gradient(ellipse 76% 120% at 79% 43%, #253126, transparent 75%),
    #0e100f;
}

.site-header {
  background: #101410;
}

.hero-feature {
  width: 100%;
  min-width: 0;
  max-width: 680px;
  justify-self: end;
}

.hero-film-window {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.62;
  border: 1px solid #82917970;
  border-radius: 3px 3px 0 0;
  background: #151e17;
}

.hero-art {
  position: absolute;
  inset: 0;
  background: url('/assets/hero-olive-glass.jpg') 100% 54% / auto 128% no-repeat;
  transition: transform .72s cubic-bezier(.22, .7, .24, 1);
}

.hero-film-window::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0b100dd4, transparent 42%);
  pointer-events: none;
}

.hero-film-window:has(.brand-film-button:is(:hover, :focus-visible)) .hero-art {
  transform: scale(1.045);
}

.hero-evidence .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr);
  align-items: center;
  gap: clamp(24px, 4vw, 62px);
  min-height: clamp(495px, 65vh, 615px);
  padding-block: clamp(53px, 5.8vw, 94px);
}

.hero-evidence .hero-copy,
html[lang="en"] .hero-evidence .hero-copy {
  width: 100%;
  min-width: 0;
  pointer-events: auto;
}

.hero-evidence h1 {
  font-size: clamp(2.05rem, 3.85vw, 3.7rem);
  font-weight: 550;
  line-height: 1.23;
  letter-spacing: -.055em;
}

html[lang="en"] .hero-evidence h1 {
  font-size: clamp(2.15rem, 4.05vw, 3.8rem);
  line-height: 1.14;
}

html[lang="zh-Hans"] .hero-evidence h1 {
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  letter-spacing: -.04em;
}

.hero-evidence .hero-lead {
  max-width: 29em;
  margin-top: 23px;
  color: #d4dbcf;
  font-size: 1rem;
  line-height: 1.8;
}

html[lang="ko"] .hero-evidence .hero-lead {
  word-break: keep-all;
}

.hero-evidence .hero-actions {
  gap: 12px 24px;
  margin-top: 29px;
}

.hero-evidence .button.light {
  background: var(--sage);
  color: #172118;
}

.hero-evidence .button.light:hover {
  background: var(--sage-hover);
}

.hero-evidence .quiet-link {
  min-height: 44px;
  color: #dde2d7;
  border-color: #9aab94;
}

.hero-evidence .quiet-link:hover {
  color: var(--ivory);
  border-color: var(--ivory);
}

.brand-film-button {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: clamp(12px, 2vw, 23px);
  background: transparent;
  text-align: start;
}

.brand-film-button:focus-visible {
  outline-offset: -5px;
}

.brand-film-control {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 8px;
  padding: 5px 15px 5px 5px;
  border: 1px solid #a4b09a;
  border-radius: 99px;
  color: var(--ivory);
  background: #121a14eb;
  font-size: .875rem;
  font-weight: 650;
  transition: background-color .22s ease, border-color .22s ease;
}

.brand-film-button:is(:hover, :focus-visible) .brand-film-control {
  border-color: var(--sage);
  background: #344539;
}

.brand-film-play {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--night);
  background: var(--sage);
}

.brand-film-play::before {
  content: '';
  width: 10px;
  height: 13px;
  margin-inline-start: 2px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.brand-film-duration {
  color: #d5decd;
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
}

.hero-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #82917970;
  border-top: 0;
  border-radius: 0 0 3px 3px;
  background: #0e1410;
}

.hero-routes a {
  display: flex;
  min-height: 52px;
  align-items: center;
  padding: 10px clamp(8px, 1.3vw, 18px);
  color: #e1e7db;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: break-word;
  transition: background-color .22s ease, color .22s ease;
}

.hero-routes a + a {
  border-inline-start: 1px solid #82917970;
}

.hero-routes a:is(:hover, :focus-visible) {
  color: var(--sage);
  background: #27352b;
  outline-offset: -4px;
}

.project-media {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 10px;
  width: min(100%, 530px);
  min-width: 0;
  margin-block: 13px 19px;
  padding: clamp(12px, 2vw, 23px);
  overflow: hidden;
  border-radius: 5px;
  background: #233127;
  color: var(--ivory);
}

.project-media::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -18%;
  background: radial-gradient(ellipse at 53% 45%, #56684c, transparent 66%);
  transform: translateX(var(--gallery-light-shift, 0px));
  transition: transform .62s ease;
  pointer-events: none;
}

.media-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dde5d146;
  line-height: 1.55;
}

.media-heading {
  display: block;
  color: var(--ivory);
  font-size: .875rem;
  font-weight: 600;
  word-break: keep-all;
}

.media-controls {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
  color: var(--sage);
}

.media-controls button {
  min-width: 44px;
  min-height: 44px;
  padding-inline: 6px;
  border: 1px solid #84937a;
  border-radius: 3px;
  background: #131b16db;
  font-size: .8125rem;
  font-weight: 650;
  white-space: nowrap;
}

.media-controls button:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--night);
}

.media-page {
  min-width: 34px;
  color: #d4dbcf;
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

.media-stage {
  --card-width: 46%;
  position: relative;
  min-width: 0;
  aspect-ratio: 1.16;
  perspective: 800px;
  isolation: isolate;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

.reel-trigger {
  position: absolute;
  z-index: var(--card-layer, 5);
  top: 50%;
  left: 50%;
  display: block;
  width: var(--card-width);
  aspect-ratio: 9 / 16;
  padding: 0;
  overflow: hidden;
  transform: translate(calc(-50% + var(--card-offset, 0%)), -50%)
    rotateY(var(--card-turn, 0deg)) scale(var(--card-scale, 1));
  border: 1px solid #ebf0df48;
  border-radius: 5px;
  background: var(--forest);
  box-shadow: 0 10px 24px #0a120e70;
  color: var(--ivory);
  text-align: left;
  transition: transform .52s cubic-bezier(.22, .7, .24, 1), border-color .18s ease;
}

.reel-trigger[data-slot="0"] {
  border-color: #e3ecc281;
  box-shadow: 0 18px 38px #0b140fa8;
}

.reel-trigger:is([data-slot="-1"], [data-slot="1"]) {
  --card-scale: .85;
  --card-layer: 3;
  --card-shade: .11;
}

.reel-trigger:is([data-slot="-2"], [data-slot="2"]) {
  --card-scale: .68;
  --card-layer: 1;
  --card-shade: .23;
}

.reel-trigger[data-slot="-2"] {
  --card-offset: -74%;
  --card-turn: 31deg;
}

.reel-trigger[data-slot="-1"] {
  --card-offset: -39.5%;
  --card-turn: 23deg;
}

.reel-trigger[data-slot="1"] {
  --card-offset: 39.5%;
  --card-turn: -23deg;
}

.reel-trigger[data-slot="2"] {
  --card-offset: 74%;
  --card-turn: -31deg;
}

.reel-trigger:is(:hover, :focus-visible) {
  border-color: var(--sage);
}

.reel-trigger:focus-visible {
  outline-offset: -4px;
}

.reel-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.055);
}

.reel-trigger::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0a140ecc, transparent 30%),
    rgb(14 23 15 / var(--card-shade, 0));
  pointer-events: none;
}

.reel-label, .reel-play {
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.reel-trigger[data-slot="0"] :is(.reel-label, .reel-play) {
  opacity: 1;
  transition-delay: .16s;
}

.reel-label {
  position: absolute;
  z-index: 1;
  left: 12px;
  right: 7px;
  bottom: 10px;
  color: white;
  font-size: .875rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.reel-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(40px, 5.1vw, 56px);
  aspect-ratio: 1;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid #f5f1e9b0;
  border-radius: 50%;
  background: #111613cc;
  color: white;
}

.reel-play::before {
  content: '';
  width: 12px;
  height: 15px;
  margin-left: 3px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.experience-band, .work-section {
  background: var(--ivory);
}

.experience-band {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.experience-inner {
  padding-block: clamp(52px, 7vw, 94px);
}

.experience-inner h2 {
  margin-bottom: 26px;
}

.project {
  display: grid;
  align-items: start;
  gap: 20px clamp(30px, 6vw, 85px);
  padding-block: clamp(22px, 3vw, 36px);
  border-top: 1px solid #c9d1c1;
  min-width: 0;
}

.project-with-media {
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
}

.project-category {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 650;
}

.project h3 {
  font-size: clamp(1.58rem, 2.9vw, 2.4rem);
}

.project-role {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 13px;
  margin-top: 13px;
}

.project-role dt {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 650;
}

.project-role dd {
  color: var(--forest);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  font-weight: 720;
  line-height: 1.4;
}

.project-summary {
  max-width: 37rem;
  margin-top: 12px;
  color: var(--muted);
}

.project-facts {
  display: grid;
  gap: 14px;
  margin-block: 22px;
}

.project-facts > div {
  display: grid;
  grid-template-columns: minmax(85px, .29fr) 1fr;
  gap: 12px;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
}

.project-facts dt {
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.75;
}

.project-facts dd {
  color: var(--muted);
}

.project-preview {
  --preview-size: clamp(82px, 9vw, 108px);
  --preview-gap: clamp(12px, 2vw, 20px);
  max-width: 420px;
  min-width: 0;
  padding: 12px 12px 5px;
  border: 1px solid #d4dcce;
  border-radius: 3px;
  background: #edf0e8;
}

.project-preview-link {
  display: grid;
  grid-template-columns: var(--preview-size) minmax(0, 1fr);
  align-items: center;
  column-gap: var(--preview-gap);
}

.project-preview-image {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: var(--forest);
}

.project-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 41%;
  transition: transform .4s ease;
}

.project-preview-link:is(:hover, :focus-visible) img { transform: scale(1.05); }

.project-preview-copy {
  display: grid;
  justify-items: start;
  gap: 7px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.project-preview-channel {
  color: var(--muted);
  font-size: .875rem;
}

.project-preview-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--forest);
  font-size: .9375rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.project-play-icon {
  flex: 0 0 7px;
  height: 9px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.project-original {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-inline-start: calc(var(--preview-size) + var(--preview-gap));
  color: var(--muted);
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: .23em;
}

.project-library {
  grid-column: 1 / -1;
  border-block: 1px solid var(--line);
}

.project-library summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding-block: 9px;
  color: var(--forest);
  font-size: .9375rem;
  font-weight: 650;
  cursor: pointer;
}

.project-library summary::-webkit-details-marker { display: none; }

.project-library[open] summary { color: var(--forest); }

.project-library summary:focus-visible { outline-offset: -3px; }

.media-current-source {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 7px 14px;
  flex-wrap: wrap;
  border-top: 1px solid #afbea075;
  color: var(--ivory);
  font-size: .875rem;
  overflow-wrap: anywhere;
}

.media-current-source span:first-child {
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.media-current-source:hover span:first-child {
  color: var(--ivory);
}

.fit-evidence {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr);
  align-items: start;
  gap: clamp(48px, 6.7vw, 95px);
}

.fit-evidence .criteria {
  margin-top: 0;
}

.fit-evidence .criteria > div {
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  padding-block: 22px;
}

.fit-evidence .criteria dt, .fit-evidence .criteria dd {
  font-size: 1rem;
}

.fit-evidence .scope-note {
  margin-top: 23px;
  font-size: .875rem;
}

.service-enquiry {
  min-height: 44px;
  margin-top: 3px;
  padding-inline: 0;
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.service-enquiry:hover {
  color: var(--ink);
  text-decoration-thickness: 2px;
}

.sample-nav button[aria-selected="true"] {
  color: var(--forest);
}

.sample-nav button[aria-selected="true"]::after {
  background: var(--forest);
}

.principles-section {
  color: var(--ivory);
  background: var(--forest);
}

.principles-section .founder-description,
.principles-section .founder-name,
.principles-section .founder-statement blockquote,
.principles-section .principles p {
  color: #dce2d7;
}

.enquiry-dialog {
  border: 1px solid var(--line);
  background: var(--cream);
}

.enquiry-dialog .dialog-close {
  background: #e8ece0;
}

.enquiry-dialog .dialog-close:hover {
  background: #dce5d4;
}

.contact-copy .button,
.enquiry-dialog .form-fields .button,
.enquiry-dialog .result-actions .send-email {
  background: var(--forest);
  color: #fff;
}

.contact-copy .button:hover,
.enquiry-dialog .form-fields .button:hover,
.enquiry-dialog .result-actions .send-email:hover {
  background: #354b3c;
}

.video-dialog {
  width: min(510px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 24px;
  border: 1px solid #ffffff24;
  border-radius: 12px;
  background: #1b251e;
  color: var(--ivory);
  overscroll-behavior: contain;
  box-shadow: 0 20px 120px #0008;
}

.video-dialog::backdrop {
  background: #080e0bc9;
  backdrop-filter: blur(10px);
}

.brand-film-dialog {
  width: min(940px, calc(100% - 28px));
}

.brand-film-dialog .video-dialog-header {
  align-items: center;
}

.brand-film-dialog video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #121b16;
  border-radius: 3px;
}

.film-fallback {
  margin-top: 12px;
  font-size: .875rem;
}

.video-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.video-dialog h2 {
  font-size: 1.125rem;
  letter-spacing: -.025em;
  line-height: 1.5;
}

.video-dialog .video-close {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  color: #fff;
  background: #384a3e;
  flex-shrink: 0;
}

.video-close:hover {
  background: #476251;
}

.video-close svg {
  width: 100%;
  height: 100%;
}

.video-host {
  min-width: 0;
  min-height: 160px;
  max-height: 62dvh;
  overflow: auto;
  border-radius: 6px;
  background: #fff;
  scrollbar-gutter: stable;
}

.video-host .instagram-media, .video-host iframe {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
}

.video-host blockquote {
  color: #222;
  padding: 22px;
  line-height: 1.6;
}

.video-host blockquote a {
  text-decoration: underline;
}

.video-notice, .video-status {
  color: #d5dfd2;
  font-size: .8125rem;
  line-height: 1.65;
}

.video-notice {
  margin-top: 14px;
}

.video-status {
  margin-bottom: 10px;
}

.video-source {
  display: inline-block;
  margin-top: 13px;
  padding-block: 6px;
  border-bottom: 1px solid currentColor;
  color: var(--sage);
  font-size: .875rem;
}

.video-source:hover {
  color: var(--ivory);
}

.source-preview {
  display: block;
  width: auto;
  max-height: 51dvh;
  margin-inline: auto;
  object-fit: contain;
}

.video-host video {
  display: block;
  width: 100%;
  max-height: 56dvh;
  background: #101410;
}

@media (max-width: 1100px) {
  .fit-evidence .criteria > div {
    grid-template-columns: 115px minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 920px) {
  .hero-evidence .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: clamp(27px, 5vw, 40px);
    min-height: auto;
    padding-block: clamp(34px, 6vw, 57px);
  }

  .hero-feature { justify-self: start; }

  .hero-evidence h1 {
    font-size: clamp(1.78rem, 6.3vw, 3.35rem);
  }

  html[lang="en"] .hero-evidence h1 {
    font-size: clamp(1.95rem, 6.75vw, 3.5rem);
  }

  html[lang="zh-Hans"] .hero-evidence h1 {
    font-size: clamp(2.05rem, 7vw, 3.5rem);
  }
}

@media (max-width: 800px) {
  .project-with-media, .fit-evidence {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .project-media {
    width: min(100%, 510px);
  }

  .fit-evidence h2 {
    font-size: 2rem;
  }

  .fit-evidence .scope-note {
    margin-top: 16px;
  }

  .fit-evidence .criteria > div {
    grid-template-columns: 135px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .hero-evidence .hero-lead {
    margin-top: 18px;
    line-height: 1.7;
  }

  .hero-evidence .hero-actions {
    gap: 8px 17px;
    margin-top: 22px;
  }

  .hero-evidence .quiet-link {
    font-size: .875rem;
  }

  .media-caption {
    column-gap: 8px;
  }

  .reel-label {
    left: 8px;
    bottom: 8px;
    font-size: .8125rem;
  }

  .experience-inner h2 {
    font-size: 1.5rem;
  }

  .fit-evidence .criteria > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding-block: 18px;
  }

  .video-dialog {
    width: calc(100% - 16px);
    padding: 18px;
  }

  .video-host {
    max-height: 58dvh;
  }

  .video-dialog-header {
    gap: 12px;
  }

  .video-dialog h2 {
    font-size: 1rem;
  }

}

@media (max-width: 360px) {
  html[lang="en"] .hero-evidence .hero-actions {
    gap: 8px 14px;
  }

  html[lang="en"] .hero-evidence .hero-actions .button {
    padding-inline: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-film-window:has(.brand-film-button:is(:hover, :focus-visible)) .hero-art,
  .project-preview-link:is(:hover, :focus-visible) img,
  .hero-art, .project-preview-image img, .project-media::before {
    transform: none;
    transition: none;
  }

  .reel-trigger,
  .reel-trigger :is(.reel-label, .reel-play),
  .reel-trigger[data-slot="0"] :is(.reel-label, .reel-play) {
    transition: none;
  }
}

@media print {
  .hero-feature, .project-media, .video-dialog {
    display: none !important;
  }

  .hero-evidence .hero-inner {
    display: block;
    padding: 20px 0;
  }

  .hero-evidence, .work-section, .principles-section, .experience-band {
    color: #000;
    background: #fff;
  }

  .hero-evidence .hero-lead,
  .principles-section .founder-description,
  .principles-section .founder-name,
  .principles-section .founder-statement blockquote,
  .principles-section .principles p {
    color: #333;
  }

  .project-with-media {
    grid-template-columns: minmax(0, 1fr);
  }

}
