/* Halong ETS — photography-first editorial look: warm canvas, big pictures with soft corners, thin tight type,
   pill-shaped links, one rare accent colour. Colours, fonts, corners and spacing come from :root (set in the
   Studio under "Thiết lập & giao diện → Giao diện"). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--canvas); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.5; letter-spacing: calc(var(--track) * -0.02em);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ol { margin: 0; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 3.5vw, 48px); }
.muted { color: var(--muted); }
.eyebrow { font-size: 14px; color: var(--muted); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.eyebrow.center { justify-content: center; }

/* type */
.h-xl, .h-lg, .hero-left, .statement-text, .stat-value, .banner-text h2 {
  font-family: var(--font-heading); font-weight: var(--heading-weight);
}
.h-xl { font-size: clamp(40px, 6vw, 75px); line-height: 1; letter-spacing: calc(var(--track) * -0.05em); }
.h-lg { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: calc(var(--track) * -0.05em); }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.4; letter-spacing: calc(var(--track) * -0.03em); max-width: 44ch; }

/* links & pills */
.text-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 16px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link:hover .arrow { transform: translateX(4px); }
.arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .3s; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 100px; text-decoration: none; font-size: 14px; background: none; border: 1px solid transparent; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.pill.is-line { border-color: var(--line); }
.pill.is-line:hover, .pill.is-on { border-color: var(--text); }
.pill.is-on { background: var(--text); color: var(--canvas); }

/* header */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--canvas); transition: background .3s, color .3s; }
.site-head.is-over { position: fixed; left: 0; right: 0; background: transparent; color: #fff; }
.site-head.is-over.is-scrolled { background: var(--canvas); color: var(--text); }
.head-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; max-width: 1440px; margin: 0 auto; padding: 14px clamp(16px, 3.5vw, 48px); }
.head-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.head-nav a, .mobile-nav a { text-decoration: none; font-size: 14px; padding: 8px 14px; border-radius: 100px; transition: background .2s; }
.head-nav a:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.brand { justify-self: center; text-decoration: none; display: flex; align-items: center; }
.brand-text { font-size: 15px; letter-spacing: .32em; text-transform: uppercase; font-weight: 500; white-space: nowrap; }
.logo-img { height: 36px; width: auto; }
.site-head.is-over:not(.is-scrolled) .logo-img { filter: brightness(0) invert(1); }
.head-right { justify-self: end; display: flex; gap: 8px; }
.head-right .pill { border-color: currentColor; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; border-radius: 100px; cursor: pointer; padding: 12px; flex-direction: column; justify-content: center; gap: 6px; }
.menu-btn span { display: block; height: 1.5px; background: currentColor; transition: transform .3s; }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; padding: 8px 16px 20px; background: var(--canvas); color: var(--text); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { font-size: 22px; padding: 10px 0; }

/* sections */
main > .sec + .sec { margin-top: var(--gap); }
main > .sec:last-child { margin-bottom: var(--gap); }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 64px; flex-wrap: wrap; margin-bottom: 40px; }
.block-foot { margin-top: 40px; }

/* hero: full-bleed picture, words pulled to opposite edges */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; color: #fff; background: #222; }
.hero.is-tall { height: 78svh; }
.hero-img, .banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: #000; pointer-events: none; }
.hero-text { position: absolute; left: 0; right: 0; bottom: clamp(48px, 9vh, 96px); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; padding: 0 clamp(16px, 3.5vw, 48px); max-width: 1440px; margin: 0 auto; }
.hero-left { font-size: clamp(44px, 6.2vw, 75px); line-height: 1; letter-spacing: calc(var(--track) * -0.05em); max-width: 12ch; }
.hero-right { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.25; max-width: 22ch; text-align: right; letter-spacing: calc(var(--track) * -0.03em); }
.hero-caption { position: absolute; right: clamp(16px, 3.5vw, 48px); top: 50%; font-size: 12px; writing-mode: vertical-rl; opacity: .85; }

/* statement */
.statement { padding-top: 20px; }
.statement-text { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.12; letter-spacing: calc(var(--track) * -0.045em); max-width: 26ch; margin-bottom: 32px; }
.statement.is-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.statement.is-center .eyebrow { justify-content: center; }

/* project cards */
.proj-card { display: block; text-decoration: none; }
.proj-img { overflow: hidden; border-radius: var(--radius); background: color-mix(in srgb, var(--text) 8%, var(--canvas)); aspect-ratio: 4 / 5; transform: translateZ(0); }
.proj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.proj-card:hover .proj-img img { transform: scale(1.04); }
.proj-meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; font-size: 16px; }
.proj-meta .muted { font-size: 14px; white-space: nowrap; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 48px 24px; }
/* asymmetric collage: a big card, then two smaller ones offset downwards */
.proj-mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: 56px 24px; align-items: start; }
.proj-mosaic .proj-card:nth-child(6n+1) { grid-column: 1 / 8; }
.proj-mosaic .proj-card:nth-child(6n+2) { grid-column: 9 / 13; margin-top: 160px; }
.proj-mosaic .proj-card:nth-child(6n+3) { grid-column: 3 / 8; margin-top: -40px; }
.proj-mosaic .proj-card:nth-child(6n+4) { grid-column: 9 / 13; margin-top: 120px; }
.proj-mosaic .proj-card:nth-child(6n+5) { grid-column: 1 / 6; }
.proj-mosaic .proj-card:nth-child(6n) { grid-column: 7 / 13; margin-top: 80px; }
.proj-mosaic .proj-card:nth-child(6n+1) .proj-img { aspect-ratio: 4 / 3; }
.proj-mosaic .proj-card:nth-child(6n+3) .proj-img, .proj-mosaic .proj-card:nth-child(6n) .proj-img { aspect-ratio: 1; }
.proj-mosaic .proj-card:nth-child(6n+5) .proj-img { aspect-ratio: 5 / 4; }

/* image + text */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: center; }
.split.img-right .split-img { order: 2; }
.split-img img { width: 100%; aspect-ratio: 7 / 8; object-fit: cover; border-radius: var(--radius); }
.split-text .h-lg { margin-bottom: 24px; }
.split-text .lead { margin-bottom: 32px; }

/* services */
.services { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.services li { display: grid; grid-template-columns: 80px 1fr 1.2fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.services h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 400; letter-spacing: calc(var(--track) * -0.03em); }
.svc-num { font-size: 14px; color: var(--accent); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 28px 24px; background: var(--surface); border-radius: var(--radius); }
.stat-value { font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: calc(var(--track) * -0.05em); }

/* collage of pictures */
.collage { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.collage figure { grid-column: span 4; }
.collage img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.collage figcaption { font-size: 14px; padding-top: 10px; }
.collage .c-0 { grid-column: 1 / span 7; } .collage .c-0 img { aspect-ratio: 4 / 3; }
.collage .c-1 { grid-column: 9 / span 4; margin-top: 120px; } .collage .c-1 img { aspect-ratio: 3 / 4; }
.collage .c-2 { grid-column: 2 / span 4; } .collage .c-2 img { aspect-ratio: 1; }
.collage .c-3 { grid-column: 7 / span 6; margin-top: -60px; } .collage .c-3 img { aspect-ratio: 3 / 2; }
.collage .c-4 { grid-column: 4 / span 5; } .collage .c-4 img { aspect-ratio: 5 / 4; }

/* full-bleed banner */
.banner { position: relative; min-height: 86svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #222; }
.banner-text { position: relative; width: 100%; max-width: 1440px; margin: 0 auto; padding: 64px clamp(16px, 3.5vw, 48px); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.banner-text h2 { max-width: 16ch; font-size: clamp(40px, 5.5vw, 72px); line-height: 1; letter-spacing: calc(var(--track) * -0.05em); }

/* logos */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 32px 64px; }
.logos img { height: 44px; width: auto; opacity: .7; filter: grayscale(1); }

/* contact */
.contact { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.contact .h-xl { max-width: 14ch; }
.accent-strip { width: 56px; height: 6px; border-radius: 6px; background: var(--accent); }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.contact-links .pill { font-size: 16px; min-height: 48px; padding: 0 24px; }

.company-facts { width: 100%; max-width: 980px; margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: left; }
.company-facts div { background: var(--surface); padding: 18px 22px; }
.company-facts dt { font-size: 13px; margin-bottom: 4px; }
.company-facts dd { margin: 0; font-size: 16px; line-height: 1.4; }
.foot-legal { margin-top: 40px; font-size: 12px; }
.foot-legal + .foot-bottom { margin-top: 8px; }

/* project page */
.p-head { padding-top: clamp(48px, 8vw, 120px); padding-bottom: 48px; display: flex; flex-direction: column; gap: 24px; }
.p-head .h-xl { max-width: 18ch; }
.back { align-self: flex-start; border: 0; font-size: 14px; color: var(--muted); }
.p-cover img { width: 100%; max-height: 86vh; object-fit: cover; border-radius: var(--radius); }
.p-main { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-top: 64px; padding-bottom: 64px; }
.p-facts { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 100px; align-self: start; }
.p-facts dt { font-size: 13px; margin-bottom: 2px; }
.prose { font-size: 18px; line-height: 1.6; max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 32px; line-height: 1.15; letter-spacing: calc(var(--track) * -0.04em); margin-top: 1.6em; }
.prose h3 { font-size: 22px; font-weight: 500; margin-top: 1.4em; }
.prose blockquote { margin: 1.4em 0; padding-left: 20px; border-left: 3px solid var(--accent); font-size: 22px; line-height: 1.4; }
.p-figure img { width: 100%; border-radius: var(--radius); }
.p-figure figcaption { font-size: 14px; padding-top: 8px; }
.p-gallery { padding-bottom: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.all-projects { padding-bottom: var(--gap); }
.proj-card.is-filtered { display: none; }
.notfound { min-height: 60vh; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1.4fr 1fr 1fr; gap: 32px; }
.foot-name { font-size: 22px; letter-spacing: calc(var(--track) * -0.03em); margin-bottom: 8px; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col a { text-decoration: none; } .foot-col a:hover { text-decoration: underline; }
.foot-bottom { margin-top: 56px; color: var(--muted); font-size: 12px; }

/* appear on scroll (site.js adds .is-in) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

.preview-loading { padding: 40vh 24px; text-align: center; color: var(--muted); }

/* phones & tablets */
@media (max-width: 900px) {
  .head-nav, .head-right { display: none; }
  .menu-btn { display: flex; }
  .head-inner { grid-template-columns: 44px 1fr 44px; }
  .site-head.menu-open { background: var(--canvas); color: var(--text); }
  .proj-mosaic { grid-template-columns: 1fr; gap: 40px; }
  .proj-mosaic .proj-card, .proj-mosaic .proj-card.is-big { grid-column: auto !important; margin-top: 0 !important; }
  .proj-mosaic .proj-card .proj-img { aspect-ratio: 4 / 3 !important; }
  .split { grid-template-columns: 1fr; }
  .split.img-right .split-img { order: 0; }
  .services li { grid-template-columns: 40px 1fr; }
  .services li p { grid-column: 2; }
  .collage { grid-template-columns: 1fr 1fr; gap: 12px; }
  .collage figure { grid-column: auto !important; margin-top: 0 !important; }
  .collage .c-0 { grid-column: 1 / -1 !important; }
  .p-main { grid-template-columns: 1fr; padding-top: 40px; }
  .p-facts { position: static; flex-direction: row; flex-wrap: wrap; gap: 16px 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-right { text-align: left; }
  .hero-caption { display: none; }
}
