/* =========================================================================
   Top Roof Service — public site
   Tokens → base → layout → components → responsive → motion
   ========================================================================= */

:root {
  /* colour */
  --ink: #0C1622;
  --ink-2: #1B2A3A;
  --ink-3: #33445A;
  --muted: #5D6B7B;
  --muted-2: #8B98A7;
  --line: #E3E7EC;
  --line-2: #EFF2F5;
  --paper: #FFFFFF;
  --surface: #F5F7F9;
  --surface-2: #EBEFF3;
  --accent: #E7622A;
  --accent-ink: #C4501E;
  --accent-soft: #FDF1EA;
  --line-green: #06C755;
  --fb-blue: #1877F2;
  --ok: #12855A;
  --warn: #B45309;
  --danger: #C0362C;

  /* type */
  --f-display: 'Anuphan', 'IBM Plex Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-body: 'IBM Plex Sans Thai', 'Anuphan', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* shape */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-full: 999px;

  --sh-sm: 0 1px 2px rgba(12, 22, 34, .06), 0 2px 8px rgba(12, 22, 34, .04);
  --sh: 0 4px 14px rgba(12, 22, 34, .07), 0 12px 34px rgba(12, 22, 34, .05);
  --sh-lg: 0 10px 30px rgba(12, 22, 34, .10), 0 30px 70px rgba(12, 22, 34, .08);

  --wrap: 1240px;
  --gut: clamp(18px, 4vw, 40px);
  --sec-y: clamp(56px, 8vw, 108px);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }

/* A class rule must never out-specify the hidden attribute. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: clamp(15px, .4vw + 14.2px, 16.5px);
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(28px, 4.4vw, 52px); line-height: 1.15; }
h2 { font-size: clamp(23px, 3vw, 38px); }
h3 { font-size: clamp(18px, 1.6vw, 22px); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, white); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.icon { flex: none; }

/* ---------------------------------------------------------------- section */

.section { padding-block: var(--sec-y); position: relative; }
.section--paper { background: var(--paper); }
.section--surface { background: var(--surface); }
.section--ink { background: var(--ink); color: #C9D3DE; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--accent { background: var(--accent-soft); }

.sec-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 54px); }
.sec-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 600; font-size: 13.5px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
.section--ink .eyebrow { color: #FF8A50; }
.eyebrow-dash { width: 26px; height: 2px; background: currentColor; border-radius: 2px; opacity: .8; }
.sec-head--center .eyebrow { justify-content: center; }

.sec-title { margin-bottom: .35em; }
.sec-text { color: var(--muted); font-size: 1.02em; margin: 0; }
.section--ink .sec-text { color: #94A6B8; }

.sec-more { margin-top: clamp(28px, 4vw, 44px); display: flex; justify-content: center; }

/* ----------------------------------------------------------------- button */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: var(--r-full); border: 1px solid transparent;
  font-family: var(--f-display); font-weight: 600; font-size: 15px; line-height: 1.2;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 15px 30px; font-size: 16.5px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 32%, transparent); }
.btn--primary:hover { background: var(--accent-ink); box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 40%, transparent); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }

.btn--outline { border-color: var(--line); background: var(--paper); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.section--paper .btn--ghost, .section--surface .btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.section--paper .btn--ghost:hover, .section--surface .btn--ghost:hover { background: var(--surface-2); border-color: var(--line); color: var(--ink); }

.btn--line { background: var(--line-green); color: #fff; }
.btn--line:hover { background: #05b34c; }

.btn-after { transition: transform .25s var(--ease); }
.btn:hover .btn-after { transform: translateX(3px); }

/* ------------------------------------------------------------------ image */

.img { width: 100%; height: auto; }
.img--natural { border-radius: inherit; }
.img--fill { height: 100%; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); border-radius: inherit; }

.img-empty {
  display: grid; place-content: center; gap: 8px; justify-items: center;
  width: 100%; background: var(--surface-2); color: var(--muted-2);
  border-radius: inherit; font-size: 13.5px; text-align: center; padding: 20px;
}

.figure { margin: 0; }
.figure figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); }

.video { width: 100%; border-radius: var(--r); overflow: hidden; background: var(--ink); }
.video video { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ----------------------------------------------------------------- header */

.site-head { position: sticky; top: 0; z-index: 60; }

.announce {
  background: var(--ink); color: #DDE5EE; font-size: 13.5px;
  padding: 8px 0; text-align: center;
}
.announce-in { display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap; text-align: center; }
.announce-in > span, .announce-in > a { min-width: 0; }
.announce a { border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 1px; transition: border-color .2s var(--ease); }
.announce a:hover { border-color: #fff; }

.head-main {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.is-scrolled .head-main { box-shadow: 0 6px 24px rgba(12, 22, 34, .07); background: rgba(255, 255, 255, .96); }

.head-in { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); min-height: 74px; }
.is-scrolled .head-in { min-height: 64px; transition: min-height .3s var(--ease); }

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-logo { height: 42px; width: auto; object-fit: contain; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center; flex: none;
  background: var(--accent); color: #fff; border-radius: 11px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--f-display); font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.brand-text em { font-style: normal; font-size: 12px; color: var(--muted); }

.nav { margin-inline-start: auto; }
.nav ul { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block; padding: 9px 13px; border-radius: var(--r-full);
  font-size: 15px; font-weight: 500; color: var(--ink-3); white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.is-active { color: var(--accent); background: var(--accent-soft); }

.head-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.head-phone {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-family: var(--f-display); font-weight: 600; font-size: 15px; color: var(--ink);
  padding: 8px 12px; border-radius: var(--r-full); transition: background-color .2s var(--ease);
}
.head-phone:hover { background: var(--surface-2); }
.head-phone .icon { color: var(--accent); }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--paper);
  border-radius: 12px; cursor: pointer; padding: 0; place-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: var(--sh); overflow: hidden;
}
.mobile-nav-in { padding: 8px var(--gut) 22px; }
.mobile-nav ul { display: grid; gap: 2px; }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; border-bottom: 1px solid var(--line-2);
  font-family: var(--f-display); font-weight: 600; font-size: 16px; color: var(--ink);
}
.mobile-nav a .icon { color: var(--muted-2); }
.mobile-nav-cta { display: grid; gap: 10px; margin-top: 18px; }

/* ------------------------------------------------------------------- hero */

.hero { position: relative; background: var(--ink); overflow: hidden; }
.hero-track { position: relative; }

.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .9s var(--ease), visibility .9s;
}
.hero-slide:first-child { position: relative; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }

.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--fx, 50%) var(--fy, 50%);
  transform: scale(1.06);
  transition: transform 9s linear;
}
.hero-slide.is-active .hero-media img { transform: scale(1); }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 15, 24, calc(var(--shade, .45) + .3)) 0%, rgba(8, 15, 24, var(--shade, .45)) 46%, rgba(8, 15, 24, calc(var(--shade, .45) * .5)) 100%),
    linear-gradient(to top, rgba(8, 15, 24, .55), transparent 45%);
}
.hero-blank { position: absolute; inset: 0; background: linear-gradient(140deg, #16283A, #0C1622); }

.hero-inner {
  position: relative; z-index: 3;
  min-height: clamp(480px, 78vh, 780px);
  display: flex; align-items: center;
  padding-block: clamp(70px, 10vw, 120px);
}
.hero-slide:not(:first-child) .hero-inner { position: absolute; inset: 0; }

.hero-copy { max-width: 720px; color: #fff; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 7px 15px; border-radius: var(--r-full);
  font-family: var(--f-display); font-weight: 600; font-size: 13.5px;
  color: #fff; margin: 0 0 20px;
}
.hero-eyebrow .icon { color: #FFB68F; }

.hero-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(31px, 5.4vw, 62px); line-height: 1.12;
  color: #fff; margin: 0 0 18px; letter-spacing: -.02em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .3);
}
.hero-sub {
  font-size: clamp(15.5px, 1.2vw, 19px); line-height: 1.7;
  color: rgba(255, 255, 255, .88); max-width: 580px; margin: 0 0 30px;
  text-shadow: 0 1px 16px rgba(0, 0, 0, .3);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero--empty { padding-block: 120px; }
.hero--empty .hero-copy h1 { color: #fff; }
.hero--empty .hero-copy p { color: rgba(255, 255, 255, .75); }

.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26);
  backdrop-filter: blur(10px); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.hero-nav:hover { background: #fff; color: var(--ink); }
.hero-prev { left: clamp(12px, 2.5vw, 30px); }
.hero-next { right: clamp(12px, 2.5vw, 30px); }

.hero-dots {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: clamp(20px, 3.5vw, 38px); z-index: 5;
  display: flex; gap: 9px;
}
.hero-dot {
  width: 34px; height: 4px; border-radius: 4px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .32); overflow: hidden; position: relative;
}
.hero-dot-fill { position: absolute; inset: 0; width: 0; background: #fff; border-radius: 4px; }
.hero-dot.is-active .hero-dot-fill { width: 100%; transition: width 6s linear; }

.hero-scroll {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 54px; background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .5)); z-index: 4;
}
.hero-scroll span { position: absolute; top: 0; left: -1px; width: 3px; height: 14px; background: var(--accent); border-radius: 3px; animation: scrollDot 2.4s var(--ease) infinite; }
@keyframes scrollDot { 0% { top: -14px; opacity: 0; } 30% { opacity: 1; } 100% { top: 54px; opacity: 0; } }

/* -------------------------------------------------------------- statstrip */

.statstrip { background: var(--ink); color: #fff; padding-block: clamp(26px, 3.4vw, 44px); }
.statstrip-in {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(16px, 2.4vw, 34px);
}
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: ''; position: absolute; left: calc(-1 * clamp(8px, 1.2vw, 17px)); top: 12%; bottom: 12%;
  width: 1px; background: rgba(255, 255, 255, .13);
}
.stat-icon { color: var(--accent); margin: 0 auto 8px; }
.stat-value { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 42px); color: #fff; margin: 0; line-height: 1.1; }
.stat-value em { font-style: normal; color: var(--accent); margin-left: 2px; }
.stat-label { font-size: 13.5px; color: #93A2B2; margin: 4px 0 0; }

/* --------------------------------------------------------------- category */

.cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 24px);
}
.cat-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--ink); color: #fff; isolation: isolate;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.cat-card--lead { grid-column: span 2; grid-row: span 2; }

.cat-media { position: absolute; inset: 0; }
.cat-media .img, .cat-media .img-empty { width: 100%; height: 100%; border-radius: 0; }
.cat-media img { transition: transform .8s var(--ease-out); }
.cat-card:hover .cat-media img { transform: scale(1.05); }
.cat-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 15, 24, .88) 4%, rgba(8, 15, 24, .42) 45%, rgba(8, 15, 24, .12) 100%);
}

.cat-body {
  position: relative; z-index: 2; padding: clamp(18px, 2.2vw, 30px);
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(200px, 26vw, 260px);
}
.cat-card--lead .cat-body { min-height: clamp(320px, 40vw, 544px); }

.cat-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .22); color: #fff; margin-bottom: 14px;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.cat-card:hover .cat-icon { background: var(--accent); border-color: var(--accent); }

.cat-body h3 { color: #fff; font-size: clamp(18px, 1.7vw, 25px); margin: 0 0 6px; }
.cat-card--lead .cat-body h3 { font-size: clamp(22px, 2.4vw, 32px); }
.cat-body p { color: rgba(255, 255, 255, .8); font-size: 14.5px; margin: 0; line-height: 1.65; }

.cat-more {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  font-family: var(--f-display); font-weight: 600; font-size: 14.5px; color: #fff;
  opacity: .85; transition: gap .25s var(--ease), opacity .25s var(--ease);
}
.cat-card:hover .cat-more { gap: 12px; opacity: 1; color: #FFB68F; }

/* ---------------------------------------------------------------- service */

.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 24px); }

.svc-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease);
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--sh); border-color: transparent; }

.svc-media { display: block; overflow: hidden; background: var(--surface-2); }
.svc-media img { transition: transform .7s var(--ease-out); }
.svc-card:hover .svc-media img { transform: scale(1.055); }

.svc-body { padding: 18px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.svc-tag {
  align-self: flex-start; font-size: 11.5px; font-weight: 600; letter-spacing: .05em;
  background: var(--accent-soft); color: var(--accent-ink);
  padding: 4px 10px; border-radius: var(--r-full);
}
.svc-body h3 { font-size: 17px; margin: 0; line-height: 1.4; }
.svc-body h3 a { transition: color .2s var(--ease); }
.svc-card:hover h3 a { color: var(--accent); }
.svc-body > p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.65; }

.svc-foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.svc-price { font-family: var(--f-display); font-weight: 600; font-size: 14.5px; color: var(--accent-ink); }
.svc-price--note { font-weight: 500; font-size: 13px; color: var(--muted); }
.svc-link {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--surface-2); color: var(--ink);
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.svc-card:hover .svc-link { background: var(--accent); color: #fff; transform: translateX(3px); }

/* --------------------------------------------------------------- benefits */

.ben-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.ben-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(20px, 2.2vw, 28px);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.ben-card:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.ben-icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 16px;
}
.ben-card h3 { font-size: 17.5px; margin: 0 0 8px; }
.ben-card p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- process */

.steps { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.steps--booking { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.step { position: relative; padding-top: 8px; }
.step-num {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1; color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .28);
  margin-bottom: 12px;
}
.section--surface .step-num { -webkit-text-stroke-color: rgba(12, 22, 34, .16); }
.step:hover .step-num { -webkit-text-stroke-color: var(--accent); transition: -webkit-text-stroke-color .3s var(--ease); }

.step-body h3 { display: flex; align-items: center; gap: 9px; font-size: 17.5px; margin: 0 0 8px; }
.section--ink .step-body h3 .icon { color: var(--accent); }
.step-body p { font-size: 14.5px; margin: 0; line-height: 1.7; }
.section--ink .step-body p { color: #94A6B8; }
.section--surface .step-body p { color: var(--muted); }

.steps .step::after {
  content: ''; position: absolute; top: 26px; right: -12px; width: 24px; height: 1px;
  background: currentColor; opacity: .18;
}
.steps .step:last-child::after { display: none; }

/* -------------------------------------------------------------- portfolio */

.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 20px); }

.work-card {
  display: block; border-radius: var(--r); overflow: hidden; background: var(--paper);
  transition: transform .35s var(--ease-out);
}
.work-card:hover { transform: translateY(-5px); }

.work-media { position: relative; overflow: hidden; border-radius: var(--r); background: var(--surface-2); }
.work-media img { transition: transform .8s var(--ease-out); }
.work-card:hover .work-media img { transform: scale(1.06); }
.work-hover {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(12, 22, 34, .42); color: #fff; opacity: 0;
  transition: opacity .3s var(--ease);
}
.work-card:hover .work-hover { opacity: 1; }

.work-info { padding: 13px 2px 0; }
.work-info h3 { font-size: 15.5px; margin: 0 0 5px; line-height: 1.45; }
.work-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; color: var(--muted); }
.work-tag { background: var(--surface-2); padding: 3px 9px; border-radius: var(--r-full); font-weight: 500; }
.work-loc { display: inline-flex; align-items: center; gap: 4px; }

/* ---------------------------------------------------------------- gallery */

/* Tiles keep each photo's own aspect ratio — nothing is cropped. */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 16px); align-items: start; }
.gal-item {
  display: block; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2);
  aspect-ratio: var(--ar, 1.33); position: relative;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.gal-item:hover { transform: scale(1.02); box-shadow: var(--sh); z-index: 2; }
.gal-item:hover img { transform: scale(1.05); }

/* lightbox */
.lb {
  position: fixed; inset: 0; z-index: 200; background: rgba(6, 11, 18, .94);
  display: grid; place-items: center; padding: clamp(12px, 3vw, 44px);
  opacity: 0; transition: opacity .28s var(--ease);
}
.lb.is-open { opacity: 1; }
.lb img { max-width: 100%; max-height: 84vh; width: auto; height: auto; border-radius: var(--r-sm); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-cap { color: #C9D3DE; text-align: center; margin-top: 14px; font-size: 14px; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background-color .2s var(--ease);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: #fff; color: var(--ink); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #8B98A7; font-size: 13px; }

/* ------------------------------------------------------------- promotions */

.promo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(16px, 2vw, 24px); }
.promo-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.promo-card:hover { transform: translateY(-5px); box-shadow: var(--sh); }
.promo-media { position: relative; }
.promo-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: #fff; font-family: var(--f-display); font-weight: 700;
  font-size: 13px; padding: 6px 13px; border-radius: var(--r-full);
  box-shadow: 0 4px 14px rgba(231, 98, 42, .4);
}
.promo-badge--inline { position: static; display: inline-block; margin-bottom: 12px; }
.promo-body { padding: clamp(18px, 2.2vw, 26px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.promo-body h3 { margin: 0; font-size: 19px; }
.promo-body p { margin: 0; font-size: 14.5px; color: var(--muted); }
.promo-until { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--warn); font-weight: 500; }
.promo-body .btn { align-self: flex-start; margin-top: auto; }

/* ----------------------------------------------------------- testimonials */

.rev-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(16px, 2vw, 22px); }
.rev-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(20px, 2.4vw, 28px); margin: 0; display: flex; flex-direction: column; gap: 14px;
}
.rev-stars { display: flex; gap: 2px; color: var(--line); }
.rev-stars .is-on { color: #F0A92B; fill: #F0A92B; }
.rev-card blockquote { margin: 0; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.rev-card blockquote::before { content: '\201C'; font-family: var(--f-display); font-size: 40px; line-height: 0; color: var(--accent); vertical-align: -12px; margin-right: 3px; }
.rev-card figcaption { display: flex; align-items: center; gap: 11px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); }
.rev-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.rev-avatar--blank { background: var(--surface-2); display: grid; place-items: center; color: var(--muted-2); }
.rev-card figcaption strong { display: block; font-family: var(--f-display); font-size: 15px; color: var(--ink); }
.rev-card figcaption em { font-style: normal; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ areas */

.area-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.area-group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 2.4vw, 30px); }
.area-group--ext { background: var(--surface); }
.area-group h3 { display: flex; align-items: center; gap: 9px; font-size: 16.5px; margin: 0 0 16px; }
.area-group h3 .icon { color: var(--accent); }
.area-list { display: flex; flex-wrap: wrap; gap: 8px; }
.area-list li {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2); padding: 7px 14px; border-radius: var(--r-full);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
}
.area-group--ext .area-list li { background: var(--paper); border: 1px solid var(--line); }
.area-list .icon { color: var(--ok); }

/* -------------------------------------------------------------------- faq */

.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.faq-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq-item[open] { border-color: var(--accent); box-shadow: var(--sh-sm); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 20px; cursor: pointer; list-style: none;
  font-family: var(--f-display); font-weight: 600; font-size: 16px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev { color: var(--muted-2); transition: transform .3s var(--ease); flex: none; }
.faq-item[open] .faq-chev { transform: rotate(180deg); color: var(--accent); }
.faq-answer { padding: 0 20px 19px; }
.faq-answer p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; white-space: pre-line; }

/* ---------------------------------------------------------------- cta band */

.cta-band {
  background: linear-gradient(120deg, var(--ink) 0%, #16283A 55%, #1E3245 100%);
  color: #fff; padding-block: clamp(44px, 6vw, 76px); position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: -40%; right: -8%; width: 460px; height: 460px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent) 0%, transparent 68%);
  pointer-events: none;
}
.cta-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 4vw, 54px); flex-wrap: wrap; }
.cta-copy { max-width: 620px; }
.cta-copy h2 { color: #fff; margin: 0 0 10px; font-size: clamp(22px, 2.6vw, 33px); }
.cta-copy p { color: rgba(255, 255, 255, .78); margin: 0; font-size: 15.5px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ intro */

.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.intro-media { position: relative; }
.intro-media .img { border-radius: var(--r-lg); }
.intro-deco {
  position: absolute; inset: auto -18px -18px auto; width: 55%; height: 55%;
  border: 2px solid var(--accent); border-radius: var(--r-lg); z-index: -1;
}
.intro-copy h2 { font-size: clamp(24px, 2.8vw, 36px); }
.intro-text { color: var(--muted); font-size: 15.5px; line-height: 1.85; margin-bottom: 24px; white-space: pre-line; }

/* -------------------------------------------------------------- page head */

.crumbs { background: var(--surface); border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 12px 0; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 7px; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

.page-head { background: var(--surface); padding-block: clamp(36px, 5vw, 66px); }
.page-head h1 { margin: 0 0 10px; }
.page-head p { color: var(--muted); margin: 0; font-size: 16px; max-width: 640px; }

.cat-hero { background: var(--surface); padding-block: clamp(36px, 5vw, 70px); }
.cat-hero-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 56px); align-items: center; }
.cat-hero-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--accent); color: #fff; margin-bottom: 18px;
}
.cat-hero-copy h1 { margin: 0 0 12px; }
.cat-hero-sub { font-size: 17px; color: var(--ink-3); margin: 0 0 12px; font-weight: 500; }
.cat-hero-text { color: var(--muted); margin: 0 0 24px; white-space: pre-line; }
.cat-hero-media .img { border-radius: var(--r-lg); box-shadow: var(--sh); }

/* ----------------------------------------------------------------- detail */

.detail-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(26px, 4vw, 56px); align-items: center; }
.detail-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); color: var(--accent-ink);
  padding: 6px 14px; border-radius: var(--r-full); font-size: 13.5px; font-weight: 600; margin-bottom: 14px;
}
.detail-sub { font-size: 17px; color: var(--ink-3); margin: 0 0 20px; }
.detail-facts { display: grid; gap: 10px; margin: 0 0 26px; }
.detail-facts li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--muted); }
.detail-facts .icon { color: var(--accent); margin-top: 4px; }
.detail-facts strong { color: var(--ink); font-family: var(--f-display); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.detail-media .img { border-radius: var(--r-lg); box-shadow: var(--sh); }

.detail-body { padding-top: 0; }
.detail-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(26px, 3.5vw, 52px); align-items: start; }
.detail-h2 { font-size: 22px; margin: 40px 0 18px; }
.detail-video { margin: 28px 0; }

.detail-side { display: grid; gap: 16px; position: sticky; top: 100px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.side-card h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0 0 14px; }
.side-card h3 .icon { color: var(--accent); }
.side-card--cta { background: var(--ink); border-color: var(--ink); }
.side-card--cta h3 { color: #fff; }
.side-card--cta p { color: #94A6B8; font-size: 14.5px; margin-bottom: 16px; }
.side-actions { display: grid; gap: 9px; }

.tick-list { display: grid; gap: 9px; }
.tick-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; color: var(--ink-2); }
.tick-list .icon { color: var(--ok); margin-top: 5px; flex: none; }

.work-hero { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(26px, 4vw, 54px); align-items: center; }
.work-hero-media .img { border-radius: var(--r-lg); box-shadow: var(--sh); }
.work-specs { display: grid; gap: 12px; margin-top: 22px; }
.work-specs li { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 11px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.work-specs span { color: var(--muted); }
.work-specs strong { font-family: var(--f-display); color: var(--ink); }

.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); }
.ba-item { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; }
.ba-label {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 6px 14px; border-radius: var(--r-full); font-family: var(--f-display);
  font-weight: 700; font-size: 13px; color: #fff;
}
.ba-label--before { background: var(--muted); }
.ba-label--after { background: var(--ok); }

.page-cover .img { border-radius: var(--r-lg); }
.page-body { max-width: 820px; margin-inline: auto; }

/* ------------------------------------------------------------------ prose */

.prose { font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.prose h2 { font-size: 24px; margin: 36px 0 14px; }
.prose h3 { font-size: 19px; margin: 28px 0 12px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 4px; display: grid; gap: 9px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before {
  content: ''; position: absolute; left: 6px; top: .72em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
}
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 32px; counter-increment: n; }
.prose ol li::before {
  content: counter(n); position: absolute; left: 0; top: .12em;
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink);
  font-family: var(--f-display); font-weight: 700; font-size: 12.5px; display: grid; place-items: center;
}
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  margin: 24px 0; padding: 16px 22px; border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-2);
}
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; }
.prose th { background: var(--surface); font-family: var(--f-display); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.lead { font-size: 17.5px; line-height: 1.8; color: var(--ink-3); }

/* ---------------------------------------------------------------- contact */

.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 4vw, 60px); align-items: start; }

.cinfo { margin-top: 26px; }
.cinfo ul { display: grid; gap: 16px; }
.cinfo li { display: flex; align-items: flex-start; gap: 14px; }
.cinfo-ic {
  width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink);
}
.cinfo-ic--line { background: rgba(6, 199, 85, .12); color: var(--line-green); }
.cinfo li em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted-2); letter-spacing: .04em; }
.cinfo li a, .cinfo li b { font-family: var(--f-display); font-weight: 600; font-size: 16px; color: var(--ink); }
.cinfo li a:hover { color: var(--accent); }
.cinfo-qr { margin-top: 24px; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.cinfo-qr img { width: 132px; height: 132px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px; background: #fff; }
.cinfo-qr p { font-size: 12.5px; color: var(--muted); margin: 0; }

.cform {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 34px); box-shadow: var(--sh-sm);
}
.cform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field-label { font-family: var(--f-display); font-weight: 600; font-size: 14px; color: var(--ink); }
.field-label b { color: var(--accent); margin-left: 2px; }

.cform input, .cform select, .cform textarea {
  width: 100%; font-family: var(--f-body); font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.cform textarea { resize: vertical; min-height: 96px; line-height: 1.7; }
.cform input:focus, .cform select:focus, .cform textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.cform .is-invalid { border-color: var(--danger); }
.field-err { font-size: 12.5px; color: var(--danger); min-height: 0; }
.field-err:not(:empty) { min-height: 18px; }

.hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }

.cform-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; }
.cform-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin: 0; }
.cform-status { margin-top: 14px; }
.cform-status .ok, .cform-status .err {
  display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: var(--r-sm); font-size: 14.5px;
}
.cform-status .ok { background: rgba(18, 133, 90, .1); color: var(--ok); border: 1px solid rgba(18, 133, 90, .25); }
.cform-status .err { background: rgba(192, 54, 44, .08); color: var(--danger); border: 1px solid rgba(192, 54, 44, .22); }

.cform-alt { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.cform-alt-item {
  display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--r-full); background: var(--surface); color: var(--ink-2);
  transition: background-color .2s var(--ease);
}
.cform-alt-item:hover { background: var(--surface-2); }

.map-block { line-height: 0; }
.map-block iframe { width: 100%; height: clamp(280px, 40vw, 440px); border: 0; filter: grayscale(.2); }

/* ----------------------------------------------------------------- footer */

.site-foot { background: var(--ink); color: #93A2B2; padding-top: clamp(44px, 6vw, 72px); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: clamp(24px, 3vw, 44px); padding-bottom: clamp(32px, 4vw, 50px); }
.brand--foot .brand-text strong { color: #fff; }
.foot-about { font-size: 14px; line-height: 1.8; margin: 16px 0 18px; max-width: 320px; }
.foot-social { display: flex; gap: 9px; }
.foot-social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: #C9D3DE;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.foot-social a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

.foot-col h3 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.foot-col ul { display: grid; gap: 9px; }
.foot-col a { font-size: 14px; transition: color .2s var(--ease); }
.foot-col a:hover { color: var(--accent); }

.contact-list { display: grid; gap: 11px; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.65; }
.contact-list .icon { color: var(--accent); margin-top: 4px; flex: none; }
.contact-list a:hover { color: #fff; }

.foot-qr { margin-top: 18px; display: inline-flex; flex-direction: column; gap: 6px; }
.foot-qr img { width: 108px; height: 108px; background: #fff; border-radius: var(--r-sm); padding: 5px; }
.foot-qr span { font-size: 12px; }

.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .09); padding-block: 18px; }
.foot-bottom-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.foot-bottom p { margin: 0; }
.foot-admin { display: inline-flex; align-items: center; gap: 6px; opacity: .6; transition: opacity .2s var(--ease); }
.foot-admin:hover { opacity: 1; color: #fff; }

/* --------------------------------------------------------------- quickbar */

.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(12, 22, 34, .08);
  padding-bottom: env(safe-area-inset-bottom);
}
.quickbar-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 4px 9px; font-size: 11.5px; font-weight: 600; font-family: var(--f-display); color: var(--ink-3);
}
.quickbar-call .icon { color: var(--accent); }
.quickbar-line .icon { color: var(--line-green); }
.quickbar-quote { background: var(--accent); color: #fff; }
.quickbar-quote .icon { color: #fff; }

/* ------------------------------------------------------------------ misc */

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(20px, 3vw, 34px); }
.chip {
  display: inline-flex; align-items: center; padding: 8px 16px; border-radius: var(--r-full);
  background: var(--surface-2); font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover { background: var(--line); }
.chip.is-on { background: var(--ink); color: #fff; }

.empty-note {
  display: flex; align-items: center; gap: 9px; padding: 16px 20px;
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r);
  color: var(--muted); font-size: 14.5px; margin: 0;
}
.empty-note .icon { color: var(--accent); flex: none; }

.notfound { padding-block: clamp(70px, 12vw, 140px); text-align: center; }
.nf-code { font-family: var(--f-display); font-weight: 700; font-size: clamp(70px, 14vw, 140px); line-height: 1; color: var(--surface-2); margin: 0; }
.notfound h1 { margin-top: -.2em; }
.notfound p { color: var(--muted); max-width: 460px; margin: 0 auto 28px; }
.notfound .detail-actions { justify-content: center; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 1320px) {
  .nav ul { gap: 0; }
  .nav a { padding: 9px 10px; font-size: 14.5px; }
  .head-in { gap: 18px; }
}

/* Between the burger breakpoint and full width the nav needs the room the
   phone number and button label were using. */
@media (max-width: 1240px) {
  .head-phone span { display: none; }
  .head-quote span { display: none; }
  .head-quote { padding: 10px; }
  .head-phone { padding: 9px; }
  .head-in { gap: 12px; }
}

@media (max-width: 1180px) {
  .nav a { padding: 8px 8px; font-size: 14px; }
  .head-phone { padding: 8px 8px; font-size: 14.5px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card--lead { grid-column: span 2; grid-row: auto; }
  .cat-card--lead .cat-body { min-height: clamp(260px, 34vw, 340px); }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .work-grid, .gallery { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps .step::after { display: none; }
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .head-phone span { display: inline; }
  .head-quote span { display: inline; }
  .head-quote { padding: 9px 16px; }
  .head-phone { padding: 8px 12px; }
  .detail-cols { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .intro-grid, .cat-hero-in, .detail-grid, .work-hero, .contact-grid { grid-template-columns: 1fr; }
  .intro-media { order: -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 74px; }
  .announce { font-size: 12.5px; line-height: 1.5; padding: 7px 0; }
  .head-phone span { display: none; }
  .head-quote span { display: none; }
  .head-quote { padding: 10px; }
  .head-phone { padding: 9px; }
  body { padding-bottom: 62px; }
  .quickbar { display: flex; }
  .hero-inner { min-height: clamp(440px, 72vh, 600px); }
  .hero-nav { display: none; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid, .gallery { grid-template-columns: repeat(2, 1fr); }
  .cform-grid { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .statstrip-in { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .stat + .stat::before { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom-in { justify-content: center; text-align: center; }
  .cta-in { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
}

@media (max-width: 440px) {
  .cat-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-body { padding: 13px; }
  .svc-body h3 { font-size: 15px; }
  .svc-body > p { display: none; }
  .work-info h3 { font-size: 14px; }
  .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
}

/* ---------------------------------------------------------------- motion */

/* Scoped to .js so content is never invisible when scripts fail to run —
   a crawler or a broken bundle must still see the whole page. */
.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease-out) var(--d, 0ms), transform .7s var(--ease-out) var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero-media img { transform: none !important; }
}

/* ------------------------------------------------------------ edit mode */

body.is-edit [data-tp-edit],
body.is-edit [data-tp-media] {
  outline: 1px dashed transparent; outline-offset: 3px; border-radius: 3px;
  transition: outline-color .15s var(--ease), background-color .15s var(--ease);
  cursor: text;
}
body.is-edit [data-tp-edit]:hover { outline-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
body.is-edit [data-tp-media] { cursor: pointer; position: relative; }
body.is-edit [data-tp-media]:hover { outline: 2px solid var(--accent); outline-offset: 2px; }
body.is-edit [data-tp-media]:hover::after {
  content: 'เปลี่ยนรูป'; position: absolute; z-index: 30; top: 8px; left: 8px;
  background: var(--accent); color: #fff; font-family: var(--f-display); font-weight: 600;
  font-size: 12px; padding: 5px 11px; border-radius: var(--r-full); pointer-events: none;
}
body.is-edit [data-tp-edit].is-editing {
  outline: 2px solid var(--accent); background: #fff;
  box-shadow: 0 6px 22px rgba(12, 22, 34, .14);
}
