:root {
  color-scheme: dark;
  --ink: #171714;
  --panel: #20201c;
  --paper: #f1ece3;
  --text: #f2eee7;
  --muted: #b4b0a5;
  --gold: #d4b78c;
  --line: #35352e;
  --sans: "Inter", "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html[lang="vi"] { --serif: "Playfair Display", Georgia, serif; }
::selection { background: var(--gold); color: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: progress; opacity: .6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
:where(section[id]) { scroll-margin-top: 22px; }
.wrap { width: min(100% - 104px, 1320px); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; left: 16px; top: 12px; background: var(--ink); padding: 10px 15px; }
.section-pad { padding-block: clamp(75px, 8vw, 120px); }
.gold { color: var(--gold); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: .94; }
h2 { font-size: clamp(58px, 7vw, 104px); letter-spacing: -.035em; }
:where(html[lang="vi"]) h2 { font-size: clamp(40px, 6.1vw, 82px); line-height: 1.12; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.rule { width: 27px; height: 1px; background: currentColor; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 48px; padding: 10px 19px; border: 1px solid transparent; background: transparent; color: inherit; white-space: nowrap; font-size: 12px; font-weight: 600; line-height: 1.25; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.button [aria-hidden], .text-link [aria-hidden] { font-size: 16px; font-weight: 400; }
.button-outline { border-color: #555248; }
.button-outline:hover { border-color: var(--gold); color: var(--gold); }
.button-gold { background: var(--gold); color: #242019; }
.button-gold:hover { background: #ecd2aa; }
.button-dark { background: #23231f; color: #f7f1e7; }
.button-dark:hover { background: #433e34; }
.text-link { display: inline-flex; gap: 16px; align-items: center; padding: 4px 0; border: 0; border-bottom: 1px solid #766b59; background: transparent; color: var(--gold); font-size: 13px; font-weight: 600; }
.text-link:hover { color: var(--text); }
.masthead { position: relative; z-index: 1; border-bottom: 1px solid #33322c; background: #191916; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(12px, 2vw, 28px); align-items: center; min-height: 79px; }
.brand { display: inline-flex; align-items: center; gap: 13px; width: fit-content; line-height: 1; }
.brand .mark { width: 39px; height: 42px; object-fit: contain; }
.brand strong { display: block; margin-bottom: 7px; font-size: 17px; font-weight: 600; letter-spacing: .015em; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.header-inner nav, .footer-links { display: flex; align-items: center; gap: clamp(17px, 2.8vw, 45px); }
.header-inner nav a, .footer-links a, .footer-links button { color: #ded9ce; font-size: 13px; font-weight: 500; }
.header-inner nav a:hover, .footer-links a:hover, .footer-links button:hover { color: var(--gold); }
.header-actions { display: flex; align-items: center; justify-self: end; gap: 14px; }
.header-cta { min-height: 44px; }
.language-switch { display: flex; align-items: center; border: 1px solid #555248; }
.language-switch button { min-width: 44px; min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.language-switch button[aria-pressed="true"] { background: #353025; color: #f8dfb5; }
.language-switch button:hover { color: var(--text); }
.hero { position: relative; isolation: isolate; overflow: hidden; background: #32352d; }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; object-fit: cover; object-position: 62% center; }
.hero-shade { z-index: -1; background: linear-gradient(90deg, #121510e8 0%, #151811b5 32%, #10130d3a 70%, #11150e1c 100%), linear-gradient(0deg, #11130d9c, transparent 35%); }
.hero-inner { position: relative; display: flex; align-items: center; min-height: min(690px, 77vh); padding-block: 91px 111px; }
.hero-copy { max-width: 750px; }
.hero-copy h1 { margin-block: 0 24px; font-size: clamp(64px, 8.2vw, 112px); line-height: .98; letter-spacing: -.038em; }
html[lang="vi"] .hero-copy h1 { font-size: clamp(46px, 6.8vw, 93px); line-height: 1.1; }
.down-icon { position: relative; width: 12px; height: 14px; }
.down-icon::before { content: ""; position: absolute; left: 5px; top: 1px; width: 1px; height: 11px; background: currentColor; }
.down-icon::after { content: ""; position: absolute; bottom: 2px; left: 2px; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.hero h1 em { color: #e3c79f; font-weight: 400; }
.hero-text { max-width: 350px; margin-bottom: 30px; color: #f1eae0; font-size: clamp(14px, 1.25vw, 18px); line-height: 1.5; }
.featured { position: absolute; right: 0; bottom: 28px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1px 24px; padding: 13px 16px; border: 1px solid #eee3c848; background: #181a14c9; color: var(--text); text-align: left; }
.featured:hover { border-color: var(--gold); }
.featured span:first-child { grid-column: 1; color: #d5c8b5; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.featured strong { grid-column: 1; font-size: 13px; font-weight: 600; }
.featured span:last-child { grid-row: 1 / 3; grid-column: 2; color: var(--gold); }
.work-heading { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: end; margin-bottom: 36px; }
.work-heading p { max-width: 390px; justify-self: end; padding-bottom: 5px; color: var(--muted); font-size: 15px; }
.region-switch { display: flex; flex-wrap: wrap; gap: 0 clamp(20px, 4vw, 48px); border-bottom: 1px solid var(--line); margin-bottom: 19px; }
.region-switch button { min-height: 48px; margin-bottom: -1px; padding: 8px 0 11px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: clamp(14px, 1.4vw, 17px); font-weight: 600; }
.region-switch button:hover { color: var(--text); }
.region-switch button[aria-pressed="true"] { border-bottom-color: var(--gold); color: var(--gold); }
.work-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px 20px; margin-bottom: 24px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filters button { min-height: 40px; padding: 6px 12px; border: 1px solid #454238; border-radius: 2px; background: transparent; color: #ded7cc; font-size: 12px; line-height: 1.3; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.filters button:hover { border-color: var(--gold); color: var(--gold); }
.filters button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold); color: #231e18; }
.result-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 52px) clamp(16px, 2vw, 28px); }
.card { display: flex; flex-direction: column; min-width: 0; width: 100%; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; }
.card:hover { border-color: var(--gold); }
.card-frame { display: block; width: 100%; aspect-ratio: 1.49; overflow: hidden; background: #303028; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.22,.61,.36,1); }
.card:hover img { transform: scale(1.03); }
.card-body { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 9px; align-items: baseline; padding: 15px 0 17px; }
.card-category { color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.card-title { grid-column: 1 / -1; grid-row: 2; font-family: var(--serif); font-size: clamp(25px, 2.5vw, 38px); line-height: 1.12; overflow-wrap: anywhere; }
.card-count { grid-column: 2; grid-row: 1; color: var(--muted); font-size: 11px; }
.empty { padding: 30px 0; color: var(--muted); }
.stories { border-top: 1px solid var(--line); background: #1d1d18; }
.stories-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.story-card { display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); background: #26251f; color: var(--text); text-align: left; }
.story-card:hover { border-color: var(--gold); }
.story-card-image { display: block; width: 100%; aspect-ratio: 1.75; background: #303028; }
.story-card-image img { width: 100%; height: 100%; object-fit: cover; }
.story-card-body { display: grid; gap: 11px; padding: 18px; }
.story-card-title { font: 400 clamp(27px, 2.8vw, 40px)/1.05 var(--serif); }
.story-card-link { color: var(--gold); font-size: 12px; font-weight: 600; }
.studio { border-top: 1px solid #39372e; background: #22221d; }
.studio-heading h2 { margin-top: 15px; font-size: clamp(49px, 7.2vw, 98px); }
.studio-video { margin-block: clamp(25px, 4vw, 44px) clamp(54px, 8vw, 104px); }
.studio-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; background: #151510; }
.studio-video figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 13px; border-bottom: 1px solid #454237; color: var(--muted); font-size: 13px; }
.studio-grid { display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr); align-items: center; gap: clamp(35px, 7vw, 105px); max-width: 1080px; margin-inline: auto; }
.studio-portrait { max-width: 365px; }
.studio-portrait img { width: 100%; height: auto; }
.studio-portrait figcaption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 16px; padding-block: 13px; border-bottom: 1px solid #454237; }
.studio-portrait figcaption strong { font-weight: 600; }
.studio-portrait figcaption span { color: var(--muted); font-size: 12px; }
.studio h3 { margin-bottom: 13px; color: var(--text); font: 400 clamp(35px, 4.2vw, 56px)/1.05 var(--serif); }
.studio p:not(.eyebrow) { max-width: 58ch; color: #c9c2b6; font-size: 15px; }
.studio-copy p + p { margin-top: 13px; }
.studio-copy .text-link { margin-top: 24px; }
.studio-scenes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); max-width: 1080px; margin: clamp(40px, 7vw, 86px) auto 0; }
.studio-scenes img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.studio-principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); max-width: 1080px; margin: clamp(40px, 7vw, 86px) auto 0; }
.studio-principles > div { padding-top: 19px; border-top: 1px solid #72644f; }
.contact { color-scheme: light; background: #eae2d4; color: #24221d; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); }
.contact .eyebrow { color: #745a39; }
.contact h2 { margin: 20px 0; }
.contact h2 em { color: #765d3e; font-weight: 400; }
.contact-grid > div > p:last-child { max-width: 360px; color: #5f554a; }
.contact-form, .admin-form { display: grid; gap: 15px; }
.contact-form { align-self: center; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 6px; align-content: start; color: inherit; font-size: 12px; font-weight: 600; }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 11px; border: 1px solid #8f807050; border-radius: 0; background: #f1eade; color: #29251f; font-size: 14px; font-weight: 400; }
textarea { resize: vertical; }
.contact :is(input, select, textarea):focus-visible { outline-color: #765d3e; }
.trap { position: absolute; left: -10000px; }
.contact-action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.form-status { font-size: 13px; }
.contact .form-status { color: #405433; }
.contact .form-status[data-error] { color: #9b312b; }
.footer { padding-block: 29px; background: #171714; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 25px; }
.footer-links button { border: 0; padding: 0; background: transparent; }
.footer-links button { color: var(--muted); }
.portfolio-page .work { padding-top: clamp(38px, 6.2vw, 85px); }
.portfolio-page h1 { font-size: clamp(53px, 7.5vw, 106px); line-height: 1; letter-spacing: -.035em; }
html[lang="vi"] .portfolio-page h1 { font-size: clamp(40px, 6vw, 80px); line-height: 1.12; }
.portfolio-intro { max-width: 360px; justify-self: end; }
.portfolio-intro p:last-child { padding-bottom: 0; color: var(--gold); font-size: 13px; }
.portfolio-page .footer { border-top: 1px solid var(--line); }
dialog { width: min(100% - 30px, 1000px); max-width: none; max-height: calc(100dvh - 30px); padding: 0; border: 1px solid #565146; background: #22221d; color: var(--text); }
dialog::backdrop { background: #12120fd4; backdrop-filter: blur(4px); }
.gallery-header, .admin-heading { display: flex; gap: 15px; justify-content: space-between; align-items: start; padding: 22px 25px 18px; }
.gallery-header h2, .admin-heading h2 { margin-top: 10px; font-size: clamp(36px, 5vw, 61px); }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; flex: 0 0 auto; border: 1px solid #8c806c; border-radius: 50%; background: #1d1d19da; color: var(--text); font-size: 20px; line-height: 1; }
.icon-button:hover { border-color: var(--gold); color: var(--gold); }
.close { font-size: 27px; }
.gallery-stage { position: relative; display: grid; place-items: center; min-height: 100px; background: #121211; }
.gallery-stage img { width: 100%; height: min(55dvh, 570px); object-fit: contain; }
.gallery-prev, .gallery-next { position: absolute; top: 50%; transform: translateY(-50%); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-footer { display: grid; gap: 13px; padding: 16px 25px 21px; }
.gallery-footer > p { color: var(--muted); font-size: 14px; }
.gallery-story, .story-body > .text-link { justify-self: start; }
.story-dialog { width: min(100% - 30px, 780px); }
.story-cover { width: 100%; max-height: 51dvh; object-fit: cover; }
.story-body { display: grid; gap: 24px; padding: clamp(22px, 5vw, 45px); }
.story-intro { color: var(--text); font-size: 17px; }
.story-section + .story-section { margin-top: 21px; }
.story-section h3 { margin-bottom: 6px; color: var(--gold); font: 400 28px/1.1 var(--serif); }
.story-section p { color: #d8d0c3; }
.thumbs { display: flex; gap: 7px; flex-wrap: wrap; }
.thumbs button { padding: 0; border: 2px solid transparent; background: transparent; }
.thumbs button[aria-pressed="true"] { border-color: var(--gold); }
.thumbs img { width: 68px; height: 48px; object-fit: cover; }
.admin { width: min(100% - 30px, 800px); padding-bottom: 25px; }
.admin-heading { border-bottom: 1px solid var(--line); }
.admin > .admin-form, .admin-status, .admin-site-signin, #admin-content { margin-inline: 25px; }
.admin-status { min-height: 1em; margin-block: 12px; color: var(--gold); }
.admin-status[data-error] { color: #f3a99e; }
.admin > .admin-form { max-width: 420px; }
.admin > .admin-form button, .project-actions button:first-child { width: fit-content; }
.admin input:not([type="file"]), .admin select, .admin textarea { border-color: #5d5549; background: #191916; color: var(--text); }
.admin-nav, .project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.admin-nav { margin: 0 0 21px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.admin-nav button { padding: 5px 8px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 13px; }
.admin-nav button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.admin-nav #admin-logout { margin-left: auto; }
.admin-project-toolbar { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; margin-bottom: 18px; }
.admin-project-toolbar .button { min-height: 44px; }
.admin-media { margin-top: 23px; padding-top: 19px; border-top: 1px solid var(--line); }
.media-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.media-heading h3 { font-weight: 600; }
.media-heading .button { min-height: 39px; }
.media-help { color: var(--muted); font-size: 12px; margin-block: 3px 13px; }
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.media-item { border: 1px solid var(--line); }
.media-item img { width: 100%; aspect-ratio: 1.52; object-fit: cover; }
.media-item button { padding: 6px 9px; border: 0; background: transparent; }
.danger { color: #efa799; }
.inquiry { padding: 16px 0; border-bottom: 1px solid var(--line); }
.inquiry h3 { font-size: 16px; }
.inquiry p { margin-block: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.inquiry .meta { color: var(--muted); font-size: 12px; }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .hero-inner { min-height: 600px; }
  .work-toolbar { align-items: flex-start; }
  .result-count { padding-top: 8px; }
  .header-cta { display: none; }
  .stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 5px 10px; padding-top: 12px; }
  .header-inner nav { grid-column: 1 / -1; grid-row: 2; gap: 10px clamp(12px, 4vw, 24px); flex-wrap: wrap; }
  .header-inner nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .hero-inner { min-height: min(540px, 77svh); padding-block: 65px 110px; }
  .hero-copy h1 { font-size: clamp(49px, 9vw, 76px); }
  html[lang="vi"] .hero-copy h1 { font-size: clamp(36px, 8vw, 61px); }
  .hero-shade { background: linear-gradient(90deg, #121510df, #12151075 70%, #1215103d), linear-gradient(0deg, #13160ea0, transparent 40%); }
  .work-heading, .studio-grid, .contact-grid { grid-template-columns: 1fr; gap: 19px; }
  .work-heading p { justify-self: start; }
  .portfolio-intro { justify-self: start; }
  .studio-grid { gap: 31px; }
  .studio-portrait { max-width: min(100%, 320px); }
  .studio-scenes { grid-template-columns: 1fr; }
  .studio-principles { grid-template-columns: 1fr; }
  .contact-grid { gap: 28px; }
  .work-toolbar { flex-direction: column; gap: 6px; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 12px 0 15px; }
  .filters button { min-height: 44px; }
}
@media (max-width: 440px) {
  .brand { gap: 8px; }
  .brand .mark { width: 32px; height: 35px; }
  .brand strong { font-size: 15px; }
  .header-inner nav a { font-size: 12px; }
  .hero-inner { min-height: 475px; }
  .featured { bottom: 18px; }
  .projects { grid-template-columns: 1fr; }
  .stories-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .gallery-header, .gallery-footer, .admin-heading { padding-inline: 14px; }
  .admin > .admin-form, .admin-status, .admin-site-signin, #admin-content { margin-inline: 14px; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
