/*
Theme Name: 9C Portfolio
Theme URI: https://9c.avlong.io
Author: 9C
Author URI: https://9c.avlong.io
Description: Editorial performance portfolio for 9C — precision-built RC crawler engineering. Full-bleed imagery, scroll-driven horizontal storytelling, asymmetric editorial layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nine-c
Tags: portfolio, one-column, full-width-template, custom-colors, accessibility-ready
*/

:root {
  --ink: #111111;
  --paper: #f0efe9;
  --white: #fafaf7;
  --red: #e30620;
  --line: rgba(17, 17, 17, 0.25);
  --gutter: clamp(20px, 3.15vw, 64px);
  --header-h: 92px;
  --ease: cubic-bezier(.2, .72, .2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.3;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }
body.menu-open .site-header { mix-blend-mode: normal; }

img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

::selection { color: var(--white); background: var(--red); }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.loader {
  position: fixed;
  z-index: 999;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  padding: var(--gutter);
  color: var(--white);
  background: var(--ink);
  transition: transform .9s var(--ease), visibility 0s .9s;
}

.loader.is-complete { transform: translateY(-101%); visibility: hidden; }
.loader__brand { align-self: center; font-size: clamp(7rem, 25vw, 30rem); font-weight: 800; line-height: .7; letter-spacing: -.1em; }
.loader__brand sup { color: var(--red); font-size: .07em; letter-spacing: 0; vertical-align: top; }
.loader__progress { align-self: end; width: min(46vw, 680px); height: 1px; margin-right: 3vw; overflow: hidden; background: #444; }
.loader__progress span { display: block; width: 0; height: 100%; background: var(--red); }
.loader__number { align-self: end; font-size: clamp(2rem, 4vw, 5rem); font-variant-numeric: tabular-nums; line-height: .8; }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: var(--header-h);
  padding: 0 var(--gutter);
  color: var(--white);
  mix-blend-mode: difference;
}

/* Logo là SIBLING của .site-header (xem chú thích trong header.php) nên nằm
   ngoài nhóm blend → giữ đúng màu thương hiệu, chữ C luôn đỏ.
   .brand-slot chỉ để giữ ô lưới thứ nhất cho header. */
.brand { position: fixed; z-index: 103; top: 0; left: var(--gutter); display: flex; align-items: center; width: 82px; height: var(--header-h); }
.brand img { height: 38px; object-fit: contain; object-position: left center; }
.brand-slot { width: 82px; }
.header__meta { justify-self: center; text-align: center; font-size: 10px; font-weight: 600; letter-spacing: .16em; line-height: 1.4; }
.menu-toggle { position: relative; z-index: 102; justify-self: end; width: 82px; height: 38px; padding: 0; border: 0; color: inherit; background: none; cursor: pointer; text-transform: uppercase; font-size: 11px; letter-spacing: .12em; }
.menu-toggle span { position: absolute; left: 0; top: 11px; transition: opacity .25s; }
.menu-toggle i { position: absolute; right: 0; width: 22px; height: 1px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-toggle i:nth-of-type(1) { top: 14px; }
.menu-toggle i:nth-of-type(2) { top: 22px; }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"] i:nth-of-type(1) { top: 18px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] i:nth-of-type(2) { top: 18px; transform: rotate(-45deg); }

.site-menu {
  position: fixed;
  z-index: 101;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 34px var(--gutter) 28px;
  color: var(--white);
  background: var(--ink);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-3%);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}

.site-menu.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.menu__top, .menu__bottom { display: flex; justify-content: space-between; padding-left: min(22vw, 360px); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.menu__links { align-self: center; margin-left: min(11vw, 180px); }
.menu__links a { display: grid; grid-template-columns: min(10vw, 130px) auto; align-items: baseline; width: max-content; overflow: hidden; }
.menu__links small { color: #777; font-size: 11px; }
.menu__links span { font-size: clamp(3.2rem, 8vw, 9rem); font-weight: 500; letter-spacing: -.07em; line-height: .92; transition: color .25s, transform .4s var(--ease); }
.menu__links a:hover span, .menu__links a:focus-visible span { color: var(--red); transform: translateX(2vw); }
.menu__bottom { align-items: end; border-top: 1px solid #3b3b3b; padding-top: 24px; }

.section-pad { padding: clamp(110px, 13vw, 260px) var(--gutter); }
.section-tag { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.display-title { margin: clamp(50px, 7vw, 120px) 0 0; font-size: clamp(3.9rem, 10.3vw, 12.5rem); font-weight: 500; letter-spacing: -.075em; line-height: .82; }
.display-title span { display: block; }
.display-title i { color: var(--red); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.display-title--compact { font-size: clamp(3.5rem, 8.4vw, 10rem); }
.display-title--light { color: var(--white); }
.eyebrow { text-transform: uppercase; font-size: 11px; letter-spacing: .15em; }

.hero { position: relative; min-height: 100svh; color: var(--white); background: #111; overflow: hidden; }
.hero__media, .hero__shade { position: absolute; inset: 0; }
.hero__media { height: 110%; top: -5%; }
.hero__media img { height: 100%; object-fit: cover; object-position: center 48%; }
.hero__shade { background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.02) 38%, rgba(0,0,0,.65)); }
.hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100svh; padding: calc(var(--header-h) + 8vh) var(--gutter) 35px; }
.hero__title { margin: auto 0 4vh; font-size: clamp(5.2rem, 14.5vw, 17rem); font-weight: 500; letter-spacing: -.09em; line-height: .72; }
.hero__title span { display: block; }
.hero__title span:last-child { padding-left: 13vw; }
.hero__title em { color: var(--red); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero__footer { display: flex; align-items: end; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.45); padding-top: 18px; }
.hero__footer p { margin: 0; max-width: 330px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.round-link { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; transition: color .25s, background .25s, transform .35s var(--ease); }
.round-link:hover { color: var(--ink); background: var(--white); transform: rotate(-45deg); }
.round-link svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.hero__index { position: absolute; z-index: 2; right: var(--gutter); top: 48%; writing-mode: vertical-rl; font-size: 10px; letter-spacing: .15em; }
.hero__index span { color: var(--red); margin: 8px 0; }

.manifesto { background: var(--paper); }
.manifesto__grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 12vw; margin-top: clamp(90px, 14vw, 230px); padding-left: 15vw; }
.manifesto__grid p { margin: 0; }
.lede { max-width: 780px; font-size: clamp(2rem, 4.2vw, 5.2rem); letter-spacing: -.045em; line-height: 1.02; }
.manifesto__body { align-self: end; max-width: 440px; }
.manifesto__body p { font-size: clamp(1rem, 1.25vw, 1.35rem); line-height: 1.55; }
.text-link { display: flex; justify-content: space-between; margin-top: 52px; border-bottom: 1px solid var(--ink); padding-bottom: 9px; text-transform: uppercase; font-size: 11px; font-weight: 600; letter-spacing: .11em; }

.cinematic { position: relative; height: min(88vw, 1150px); min-height: 700px; overflow: hidden; color: var(--white); background: var(--ink); }
.cinematic__media { position: absolute; inset: -6%; }
.cinematic__media img { height: 100%; object-fit: cover; object-position: center 40%; filter: saturate(.78) contrast(1.08); }
.cinematic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.65)); }
.cinematic__copy { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: 38px; display: flex; align-items: end; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.5); padding-top: 16px; }
.cinematic__copy span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.cinematic__copy p { margin: 0; font-size: clamp(1.8rem, 4vw, 4.5rem); letter-spacing: -.045em; line-height: .95; }

.system { background: var(--white); }
.system__intro { position: relative; }
.system__note { position: absolute; right: 0; bottom: 0; margin: 0; text-transform: uppercase; font-size: 10px; letter-spacing: .12em; writing-mode: vertical-rl; }
.parts-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(40px, 7vw, 130px) clamp(16px, 2.5vw, 48px); margin-top: clamp(110px, 16vw, 300px); }
.part-card { grid-column: span 4; margin: 0; align-self: start; }
.part-card--wide { grid-column: span 5; }
.part-card--landscape { grid-column: span 6; }
.part-card:nth-child(2), .part-card:nth-child(5), .part-card:nth-child(8), .part-card:nth-child(11) { margin-top: clamp(90px, 12vw, 210px); }
.part-card:nth-child(4), .part-card:nth-child(10) { grid-column-start: 2; }
.part-card img { aspect-ratio: 1 / 1; object-fit: cover; background: #f4f4f2; transition: transform .8s var(--ease), filter .45s; }
.part-card--landscape img { aspect-ratio: 1.45 / 1; }
.part-card--tall img { aspect-ratio: .78 / 1; }
.part-card:hover img { transform: scale(.985); filter: contrast(1.06); }
.part-card figcaption { display: flex; justify-content: space-between; margin-top: 11px; border-top: 1px solid var(--line); padding-top: 8px; text-transform: uppercase; font-size: 10px; letter-spacing: .1em; }
.part-card figcaption b { color: var(--red); }

.horizontal-story { position: relative; height: 500vh; color: var(--white); background: var(--ink); }
.horizontal-story__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.horizontal-story__top { position: absolute; z-index: 2; top: 0; left: 0; display: flex; justify-content: space-between; width: 100%; padding: 28px var(--gutter); pointer-events: none; }
.horizontal-story__counter { font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.horizontal-story__counter span { color: var(--red); }
.horizontal-story__track { display: flex; align-items: stretch; width: max-content; height: 100%; will-change: transform; }
.horizontal-intro { position: relative; flex: 0 0 62vw; display: flex; flex-direction: column; justify-content: center; padding: 12vh var(--gutter) 8vh; border-right: 1px solid #3d3d3d; }
.horizontal-intro p { margin: 0 0 6vh; text-transform: uppercase; font-size: 10px; letter-spacing: .13em; }
.horizontal-intro h2 { margin: 0; font-size: clamp(4.6rem, 9.2vw, 11rem); font-weight: 500; letter-spacing: -.075em; line-height: .82; }
.horizontal-intro h2 i { color: var(--red); font-family: Georgia, serif; font-weight: 400; }
.horizontal-intro__arrow { position: absolute; right: var(--gutter); bottom: 7vh; font-size: clamp(3rem, 6vw, 7rem); font-weight: 200; }
.horizontal-card { position: relative; flex: 0 0 76vw; display: grid; grid-template-columns: 1.45fr .75fr; gap: clamp(25px, 4vw, 80px); padding: 12vh var(--gutter) 7vh; border-right: 1px solid #3d3d3d; background: var(--ink); }
.horizontal-card__media { position: relative; min-width: 0; height: 72vh; }
.horizontal-card__media > img { height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.horizontal-card:hover .horizontal-card__media > img { transform: scale(1.012); }
.horizontal-card__inset { position: absolute; z-index: 1; right: -4vw; bottom: 5vh; width: clamp(150px, 17vw, 330px); margin: 0; padding: 10px 10px 8px; color: var(--ink); background: var(--white); box-shadow: 0 18px 55px rgba(0,0,0,.22); }
.horizontal-card__inset img { aspect-ratio: 1 / 1; height: auto; object-fit: cover; }
.horizontal-card__inset figcaption { display: flex; justify-content: space-between; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 6px; text-transform: uppercase; font-size: 9px; letter-spacing: .1em; }
.horizontal-card__copy { display: flex; flex-direction: column; justify-content: end; padding-bottom: 3vh; }
.horizontal-card__copy > span { margin-bottom: auto; text-transform: uppercase; font-size: 10px; letter-spacing: .13em; }
.horizontal-card__copy h3 { margin: 0 0 3vh; font-size: clamp(2.7rem, 5vw, 6rem); font-weight: 500; letter-spacing: -.06em; line-height: .9; }
.horizontal-card__copy p { max-width: 410px; margin: 0; color: #aaa; font-size: clamp(.95rem, 1.15vw, 1.2rem); line-height: 1.5; }
.horizontal-card--light { color: var(--ink); background: var(--paper); border-color: rgba(17,17,17,.25); }
.horizontal-card--light .horizontal-card__copy p { color: #555; }
.horizontal-card--red { background: var(--red); border-color: rgba(255,255,255,.35); }
.horizontal-card--red .horizontal-card__copy p { color: rgba(255,255,255,.75); }
.horizontal-outro { flex: 0 0 42vw; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.horizontal-outro span { color: var(--red); font-size: clamp(10rem, 25vw, 28rem); font-weight: 800; letter-spacing: -.12em; line-height: .7; }
.horizontal-outro p { margin: 10vh 0 0; text-transform: uppercase; font-size: 10px; letter-spacing: .13em; }
.horizontal-story__progress { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 24px; height: 1px; overflow: hidden; background: #444; }
.horizontal-story__progress span { display: block; width: 100%; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left center; will-change: transform; }
.horizontal-story.is-native { height: 100svh !important; }
.horizontal-story.is-native .horizontal-story__sticky { position: relative; }
.horizontal-story.is-native .horizontal-story__track { max-width: 100vw; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; transform: none !important; will-change: auto; }
.horizontal-story.is-native .horizontal-story__track::-webkit-scrollbar { display: none; }
.horizontal-story.is-native .horizontal-intro,
.horizontal-story.is-native .horizontal-card { scroll-snap-align: start; }

.quote-panel { position: relative; min-height: 115svh; color: var(--white); background: var(--ink); overflow: hidden; }
.quote-panel__media { position: absolute; inset: -6%; }
.quote-panel__media img { height: 100%; object-fit: cover; filter: brightness(.42) grayscale(.12); }
.quote-panel__content { position: relative; z-index: 1; min-height: 115svh; display: flex; flex-direction: column; justify-content: space-between; }
.quote-panel__content .display-title { margin-top: auto; margin-bottom: 8vh; }
.quote-panel__content > p { align-self: end; width: min(33vw, 530px); margin: 0; font-size: clamp(1.2rem, 2vw, 2.2rem); letter-spacing: -.025em; }

.engineering { background: var(--paper); }
.engineering__head { margin-bottom: clamp(100px, 14vw, 260px); }
.value-list { border-top: 1px solid var(--ink); }
.value { position: relative; display: grid; grid-template-columns: 10vw 1.3fr 1fr 40px; align-items: center; gap: 3vw; min-height: 190px; border-bottom: 1px solid var(--ink); }
.value__number { align-self: start; padding-top: 28px; color: var(--red); font-size: 11px; }
.value h3 { margin: 0; font-size: clamp(2.6rem, 6vw, 7rem); font-weight: 500; letter-spacing: -.06em; }
.value p { max-width: 420px; margin: 0; font-size: clamp(.95rem, 1.2vw, 1.2rem); line-height: 1.5; }
.value__mark { font-size: 28px; transition: transform .4s var(--ease); }
.value:hover .value__mark { transform: rotate(-45deg); color: var(--red); }

.field-gallery { position: relative; min-height: 240vh; padding: 14vw var(--gutter); color: var(--white); background: var(--ink); }
.field-shot { position: absolute; z-index: 1; margin: 0; }
.field-shot img { height: 100%; object-fit: cover; }
.field-shot figcaption { margin-top: 8px; text-transform: uppercase; font-size: 10px; letter-spacing: .1em; }
.field-shot--one { top: 9%; left: var(--gutter); width: 33vw; height: 42vw; }
.field-shot--two { top: 35%; right: 7vw; width: 42vw; height: 52vw; }
.field-shot--three { bottom: 8%; left: 15vw; width: 27vw; height: 39vw; }
.field-gallery__statement { position: sticky; z-index: 0; top: 28vh; margin: 34vh 0 0; text-align: center; font-size: clamp(4.5rem, 12vw, 14rem); font-weight: 500; letter-spacing: -.08em; line-height: .78; }
.field-gallery__statement i { color: var(--red); font-family: Georgia, serif; font-weight: 400; }

.field-strip { display: grid; grid-template-columns: 1.05fr .85fr 1.1fr; align-items: end; gap: clamp(12px, 2.2vw, 42px); padding: 5vw var(--gutter) 14vw; color: var(--white); background: var(--ink); }
.field-strip figure { margin: 0; }
.field-strip figure:nth-child(2) { align-self: start; }
.field-strip img { height: 48vw; max-height: 820px; object-fit: cover; }
.field-strip figure:nth-child(2) img { height: 34vw; max-height: 570px; }
.field-strip figcaption { display: flex; justify-content: space-between; margin-top: 10px; border-top: 1px solid #555; padding-top: 8px; text-transform: uppercase; font-size: 10px; letter-spacing: .1em; }
.field-strip figcaption span { color: var(--red); }

.contact { color: var(--white); background: var(--red); }
.contact__top { display: flex; justify-content: space-between; }
.contact__top p { margin: 0; text-transform: uppercase; font-size: 11px; letter-spacing: .12em; }
.contact__link { position: relative; display: block; margin: clamp(90px, 13vw, 230px) 0; font-size: clamp(4.3rem, 12.5vw, 15rem); font-weight: 500; letter-spacing: -.085em; line-height: .76; }
.contact__link span { display: block; }
.contact__link span:nth-child(2) { margin-left: 7vw; }
.contact__link i { position: absolute; right: 2vw; top: 4%; font-size: .22em; font-style: normal; transition: transform .4s var(--ease); }
.contact__link:hover i { transform: translate(10px, -10px); }
.contact__meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2vw; border-top: 1px solid rgba(255,255,255,.55); padding-top: 15px; text-transform: uppercase; font-size: 10px; letter-spacing: .1em; }

.site-footer { padding: 9vw var(--gutter) 26px; color: var(--white); background: var(--ink); }
.footer__logo { font-size: clamp(14rem, 40vw, 48rem); font-weight: 800; letter-spacing: -.13em; line-height: .64; transform: translateX(-2.5vw); }
.footer__bottom { display: grid; grid-template-columns: 1fr auto 1fr; margin-top: 9vw; border-top: 1px solid #555; padding-top: 16px; text-transform: uppercase; font-size: 10px; letter-spacing: .1em; }
.footer__bottom span:last-child { text-align: right; }

.reveal { opacity: 0; transform: translateY(45px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--delay { transition-delay: .12s; }

@media (max-width: 900px) {
  :root { --header-h: 76px; }
  .header__meta { display: none; }
  .site-header { grid-template-columns: 1fr 1fr; }
  .menu__top, .menu__bottom { padding-left: 0; }
  .menu__links { margin-left: 0; }
  .menu__links a { grid-template-columns: 48px auto; }
  .hero__title span:last-child { padding-left: 0; }
  .manifesto__grid { grid-template-columns: 1fr; gap: 65px; padding-left: 0; }
  .manifesto__body { margin-left: 25vw; }
  .cinematic__copy p { max-width: 60vw; }
  .part-card, .part-card--wide, .part-card--landscape { grid-column: span 6; }
  .part-card:nth-child(4), .part-card:nth-child(10) { grid-column-start: auto; }
  .horizontal-story__sticky { height: 100svh; }
  .horizontal-story__top { padding-top: 22px; }
  .horizontal-story__track { height: 100%; }
  .horizontal-intro { flex-basis: 100vw; height: 100%; padding: 12vh var(--gutter) 8vh; }
  .horizontal-card { flex-basis: 100vw; height: 100%; grid-template-columns: 1fr; grid-template-rows: minmax(0, 58%) minmax(0, 42%); gap: 0; padding: 78px var(--gutter) 34px; }
  .horizontal-card__media { height: 100%; }
  .horizontal-card__inset { right: -8px; bottom: -18px; width: clamp(135px, 32vw, 250px); padding: 7px; }
  .horizontal-card__copy { min-height: 0; padding: 28px 0 0; }
  .horizontal-card__copy > span { margin-bottom: auto; }
  .horizontal-card__copy h3 { margin-bottom: 12px; }
  .horizontal-outro { flex-basis: 100vw; height: 100%; }
  .horizontal-story__progress { bottom: 20px; }
  .quote-panel__content > p { width: 60vw; }
  .value { grid-template-columns: 48px 1fr 40px; gap: 18px; padding: 26px 0; }
  .value h3 { grid-column: 2; }
  .value p { grid-column: 2; }
  .value__number { grid-row: 1 / span 2; grid-column: 1; }
  .value__mark { grid-row: 1 / span 2; grid-column: 3; }
  .field-gallery { min-height: 190vh; }
  .field-strip { grid-template-columns: 1fr 1fr; }
  .field-strip figure:last-child { grid-column: 2; }
  .contact__meta { grid-template-columns: 1fr 1fr; row-gap: 20px; }
}

@media (max-width: 600px) {
  .loader { grid-template-columns: 1fr auto; }
  .loader__brand { font-size: 42vw; }
  .loader__progress { width: 62vw; }
  .brand { width: 65px; }
  .brand img { height: 30px; }
  .menu__top span:last-child, .menu__bottom span { display: none; }
  .menu__links span { font-size: 15vw; }
  .hero__content { padding-bottom: 22px; }
  .hero__title { font-size: 22vw; line-height: .77; }
  .hero__footer p { max-width: 230px; font-size: 9px; }
  .hero__index { display: none; }
  .section-pad { padding-top: 105px; padding-bottom: 105px; }
  .display-title, .display-title--compact { font-size: 16vw; line-height: .88; }
  .manifesto__grid { margin-top: 85px; }
  .manifesto__body { margin-left: 12vw; }
  .cinematic { height: 105svh; min-height: 620px; }
  .cinematic__media img { object-position: 42% center; }
  .cinematic__copy { display: block; }
  .cinematic__copy p { max-width: none; margin-top: 20px; }
  .system__note { display: none; }
  .parts-grid { grid-template-columns: 1fr 1fr; gap: 70px 14px; }
  .part-card, .part-card--wide, .part-card--landscape, .part-card--tall { grid-column: auto; margin-top: 0 !important; }
  .part-card:nth-child(even) { margin-top: 65px !important; }
  .part-card img, .part-card--landscape img, .part-card--tall img { aspect-ratio: 1 / 1.15; }
  .part-card figcaption { align-items: start; gap: 8px; line-height: 1.3; }
  .part-card figcaption span { display: block; text-align: right; }
  .horizontal-story__top { padding-top: 20px; }
  .horizontal-intro { flex-basis: 100vw; min-height: 0; }
  .horizontal-intro h2 { font-size: 17vw; }
  .horizontal-card { flex-basis: 100vw; min-height: 0; grid-template-rows: minmax(0, 55%) minmax(0, 45%); padding: 72px 16px 30px; }
  .horizontal-card__copy { padding-top: 24px; }
  .horizontal-card__copy h3 { font-size: clamp(2.35rem, 12vw, 4rem); }
  .horizontal-card__copy p { font-size: .9rem; line-height: 1.4; }
  .horizontal-card__inset { right: -4px; bottom: -15px; width: 38vw; max-width: 175px; }
  .horizontal-outro { flex-basis: 100vw; }
  .quote-panel, .quote-panel__content { min-height: 100svh; }
  .quote-panel__content > p { width: 82vw; align-self: start; }
  .value { min-height: 150px; }
  .value h3 { font-size: 11vw; }
  .field-gallery { min-height: 165vh; }
  .field-shot--one { top: 8%; width: 52vw; height: 68vw; }
  .field-shot--two { top: 38%; right: var(--gutter); width: 59vw; height: 78vw; }
  .field-shot--three { bottom: 7%; left: var(--gutter); width: 46vw; height: 66vw; }
  .field-gallery__statement { top: 38vh; margin-top: 50vh; font-size: 18vw; }
  .field-strip { grid-template-columns: 1fr; gap: 65px; padding-bottom: 30vw; }
  .field-strip figure:last-child { grid-column: auto; }
  .field-strip figure:nth-child(2) { width: 72%; margin-left: auto; }
  .field-strip img, .field-strip figure:nth-child(2) img { height: 118vw; max-height: none; }
  .field-strip figure:nth-child(2) img { height: 92vw; }
  .contact__top p { display: none; }
  .contact__link { font-size: 17vw; line-height: .83; }
  .contact__link span:nth-child(2) { margin-left: 0; }
  .contact__meta { grid-template-columns: 1fr; }
  .footer__bottom { grid-template-columns: 1fr auto; }
  .footer__bottom span:last-child { display: none; }
}

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

/* ---- WordPress admin bar offset ---- */
body.admin-bar .site-header,
body.admin-bar .brand { top: 32px; }
body.admin-bar .loader { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header,
  body.admin-bar .brand { top: 46px; }
  body.admin-bar .loader { top: 46px; }
}

/* ---- Fallback templates (posts / pages / 404) ---- */
.entry-main { min-height: 70vh; padding-top: calc(var(--header-h) + 6vh); background: var(--paper); }
.entry { max-width: 760px; margin: 0 auto; }
.entry__content { margin-top: 3vh; font-size: clamp(15px, 1.05vw, 18px); line-height: 1.7; }
.entry__content > * + * { margin-top: 1.2em; }
.entry__content a { color: var(--red); }
.entry__content img { max-width: 100%; height: auto; }
.entry + .entry { margin-top: 12vh; }
.entry__pagination { max-width: 760px; margin: 8vh auto 0; display: flex; gap: 16px; }
.entry__pagination a { color: var(--ink); }

/* ---- Wordmark dùng logo thật thay cho chữ ---- */
.footer__logo--image { transform: none; line-height: 0; }
.footer__logo--image img { display: block; width: 100%; height: auto; }

.horizontal-outro__logo { display: block; width: 30vw; max-width: 620px; line-height: 0; }
.horizontal-outro__logo img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
  .horizontal-outro__logo { width: 62vw; }
}

/* ============================================================
   PRODUCT DETAIL (page-monty.php)
   Dùng lại token + nhịp của trang chủ: section-pad, section-tag,
   display-title, lede, manifesto__grid, parts-grid, reveal.
   ============================================================ */

/* --- Hero sản phẩm ---
   Nền dùng --paper (#f0efe9) vì nền của ảnh studio đo được ~#f3f2ec —
   đặt trên --white (#fafaf7) sẽ lộ rõ mép ảnh thành một khối xám.
   Ảnh tràn hết chiều ngang, crop 2.5:1 lấy tâm dọc 54% (vị trí thực của
   chiếc xe: rộng 6–94%, cao 36–72%) nên không còn khoảng trống thừa. */
.product-hero { padding: calc(var(--header-h) + 7vh) var(--gutter) clamp(40px, 5vw, 80px); background: var(--paper); }
.product-hero__head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.product-hero__head p { margin: 0; }
.product-hero__status { color: var(--red); text-transform: uppercase; font-size: 11px; font-weight: 600; letter-spacing: .15em; }
/* padding-bottom chừa chỗ cho đuôi chữ "y" — line-height .78 khiến descender
   tràn khỏi line box và bị phần tử sau che mất. */
.product-hero__title { margin: clamp(30px, 4vw, 70px) 0 0; padding-bottom: .16em; font-size: clamp(5.2rem, 19vw, 22rem); font-weight: 500; letter-spacing: -.085em; line-height: .78; }
.product-hero__title span { display: block; }
.product-hero__media { margin: 0 calc(-1 * var(--gutter)) clamp(30px, 4vw, 64px); }
.product-hero__media img { aspect-ratio: 2.5 / 1; object-fit: cover; object-position: center 54%; }
.product-hero__ticker { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 48px); margin: 0; border-top: 1px solid var(--ink); padding-top: 16px; }
.product-hero__ticker dt { text-transform: uppercase; font-size: 10px; letter-spacing: .12em; }
.product-hero__ticker dd { margin: 8px 0 0; font-size: clamp(1.3rem, 2.6vw, 2.6rem); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }

/* --- Intro + spec: đảo nhịp nền để hero(paper) không dính liền --- */
.product-intro { background: var(--white); }

/* --- Bảng spec: nhiều dòng nên dùng lưới gọn, không dùng .value --- */
.spec { background: var(--paper); }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(20px, 3vw, 56px); margin: clamp(90px, 13vw, 220px) 0 0; border-top: 1px solid var(--ink); }
.spec-item { display: grid; grid-template-columns: 42px 1fr; align-items: start; gap: 0 12px; border-bottom: 1px solid var(--line); padding: 26px 0 24px; }
.spec-item__number { grid-row: span 2; padding-top: 4px; color: var(--red); font-size: 11px; font-variant-numeric: tabular-nums; }
.spec-item dt { font-size: clamp(1.1rem, 1.55vw, 1.65rem); letter-spacing: -.025em; }
.spec-item dd { margin: 7px 0 0; max-width: 34ch; color: #555; font-size: clamp(.88rem, 1.02vw, 1.02rem); line-height: 1.5; }

/* --- Portal axle: nền ink, 5 dòng lớn kèm ảnh chi tiết --- */
.axle { color: var(--white); background: var(--ink); }
.axle__head { margin-bottom: clamp(90px, 13vw, 230px); }
.tech-list { border-top: 1px solid #4a4a4a; }
.tech { display: grid; grid-template-columns: 8vw clamp(140px, 17vw, 300px) 1fr 40px; align-items: center; gap: clamp(20px, 3.5vw, 70px); border-bottom: 1px solid #4a4a4a; padding: clamp(28px, 3.4vw, 54px) 0; }
.tech__number { align-self: start; padding-top: 6px; color: var(--red); font-size: 11px; font-variant-numeric: tabular-nums; }
.tech__media { margin: 0; overflow: hidden; }
.tech__media img { aspect-ratio: 1 / 1; object-fit: cover; transition: transform .8s var(--ease); }
.tech:hover .tech__media img { transform: scale(1.04); }
.tech__copy h3 { margin: 0; font-size: clamp(1.7rem, 3.6vw, 4rem); font-weight: 500; letter-spacing: -.05em; line-height: .95; }
.tech__copy p { max-width: 48ch; margin: 16px 0 0; color: #a8a8a8; font-size: clamp(.92rem, 1.12vw, 1.15rem); line-height: 1.55; }
.tech__mark { align-self: center; font-size: 26px; transition: transform .4s var(--ease), color .25s; }
.tech:hover .tech__mark { transform: rotate(-45deg); color: var(--red); }

/* --- Lifestyle: ảnh dọc nên chia đôi, không full-bleed --- */
.lifestyle { display: grid; grid-template-columns: .82fr 1fr; align-items: center; gap: clamp(30px, 6vw, 120px); padding: clamp(90px, 12vw, 220px) var(--gutter); color: var(--white); background: var(--ink); }
.lifestyle__media { margin: 0; }
.lifestyle__media img { aspect-ratio: .563 / 1; max-height: 88vh; object-fit: cover; }
.lifestyle__media figcaption { margin-top: 10px; border-top: 1px solid #555; padding-top: 8px; text-transform: uppercase; font-size: 10px; letter-spacing: .1em; }
.lifestyle__copy > p { max-width: 46ch; margin: clamp(40px, 5vw, 80px) 0 0; color: #a8a8a8; font-size: clamp(1rem, 1.25vw, 1.3rem); line-height: 1.6; }
.lifestyle__tagline { color: var(--white) !important; text-transform: uppercase; font-size: 11px !important; font-weight: 600; letter-spacing: .14em; }

/* --- Gallery: nền trắng cho ảnh studio --- */
.product-gallery { background: var(--white); }

/* --- Coming soon --- */
.soon { color: var(--white); background: var(--red); }
.soon__top { display: flex; justify-content: space-between; }
.soon__top p { margin: 0; text-transform: uppercase; font-size: 11px; letter-spacing: .12em; }
.soon__title { margin: clamp(80px, 12vw, 200px) 0; font-size: clamp(4.3rem, 13vw, 15rem); font-weight: 500; letter-spacing: -.085em; line-height: .76; }
.soon__title span { display: block; }
.soon__title span:nth-child(2) { margin-left: 7vw; }
.soon__meta { display: flex; gap: clamp(20px, 4vw, 70px); }
.soon__meta .text-link { flex: 0 1 260px; margin-top: 0; border-color: rgba(255,255,255,.6); }

@media (max-width: 900px) {
  .product-hero__ticker { grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
  .product-hero__media img { aspect-ratio: 1.5 / 1; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .tech { grid-template-columns: 46px clamp(110px, 22vw, 200px) 1fr; gap: 18px 24px; }
  .tech__mark { display: none; }
  .lifestyle { grid-template-columns: 1fr; gap: 40px; }
  .lifestyle__media img { max-height: 70vh; }
}

@media (max-width: 600px) {
  .spec-grid { grid-template-columns: 1fr; }
  .tech { grid-template-columns: 34px 1fr; }
  .tech__media { grid-column: 2; margin-bottom: 16px; }
  .tech__media img { aspect-ratio: 3 / 2; }
  .tech__copy { grid-column: 2; }
  .soon__meta { flex-direction: column; gap: 0; }
  .soon__meta .text-link { flex: none; }
}

/* CTA cuối section engineering trên trang chủ → trang product */
.engineering__cta { display: flex; justify-content: flex-end; }
.engineering__cta .text-link { flex: 0 1 320px; }
