:root {
  --ink: #181818;
  --paper: #f1f0ea;
  --accent: #ef5b3f;
  --yellow: #f3ca52;
  --line: rgba(24, 24, 24, .22);
  --pad: clamp(1.25rem, 4vw, 4.5rem);
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; z-index: 1000; left: 1rem; top: -5rem; padding: .8rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }

.site-header { position: fixed; z-index: 20; top: 0; left: 0; width: 100%; height: 76px; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); mix-blend-mode: multiply; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 700; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; color: var(--paper); background: var(--ink); border-radius: 50%; font-size: .8rem; }
.site-menu { display: flex; gap: clamp(1.25rem, 3vw, 3.2rem); max-width: 72vw; overflow-x: auto; scrollbar-width: none; }
.site-menu::-webkit-scrollbar { display: none; }
.site-menu a { position: relative; text-decoration: none; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }
.site-menu a::after { content: ""; position: absolute; left: 0; bottom: -.35rem; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s ease; }
.site-menu a:hover::after, .site-menu a.active::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; border: 0; background: transparent; color: inherit; font: inherit; }

.section { overflow: hidden; contain: layout paint; }
.section-inner { width: min(100%, 1600px); min-height: 100dvh; margin: 0 auto; padding: clamp(7rem, 12vh, 9rem) var(--pad) clamp(3rem, 7vh, 5rem); }
.section-label, .kicker { margin: 0; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.page-index { position: fixed; z-index: 15; right: calc(var(--pad) / 2); top: 50%; display: grid; justify-items: center; gap: .5rem; transform: translateY(-50%); font-size: .65rem; letter-spacing: .1em; }
.page-index__line { display: block; width: 1px; height: 72px; background: var(--line); }

.hero { background: var(--paper); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); align-items: center; gap: 4vw; }
.hero__content { align-self: center; }
.hero__title { margin: clamp(1.4rem, 3vh, 2.8rem) 0 1.5rem; max-width: 1000px; font-size: clamp(4rem, 9.6vw, 10rem); font-weight: 700; line-height: .82; letter-spacing: -.075em; }
.title-line { display: block; overflow: hidden; padding: .04em .08em .09em 0; }
.title-line > span { display: block; transform: translateY(110%); }
.title-line--offset { padding-left: 8vw; }
.hero__title em { color: var(--accent); font-weight: inherit; }
.hero__copy { width: min(480px, 78%); margin: 0 0 1.7rem 8vw; font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.45; }
.text-link { margin-left: 8vw; display: inline-flex; gap: 1rem; align-items: center; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-underline-offset: .35rem; }
.hero__object { position: relative; aspect-ratio: 1; width: min(30vw, 410px); justify-self: end; }
.sun-disc { position: absolute; inset: 17%; border-radius: 50%; background: var(--yellow); }
.orbit { position: absolute; inset: 7%; border: 1px solid var(--ink); border-radius: 50%; }
.orbit--one { transform: rotate(55deg) scaleY(.38); }
.orbit--two { transform: rotate(-28deg) scaleY(.58); }
.object-note { position: absolute; right: 5%; bottom: 7%; font-size: .65rem; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }

.about { color: var(--paper); background: var(--ink); }
.about__grid { display: grid; grid-template-columns: minmax(140px, .3fr) 1fr; gap: 6vw; align-items: center; }
.statement { max-width: 1120px; margin: 0; font-size: clamp(3.4rem, 7.8vw, 8.2rem); line-height: .94; letter-spacing: -.065em; font-weight: 650; }
.word { display: inline-block; overflow: hidden; vertical-align: bottom; margin-right: .16em; }
.word > span { display: inline-block; transform: translateY(110%); }
.about__footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-top: clamp(2rem, 6vh, 5rem); padding-top: 1.5rem; border-top: 1px solid rgba(241, 240, 234, .24); }
.about__footer p { max-width: 560px; margin: 0; color: rgba(241, 240, 234, .72); line-height: 1.6; }
.roundel { width: 100px; height: 100px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: .52rem; letter-spacing: .09em; }

.work { background: var(--accent); }
.work__layout { display: grid; grid-template-rows: auto 1fr; gap: 4vh; }
.work__intro { display: grid; grid-template-columns: .55fr 1fr; gap: 6vw; align-items: start; }
.work__intro h2 { max-width: 760px; margin: 0; font-size: clamp(2.5rem, 5.2vw, 5.6rem); line-height: .95; letter-spacing: -.055em; }
.services { list-style: none; margin: auto 0 0; padding: 0; border-top: 1px solid var(--ink); }
.service-item { display: grid; grid-template-columns: 70px 1fr minmax(240px, .6fr); gap: 1.5rem; align-items: center; padding: clamp(1rem, 2.5vh, 1.8rem) 0; border-bottom: 1px solid var(--ink); }
.service-item span { font-size: .7rem; }
.service-item h3 { margin: 0; font-size: clamp(1.6rem, 3vw, 3.3rem); letter-spacing: -.045em; }
.service-item p { margin: 0; line-height: 1.45; }

.contact { color: var(--paper); background: #1c4e45; }
.contact__layout { display: grid; grid-template-rows: auto 1fr auto; }
.contact__main { align-self: center; }
.contact__title { margin: 0; font-size: clamp(3.6rem, 9vw, 9.6rem); line-height: .85; letter-spacing: -.075em; }
.contact__email { display: inline-flex; gap: 1.4rem; margin: clamp(2rem, 5vh, 4rem) 0 0 9vw; font-size: clamp(1.1rem, 2vw, 2rem); text-underline-offset: .5rem; }
.contact__footer { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid rgba(241, 240, 234, .35); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(18px); }
.fp-watermark { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
body.orientation-locked::before { display: none; }

.dynamic-section { color: var(--section-text); background: var(--section-bg); }
.dynamic-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); align-items: center; gap: clamp(2rem, 7vw, 8rem); }
.dynamic-layout--text-only { grid-template-columns: 1fr; }
.dynamic-copy { position: relative; z-index: 2; max-width: 980px; }
.dynamic-label { margin: 0 0 clamp(1.5rem, 4vh, 3rem); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.dynamic-title { margin: 0; font-size: clamp(3.6rem, 8vw, 8.5rem); font-weight: 700; line-height: .88; letter-spacing: -.065em; text-wrap: balance; }
.dynamic-title span { display: block; }
.dynamic-title span:nth-child(even) { padding-left: min(8vw, 110px); }
.dynamic-description { max-width: 58ch; margin: clamp(1.4rem, 4vh, 2.8rem) 0 0 min(8vw, 110px); font-size: clamp(1rem, 1.35vw, 1.25rem); line-height: 1.55; white-space: pre-line; text-wrap: pretty; }
.dynamic-media-grid { position: relative; display: grid; gap: clamp(.5rem, 1.3vw, 1.1rem); align-content: center; min-height: 45vh; }
.dynamic-media-grid--1 { grid-template-columns: 1fr; }
.dynamic-media-grid--2, .dynamic-media-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dynamic-media-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dynamic-media-grid--3 .dynamic-media:first-child { grid-row: span 2; }
.dynamic-media { position: relative; min-height: 0; margin: 0; overflow: hidden; background: rgba(0,0,0,.08); aspect-ratio: 4/5; }
.dynamic-media:nth-child(even) { transform: translateY(4vh); }
.dynamic-media img, .dynamic-media video, .dynamic-media iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.dynamic-media--youtube { aspect-ratio: 16/9; }
.dynamic-layout--text-only .dynamic-media-grid { display: none; }

@media (max-width: 860px) {
  .site-header { height: 66px; mix-blend-mode: normal; background: var(--paper); }
  .menu-toggle { display: inline-flex; align-items: center; gap: .7rem; z-index: 2; cursor: pointer; }
  .menu-toggle__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
  .menu-toggle__icon { width: 24px; height: 8px; border-top: 1px solid; border-bottom: 1px solid; }
  .site-menu { position: fixed; inset: 0; padding: 8rem var(--pad); display: flex; flex-direction: column; gap: 1.5rem; background: var(--yellow); transform: translateY(-105%); transition: transform .45s cubic-bezier(.77, 0, .18, 1); }
  .site-menu.is-open { transform: translateY(0); }
  .site-menu a { font-size: clamp(2.5rem, 12vw, 5rem); font-weight: 700; letter-spacing: -.05em; text-transform: none; }
  .page-index { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__object { position: absolute; right: -16vw; bottom: -10vw; width: min(62vw, 380px); opacity: .72; }
  .hero__content { position: relative; z-index: 1; }
  .hero__title { font-size: clamp(3.6rem, 17vw, 7rem); }
  .hero__copy { width: min(82%, 430px); }
  .about__grid, .work__intro { grid-template-columns: 1fr; align-content: center; }
  .about__grid { gap: 4vh; }
  .statement { font-size: clamp(3rem, 13vw, 6rem); }
  .roundel { display: none; }
  .work__layout { align-content: center; }
  .service-item { grid-template-columns: 40px 1fr; gap: .7rem 1rem; }
  .service-item p { grid-column: 2; font-size: .86rem; }
  .contact__footer { flex-wrap: wrap; }
  .dynamic-layout { grid-template-columns: 1fr; align-content: center; gap: 3vh; }
  .dynamic-title { font-size: clamp(3.25rem, 15vw, 6.5rem); letter-spacing: -.055em; }
  .dynamic-description { margin-left: 0; }
  .dynamic-media-grid { position: absolute; right: -8vw; bottom: -5vh; width: min(62vw, 430px); min-height: 32vh; opacity: .76; }
  .dynamic-copy { max-width: 88%; }
}

@media (max-height: 680px) and (min-width: 861px) {
  .section-inner { padding-top: 6rem; padding-bottom: 2rem; }
  .hero__title { font-size: clamp(4rem, 8vw, 7rem); }
  .statement { font-size: clamp(3rem, 6vw, 5rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .title-line > span, .word > span { transform: none; }
  [data-animation] { opacity: 1 !important; transform: none !important; }
  .dynamic-media video { animation: none !important; }
}

@media (orientation: landscape) and (max-height: 560px) and (max-width: 1000px) {
  body.orientation-locked::before { content: "Trang này được khóa ở màn hình dọc. Vui lòng xoay thiết bị."; position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 2rem; color: #f1f0ea; background: #181818; text-align: center; font: 700 clamp(1.5rem, 5vw, 3rem)/1.1 "Helvetica Neue", Arial, sans-serif; }
}
