/* ===== NOIZE audio — brand tokens ===== */
:root {
  --blue: #0053C8;      /* from logo */
  --cream: #E3E2DC;     /* from logo background */
  --coral: #FF6B4A;     /* highlight */
  --ink: #0A1A40;       /* deep navy for text on coral */
  --cream-2: #D6D5CE;
  --radius: 18px;
  --pad: clamp(20px, 5vw, 72px);
  --display: "Archivo", "Noto Sans Thai", system-ui, sans-serif;
  --body: "Space Grotesk", "Noto Sans Thai", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--cream);
  color: var(--blue);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--coral); color: var(--ink); }

h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: .95; letter-spacing: -.02em; }
h1 { font-size: clamp(48px, 8.5vw, 132px); }
h2 { font-size: clamp(36px, 5.5vw, 76px); }
h3 { font-size: 28px; font-weight: 700; }
.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; margin-bottom: 20px; }
.num { font-family: var(--body); font-size: .32em; font-weight: 700; vertical-align: top; color: var(--coral); margin-right: .2em; letter-spacing: 0; }
.hl {
  background: linear-gradient(transparent 62%, var(--coral) 62%, var(--coral) 92%, transparent 92%);
  padding: 0 .06em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 17px;
  border: 2px solid var(--blue);
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 20px; font-size: 15px; }
.btn--blue { background: var(--blue); color: var(--cream); }
.btn--blue:hover { background: var(--ink); border-color: var(--ink); }
.btn--coral { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: var(--cream); }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  background: var(--cream);
  border-bottom: 2px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--blue); }
.nav__logo img { height: 52px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 32px; font-weight: 700; }
.nav__links a:not(.btn) { text-decoration: none; position: relative; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 3px; width: 0;
  background: var(--coral); transition: width .25s;
}
.nav__links a:not(.btn):hover::after { width: 100%; }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.nav__toggle span { display: block; height: 3px; background: var(--blue); margin: 7px 4px; transition: transform .25s; }

/* ===== Hero ===== */
.hero {
  min-height: calc(100vh - 80px);
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px;
  padding: 40px var(--pad) 80px;
}
.hero__lead { max-width: 520px; font-size: 20px; margin: 28px 0 36px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__mark { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.mark { width: 78%; color: var(--blue); position: relative; z-index: 2; }
.mark__dot { fill: var(--blue); }
.pulse {
  position: absolute; inset: 11%; border-radius: 50%;
  border: 3px solid var(--blue); opacity: 0;
  animation: pulse 3.6s cubic-bezier(.2,.6,.3,1) infinite;
}
.pulse:nth-child(2) { animation-delay: 1.2s; }
.pulse:nth-child(3) { animation-delay: 2.4s; }
@keyframes pulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Marquee ===== */
.marquee { background: var(--blue); color: var(--cream); overflow: hidden; padding: 22px 0; border-block: 2px solid var(--blue); }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 30s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 900; font-size: clamp(28px, 4vw, 52px); text-transform: uppercase; white-space: nowrap; }
.marquee i { width: 22px; height: 22px; border-radius: 50%; background: var(--coral); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: 110px var(--pad); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  font: 700 15px var(--body); color: var(--blue); background: transparent;
  border: 2px solid var(--blue); border-radius: 999px; padding: 8px 18px; cursor: pointer;
  transition: background .2s, color .2s;
}
.filters button:hover { background: var(--cream-2); }
.filters button[aria-selected="true"] { background: var(--blue); color: var(--cream); }

/* Work cards */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.work {
  border: 2px solid var(--blue); border-radius: var(--radius); overflow: hidden;
  background: var(--cream); display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.work:hover { transform: translateY(-4px); box-shadow: 8px 8px 0 var(--blue); }
.work.is-hidden { display: none; }
.work__cover { position: relative; aspect-ratio: 16/10; background: var(--blue); overflow: hidden; }
.work__cover img { width: 100%; height: 100%; object-fit: cover; }
.work__cover svg { width: 100%; height: 100%; }
.work__tag {
  position: absolute; top: 14px; left: 14px; background: var(--cream); color: var(--blue);
  font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em;
}
.work__play {
  position: absolute; right: 16px; bottom: 16px; width: 64px; height: 64px; border-radius: 50%;
  background: var(--coral); border: 0; cursor: pointer; display: grid; place-items: center;
  transition: transform .2s; box-shadow: 0 6px 20px rgb(10 26 64 / .3);
}
.work__play:hover { transform: scale(1.08); }
.work__play svg { width: 24px; height: 24px; fill: var(--ink); }
.work__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.work__body h3 { font-size: 26px; }
.work__meta { font-size: 15px; opacity: .8; }
.work__wave { margin-top: 14px; width: 100%; height: 44px; cursor: pointer; display: block; }

/* ===== Stats ===== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--blue); color: var(--cream);
}
.stats div { padding: 56px var(--pad); border-right: 2px solid color-mix(in srgb, var(--cream) 25%, transparent); }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; font-family: var(--display); font-size: clamp(48px, 6vw, 88px); font-weight: 900; line-height: 1; }
.stats strong::after { content: ""; display: inline-block; width: .22em; height: .22em; border-radius: 50%; background: var(--coral); margin-left: .08em; }
.stats span { font-weight: 500; }

/* ===== Services ===== */
.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--blue); }
.service { padding: 36px 28px 44px 0; border-right: 2px solid var(--blue); padding-left: 28px; transition: background .25s, color .25s; }
.service:first-child { padding-left: 0; }
.service:last-child { border-right: 0; }
.service:hover { background: var(--blue); color: var(--cream); padding-left: 28px; }
.service__n {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--coral); color: var(--ink); font-weight: 700; margin-bottom: 40px;
}
.service h3 { margin-bottom: 12px; }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__img { border: 2px solid var(--blue); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; box-shadow: 14px 14px 0 var(--coral); }
.about__img { background: #ECEBEF; }
.about__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.about__placeholder { width: 100%; height: 100%; background: var(--blue); color: var(--cream); display: grid; place-items: center; align-content: center; gap: 16px; }
.about__placeholder svg { width: 40%; color: var(--cream); }
.about__placeholder span { font-weight: 700; opacity: .7; }
.about__text h2 { margin-bottom: 28px; }
.about__text p { margin-bottom: 18px; max-width: 620px; }
.about__text .big { font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; line-height: 1.25; }
.about__text h4 { margin: 32px 0 14px; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tags li { border: 2px solid var(--blue); border-radius: 999px; padding: 6px 16px; font-weight: 500; font-size: 15px; }

/* ===== Contact ===== */
.contact {
  background: var(--blue); color: var(--cream); text-align: center;
  padding: 140px var(--pad); position: relative; overflow: hidden;
}
.contact h2 { font-size: clamp(48px, 9vw, 140px); }
.contact .hl { background: var(--coral); color: var(--ink); padding: 0 .12em; border-radius: .08em; }
.contact__mail {
  display: inline-block; margin-top: 48px; font-size: clamp(22px, 3.4vw, 44px); font-weight: 700;
  text-decoration: none; border-bottom: 4px solid var(--coral); padding-bottom: 6px;
}
.contact__mail:hover { color: var(--coral); }
.contact__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 48px; }
.contact__links a {
  text-decoration: none; font-weight: 700; padding: 12px 24px; border-radius: 999px;
  border: 2px solid var(--cream); transition: background .2s, color .2s;
}
.contact__links a:hover { background: var(--cream); color: var(--blue); }

/* ===== Footer ===== */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 36px var(--pad) 120px; font-size: 15px; }
.footer img { height: 40px; width: auto; }

/* ===== Sticky player ===== */
.player {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60;
  width: min(760px, calc(100% - 24px));
  display: grid; grid-template-columns: auto minmax(0, 220px) 1fr auto; align-items: center; gap: 18px;
  background: var(--ink); color: var(--cream); border-radius: 999px; padding: 10px 24px 10px 10px;
  box-shadow: 0 14px 40px rgb(10 26 64 / .35);
  animation: rise .35s ease-out;
}
.player[hidden] { display: none; }
@keyframes rise { from { transform: translate(-50%, 30px); opacity: 0; } }
.player__btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--coral); cursor: pointer; display: grid; place-items: center; }
.player__btn svg { width: 20px; height: 20px; fill: var(--ink); }
.player__info { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.player__info strong, .player__info span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__info span { font-size: 13px; opacity: .7; }
.player__bar { height: 6px; border-radius: 6px; background: rgb(227 226 220 / .2); cursor: pointer; position: relative; }
.player__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--coral); border-radius: 6px; }
.player__time { font-variant-numeric: tabular-nums; font-size: 14px; opacity: .8; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 24px; }
  .hero__mark { max-width: 420px; width: 80%; margin: 0 auto; order: -1; }
  .services { grid-template-columns: 1fr 1fr; }
  .service, .service:first-child { padding: 32px 24px; border-bottom: 2px solid var(--blue); }
  .service:nth-child(2n) { border-right: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 2px solid color-mix(in srgb, var(--cream) 25%, transparent); }
  .about { grid-template-columns: 1fr; }
  .about__img { max-width: 420px; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav__logo img { height: 40px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 22px; padding: 32px;
    background: var(--cream); border-bottom: 2px solid var(--blue);
    transform: translateY(-120%); transition: transform .3s; font-size: 22px;
  }
  .nav.open .nav__links { transform: none; }
  .nav.open .nav__toggle span:first-child { transform: translateY(5px) rotate(45deg); }
  .nav.open .nav__toggle span:last-child { transform: translateY(-5px) rotate(-45deg); }
  .section { padding: 80px var(--pad); }
  .works { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .service { border-right: 0 !important; }
  .player { grid-template-columns: auto 1fr auto; border-radius: 22px; }
  .player__bar { grid-column: 1 / -1; order: 4; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Language switch ===== */
.nav__links { margin-left: auto; }
.lang { display: flex; margin-left: 20px; border: 2px solid var(--blue); border-radius: 999px; padding: 3px; }
.lang button {
  font: 700 13px var(--body); color: var(--blue); background: transparent; border: 0;
  padding: 6px 11px; border-radius: 999px; cursor: pointer; letter-spacing: .04em;
}
.lang button[aria-pressed="true"] { background: var(--blue); color: var(--cream); }
@media (max-width: 720px) {
  .lang { margin-left: auto; margin-right: 12px; }
}

/* ===== Thai typography: taller lines so vowels/tone marks don't clip ===== */
html[lang="th"] body { line-height: 1.7; }
html[lang="th"] h1, html[lang="th"] h2 { line-height: 1.22; letter-spacing: 0; font-weight: 800; }
html[lang="th"] h1 { font-size: clamp(44px, 7.4vw, 112px); }
html[lang="th"] h3 { line-height: 1.3; }
html[lang="th"] .eyebrow { letter-spacing: .04em; }
html[lang="th"] .about__text .big { line-height: 1.5; }

/* ===== Contact ===== */
.contact__main { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 40px; }
.contact__main .contact__mail { margin-top: 0; }

/* ===== Album / multi-track card ===== */
.work--album { grid-column: 1 / -1; flex-direction: row; }
.work--album .work__cover { aspect-ratio: auto; flex: 0 0 min(38%, 420px); background: var(--ink); }
.work--album .work__cover img { object-position: top; }
.work--album .work__body { padding: clamp(24px, 3vw, 44px); justify-content: center; gap: 8px; }
.work--album .work__body h3 { font-size: clamp(30px, 3.4vw, 48px); }
.work--album .work__wave { height: 56px; margin-top: 20px; }
.tracks { list-style: none; margin-top: 22px; border-top: 2px solid var(--blue); }
.track {
  width: 100%; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px;
  padding: 14px 6px; background: none; border: 0; border-bottom: 2px solid color-mix(in srgb, var(--blue) 25%, transparent);
  font: 500 19px var(--body); color: var(--blue); text-align: left; cursor: pointer;
  transition: background .2s, padding .2s;
}
.track:hover { background: var(--cream-2); padding-left: 12px; }
.track__n { font-weight: 700; font-size: 14px; opacity: .6; }
.track__d { font-size: 15px; opacity: .7; font-variant-numeric: tabular-nums; }
.track.is-active { color: var(--ink); font-weight: 700; }
.track.is-active .track__n { opacity: 1; color: transparent; position: relative; }
.track.is-active .track__n::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%; background: var(--coral);
}
.track.is-playing .track__n::before { animation: beat .8s ease-in-out infinite alternate; }
@keyframes beat { to { transform: scale(1.5); } }
.work--album:hover { transform: none; box-shadow: 10px 10px 0 var(--blue); }

@media (max-width: 820px) {
  .work--album { flex-direction: column; }
  .work--album .work__cover { flex: none; aspect-ratio: 4/5; max-height: 560px; }
}
.work__sub { font-family: var(--display), "Noto Sans Thai", sans-serif; font-weight: 700; font-size: clamp(20px, 2vw, 26px); line-height: 1.3; margin-top: -2px; }

/* ===== Sound design reels ===== */
.section__lead { max-width: 440px; font-size: 17px; }
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.reel {
  position: relative; aspect-ratio: 9/16; border-radius: var(--radius); overflow: hidden;
  background: var(--ink); border: 2px solid var(--blue);
  transition: transform .25s, box-shadow .25s;
}
.reel.is-extra { display: none; }
.reels.show-all .reel.is-extra { display: block; }
.reel:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 var(--blue); }
.reel img, .reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel video { background: #000; z-index: 2; }
.reel__btn {
  position: absolute; inset: 0; border: 0; cursor: pointer; padding: 0;
  background: linear-gradient(transparent 55%, rgb(10 26 64 / .75));
}
.reel__play {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-radius: 50%; background: var(--coral); display: grid; place-items: center;
  box-shadow: 0 6px 20px rgb(10 26 64 / .35); transition: transform .2s;
}
.reel__play svg { width: 22px; height: 22px; fill: var(--ink); }
.reel__btn:hover .reel__play { transform: scale(1.1); }
.reel__dur {
  position: absolute; right: 12px; bottom: 12px; color: var(--cream);
  font: 700 13px var(--body); font-variant-numeric: tabular-nums;
}
.reel__title {
  position: absolute; left: 12px; bottom: 12px; right: 56px; color: var(--cream); text-align: left;
  font: 700 15px var(--body); line-height: 1.25;
}
.reel.is-open:hover { transform: none; box-shadow: none; }
.reels__more { display: flex; justify-content: center; margin-top: 36px; }
@media (max-width: 720px) {
  .reels { grid-template-columns: 1fr 1fr; gap: 10px; }
  .reel__play { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
}

/* ===== Behind the sound gallery ===== */
.gallery-wrap { padding-top: 40px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(200px, 24vw, 340px); gap: 16px; }
.shot { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--blue); background: var(--ink); }
.shot--tall { grid-row: span 2; }
.shot--wide { grid-column: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.shot:hover img { transform: scale(1.04); }
.shot figcaption {
  position: absolute; left: 12px; bottom: 12px; background: var(--cream); color: var(--blue);
  font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}
@media (max-width: 820px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; gap: 10px; }
  .shot--wide { grid-column: span 2; }
}

/* ===== About: experience + DAWs ===== */
.exp { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0 8px; max-width: 620px; }
.exp__item { border: 2px solid var(--blue); border-radius: var(--radius); padding: 18px 20px; }
.exp__item strong { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(44px, 5vw, 64px); line-height: 1; }
.exp__item strong span { color: var(--coral); }
.exp__item p { margin: 8px 0 0; font-weight: 500; font-size: 16px; line-height: 1.35; }
.tags--daw li { background: var(--blue); color: var(--cream); }
@media (max-width: 480px) { .exp { grid-template-columns: 1fr; } }
.tags--gear li { font-size: 14px; padding: 5px 14px; }
.shot--full { grid-column: 1 / -1; grid-row: span 2; }

/* ===== Horizontal videos (foley + featured sound design) ===== */
.films { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.films--feature { grid-template-columns: 1fr; max-width: 980px; margin: 0 auto 28px; }
.reel--wide { aspect-ratio: 16 / 9; }
.reel--wide .reel__play { width: 70px; height: 70px; margin: -35px 0 0 -35px; }
.reel--wide .reel__title { font-size: 18px; right: 70px; }
.reel video { object-fit: contain; }
@media (max-width: 820px) { .films { grid-template-columns: 1fr; } }

/* ===== Nav: fit more links ===== */
.nav__links a { white-space: nowrap; }
@media (max-width: 1180px) { .nav__links { gap: 22px; font-size: 16px; } }
@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .lang { margin-left: auto; margin-right: 12px; }
  .nav__links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 22px; padding: 32px;
    background: var(--cream); border-bottom: 2px solid var(--blue);
    transform: translateY(-120%); transition: transform .3s; font-size: 22px;
  }
  .nav.open .nav__links { transform: none; }
  .nav.open .nav__toggle span:first-child { transform: translateY(5px) rotate(45deg); }
  .nav.open .nav__toggle span:last-child { transform: translateY(-5px) rotate(-45deg); }
}
