:root {
  --bg: #0b0f10;
  --bg-soft: #111719;
  --panel: #151b1d;
  --panel-light: #1a2123;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f2f0eb;
  --muted: #a7aca9;
  --accent: #d89a42;
  --accent-bright: #f0b45e;
  --max-width: 1440px;
  --header-height: 72px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
}

.skip-link,
.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;
}

.skip-link:focus {
  z-index: 100;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  margin: 0;
  clip: auto;
  background: var(--accent);
  color: #111;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 clamp(22px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 13, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  gap: 0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.17em;
}

.brand span:last-child {
  color: var(--muted);
  font-weight: 450;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.17em;
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  padding: 8px 12px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100svh - var(--header-height)));
  max-width: 1800px;
  margin: 0 auto;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(64%, 920px);
  min-height: min(720px, calc(100svh - var(--header-height)));
  padding: clamp(58px, 7vw, 116px) clamp(28px, 6vw, 96px);
  background: radial-gradient(circle at 12% 12%, rgba(216, 154, 66, 0.08), transparent 28%);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-bright);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: "Arial Narrow", "Avenir Next Condensed", Impact, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.018em;
  line-height: 0.92;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(64px, 8vw, 132px);
}

.hero-role {
  margin: 26px 0 0;
  color: var(--accent-bright);
  text-transform: uppercase;
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 650;
  letter-spacing: 0.07em;
}

.hero-intro {
  max-width: 610px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button,
.trailer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--accent);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.11em;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover,
.trailer-link:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #16110b;
}

.button-secondary,
.trailer-link {
  color: var(--accent-bright);
}

.button-secondary:hover,
.trailer-link:hover {
  background: var(--accent);
  color: #16110b;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: clamp(42px, 7vh, 78px) 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-facts div {
  min-width: 0;
}

.hero-facts dt,
.project-meta dt {
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-facts dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #161b1d;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 10, 11, 0.98) 0%, rgba(7, 10, 11, 0.88) 28%, rgba(7, 10, 11, 0.36) 59%, rgba(7, 10, 11, 0.08) 100%),
    linear-gradient(0deg, rgba(7, 10, 11, 0.68), transparent 38%);
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.86) contrast(1.04) brightness(0.92);
}

.hero-media-label {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 24px;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(74px, 9vw, 132px) clamp(22px, 5vw, 72px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 42px;
  margin-bottom: 48px;
}

.section h2 {
  font-size: clamp(44px, 5vw, 78px);
}

.section-summary {
  max-width: 430px;
  margin: 0 0 6px;
  color: var(--muted);
}

.work-section {
  max-width: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 12.5% 100%,
    var(--bg-soft);
}

.work-section > * {
  max-width: calc(var(--max-width) - 144px);
  margin-left: auto;
  margin-right: auto;
}

.work-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.credit-search input {
  width: min(260px, 35vw);
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
}

.credit-search input::placeholder {
  color: #7f8583;
}

.result-count {
  min-height: 24px;
  margin-top: 18px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.project-list {
  border-top: 1px solid var(--line);
}

.project-card {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(34px, 4vw, 58px) 0;
  border-bottom: 1px solid var(--line);
}

.project-card[hidden] {
  display: none;
}

.project-poster {
  align-self: start;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--panel-light);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
}

.project-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.project-card:hover .project-poster img {
  transform: scale(1.025);
}

.project-content {
  align-self: center;
  min-width: 0;
}

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

.project-title {
  margin: 0;
  font-family: "Arial Narrow", "Avenir Next Condensed", Impact, sans-serif;
  font-size: clamp(31px, 3.3vw, 52px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.project-year {
  flex: 0 0 auto;
  margin-top: 7px;
  color: var(--accent-bright);
  font-size: 14px;
}

.role-badge {
  display: inline-block;
  margin-bottom: 24px;
  padding: 7px 12px;
  border: 1px solid rgba(216, 154, 66, 0.7);
  color: var(--accent-bright);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
}

.project-meta div {
  padding: 10px 0 12px;
  border-top: 1px solid var(--line);
}

.project-meta dd {
  margin: 3px 0 0;
  color: #d4d4d0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.project-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
}

.project-type {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.13em;
}

.commercial-card {
  grid-template-columns: minmax(260px, 42%) minmax(0, 1fr);
}

.commercial-video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(216, 154, 66, 0.16), transparent 58%),
    var(--panel-light);
}

.commercial-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.commercial-card .project-meta {
  grid-template-columns: 1fr;
}

.commercial-card .project-meta div {
  padding: 10px 0;
}

.notice {
  padding: 24px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.about-section {
  border-top: 1px solid var(--line);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(48px, 8vw, 120px);
}

.about-heading {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 30px);
}

.about-heading img {
  width: min(100%, 430px);
  max-height: 520px;
  margin-top: 42px;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.78) contrast(1.05);
}

.about-copy {
  color: #c8cbc8;
  font-size: clamp(16px, 1.35vw, 19px);
}

.about-copy p {
  margin: 0 0 22px;
}

.about-lead {
  color: var(--text);
  font-size: clamp(24px, 2.5vw, 38px);
  line-height: 1.32;
}

.about-language {
  display: inline-flex;
  margin-bottom: 34px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

.about-language-button {
  min-width: 64px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 15px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.about-language-button:hover {
  color: var(--text);
}

.about-language-button.is-active {
  background: var(--accent);
  color: #0a0d0d;
}

.about-panel[hidden] {
  display: none;
}

.about-thai {
  font-family: "Noto Sans Thai", "Thonburi", "Leelawadee UI", sans-serif;
  line-height: 1.85;
}

.about-thai .about-lead {
  line-height: 1.65;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 46px 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-grid div {
  min-height: 150px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-grid span {
  display: block;
  margin-bottom: 28px;
  color: var(--accent-bright);
  font-size: 11px;
}

.service-grid strong,
.service-grid small {
  display: block;
}

.service-grid strong {
  color: var(--text);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.service-grid small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.training {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gallery-section {
  max-width: none;
  background: var(--bg-soft);
}

.gallery-section > * {
  max-width: calc(var(--max-width) - 144px);
  margin-left: auto;
  margin-right: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(220px, 24vw, 360px);
  gap: 10px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--panel);
  cursor: zoom-in;
}

.gallery-wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.76) contrast(1.04);
  transition: transform 400ms ease, filter 400ms ease;
}

.gallery-item:hover img {
  transform: scale(1.025);
  filter: saturate(0.98) contrast(1.04);
}

.contact-section {
  border-top: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 60px;
  align-items: end;
}

.contact-layout h2 {
  max-width: 900px;
  font-size: clamp(54px, 7vw, 110px);
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 18px;
  padding-bottom: 6px;
}

.contact-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.contact-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-row a {
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}

.contact-row p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px clamp(22px, 5vw, 72px) 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.site-footer a {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

.lightbox {
  width: min(92vw, 1200px);
  max-width: none;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: #080b0c;
  color: var(--text);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(8px);
}

.lightbox img {
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.72);
  color: white;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.12em;
}

@media (max-width: 1040px) {
  .hero-copy {
    width: 78%;
  }

  .hero-media {
    min-height: 0;
    max-height: none;
  }

  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(7, 10, 11, 0.97) 0%, rgba(7, 10, 11, 0.78) 43%, rgba(7, 10, 11, 0.22) 100%),
      linear-gradient(0deg, rgba(7, 10, 11, 0.68), transparent 48%);
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-heading {
    position: static;
  }

  .about-heading img {
    width: 100%;
    max-height: 620px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 22px 28px;
    border-bottom: 1px solid var(--line);
    background: #090d0e;
  }

  .nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }

  .hero-copy {
    width: 100%;
    min-height: max(650px, calc(100svh - var(--header-height)));
  }

  .hero-media img {
    object-position: 66% center;
  }

  .hero-copy {
    padding-top: 56px;
  }

  .hero h1 {
    font-size: clamp(54px, 18vw, 86px);
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-facts div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
  }

  .hero-facts dd {
    margin: 0;
  }

  .section-heading,
  .work-controls,
  .contact-layout {
    align-items: start;
    flex-direction: column;
  }

  .section-heading {
    display: flex;
  }

  .work-controls {
    display: flex;
  }

  .credit-search,
  .credit-search input {
    width: 100%;
  }

  .project-card,
  .commercial-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-poster {
    width: min(72vw, 320px);
  }

  .commercial-video {
    width: 100%;
  }

  .project-header {
    display: block;
  }

  .project-year {
    display: block;
    margin-top: 10px;
  }

  .project-meta {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-wide {
    grid-column: span 1;
  }

  .gallery-grid {
    grid-auto-rows: min(72vw, 420px);
  }

  .contact-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    gap: 22px;
  }
}

@media (max-width: 480px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  .filter-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .filter-button {
    border-color: var(--line);
  }

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

  .site-footer {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
