@charset "UTF-8";
:root {
  --red: #B70521;
  --navy: #0B2650;
  --text: #3B4658;
  --muted: #6B7686;
  --line: #E4E7EC;
  --bg: #FFFFFF;
  --bg-alt: #F5F6F8;
  --radius: 14px;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "IBM Plex Sans Thai", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* Intro screen: logo, tagline and a short loading line, then the sheet lifts away. */
.intro { display: none; }
html.is-intro { overflow: hidden; }
html.is-intro .intro, .intro.is-leaving { display: grid; }
.intro {
  position: fixed; inset: 0; z-index: 200; place-items: center; overflow: hidden;
  background: #fff; text-align: center; cursor: pointer;
  transition: transform .85s cubic-bezier(.75, 0, .2, 1);
}
.intro.is-leaving { transform: translateY(-100%); }
.intro::before, .intro::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.intro::before {
  left: 50%; top: 50%; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border: 1.5px solid var(--red); opacity: 0; animation: hero-ring 2.4s ease-out .2s infinite;
}
.intro::after {
  right: -420px; bottom: -520px; width: 980px; height: 980px; border: 120px solid rgba(183, 5, 33, .1);
  animation: arc-drift 8s ease-in-out infinite alternate;
}
.intro-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; padding: 0 24px; }
.intro-inner > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.intro-logo { width: min(320px, 64vw); height: auto; animation-name: intro-logo; animation-duration: 1s; }
.intro-tag { margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: .22em; color: var(--muted); animation-delay: .45s; }
.intro-line { font-size: clamp(22px, 3vw, 30px); font-weight: 500; color: var(--navy); animation-delay: .65s; }
.intro-line b { font-weight: 700; color: var(--red); }
.intro-sub { font-size: 15px; color: var(--text); animation-delay: .85s; }
.intro-bar { position: relative; overflow: hidden; width: 200px; height: 3px; margin-top: 18px; border-radius: 3px; background: var(--line); animation-delay: .9s; }
.intro-bar::after {
  content: ""; position: absolute; inset: 0; background: var(--red);
  transform: scaleX(0); transform-origin: left; animation: hero-fill 1.7s cubic-bezier(.6, 0, .3, 1) .9s forwards;
}
.intro-skip {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 28px; font-size: 13px; color: var(--muted);
  animation: rise .6s ease 1.4s both;
}
@keyframes intro-logo { from { opacity: 0; transform: scale(.88) translateY(12px); } to { opacity: 1; transform: none; } }
/* Hold the home page entrance until the intro has lifted. */
html.is-intro .hero *, html.is-intro .hero-media { animation-play-state: paused !important; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand img { width: 128px; height: auto; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-weight: 500; color: var(--navy); white-space: nowrap; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--red); transition: width .2s;
}
.nav a:hover::after { width: 100%; }
/* Staff sign-in: set apart from the page links as an outlined pill. */
.nav .nav-staff {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); font-size: 14.5px; white-space: nowrap; transition: border-color .2s, color .2s;
}
.nav .nav-staff::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.nav .nav-staff::after { display: none; }
.nav .nav-staff:hover { border-color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang a {
  padding: 6px 12px; text-decoration: none;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.lang a.is-active { background: var(--navy); color: #fff; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn-sm { padding: 9px 20px; font-size: 15px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #980419; }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* Shared */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; }
/* Eyebrow dots pulse like the dot in the logo: the core fades while a halo spreads out. */
.dot { position: relative; animation: dot-blink 1.8s ease-in-out infinite; }
.dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red);
  animation: dot-halo 1.8s ease-out infinite;
}
@keyframes dot-blink { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes dot-halo { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(3.4); opacity: 0; } }
.section { padding: 68px 0; }
.section-alt { background: var(--bg-alt); --sec-bg: var(--bg-alt); }

/* Background flourish: a large soft red arc that sweeps in from the side of a section and drifts slowly. */
.arc { position: relative; overflow: hidden; }
.arc > .container { position: relative; z-index: 1; }
.arc::before {
  content: ""; position: absolute; top: 12%; width: 980px; height: 980px; border-radius: 50%;
  border: 120px solid rgba(183, 5, 33, .13); pointer-events: none;
  animation: arc-drift 26s ease-in-out infinite alternate;
}
.arc-r::before {
  right: -520px;
  -webkit-mask-image: linear-gradient(200deg, transparent 18%, #000 46%, transparent 86%);
  mask-image: linear-gradient(200deg, transparent 18%, #000 46%, transparent 86%);
}
.arc-l::before {
  left: -560px; top: 22%;
  -webkit-mask-image: linear-gradient(160deg, transparent 18%, #000 46%, transparent 86%);
  mask-image: linear-gradient(160deg, transparent 18%, #000 46%, transparent 86%);
  animation-direction: alternate-reverse;
}
@keyframes arc-drift {
  from { transform: translateY(-40px) rotate(-10deg) scale(1); }
  to { transform: translateY(50px) rotate(12deg) scale(1.06); }
}
.section-head { margin-bottom: 34px; }
.section-head p:not(.eyebrow) { max-width: 820px; }
/* Key words inside running text */
.kw { font-weight: 700; color: var(--red); white-space: nowrap; }
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 24px; }
.values li {
  position: relative; overflow: hidden; min-width: 0; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  font-weight: 600; color: var(--navy); line-height: 1.35;
  transition: opacity .6s ease, transform .6s ease, border-color .3s, box-shadow .3s;
  transition-delay: calc(var(--i, 0) * 80ms), calc(var(--i, 0) * 80ms), 0s, 0s;
}
.values li::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.values svg {
  flex: none; width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: rgba(183, 5, 33, .08);
  fill: none; stroke: var(--red); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  transition: background .3s, stroke .3s, transform .4s;
}
.values text { fill: var(--red); stroke: none; font: 700 11px "IBM Plex Sans Thai", sans-serif; transition: fill .3s; }
.values li:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 12px 28px rgba(11, 38, 80, .1); transition-delay: 0s; }
.values li:hover::after { transform: scaleX(1); }
.values li:hover svg { background: var(--red); stroke: #fff; transform: rotate(-8deg) scale(1.06); }
.values li:hover text { fill: #fff; }
.section-head h2, .contact-copy h2 { font-size: clamp(26px, 3.1vw, 40px); }
h1, h2, h3, .svc-title { text-wrap: balance; }
p { text-wrap: pretty; }
.section-head h2 + p, .contact-copy h2 + p { margin-top: 18px; }

/* Hero */
.hero { padding: 48px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); font-weight: 700; letter-spacing: -.01em; }
.hero h1 span { display: block; }
.hero h1 { font-weight: 500; }
/* English words are longer than the Thai headline, so step the size down to keep two lines. */
html[lang="en"] .hero h1 { font-size: clamp(32px, 4.1vw, 54px); }
.hl {
  position: relative; display: inline-block; margin: 0 .05em;
  font-style: normal; font-weight: 700; font-size: 1.14em; color: var(--red);
  /* pop in, then keep a gentle bob and a light sweep across the letters */
  animation:
    hl-pop .75s cubic-bezier(.3, 1.5, .5, 1) .55s both,
    hl-bob 3.6s ease-in-out 1.5s infinite,
    hl-shine 3.6s ease-in-out 1.5s infinite;
}
.hero h1 span:nth-child(2) .hl { animation-delay: .85s, 2s, 2s; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hl {
    background: linear-gradient(100deg, var(--red) 0%, var(--red) 38%, #FF6B7D 50%, var(--red) 62%, var(--red) 100%) 100% 0 / 260% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
}
.hl::after {
  content: ""; position: absolute; z-index: -1; left: -.04em; right: -.04em; bottom: .1em; height: .26em;
  background: rgba(183, 5, 33, .16); border-radius: .08em;
  transform: scaleX(0); transform-origin: left; animation: hl-draw 3.6s ease-in-out 1.2s infinite;
}
.hero h1 span:nth-child(2) .hl::after { animation-delay: 1.7s; }
@keyframes hl-pop {
  0% { opacity: 0; transform: scale(.4) rotate(-8deg); }
  60% { opacity: 1; transform: scale(1.16) rotate(2deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes hl-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.06em); } }
@keyframes hl-shine { 0%, 35% { background-position: 100% 0; } 75%, 100% { background-position: 0 0; } }
@keyframes hl-draw {
  0% { transform: scaleX(0); transform-origin: left; }
  22%, 49% { transform: scaleX(1); transform-origin: left; }
  50%, 78% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}
.lead { margin-top: 26px; font-size: 19px; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-media { margin: 0; position: relative; }
.hero-slides {
  position: relative; z-index: 1; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius); background: var(--bg-alt);
}
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slides img.is-active { opacity: 1; animation: hero-zoom 7s ease-out forwards; }
/* Paper-fold transition panels (built by script) */
.hero-slides.is-folding img { visibility: hidden; transition: none; }
.hero-fold { position: absolute; inset: 0; perspective: 1400px; }
.hero-fold span {
  position: absolute; top: 0; height: 100%; background-repeat: no-repeat;
  transform-origin: left center; backface-visibility: hidden;
  transition: transform .52s cubic-bezier(.55, .1, .35, 1), filter .52s ease;
}
.hero-fold span:nth-child(even) { transform-origin: right center; }
.hero-fold.is-out span { transform: rotateY(90deg); filter: brightness(.45); }
.hero-fold.is-out span:nth-child(even) { transform: rotateY(-90deg); }
.hero-media figcaption { z-index: 2; }
.hero-media figcaption span { display: none; }
.hero-media figcaption span.is-active { display: inline; animation: rise .5s ease both; }
.hero-dots { position: absolute; z-index: 2; right: 16px; bottom: 26px; display: flex; gap: 6px; }
.hero-dots button {
  position: relative; overflow: hidden; width: 28px; height: 4px; padding: 0; border: 0; border-radius: 4px;
  background: rgba(255, 255, 255, .6); cursor: pointer;
}
.hero-dots button::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; }
.hero-dots button.is-active::after { transform: scaleX(1); }
.hero-media.is-playing .hero-dots button.is-active::after { animation: hero-fill var(--hero-time, 5s) linear both; }
.hero-badge {
  position: absolute; z-index: 3; top: 28px; left: -30px; display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: 14px; padding: 14px 20px 14px 18px;
  box-shadow: 0 16px 40px rgba(11, 38, 80, .16); animation: hero-float 5s ease-in-out infinite;
}
.hero-badge strong { display: block; color: var(--navy); font-size: 16px; line-height: 1.3; }
.hero-badge small { display: block; color: var(--muted); font-size: 13px; }
.pulse { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--red); flex: none; }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red);
  animation: hero-pulse 1.8s ease-out infinite;
}
.hero-rings { position: absolute; top: -70px; right: -70px; width: 240px; height: 240px; }
.hero-rings span {
  position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--red);
  opacity: 0; animation: hero-ring 4.5s ease-out infinite;
}
.hero-rings span:nth-child(2) { animation-delay: 1.5s; }
.hero-rings span:nth-child(3) { animation-delay: 3s; }

/* Entrance on load */
.hero-copy > :not(h1), .hero h1 span { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero h1 span:nth-child(1) { animation-delay: .12s; }
.hero h1 span:nth-child(2) { animation-delay: .26s; }
.hero-copy .lead { animation-delay: .42s; }
.hero-copy .hero-cta { animation-delay: .56s; }
.hero-media { animation: hero-in 1s cubic-bezier(.2, .7, .2, 1) .2s both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes hero-in { from { opacity: 0; transform: translateX(40px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes hero-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes hero-pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(3.2); opacity: 0; } }
@keyframes hero-ring { 0% { transform: scale(.25); opacity: .55; } 100% { transform: scale(1); opacity: 0; } }
.hero-media figcaption {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(255, 255, 255, .92); color: var(--navy);
  font-size: 13px; padding: 6px 14px; border-radius: 999px;
}

/* Stats */
.stats { border-block: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-size: 52px; font-weight: 600; line-height: 1; color: var(--navy); }
.stat span { display: block; margin-top: 12px; font-size: 15px; color: var(--muted); line-height: 1.5; }

/* Services: photo stage that follows the selected service */
.svc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.svc-stage {
  position: relative; aspect-ratio: 16 / 11; overflow: hidden;
  border-radius: var(--radius); background: var(--navy);
}
.svc-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.1); transition: opacity .8s ease, transform 6s ease-out;
}
.svc[data-active="design"] .svc-photo[data-svc="design"],
.svc[data-active="estimate"] .svc-photo[data-svc="estimate"],
.svc[data-active="permit"] .svc-photo[data-svc="permit"],
.svc[data-active="build"] .svc-photo[data-svc="build"],
.svc[data-active="reno"] .svc-photo[data-svc="reno"],
.svc[data-active="pm"] .svc-photo[data-svc="pm"] { opacity: 1; transform: scale(1); }
.svc-stage::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 38, 80, .72), rgba(11, 38, 80, 0) 45%);
}
.svc-count {
  position: absolute; z-index: 1; left: 26px; bottom: 20px;
  display: flex; align-items: baseline; gap: 10px; color: #fff;
}
.svc-count strong { font-size: 56px; font-weight: 700; line-height: 1; }
.svc-count span { font-size: 15px; font-weight: 500; opacity: .8; letter-spacing: .08em; }
.svc-count::before {
  content: ""; align-self: center; width: 10px; height: 10px; border-radius: 50%; background: var(--red);
}

.svc-list { display: grid; }
.svc-item {
  position: relative; display: flex; gap: 20px; width: 100%; text-align: left;
  padding: 16px 0; border: 0; border-top: 1px solid var(--line); background: none;
  font: inherit; color: inherit; cursor: pointer;
}
.svc-item:last-child { border-bottom: 1px solid var(--line); }
/* Big outlined numeral that fills with red from the bottom when its service is active. */
.svc-no {
  position: relative; flex: none; align-self: flex-start; width: 76px; margin-top: -4px;
  font-size: 50px; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: #BFC5CF;
  transform-origin: left center; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1), color .4s;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .svc-no {
    color: transparent; -webkit-text-stroke: 1.5px #BFC5CF;
    background: linear-gradient(to top, var(--red) 50%, transparent 50%) 0 0 / 100% 200% no-repeat;
    -webkit-background-clip: text; background-clip: text;
    transition: transform .5s cubic-bezier(.3, 1.4, .5, 1), background-position .8s cubic-bezier(.2, .7, .2, 1), -webkit-text-stroke-color .4s;
  }
  .svc-item.is-active .svc-no { background-position: 0 100%; -webkit-text-stroke-color: var(--red); }
  .svc-item:not(.is-active):hover .svc-no { -webkit-text-stroke-color: var(--navy); }
}
.svc-item.is-active .svc-no { color: var(--red); transform: scale(1.12); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .svc-item.is-active .svc-no { color: transparent; }
}
/* The brand "point": a red dot that pops in beside the active numeral. */
.svc-no::after {
  content: ""; position: absolute; right: 4px; bottom: 7px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); transform: scale(0); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1) .35s;
}
.svc-item.is-active .svc-no::after { transform: scale(1); }
.svc-body { display: block; flex: 1; }
.svc-title { display: block; font-size: 22px; font-weight: 600; color: var(--navy); line-height: 1.35; transition: color .3s; }
.svc-desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; font-size: 16px; }
.svc-desc-in { display: block; overflow: hidden; }
.svc-item.is-active .svc-desc { grid-template-rows: 1fr; }
.svc-item.is-active .svc-desc-in { padding-top: 8px; }
.svc-item:hover .svc-title { color: var(--red); }
.svc-item::after {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--red);
}
.svc.is-playing .svc-item.is-active::after { animation: svc-progress var(--svc-time, 4.5s) linear forwards; }
.svc:not(.is-playing) .svc-item.is-active::after { width: 100%; }
@keyframes svc-progress { from { width: 0; } to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .dot, .dot::after { animation: none; }
  .dot::after { opacity: 0; }
  .pj-row { animation: none; width: auto; overflow-x: auto; }
  .pj-marquee { -webkit-mask-image: none; mask-image: none; }
  .arc::before { animation: none; }
  .tl li.is-now .tl-logo { animation: none; }
  .hero *, .hero-media { animation: none !important; }
  .hl::after { transform: none; }
  .js .reveal:not(.is-in) { opacity: 1; transform: none; }
  .svc * { animation: none !important; }
}

/* Process */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: var(--line);
}
.steps li { position: relative; padding-top: 36px; }
.steps li::before {
  content: ""; position: absolute; top: 0; left: 0; width: 13px; height: 13px;
  border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px var(--sec-bg, #fff);
}
.step-no { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .08em; }
.steps h3 { font-size: 18.5px; margin: 6px 0 8px; }
.steps p { font-size: 15.5px; }
.steps img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; margin-top: 14px; }

/* Process: scroll-driven timeline. Without JS every step shows in its finished state. */
.steps::after {
  content: ""; position: absolute; top: 5px; left: 0; height: 3px; width: calc(var(--p, 1) * 100%);
  background: var(--red); border-radius: 3px; box-shadow: 0 0 12px rgba(183, 5, 33, .5);
}
.steps li::before { z-index: 1; transition: background .4s, transform .4s; }
.steps li > * { transition: opacity .6s ease, transform .6s ease, clip-path .9s ease, color .4s; }
.steps .step-no {
  display: block; font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: 0;
  color: var(--red); -webkit-text-stroke: 1.5px var(--red); margin-bottom: 10px;
}
.steps li:hover h3 { color: var(--red); }
.steps li:hover img { transform: scale(1.03); }
.steps li.is-on::before { animation: step-pop .6s ease; }
.steps.is-live li:not(.is-on)::before { background: #C9CED6; transform: scale(.8); }
.steps.is-live li:not(.is-on) .step-no { color: transparent; -webkit-text-stroke-color: #C9CED6; }
.steps.is-live li:not(.is-on) h3,
.steps.is-live li:not(.is-on) p { opacity: .3; transform: translateY(12px); }
.steps.is-live li:not(.is-on) img { clip-path: inset(0 0 100% 0); }
.steps img { clip-path: inset(0); }
@keyframes step-pop {
  0% { transform: scale(.8); box-shadow: 0 0 0 5px var(--sec-bg, #fff), 0 0 0 5px rgba(183, 5, 33, .5); }
  60% { transform: scale(1.5); box-shadow: 0 0 0 5px var(--sec-bg, #fff), 0 0 0 16px rgba(183, 5, 33, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 5px var(--sec-bg, #fff); }
}

/* Why us */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card {
  position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  transition: opacity .6s ease, transform .6s ease, box-shadow .3s, border-color .3s;
  transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s;
}
.why-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .45s ease;
}
.why-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11, 38, 80, .1); border-color: transparent; transition-delay: 0s; }
.why-card:hover::before { transform: scaleX(1); }
.why-icon {
  width: 52px; height: 52px; padding: 13px; border-radius: 50%; background: rgba(183, 5, 33, .08);
  fill: none; stroke: var(--red); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  transition: background .3s, stroke .3s, transform .4s;
}
.why-icon .fill { fill: var(--red); stroke: none; transition: fill .3s; }
.why-card:hover .why-icon { background: var(--red); stroke: #fff; transform: rotate(-8deg) scale(1.06); }
.why-card:hover .why-icon .fill { fill: #fff; }
.why-card h3 { font-size: 20px; margin: 18px 0 8px; }
.why-card p { font-size: 15.5px; }
/* Photo-backed cards: the picture sits under a navy wash so the white text stays readable. */
.why-card {
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 232px;
  border: 0; background: var(--navy); color: rgba(255, 255, 255, .86);
}
.why-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.why-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 38, 80, .94) 0%, rgba(11, 38, 80, .78) 45%, rgba(11, 38, 80, .35) 100%);
  transition: opacity .4s;
}
.why-card::before { z-index: 2; height: 4px; }
.why-card > :not(.why-bg) { position: relative; z-index: 1; }
.why-card:hover .why-bg { transform: scale(1.08); }
.why-card:hover::after { opacity: .88; }
.why-card h3 { color: #fff; }
.why-icon { background: rgba(255, 255, 255, .16); stroke: #fff; backdrop-filter: blur(4px); }
.why-icon .fill { fill: #fff; }
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(28px); }

/* Projects: compact cards, two rows */
/* Two edge-to-edge rows that glide in opposite directions; hovering pauses a row and lifts the card. */
.arc > .pj-marquee { position: relative; z-index: 1; }
.pj-marquee {
  display: grid; gap: 14px; padding: 8px 0 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.pj-row { display: flex; gap: 18px; width: max-content; animation: pj-run 60s linear infinite; }
.pj-row--rev { animation-direction: reverse; }
.pj-row:hover { animation-play-state: paused; }
@keyframes pj-run { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 9px)); } }

.project {
  position: relative; flex: none; width: 300px; aspect-ratio: 3 / 2; overflow: hidden;
  border-radius: var(--radius); background: var(--navy);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s;
}
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.project::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 38, 80, .92) 0%, rgba(11, 38, 80, .35) 42%, rgba(11, 38, 80, 0) 65%);
  transition: opacity .4s;
}
.project::before {
  content: ""; position: absolute; z-index: 2; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .5s ease;
}
.project-info { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 18px 20px 20px; transition: transform .45s ease; }
.tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--red); color: #fff;
  font-size: 11.5px; font-weight: 600; letter-spacing: .03em;
}
.project h3 { color: #fff; font-size: 19px; line-height: 1.35; margin-top: 8px; }
.project p { color: rgba(255, 255, 255, .82); font-size: 14px; line-height: 1.45; }
.project:hover { transform: translateY(-8px) scale(1.04); box-shadow: 0 24px 48px rgba(11, 38, 80, .28); z-index: 2; }
.project:hover img { transform: scale(1.12); }
.project:hover::before { transform: scaleX(1); }
.project:hover .project-info { transform: translateY(-6px); }

/* News cards (filled in by assets/js/news.js) */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 84px 1fr; align-content: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: opacity .6s ease, transform .6s ease, box-shadow .3s, border-color .3s;
  transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s;
}
.news-card::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .45s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11, 38, 80, .1); border-color: transparent; transition-delay: 0s; }
.news-card:hover::after { transform: scaleX(1); }
.news-media { grid-column: 1 / -1; display: grid; gap: 4px; overflow: hidden; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.news-img { aspect-ratio: 16 / 9; }
.news-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.news-main { position: relative; overflow: hidden; min-height: 0; }
.news-cap {
  position: absolute; left: 12px; bottom: 12px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--navy); font-size: 12.5px; font-weight: 500;
}
.news-thumbs img { aspect-ratio: 16 / 9; }
.news-card:hover .news-img { transform: scale(1.04); }
/* Featured: twice as wide, pictures on the left, text on the right. */
.news-card.is-featured { grid-column: span 2; grid-template-columns: 1.35fr 84px 1fr; align-content: stretch; min-height: 400px; }
.news-card.is-featured .news-media { grid-column: 1; grid-row: 1 / span 2; grid-template-rows: 2fr 1fr; }
.news-card.is-featured .news-img, .news-card.is-featured .news-thumbs img { aspect-ratio: auto; min-height: 0; }
.news-card.is-featured .news-main .news-img { position: absolute; inset: 0; }
.news-card.is-featured h3 { font-size: 21px; }
.news-date { padding: 20px 0 20px 22px; text-align: center; }
.news-date strong { display: block; font-size: 40px; font-weight: 700; line-height: 1; color: var(--red); }
.news-date span { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.news-body { padding: 20px 24px 22px 18px; }
.news-tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px; background: rgba(183, 5, 33, .08);
  color: var(--red); font-size: 12px; font-weight: 600;
}
.news-card h3 { font-size: 18px; line-height: 1.4; margin: 10px 0 8px; text-wrap: pretty; }
.news-card p { font-size: 15px; }

/* Client logos: a still wall, five on the first row and four centred beneath; greyscale until hovered. */
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 24px; }
.logos li {
  position: relative; overflow: hidden; flex: none; width: calc((100% - 56px) / 5); height: 92px; padding: 18px 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: opacity .6s ease, transform .6s ease, border-color .3s, box-shadow .3s;
  transition-delay: calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), 0s, 0s;
}
.logos li::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--red);
  transform: scaleX(0); transition: transform .4s ease;
}
.logos img {
  width: 100%; height: 100%; object-fit: contain;
  filter: grayscale(1); opacity: .6; transition: filter .35s, opacity .35s, transform .35s;
}
.logos li:hover { border-color: transparent; box-shadow: 0 14px 32px rgba(11, 38, 80, .12); transform: translateY(-5px); transition-delay: 0s; }
.logos li:hover::after { transform: scaleX(1); }
.logos li:hover img { filter: none; opacity: 1; transform: scale(1.06); }

/* Sectors */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-size: 15px; font-weight: 500; color: var(--navy);
}

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.member-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-alt); display: grid; place-items: center; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .7s ease; }
.member:hover .member-photo img { transform: scale(1.04); }
.member-photo--empty span { font-size: 64px; font-weight: 600; color: #C9CED6; }
.member-body { padding: 24px 26px 28px; }
.member.reveal, .story.reveal { transition: opacity .7s ease, transform .7s ease; }

/* Founder row: photo | profile | career timeline */
.founder { display: flex; flex-direction: column; }
.founder .member-body { flex: 1; padding: 20px 22px 18px; }
.founder h3 { font-size: 19px; }
.founder .member-body p:not(.role) { font-size: 14.5px; line-height: 1.65; }
/* Career history folds away under each founder so a tall portrait does not make the page longer. */
.member-tl { background: var(--bg-alt); border-top: 1px solid var(--line); }
.tl-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 22px;
  border: 0; background: none; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--navy);
  transition: color .2s;
}
.tl-toggle:hover { color: var(--red); }
.tl-toggle i {
  width: 9px; height: 9px; margin: -4px 4px 0 0; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(45deg); transition: transform .35s ease, margin .35s ease;
}
.member-tl.is-open .tl-toggle i { transform: rotate(-135deg); margin-top: 4px; }
.tl-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s ease; }
.member-tl.is-open .tl-wrap { grid-template-rows: 1fr; }
.tl-inner { overflow: hidden; min-height: 0; }
.tl-pad { padding: 2px 22px 20px; }
.tl { position: relative; display: grid; gap: 9px; }
.tl::before { content: ""; position: absolute; left: 31px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.tl li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.tl li.reveal { transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 120ms); }
.tl-logo {
  position: relative; z-index: 1; width: 64px; height: 44px; border-radius: 9px;
  background: #fff; border: 1px solid var(--line); display: grid; place-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: .02em; color: var(--navy); line-height: 1.1; text-align: center;
}
/* Inset the image absolutely so tall and wide logos are both scaled to the frame. */
.tl-logo img { position: absolute; inset: 6px 7px; width: calc(100% - 14px); height: calc(100% - 12px); object-fit: contain; }
.tl-year { display: block; font-size: 11.5px; line-height: 1.4; font-weight: 600; color: var(--red); }
.tl-role { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--navy); }
.tl-co { display: block; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.tl-now {
  display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 600; vertical-align: 1px;
}
.tl li.is-now .tl-logo { border-color: var(--red); animation: tl-pulse 2.2s ease-out infinite; }
@keyframes tl-pulse { 0% { box-shadow: 0 0 0 0 rgba(183, 5, 33, .35); } 100% { box-shadow: 0 0 0 12px rgba(183, 5, 33, 0); } }

/* Founding story */
.story { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; margin-bottom: 40px; }
.story-quote {
  position: relative; margin: 0; padding-top: 54px;
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1.45; font-weight: 600; color: var(--navy); text-wrap: balance;
}
.story-quote::before {
  content: "\201C"; position: absolute; left: -6px; top: -18px;
  font: 700 130px/1 Georgia, "Times New Roman", serif; color: var(--red);
}
.story-quote::after { content: "\201D"; margin-left: .08em; font-family: Georgia, "Times New Roman", serif; color: var(--red); }
.story-cite { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 15px; color: var(--muted); }
.story-cite::before { content: ""; width: 34px; height: 2px; background: var(--red); }
.story-text p + p { margin-top: 16px; }
/* Vision, mission, values, strategy */
.vmv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 40px; }
.vmv-card {
  position: relative; overflow: hidden; padding: 24px 28px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: opacity .7s ease, transform .7s ease, box-shadow .3s; transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s;
}
.vmv-card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--red);
  transform: scaleY(0); transform-origin: top; transition: transform .45s ease;
}
.vmv-card:hover { box-shadow: 0 16px 36px rgba(11, 38, 80, .1); }
.vmv-card:hover::before { transform: scaleY(1); }
.vmv-label { font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--red); }
.vmv-card h3 { font-size: 22px; margin: 2px 0 12px; }
.vmv-card--vision { border-color: var(--navy); background: var(--navy); color: rgba(255, 255, 255, .9); }
.vmv-card--vision h3 { color: #fff; }
.vmv-card--vision .vmv-label { color: #FF8795; }
.vmv-lead { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.55; font-weight: 500; color: #fff; text-wrap: balance; }
.vmv-card ul, .vmv-card ol { display: grid; gap: 8px; }
.vmv-card ul:not(.vmv-values) li { position: relative; padding-left: 20px; }
.vmv-card ul:not(.vmv-values) li::before {
  content: ""; position: absolute; left: 0; top: .68em; width: 8px; height: 8px; border-radius: 50%; background: var(--red);
}
.vmv-values li, .vmv-steps li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: baseline; }
.vmv-steps li { grid-template-columns: 150px 1fr; }
.vmv-values strong, .vmv-steps strong { color: var(--navy); font-weight: 600; }
.vmv-values span, .vmv-steps span { font-size: 15.5px; }
/* Core values: a large translucent initial (S C Q O V) sits at the right of each row. */
.vmv-card .vmv-values { gap: 0; }
.vmv-values li {
  position: relative; align-items: center; min-height: 54px; padding: 8px 64px 8px 0;
  border-bottom: 1px solid var(--line);
}
.vmv-values li:last-child { border-bottom: 0; }
.vmv-values li::after {
  content: attr(data-letter); position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: 50px; font-weight: 700; line-height: 1; color: var(--red); opacity: .13;
  transition: opacity .35s ease, transform .45s cubic-bezier(.3, 1.4, .5, 1);
}
.vmv-values li:hover::after { opacity: .55; transform: translateY(-50%) scale(1.14) rotate(-6deg); }
.vmv-values li:hover strong { color: var(--red); }
.vmv-values strong { transition: color .3s; }

.team-title { font-size: 22px; margin-bottom: 24px; }
.member h3 { font-size: 21px; }
.role { color: var(--red); font-weight: 500; font-size: 15px; margin: 4px 0 14px; }
.member p:not(.role) { font-size: 15.5px; }
.draft {
  display: inline-block; margin-top: 16px; padding: 4px 12px; border-radius: 6px;
  border: 1px dashed #C9A227; background: #FFF8E1; color: #7A5B00; font-size: 12.5px;
}
.registry {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line);
}
.registry span { display: block; font-size: 13px; color: var(--muted); }
.registry strong { color: var(--navy); font-weight: 600; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.contact-btn {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.contact-btn svg {
  flex: none; width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: rgba(183, 5, 33, .08);
  fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: background .25s, stroke .25s;
}
.contact-btn text { fill: var(--red); stroke: none; font: 700 4.6px "IBM Plex Sans Thai", sans-serif; transition: fill .25s; }
.contact-btn strong { display: block; font-size: 16.5px; font-weight: 600; line-height: 1.35; color: var(--navy); }
.contact-btn small { display: block; font-size: 13px; color: var(--muted); }
.contact-btn:hover { border-color: var(--red); box-shadow: 0 12px 28px rgba(11, 38, 80, .1); transform: translateY(-3px); }
.contact-btn:hover svg { background: var(--red); stroke: #fff; }
.contact-btn:hover text { fill: #fff; }
.contact-btn--primary { background: var(--red); border-color: var(--red); }
.contact-btn--primary strong { color: #fff; }
.contact-btn--primary small { color: rgba(255, 255, 255, .82); }
.contact-btn--primary svg { background: rgba(255, 255, 255, .18); stroke: #fff; }
.contact-btn--primary:hover { background: #980419; border-color: #980419; }
.contact-btn--primary:hover svg { background: #fff; stroke: var(--red); }
.form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: grid; gap: 14px; align-content: start;
}
.form label span { display: block; font-size: 14px; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--navy); background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; }

.contact-photo { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius); margin-top: 22px; }

/* Portrait photos: keep the subject inside the landscape crop */
img[src*="step-survey"] { object-position: center 85%; }
img[src*="step-design"] { object-position: center 40%; }
img[src*="contact.jpg"] { object-position: center 40%; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .78); padding: 40px 0 0; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.6fr .8fr; gap: 48px; padding-bottom: 28px; }
.footer-logo { width: 200px; height: auto; margin-bottom: 14px; }
.footer-brand p { line-height: 1.7; }
.site-footer h4 { margin: 2px 0 10px; font-size: 17px; font-weight: 600; color: #fff; }
.site-footer ul { display: grid; gap: 6px; }
.footer-menu ul { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: 28px; }
.site-footer a { color: rgba(255, 255, 255, .86); transition: color .2s; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--red); }
.site-footer .socials { display: flex; flex-wrap: wrap; gap: 12px; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .28); color: #fff;
  transition: background .25s, border-color .25s, transform .25s;
}
.socials a:hover { background: var(--red); border-color: var(--red); transform: translateY(-3px); text-decoration: none; }
.socials svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.socials text { fill: currentColor; stroke: none; font: 700 4.6px "IBM Plex Sans Thai", sans-serif; letter-spacing: .02em; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  padding: 16px 0 20px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 14px; color: rgba(255, 255, 255, .62);
}

.site-footer .staff-link {
  display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28); color: rgba(255, 255, 255, .78); font-size: 13px;
}
.site-footer .staff-link::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.site-footer .staff-link:hover { color: #fff; border-color: #fff; text-decoration: none; }

/* Staff sign-in holding page */
.staff-page { background: var(--bg-alt); }
.staff { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 28px; padding: 40px 20px; }
.staff-logo img { width: 200px; height: auto; }
.staff-card {
  width: min(460px, 100%); padding: 36px 34px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 18px 44px rgba(11, 38, 80, .08); text-align: center;
}
.staff-card .eyebrow { justify-content: center; }
.staff-card h1 { font-size: 30px; }
.staff-lead { margin-top: 10px; }
.staff-status { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: rgba(183, 5, 33, .07); color: var(--red); font-weight: 600; font-size: 15px; }
.staff-en { margin: 16px 0 24px; font-size: 14px; color: var(--muted); }

/* Mobile quick contact bar */
.quickbar { display: none; }

/* Home page: links from the services graphic to each service page. */
.svc-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 32px; font-size: 15px; }
.svc-links span { color: var(--muted); margin-right: 4px; }
.svc-links a {
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--navy); font-weight: 500; transition: border-color .2s, color .2s;
}
.svc-links a:hover { border-color: var(--red); color: var(--red); }

/* Service pages */
.sv-hero { padding: 40px 0 56px; }
.sv-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.sv-hero h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 600; }
.sv-lead { margin-top: 20px; max-width: 620px; }
.sv-hero .hero-cta { margin-top: 28px; }
.sv-hero-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--navy); }
.crumbs a:hover { color: var(--red); }
.sv-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; }
.sv-cols h2, .sv-faq h2, .sv-cta h2, .sv-others-title { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 20px; }
.checklist { display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.sv-faq { max-width: 860px; }
.sv-faq details { border-bottom: 1px solid var(--line); }
.sv-faq summary {
  position: relative; padding: 18px 40px 18px 0; cursor: pointer; list-style: none;
  font-weight: 600; color: var(--navy);
}
.sv-faq summary::-webkit-details-marker { display: none; }
.sv-faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 26px; font-weight: 400; color: var(--red); }
.sv-faq details[open] summary::after { content: "−"; }
.sv-faq details p { padding: 0 0 20px; }
.sv-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 36px 40px; border-radius: var(--radius); background: var(--navy); color: rgba(255, 255, 255, .85);
}
.sv-cta h2 { color: #fff; margin-bottom: 8px; }
.sv-cta .hero-cta { margin-top: 0; }
.sv-cta .btn-ghost { border-color: #fff; color: #fff; }
.sv-cta .btn-ghost:hover { background: #fff; color: var(--navy); }
.sv-others-title { margin-top: 56px; }
.sv-others { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.sv-card { display: grid; gap: 10px; font-weight: 600; color: var(--navy); }
.sv-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; transition: transform .3s; }
.sv-card:hover img { transform: scale(1.03); }
.sv-card:hover span { color: var(--red); }
@media (max-width: 980px) {
  .sv-hero-grid, .sv-cols { grid-template-columns: 1fr; gap: 32px; }
  .sv-others { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sv-hero { padding: 24px 0 40px; }
  .sv-cta { padding: 28px 22px; }
  .sv-cta .hero-cta, .sv-cta .btn { width: 100%; }
}

/* Below the full container width six cards per row get too narrow for their titles, so scroll sideways instead. */
@media (max-width: 1180px) {
  .header-inner { gap: 18px; }
  .nav { gap: 16px; font-size: 15px; }
  .nav .nav-staff { padding: 4px 11px; font-size: 13.5px; }
  .header-actions { gap: 10px; }
  .why-card { padding: 26px 22px; }
  .why-card h3 { font-size: 18px; }
  .role { font-size: 14px; }
  .stat span { font-size: 14px; }
}

@media (max-width: 980px) {
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .nav-staff { align-self: flex-start; margin-top: 14px; border-bottom: 1.5px solid var(--line); padding: 7px 16px; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: block; }
  .hero-grid, .contact, .svc { grid-template-columns: 1fr; gap: 40px; }
  .story { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .vmv { grid-template-columns: 1fr; margin-bottom: 56px; }
  .why { grid-template-columns: repeat(2, 1fr); }
  .values { gap: 8px; }
  .values li { flex-direction: column; gap: 6px; padding: 12px 4px 10px; font-size: 13.5px; text-align: center; white-space: nowrap; }
  .news { grid-template-columns: 1fr; }
  .news-card.is-featured { grid-column: auto; grid-template-columns: 84px 1fr; min-height: 0; }
  .news-card.is-featured .news-media { grid-column: 1 / -1; grid-row: auto; grid-template-rows: none; }
  .news-card.is-featured .news-img, .news-card.is-featured .news-thumbs img { aspect-ratio: 16 / 9; }
  .news-card.is-featured .news-main .news-img { position: static; }
  .logos li { width: calc((100% - 32px) / 3); }
  .team { grid-template-columns: 1fr; }
  .founder { display: grid; grid-template-columns: 220px 1fr; }
  .founder .member-photo { grid-row: 1 / span 2; aspect-ratio: 3 / 4; align-self: start; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 0; bottom: 0; left: 6px; right: auto; width: 1px; height: auto; }
  .steps li { padding: 0 0 32px 40px; }
  .steps img { aspect-ratio: 16 / 9; max-width: 520px; }
  .steps li::before { top: 6px; }
  .steps::after { top: 0; left: 5px; width: 3px; height: calc(var(--p, 1) * 100%); }
  .stats-grid, .registry { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 28px 20px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding: 48px 0; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; padding-bottom: 60px; }
  .brand img { width: 104px; }
  .header-actions .btn { display: none; }
  .hero { padding: 28px 0 36px; }
  .hero .eyebrow { font-size: 11px; letter-spacing: .08em; }
  .hero-badge { left: 12px; top: 12px; padding: 10px 14px; }
  .hero-badge small { display: none; }
  .hero-rings { display: none; }
  .why { grid-template-columns: 1fr; }
  .values { gap: 6px; margin-top: 18px; }
  .values li { padding: 10px 2px 8px; font-size: 12px; border-radius: 10px; }
  .values svg { width: 36px; height: 36px; padding: 8px; }
  .founder { display: grid; grid-template-columns: 40% 1fr; }
  .founder .member-tl { grid-column: 1 / -1; }
  .founder .member-body { padding: 16px 16px 14px; }
  .contact-actions { grid-template-columns: 1fr; }
  .arc::before { width: 560px; height: 560px; border-width: 70px; }
  .arc-r::before { right: -330px; }
  .arc-l::before { left: -350px; }
  .site-footer { padding-top: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; padding-bottom: 24px; }
  .footer-logo { width: 180px; }
  .vmv-card { padding: 20px 20px 22px; }
  .why-card { min-height: 200px; }
  .steps li { padding-bottom: 22px; }
  .vmv-values li, .vmv-steps li { grid-template-columns: 1fr; gap: 0; }
  .vmv-values li { padding: 10px 58px 10px 0; }
  .vmv-values li::after { font-size: 46px; }
  .founder .member-photo { grid-row: auto; aspect-ratio: 3 / 4; }
  .founder .member-photo--empty span { font-size: 44px; }
  .logos { gap: 10px; }
  .logos li { width: calc((100% - 20px) / 3); height: 84px; padding: 16px 14px; }
  .project { width: 240px; }
  .project h3 { font-size: 16.5px; }
  .pj-marquee, .pj-row { gap: 12px; }
  .pj-row { animation-duration: 45s; }
  .svc-stage { aspect-ratio: 4 / 3; }
  .svc-count strong { font-size: 40px; }
  .svc-title { font-size: 19px; }
  .svc-no { width: 60px; font-size: 40px; }
  .svc-item { gap: 14px; }
  .stat strong { font-size: 40px; }
  .form { padding: 24px; }
  .section-head { margin-bottom: 22px; }
  .quickbar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    border-top: 1px solid var(--line);
  }
  .quickbar a {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 16px; font-weight: 600; background: #fff; color: var(--navy);
  }
  .quickbar svg { width: 22px; height: 22px; fill: none; stroke: var(--red); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  /* LINE mark: solid white bubble with the wordmark cut in the button colour. */
  .quickbar-line svg { width: 26px; height: 26px; stroke: none; }
  .quickbar-line .bubble { fill: #fff; }
  .quickbar-line text { fill: var(--red); font: 700 4.9px "IBM Plex Sans Thai", sans-serif; letter-spacing: .01em; }
  .quickbar .quickbar-line { background: var(--red); color: #fff; }
}
