/* Chuyenvietluan.org
   Flat by rule: no blur, no soft shadow, no surface gradient, no background
   pattern. Rhythm comes from the colour bands alone. Every edge is a 2px navy
   line, every lift is a hard offset block.
   Corners: a closed block is rounded, a rule across the page stays straight.
   Palette and type come from the Facebook post kit. */

:root {
  --navy: #003058;
  --navy-deep: #001F3A;
  --ink: #253A73;
  --royal: #004AAD;
  --sky: #38B6FF;
  --yel: #EDBF2E;
  --teal: #12555E;
  --cream: #FFE5CA;
  --cream-2: #FFF1E0;
  --paper: #FFFBF6;
  --white: #FFFFFF;
  --muted: #4D5E73;
  --muted-light: rgba(255, 255, 255, 0.76);
  --rule: rgba(0, 48, 88, 0.16);
  --sans: 'Be Vietnam Pro', -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  --mont: 'Montserrat', var(--sans);
  --cond: 'Roboto Condensed', var(--sans);
  --nav-h: 92px;
  --bd: 2px solid var(--navy);
  --r: 18px;
  --r-sm: 10px;
  --r-pill: 999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; border-radius: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--royal); }

/* ---------- Corners ---------- */
/* Rounded where the shape is a closed block: a poster, a button, a bordered box.
   Straight where the line is only a rule running across the page. The lift stays a
   hard offset shadow, so a rounded edge still reads as flat, not as a soft card. */
.btn, .burger, .contact-card, .to-top,
.hero-art-main img, .hero-art::after,
.page-head-art img, .page-head-art::after,
.split-art img, .split-art::after, .head-art img, .head-art::after,
.strip img, .strip figure::after,
.hero-chips, .filters, .why, .topics, .trouble, .deliver,
.post-card figure, .rail figure { border-radius: var(--r); }

/* the cells inside a bordered grid have to be clipped by it */
.hero-chips, .filters, .why, .topics, .trouble, .deliver,
.post-card figure, .rail figure { overflow: hidden; }

/* open at the top, under the thick rule of its own heading */
.detail-grid { border-radius: 0 0 var(--r) var(--r); overflow: hidden; }

.eyebrow, .tags span, .tags-lg span, .nav-links a { border-radius: var(--r-pill); }
.eyebrow .dot, .detail-n, .need span { border-radius: 50%; }
.faq summary::before, .faq summary::after { border-radius: 2px; }

/* ---------- The offset block ---------- */
/* A navy block behind a navy poster is invisible, so the colour follows the artwork
   rather than the band it sits on: a dark poster gets yellow, a light one navy.
   The figure carries .art-dark and the variable does the rest. */
:root { --block: var(--navy); }
.art-dark { --block: var(--yel); }

/* ---------- Lift ---------- */
/* The poster treatment used wider: a framed block sits on a hard offset block of
   its own. Only closed blocks take it, so the ruled sections stay on the page and
   the whole thing does not float at once. The offset must contrast with the band
   behind it, which is why a navy band gets a deeper navy and not the same navy. */
.hero-chips, .filters, .why, .topics, .detail-grid { box-shadow: 7px 7px 0 var(--navy); }
.trouble, .deliver { box-shadow: 7px 7px 0 var(--royal); }
.contact-card { box-shadow: 7px 7px 0 var(--yel); }
.post-card figure { box-shadow: 5px 5px 0 var(--block); }
.rail figure { box-shadow: 5px 5px 0 var(--yel); }

/* width/height attributes are a presentational hint: an image sized by width
   needs height: auto, or it keeps the attribute height and stretches */
img[width] { height: auto; }

/* ---------- Layout ---------- */
.wrap { width: min(1240px, 100% - 56px); margin: 0 auto; }
.section { padding: 100px 0; position: relative; z-index: 1; border-bottom: var(--bd); }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: #fff; border-bottom-color: var(--navy); }

.head { max-width: 820px; margin-bottom: 60px; }
.head-center { margin-left: auto; margin-right: auto; text-align: center; }
.head-center .sub { margin-left: auto; margin-right: auto; }
.head-center .label { justify-content: center; }

.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--cond); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--royal);
  margin-bottom: 22px;
}
/* the ribbon again, at label size, so the motif repeats down the whole page */
.label::before {
  content: ''; width: 34px; height: 13px; flex: none;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 13'><path d='M1,4.5 C8,1.5 12,8.5 19,8.5 C25,8.5 29,4.5 33,3.5' stroke='%23EDBF2E' stroke-width='3.4' fill='none'/><path d='M1,8.5 C8,5.5 12,12.5 19,12.5 C25,12.5 29,8.5 33,7.5' stroke='%2338B6FF' stroke-width='2' fill='none'/></svg>") no-repeat center / contain;
}
.label-sky { color: var(--sky); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.7rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.04rem; }

/* accent words sit in a solid yellow block, the way the posters mark a line */
h1 em, h2 em, .pull em {
  font-style: normal; color: var(--navy); background: var(--yel);
  padding: 0.02em 0.16em; margin: 0 -0.04em; border-radius: 0.1em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* the big uppercase voice from the posters, used on dark bands only */
.section-navy h2 {
  font-family: var(--mont); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1.04; letter-spacing: -0.02em;
}

.sub { color: var(--muted); font-size: 1rem; line-height: 1.8; max-width: 60ch; margin-top: 20px; }
.section-navy .sub { color: var(--muted-light); }
.lede { color: var(--muted); font-size: 1.1rem; line-height: 1.78; max-width: 50ch; }

.more-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 38px;
  font-family: var(--cond); font-weight: 700; font-size: 0.84rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy); text-decoration: none;
  border-bottom: 3px solid var(--yel); padding-bottom: 4px;
}
.more-link:hover { color: var(--royal); border-bottom-color: var(--royal); }
.more-link span { transition: transform 0.15s; }
.more-link:hover span { transform: translateX(5px); }

.crumbs {
  display: flex; gap: 10px; margin-bottom: 30px;
  font-family: var(--cond); font-size: 0.8rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--royal); }

/* ---------- Topbar and nav ---------- */
.topbar {
  background: var(--navy); color: #cfe4ff; padding: 9px 0;
  font-family: var(--cond); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.topbar-inner { display: flex; justify-content: center; text-align: center; }

.nav { position: sticky; top: 0; z-index: 80; background: var(--paper); border-bottom: var(--bd); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; height: var(--nav-h); }

.brand { text-decoration: none; display: block; }
.brand-wm {
  display: block; font-family: var(--mont); font-weight: 800; font-size: 1.44rem;
  letter-spacing: -0.02em; line-height: 1; color: var(--navy);
}
.brand-org { color: var(--royal); }
.brand-desc {
  display: block; font-family: var(--cond); font-size: 0.7rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--muted); margin-top: 7px;
}

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-family: var(--cond); font-weight: 700; font-size: 0.86rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy); text-decoration: none; padding: 10px 14px;
  border: 2px solid transparent; transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.nav-links a:hover { border-color: var(--navy); }
/* the current page is marked the way the posters mark a word: a solid yellow block */
.nav-links a.current { background: var(--yel); border-color: var(--navy); }
.nav-cta {
  background: var(--navy); color: #fff !important; border-color: var(--navy) !important;
  margin-left: 14px; padding: 12px 20px !important;
  box-shadow: 4px 4px 0 var(--yel);
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s, color 0.12s;
}
.nav-cta:hover { background: var(--royal); color: #fff !important; border-color: var(--royal) !important;
  transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--yel); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: var(--bd); padding: 11px 9px; cursor: pointer; box-shadow: 3px 3px 0 var(--navy); }
.burger span { width: 20px; height: 2px; background: var(--navy); }

.progress { position: absolute; left: 0; bottom: -2px; height: 4px; width: 0; background: var(--yel); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--cond); font-weight: 700; font-size: 0.86rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 16px 28px; border: var(--bd); background: var(--navy); color: #fff;
  text-decoration: none; transition: transform 0.12s, box-shadow 0.12s, background 0.12s, color 0.12s;
}
.btn { box-shadow: 4px 4px 0 var(--yel); }
.btn:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--yel); background: var(--royal); }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: 4px 4px 0 var(--navy); }
.btn-ghost:hover { background: var(--yel); color: var(--navy); box-shadow: 7px 7px 0 var(--navy); }
.btn-yellow { background: var(--yel); color: var(--navy); box-shadow: 4px 4px 0 var(--navy); }
.btn-yellow:hover { background: var(--navy); color: var(--yel); box-shadow: 7px 7px 0 var(--yel); }
.btn-block { display: flex; justify-content: center; width: 100%; margin-top: 26px; }

/* ---------- Ribbon ---------- */
/* positioned at z-index 1, and every .wrap is lifted to 2, otherwise an absolutely
   positioned child paints over static text no matter how low its z-index */
.ribbon { position: absolute; pointer-events: none; z-index: 1; }
.section > .wrap, .page-head > .wrap { position: relative; z-index: 2; }
.section-navy, .section-cream, .page-head { overflow: hidden; }

.hero .ribbon {
  top: -34px; left: -70px; width: calc(100% + 140px); height: 320px;
  /* 56px of travel inside a 140px overhang, so no stroke end ever shows */
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translateX(-28px); } to { transform: translateX(28px); } }

/* A band hands over to the next one along a curve rather than a straight rule. The
   fill is the next band's colour exactly, so the seam disappears; the three strokes
   ride the boundary. The path runs past both ends, so no flat stroke cap shows. */
.divider { position: absolute; left: 0; bottom: -1px; width: 100%; height: 132px; z-index: 1; display: block; }
.has-divider { border-bottom: 0 !important; padding-bottom: 196px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--cream); padding: 78px 0 86px;
  position: relative; overflow: hidden; z-index: 1; border-bottom: var(--bd);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--cond); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--navy);
  border: var(--bd); padding: 8px 16px; background: var(--paper); margin-bottom: 30px;
}
.eyebrow .dot { width: 9px; height: 9px; background: var(--yel); }

.hero h1 { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* one bordered strip split by hairlines, not a scatter of pills */
/* a grid, not flex: a wrapping flex row leaves the last line stretched odd */
.hero-chips { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 42px; border: var(--bd); background: var(--paper); }
.hero-chips span {
  font-family: var(--cond); font-weight: 700; font-size: 0.74rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy);
  padding: 12px 10px; text-align: center;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
}
.hero-chips span:nth-child(4n) { border-right: 0; }
.hero-chips span:nth-last-child(-n+4) { border-bottom: 0; }

.hero-art { position: relative; max-width: 480px; margin-left: auto; }
.hero-art-main img { width: 100%; border: var(--bd); position: relative; z-index: 2; }
.hero-art::after { content: ''; position: absolute; inset: 14px -14px -14px 14px; z-index: 1; background: var(--block); }

/* ---------- Marquee ---------- */
.marquee { background: var(--navy); overflow: hidden; padding: 16px 0; position: relative; z-index: 1; }
.marquee-track { display: flex; gap: 32px; width: max-content; animation: slide 44s linear infinite; }
.marquee-track span {
  font-family: var(--cond); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: #fff; white-space: nowrap;
}
.marquee-track span:nth-child(even) { color: var(--yel); letter-spacing: 0; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Cover rail ---------- */
.rail {
  background: var(--navy); overflow: hidden; padding: 30px 0;
  border-top: var(--bd); border-bottom: var(--bd); position: relative; z-index: 1;
}
.rail-track { display: flex; gap: 20px; width: max-content; animation: slide 72s linear infinite; }
.rail:hover .rail-track { animation-play-state: paused; }
.rail figure { width: 230px; flex: none; margin: 0; border: 2px solid var(--yel); }
.rail img { width: 100%; height: auto; display: block; }

/* ---------- Stuck: an editorial list, not four cards ---------- */
.stuck { display: grid; grid-template-columns: repeat(2, 1fr); border-top: var(--bd); }
.stuck-card {
  display: block; text-decoration: none; color: inherit;
  padding: 36px 0 32px; border-bottom: var(--bd); transition: background 0.12s;
}
.stuck-card:nth-child(odd) { border-right: var(--bd); padding-right: 48px; }
.stuck-card:nth-child(even) { padding-left: 48px; }
.stuck-card:hover { background: var(--cream-2); }
.stuck-n {
  display: block; font-family: var(--serif); font-weight: 700; font-size: 3.4rem;
  line-height: 0.9; color: var(--yel); -webkit-text-stroke: 1.5px var(--navy); margin-bottom: 14px;
}
.stuck-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.stuck-card p { font-size: 0.94rem; color: var(--muted); max-width: 46ch; }
.go {
  display: inline-block; margin-top: 20px; font-family: var(--cond); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--royal);
  border-bottom: 2px solid var(--yel); padding-bottom: 3px;
}
.go em { font-style: normal; display: inline-block; transition: transform 0.15s; }
.stuck-card:hover .go em { transform: translateX(4px); }
.stuck-note { margin-top: 34px; font-size: 0.94rem; color: var(--muted); }

/* ---------- Pillars: columns split by rules ---------- */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid rgba(255, 255, 255, 0.3); position: relative; z-index: 2;
}
.pillar { padding: 40px 34px 36px 0; border-right: 2px solid rgba(255, 255, 255, 0.3); }
.pillar:not(:first-child) { padding-left: 34px; }
.pillar:last-child { border-right: 0; padding-right: 0; }
.pillar-n {
  display: block; font-family: var(--serif); font-weight: 700; font-size: 4.2rem;
  line-height: 0.82; color: var(--yel); margin-bottom: 20px;
}
.pillar h3 {
  font-family: var(--mont); font-weight: 900; text-transform: uppercase;
  font-size: 1.12rem; letter-spacing: -0.005em; color: #fff; margin-bottom: 16px;
}
.pillar p { font-size: 0.93rem; color: var(--muted-light); }
.pillar .tags { margin-top: 24px; }

.pull {
  margin-top: 64px; padding-top: 34px; border-top: 2px solid rgba(255, 255, 255, 0.3);
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem); line-height: 1.35; color: #fff;
  position: relative; z-index: 2;
}

/* ---------- Process ---------- */
.steps { list-style: none; border-top: var(--bd); }
.steps li {
  display: grid; grid-template-columns: 170px 1fr; gap: 40px; align-items: start;
  padding: 40px 0; border-bottom: var(--bd);
}
.step-n {
  font-family: var(--serif); font-weight: 700; font-size: 7rem; line-height: 0.76;
  color: var(--cream); -webkit-text-stroke: 2px var(--navy); text-align: right;
}
.steps h3 {
  font-family: var(--mont); font-weight: 900; text-transform: uppercase;
  font-size: 1.7rem; letter-spacing: -0.02em; color: var(--navy); margin-bottom: 12px;
}
.steps p { font-size: 0.98rem; color: var(--muted); max-width: 62ch; }
.steps em { font-style: italic; color: var(--navy); }
.steps .tags { margin-top: 20px; }

/* ---------- Why: a ruled grid, no boxes ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--bd); border-left: var(--bd); }
.why article { padding: 34px 30px; border-right: var(--bd); border-bottom: var(--bd); }
.ico { width: 30px; height: 30px; color: var(--royal); margin-bottom: 20px; }
.ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.why h3 { font-size: 1.22rem; margin-bottom: 12px; }
.why p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Topics ---------- */
.topics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: var(--bd); border-left: var(--bd); }
.topic {
  display: block; text-decoration: none; color: inherit;
  padding: 30px 28px 34px; border-right: var(--bd); border-bottom: var(--bd);
  transition: background 0.12s;
}
.topic:hover { background: var(--yel); }
.topics .topic:first-child { grid-column: span 2; background: var(--navy); color: #fff; }
.topics .topic:first-child h3 { color: #fff; }
.topics .topic:first-child p { color: var(--muted-light); }
.topics .topic:first-child:hover { background: var(--navy-deep); }
.topic-k {
  display: block; font-family: var(--serif); font-weight: 700; font-size: 1.5rem;
  line-height: 1; color: var(--royal); margin-bottom: 18px;
}
.topics .topic:first-child .topic-k { color: var(--yel); }
.topic h3 { font-size: 1.2rem; margin-bottom: 11px; }
.topic p { font-size: 0.88rem; color: var(--muted); }

/* ---------- Split: body text beside a poster ---------- */
.split { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start; }
.split-art, .head-art { position: relative; margin: 0; }
.split-art { position: sticky; top: calc(var(--nav-h) + 28px); }
.split-art img, .head-art img { width: 100%; border: var(--bd); position: relative; z-index: 2; }
.split-art::after, .head-art::after {
  content: ''; position: absolute; top: 12px; left: 12px; right: -12px; bottom: auto;
  aspect-ratio: 440 / 550; z-index: 1; background: var(--block);
}
.split-art figcaption { position: relative; z-index: 3; }
.split-art figcaption {
  margin-top: 26px; font-family: var(--cond); font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.section-navy .split-art, .section-navy .head-art { --block: var(--yel); }
.section-navy .split-art img, .section-navy .head-art img { border-color: var(--yel); }
.section-navy .split-art figcaption { color: var(--muted-light); }

/* the heading column sits beside a poster that makes the same point */
.head-split { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: end; margin-bottom: 56px; }
.head-split .head { margin-bottom: 0; }

/* three up poster strip */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 64px; }
.strip figure { position: relative; margin: 0; }
.strip img { width: 100%; border: var(--bd); position: relative; z-index: 2; }
.strip figure::after { content: ''; position: absolute; inset: 11px -11px -11px 11px; z-index: 1; background: var(--block); }

/* the sticky FAQ column carries one too */
.faq-wrap .head-art { margin-top: 40px; max-width: 320px; }

/* ---------- Tags and kit rows ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span {
  font-family: var(--cond); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 11px; border: 2px solid var(--rule); color: var(--muted);
}
.section-navy .tags span { border-color: rgba(255, 255, 255, 0.34); color: rgba(255, 255, 255, 0.86); }
.tags-lg span {
  font-family: var(--sans); font-weight: 500; font-size: 0.84rem;
  letter-spacing: 0; text-transform: none; padding: 8px 15px;
  border: var(--bd); color: var(--navy); background: var(--paper);
}

.kit-row {
  display: grid; grid-template-columns: 210px 1fr; gap: 30px; align-items: start;
  padding: 28px 0; border-top: var(--bd);
}
.kit-row:last-of-type { border-bottom: var(--bd); }
.kit-k {
  font-family: var(--cond); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--royal); padding-top: 7px;
}

/* ---------- Troubles ---------- */
.trouble {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 2px solid rgba(255, 255, 255, 0.3); border-left: 2px solid rgba(255, 255, 255, 0.3);
}
.trouble article {
  padding: 30px 30px 32px;
  border-right: 2px solid rgba(255, 255, 255, 0.3); border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}
.trouble h3 { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--yel); margin-bottom: 12px; }
.trouble p { font-size: 0.93rem; color: var(--muted-light); }

/* ---------- Deliverables ---------- */
.deliver { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid rgba(255,255,255,0.3); border-left: 2px solid rgba(255,255,255,0.3); }
.deliver article { padding: 36px 30px; border-right: 2px solid rgba(255,255,255,0.3); border-bottom: 2px solid rgba(255,255,255,0.3); }
.deliver h3 { font-family: var(--mont); font-weight: 900; text-transform: uppercase; font-size: 1.1rem; color: var(--yel); margin-bottom: 14px; }
.deliver p { font-size: 0.92rem; color: var(--muted-light); }

/* ---------- Detail (services page) ---------- */
.detail { margin-bottom: 68px; }
.detail:last-child { margin-bottom: 0; }
.detail-k { display: flex; align-items: center; gap: 20px; padding-bottom: 20px; border-bottom: 4px solid var(--navy); }
.detail-n {
  width: 46px; height: 46px; flex: none; background: var(--yel); color: var(--navy); border: var(--bd);
  display: grid; place-items: center; font-family: var(--mont); font-weight: 900; font-size: 1.15rem;
}
.detail-k h3 { font-family: var(--mont); font-weight: 900; text-transform: uppercase; font-size: 1.5rem; letter-spacing: -0.02em; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-left: var(--bd); }
.detail-grid article { padding: 26px 26px 28px; border-right: var(--bd); border-bottom: var(--bd); }
.detail-grid h4 {
  font-family: var(--cond); font-weight: 700; font-size: 0.84rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--royal); margin-bottom: 12px;
}
.detail-grid p { font-size: 0.9rem; color: var(--muted); }

/* ---------- Posts ---------- */
.filters { display: flex; flex-wrap: wrap; margin-bottom: 44px; border: var(--bd); }
.filter-chip {
  font-family: var(--cond); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  padding: 12px 18px; border: 0; border-right: 2px solid var(--navy);
  background: var(--paper); color: var(--navy); flex: 1 1 auto;
  transition: background 0.12s, color 0.12s;
}
.filter-chip:last-child { border-right: 0; }
.filter-chip:hover { background: var(--yel); }
.filter-chip.on { background: var(--navy); color: #fff; }

.posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 26px; }
.posts-6 { grid-template-columns: repeat(3, 1fr); }
.post-card a { display: block; text-decoration: none; color: inherit; }
.post-card figure { border: var(--bd); transition: transform 0.12s, box-shadow 0.12s; }
.post-card a:hover figure { transform: translate(-4px, -4px); box-shadow: 9px 9px 0 var(--block); }
.post-card img { width: 100%; height: auto; }
.post-body { padding-top: 20px; }
.post-k {
  font-family: var(--cond); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--royal); margin-bottom: 9px;
}
.post-card h3 { font-size: 1.1rem; line-height: 1.26; margin-bottom: 10px; }
.post-card p { font-size: 0.86rem; color: var(--muted); }
.posts-note { margin-top: 44px; font-size: 0.94rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; }
.faq-wrap .head { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 28px); }
.faq { border-top: var(--bd); }
.faq details { border-bottom: var(--bd); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 54px 22px 0; position: relative;
  font-family: var(--serif); font-weight: 700; font-size: 1.14rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; background: var(--navy);
  transition: transform 0.15s, background 0.15s;
}
.faq summary::before { width: 16px; height: 2px; margin-top: -1px; }
.faq summary::after { width: 2px; height: 16px; margin-top: -8px; margin-right: 7px; }
.faq details[open] summary::after { transform: rotate(90deg); }
.faq summary:hover, .faq details[open] summary { color: var(--royal); }
.faq details[open] summary::before, .faq details[open] summary::after { background: var(--royal); }
.faq details p { font-size: 0.95rem; color: var(--muted); padding: 0 46px 28px 0; max-width: 68ch; }
.faq details[open] p { animation: faq-open 0.3s ease both; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Page head ---------- */
.page-head { padding: 68px 0 80px; position: relative; z-index: 1; border-bottom: var(--bd); }
.page-head-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 60px; align-items: center; }
.page-head h1 { font-size: clamp(2.4rem, 4.4vw, 3.5rem); }
.page-head-art { max-width: 400px; margin-left: auto; position: relative; }
.page-head-art img { width: 100%; border: var(--bd); position: relative; z-index: 2; }
.page-head-art::after { content: ''; position: absolute; inset: 13px -13px -13px 13px; z-index: 1; background: var(--block); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
.need { list-style: none; margin-top: 40px; border-top: 2px solid rgba(255, 255, 255, 0.3); }
.need li {
  display: grid; grid-template-columns: 38px 1fr; gap: 20px; align-items: start;
  padding: 20px 0; border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}
.need span {
  width: 34px; height: 34px; background: var(--yel); color: var(--navy);
  display: grid; place-items: center; font-family: var(--mont); font-weight: 900; font-size: 0.86rem;
}
.need strong { display: block; color: #fff; font-weight: 600; font-size: 1rem; }
.need p { font-size: 0.89rem; color: var(--muted-light); margin-top: 4px; }

.contact-card { background: var(--paper); color: var(--navy); border: 2px solid var(--yel); padding: 38px 34px; }
.card-k {
  font-family: var(--cond); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--royal); margin-bottom: 20px;
}
.card-wm { font-family: var(--mont); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; }
.card-desc {
  font-family: var(--cond); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-top: 8px; margin-bottom: 26px;
}
.card-row {
  display: flex; align-items: center; gap: 14px; padding: 16px 0;
  border-top: var(--bd); text-decoration: none; color: inherit;
}
.card-row svg { width: 24px; height: 24px; flex: none; fill: var(--royal); }
.card-row span { display: block; font-size: 0.86rem; color: var(--muted); }
.card-row strong { display: block; font-weight: 600; font-size: 0.96rem; color: var(--navy); }
.card-row:hover strong { color: var(--royal); }
.card-note { margin-top: 24px; font-family: var(--serif); font-style: italic; font-size: 0.98rem; color: var(--navy); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #c7d8ea; padding: 78px 0 0; position: relative; z-index: 1; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 0.8fr 1fr 1fr; gap: 52px; align-items: start; }
.footer .brand-wm { color: #fff; font-size: 1.42rem; }
.footer .brand-org { color: var(--yel); }
.footer-tag {
  font-family: var(--cond); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #8ba9c6; margin-top: 10px;
}
.footer-line { font-size: 0.88rem; color: #a7bdd3; margin-top: 22px; max-width: 42ch; }
.footer-h {
  font-family: var(--cond); font-weight: 700; font-size: 0.76rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--yel);
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid rgba(255, 255, 255, 0.22);
}
.footer-links, .footer-topics, .footer-meta { display: flex; flex-direction: column; gap: 12px; }
.footer-links a, .footer-topics a, .footer-meta a { font-size: 0.9rem; color: #c7d8ea; text-decoration: none; transition: color 0.12s; }
.footer-meta a { display: flex; align-items: center; gap: 11px; }
.fi { width: 18px; height: 18px; flex: none; fill: currentColor; }
.footer-links a:hover, .footer-topics a:hover, .footer-meta a:hover { color: var(--yel); }

.footer-base {
  margin-top: 60px; padding: 26px 0 32px; border-top: 2px solid rgba(255, 255, 255, 0.22);
  display: flex; flex-wrap: wrap; gap: 10px 40px; justify-content: space-between;
}
.footer-base p { font-size: 0.79rem; color: #7f9bb6; }
.footer-note { max-width: 56ch; }

/* ---------- Scroll to top ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 52px; height: 52px; cursor: pointer;
  background: var(--yel); color: var(--navy); border: var(--bd);
  display: grid; place-items: center;
  /* visibility keeps it out of the tab order while hidden */
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.18s, transform 0.18s, background 0.12s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy); color: var(--yel); }
.to-top:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; }
.to-top svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Reveal ---------- */
/* short and triggered early on purpose: a long fade that starts once an element is
   already well inside the viewport reads as the page lagging, not as motion */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.42s ease-out, transform 0.42s ease-out; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; transition-delay: 0s !important; }
  .marquee-track, .rail-track { animation: none; }
  .hero .ribbon { animation: none; }
  .faq details[open] p { animation: none; }
  .to-top, .btn, .post-card figure { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .wrap { width: min(1240px, 100% - 40px); }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-art { max-width: 460px; margin-left: 0; }
  .page-head-grid { grid-template-columns: 1fr; gap: 48px; }
  .page-head-art { margin-left: 0; }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .topics .topic:first-child { grid-column: span 2; }
  .pillars, .why, .deliver, .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar { border-bottom: 2px solid rgba(255, 255, 255, 0.3); }
  .pillar:nth-child(2) { border-right: 0; padding-right: 0; }
  .pillar:last-child { padding-left: 0; }
  .posts { grid-template-columns: repeat(3, 1fr); }
  .posts-6 { grid-template-columns: repeat(2, 1fr); }
  .split, .head-split { grid-template-columns: 1fr; gap: 44px; }
  .split-art { position: static; max-width: 420px; }
  .head-art { max-width: 380px; }
  .strip { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .faq-wrap { grid-template-columns: 1fr; gap: 44px; }
  .faq-wrap .head { position: static; }
  .contact { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 44px; }
}

@media (max-width: 760px) {
  :root { --nav-h: 72px; }
  .wrap { width: min(1240px, 100% - 32px); }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 58px; }
  .head { margin-bottom: 40px; }
  h1 { font-size: clamp(2.1rem, 8.6vw, 2.9rem); }
  h2 { font-size: clamp(1.8rem, 7.4vw, 2.4rem); }
  .section-navy h2 { font-size: clamp(1.7rem, 7vw, 2.3rem); }

  .brand-desc { display: none; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: -2px; right: -2px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border: var(--bd); border-top: 0;
    border-radius: 0 0 var(--r) var(--r); overflow: hidden;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 15px; border: 0; border-bottom: 2px solid var(--navy); text-align: center; }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-cta { margin-left: 0; }
  .burger { display: flex; }
  .nav-inner { position: relative; }

  .hero .ribbon { display: none; }
  .hero-chips { grid-template-columns: repeat(2, 1fr); }
  .hero-chips span:nth-child(4n) { border-right: 2px solid var(--navy); }
  .hero-chips span:nth-child(2n) { border-right: 0; }
  .hero-chips span:nth-last-child(-n+2) { border-bottom: 0; }

  .stuck, .trouble, .why, .deliver, .detail-grid, .posts, .posts-6, .topics { grid-template-columns: 1fr; }
  .topics .topic:first-child { grid-column: span 1; }
  .stuck-card, .stuck-card:nth-child(odd), .stuck-card:nth-child(even) {
    padding: 28px 0; border-right: 0; padding-left: 0; padding-right: 0;
  }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar:not(:first-child), .pillar:last-child { padding: 30px 0; border-right: 0; }
  .posts { gap: 34px; }
  .rail figure { width: 170px; }
  .rail { padding: 22px 0; }
  .strip { grid-template-columns: 1fr; gap: 34px; }
  .split-art::after, .head-art::after { top: 9px; left: 9px; right: -9px; }
  .strip figure::after { inset: 9px -9px -9px 9px; }
  .steps li { grid-template-columns: 1fr; gap: 14px; padding: 30px 0; }
  .step-n { text-align: left; font-size: 4.4rem; }
  .kit-row { grid-template-columns: 1fr; gap: 16px; }
  .filters { flex-direction: column; }
  .filter-chip { border-right: 0; border-bottom: 2px solid var(--navy); text-align: left; }
  .filter-chip:last-child { border-bottom: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; }
  .page-head { padding: 44px 0 56px; }
  .hero-art::after, .page-head-art::after { inset: 10px -10px -10px 10px; }
}
