:root {
  --ink: #1d2430;
  --muted: #66717f;
  --line: #e5e9ee;
  --paper: #f7f9fb;
  --white: #ffffff;
  --navy: #203044;
  --red: #c72f35;
  --red-dark: #a5282d;
  --gold: #d79a2b;
  --steel: #405368;
  --soft-shadow: 0 10px 30px rgba(24, 39, 56, 0.08);
  --shadow: 0 16px 44px rgba(24, 39, 56, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfcfd;
  font-family: "Noto Sans Thai", Arial, sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background: var(--navy);
  animation: pageCurtain 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 78px);
  color: var(--white);
  animation: headerDrop 0.72s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease, transform 0.25s ease;
}

.site-header.is-scrolled {
  padding-block: 12px;
  background: rgba(32, 48, 68, 0.94);
  box-shadow: 0 10px 28px rgba(8, 18, 32, 0.14);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 285px;
}

.brand-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--red);
  box-shadow: 0 10px 24px rgba(199, 47, 53, 0.24);
  outline: 1px solid rgba(255, 255, 255, 0.18);
  outline-offset: 2px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.brand:hover .brand-mark {
  transform: translateY(-2px) rotate(-2deg);
  box-shadow: 0 14px 30px rgba(199, 47, 53, 0.32);
}

.brand-mark strong {
  margin-top: 7px;
  font-size: 1.72rem;
  line-height: 0.85;
  font-weight: 900;
}

.brand-mark small {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.52rem;
  line-height: 1;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.08rem;
  line-height: 1.08;
}

.brand-wordmark {
  position: relative;
  width: fit-content;
  display: inline-block;
  padding-right: 8px;
  padding-bottom: 6px;
  font-size: clamp(1.16rem, 1.7vw, 1.42rem) !important;
  line-height: 1.05 !important;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-wordmark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 8px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), rgba(255, 255, 255, 0.58));
}

.brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 9px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.site-nav .nav-cta {
  box-shadow: 0 8px 18px rgba(199, 47, 53, 0.2);
  background: var(--red);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 130px clamp(20px, 7vw, 96px) 80px;
  overflow: hidden;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroImageSettle 1.4s cubic-bezier(0.16, 1, 0.3, 1) both, heroImageDrift 16s ease-in-out 1.5s infinite alternate;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(24, 39, 56, 0.9), rgba(24, 39, 56, 0.66) 48%, rgba(24, 39, 56, 0.24)),
    linear-gradient(0deg, rgba(24, 39, 56, 0.5), rgba(24, 39, 56, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0;
}

.hero .eyebrow,
.portfolio-hero .eyebrow,
.consultation-hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 6vw, 5.75rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.24rem;
  line-height: 1.36;
}

.hero-copy {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  position: relative;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -40% -70%;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.32) 50%, transparent 65%);
  transform: translateX(-70%);
  transition: transform 0.65s ease;
}

.btn > *,
.btn {
  isolation: isolate;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover::after {
  transform: translateX(70%);
}

.btn.primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 10px 24px rgba(199, 47, 53, 0.2);
}

.btn.primary:hover {
  background: var(--red-dark);
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 7vw, 92px);
  align-items: center;
  padding: 68px clamp(20px, 6vw, 84px);
  color: var(--ink);
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band h2 {
  max-width: 720px;
}

.intro-band ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intro-band li {
  min-height: 94px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--steel);
  font-weight: 700;
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease, background 0.26s ease;
}

.intro-band li:hover {
  transform: translateY(-4px);
  border-color: rgba(199, 47, 53, 0.2);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.section {
  padding: 92px clamp(20px, 6vw, 84px);
  background: #fbfcfd;
}

.section.muted {
  background: var(--paper);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 42px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.service-grid,
.free-grid,
.project-grid,
.standard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card,
.free-grid article,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.service-card {
  position: relative;
  min-height: 300px;
  padding: 30px;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.service-card::before,
.free-grid article::before,
.standard-grid div::before,
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--red), var(--gold));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.32s ease;
}

.service-card:hover,
.free-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(199, 47, 53, 0.2);
  box-shadow: var(--shadow);
}

.service-card:hover::before,
.free-grid article:hover::before,
.standard-grid div:hover::before,
.stat-card:hover::before {
  transform: scaleY(1);
}

.service-card span,
.free-grid span,
.project-card span {
  color: var(--red);
  font-weight: 900;
}

.service-card p,
.free-grid p,
.project-card p {
  color: var(--muted);
}

.standards {
  padding: 86px clamp(20px, 6vw, 84px);
  color: var(--ink);
  background: var(--white);
  border-block: 1px solid var(--line);
}

.standard-grid {
  max-width: 1120px;
  margin: 0 auto;
  grid-template-columns: repeat(4, 1fr);
}

.standard-grid div {
  position: relative;
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.standard-grid div:hover {
  transform: translateY(-5px);
  border-color: rgba(199, 47, 53, 0.2);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.standard-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 1.35rem;
}

.standard-grid span {
  color: var(--muted);
}

.free-section {
  background: var(--paper);
}

.free-grid article {
  position: relative;
  min-height: 250px;
  padding: 30px;
  border-top: 3px solid var(--red);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.stats-section {
  padding: 90px clamp(20px, 5vw, 70px);
  background: var(--white);
}

.stats-section .eyebrow {
  color: var(--red);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1350px;
  margin: 46px auto 0;
}

.stat-card {
  position: relative;
  min-height: 510px;
  padding: 26px 22px 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-align: center;
  box-shadow: var(--soft-shadow);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 38px solid var(--red);
  border-left: 38px solid transparent;
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(199, 47, 53, 0.18);
  box-shadow: var(--shadow);
}

.stat-title {
  min-height: 78px;
  color: #050505;
  font-weight: 900;
}

.stat-title strong,
.stat-title span {
  display: block;
}

.stat-title strong {
  font-size: 1.12rem;
  line-height: 1.25;
}

.stat-title span {
  font-size: 0.88rem;
  line-height: 1.25;
}

.stat-icon {
  position: relative;
  display: grid;
  width: 205px;
  height: 190px;
  place-items: center;
  margin: 26px auto 30px;
  border-radius: 0 28px 0 28px;
  background: var(--white);
}

.icon-person {
  position: relative;
  width: 94px;
  height: 114px;
  border-radius: 42px 42px 12px 12px;
  background: #292d86;
}

.icon-person::before {
  content: "";
  position: absolute;
  top: -28px;
  left: 23px;
  width: 50px;
  height: 58px;
  border-radius: 50%;
  background: #292d86;
}

.icon-person::after {
  content: "";
  position: absolute;
  top: 60px;
  left: 40px;
  width: 14px;
  height: 56px;
  background: var(--white);
  clip-path: polygon(50% 0, 100% 18%, 70% 100%, 30% 100%, 0 18%);
}

.icon-chart {
  position: absolute;
  right: 25px;
  top: 72px;
  color: var(--red);
  font-size: 2rem;
  font-weight: 900;
}

.factory-icon span {
  position: relative;
  width: 132px;
  height: 92px;
  margin-top: 34px;
  background: #292d86;
  clip-path: polygon(0 38%, 18% 38%, 20% 0, 36% 0, 38% 44%, 68% 22%, 68% 44%, 100% 20%, 100% 100%, 0 100%);
}

.factory-icon span::before {
  content: "★ ★ ★";
  position: absolute;
  top: -34px;
  left: 28px;
  color: var(--red);
  font-size: 1.35rem;
  letter-spacing: 2px;
}

.factory-icon span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 10px;
  background: var(--red);
}

.shield-icon {
  border-radius: 0 28px 0 28px;
  animation: iconFloat 5.6s ease-in-out infinite;
}

.shield-icon::before {
  content: "";
  position: absolute;
  width: 124px;
  height: 124px;
  border: 9px solid var(--red);
  border-radius: 50%;
}

.shield-icon::after {
  content: "";
  width: 84px;
  height: 100px;
  background: #292d86;
  clip-path: polygon(50% 0, 90% 16%, 84% 74%, 50% 100%, 16% 74%, 10% 16%);
}

.shield-icon span {
  position: absolute;
  z-index: 1;
  color: var(--white);
  font-size: 3.7rem;
  line-height: 1;
  font-weight: 900;
}

.time-icon span {
  position: relative;
  width: 120px;
  height: 120px;
  border: 9px solid var(--red);
  border-radius: 50%;
  background: #292d86;
}

.time-icon span::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 42px;
  width: 28px;
  height: 7px;
  background: var(--white);
  transform: rotate(-42deg);
  transform-origin: left center;
}

.time-icon span::after {
  content: "";
  position: absolute;
  top: 42px;
  left: 42px;
  width: 7px;
  height: 26px;
  background: var(--white);
  transform-origin: top center;
}

.stat-label {
  margin: 0;
  color: #06066c;
  font-size: clamp(1.9rem, 2.5vw, 2.75rem);
  line-height: 1.1;
  font-weight: 900;
}

.stat-number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 0;
  color: #06066c;
  font-weight: 900;
}

.stat-number strong {
  color: #ee0000;
  font-size: clamp(5rem, 7.3vw, 7.8rem);
  line-height: 0.95;
}

.stat-number span {
  color: #06066c;
  font-size: clamp(2.9rem, 4.2vw, 4.55rem);
  line-height: 1;
}

.stat-number.decimal strong {
  font-size: clamp(4rem, 5.4vw, 5.65rem);
}

.project-card {
  position: relative;
  min-height: 430px;
  display: grid;
  align-items: end;
  cursor: pointer;
  isolation: isolate;
  color: var(--white);
  border: 1px solid rgba(23, 41, 63, 0.1);
  background: #0d1824;
  box-shadow: var(--soft-shadow);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s ease, border-color 0.32s ease;
}

.project-card:focus-visible {
  outline: 3px solid rgba(209, 47, 47, 0.35);
  outline-offset: 4px;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(209, 47, 47, 0.22);
  box-shadow: var(--shadow);
}

.project-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: filter 0.32s ease, transform 0.42s ease;
}

.project-card-photo {
  background: #f4f6f8;
}

.project-card-photo .project-photo {
  object-fit: cover;
  object-position: center top;
}

.project-thumb {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: filter 0.32s ease, transform 0.42s ease;
}

.project-thumb.hotel-pool {
  background: url("assets/hotel-pool.jpg") center / cover;
}

.project-thumb.kindergarten-pool {
  background: url("assets/kindergarten-pool.jpg") center / cover;
}

.project-thumb.housing-estate {
  background: url("assets/housing-estate-1.jpg") center / cover;
}

.project-thumb.construction-planning {
  background: url("assets/construction-hero.jpg") center / cover;
}

.project-thumb.project-handover {
  background: url("assets/hotel-pool.jpg") center / cover;
}

.project-card::before,
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.project-card::before {
  background:
    linear-gradient(180deg, rgba(18, 28, 40, 0.02) 0%, rgba(18, 28, 40, 0.18) 42%, rgba(18, 28, 40, 0.82) 100%),
    linear-gradient(90deg, rgba(18, 28, 40, 0.24), rgba(18, 28, 40, 0) 54%);
}

.project-card::after {
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  opacity: 0.55;
  transition: opacity 0.22s ease;
}

.project-card:hover .project-thumb,
.project-card:hover .project-photo {
  filter: brightness(0.96);
  transform: scale(1.05);
}

.project-card:hover::after {
  opacity: 1;
}

.project-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: clamp(22px, 3vw, 30px);
  text-shadow: 0 2px 18px rgba(8, 18, 32, 0.38);
  transition: transform 0.32s ease;
}

.project-card:hover .project-content {
  transform: translateY(-4px);
}

.project-card .project-content span {
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: var(--white);
  background: rgba(199, 47, 53, 0.9);
  box-shadow: none;
  font-size: 0.76rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.project-card .project-content h3 {
  max-width: 95%;
  margin: 0;
  color: var(--white);
  font-size: clamp(1.28rem, 2.1vw, 1.72rem);
  line-height: 1.24;
}

.project-card .project-content p {
  display: -webkit-box;
  min-height: 4.8em;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.project-more {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.portfolio-hero {
  position: relative;
  min-height: 56vh;
  display: grid;
  align-items: end;
  padding: 140px clamp(20px, 7vw, 96px) 70px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(24, 39, 56, 0.9), rgba(24, 39, 56, 0.58)),
    url("assets/construction-hero.jpg") center / cover;
}

.portfolio-hero::before,
.consultation-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.12) 46%, transparent 68%);
  transform: translateX(-120%);
  animation: heroSweep 1.25s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.consultation-hero {
  position: relative;
  min-height: 64vh;
  display: grid;
  align-items: end;
  padding: 140px clamp(20px, 7vw, 96px) 74px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(24, 39, 56, 0.9), rgba(24, 39, 56, 0.58)),
    url("assets/project-site-visit.jpg") center / cover;
}

.portfolio-hero h1 {
  max-width: 980px;
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 5vw, 4.9rem);
}

.consultation-hero h1 {
  max-width: 980px;
  margin-bottom: 14px;
  font-size: clamp(2.45rem, 5vw, 5rem);
}

.portfolio-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

.consultation-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

.consultation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.consultation-section {
  background: var(--navy);
}

.portfolio-section {
  background: #fbfcfd;
}

.portfolio-grid {
  grid-template-columns: repeat(3, 1fr);
}

.portfolio-card-wide {
  grid-column: span 2;
}

.portfolio-contact-actions {
  display: grid;
  gap: 12px;
  align-content: start;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 30px);
}

.project-modal.is-open,
.project-modal.is-closing {
  display: flex;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 39, 56, 0.58);
  backdrop-filter: blur(6px);
}

.project-modal.is-open .project-modal-backdrop {
  animation: modalBackdropIn 0.28s ease both;
}

.project-modal.is-closing .project-modal-backdrop {
  animation: modalBackdropOut 0.2s ease both;
}

.project-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: min(90vh, 840px);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.65fr);
  gap: 0;
  overflow: auto;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 52px rgba(8, 18, 32, 0.16);
  transform-origin: center;
}

.project-modal.is-open .project-modal-panel {
  animation: modalPopIn 0.36s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.project-modal.is-closing .project-modal-panel {
  animation: modalPopOut 0.2s ease both;
}

.project-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(24, 39, 56, 0.72);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--soft-shadow);
  transition: background 0.2s ease, transform 0.2s ease;
}

.project-modal-close:hover {
  background: rgba(209, 47, 47, 0.9);
  transform: translateY(-1px);
}

.project-modal-image {
  display: block;
  width: 100%;
  height: min(72vh, 640px);
  object-fit: contain;
  object-position: center;
  background: #f2f4f7;
}

.project-modal-thumbs {
  display: flex;
  grid-column: 1;
  gap: 10px;
  padding: 14px 16px 16px;
  overflow-x: auto;
  background: #f7f8fa;
  border-top: 1px solid var(--line);
}

.project-modal-thumb {
  flex: 0 0 92px;
  height: 64px;
  border: 2px solid transparent;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  box-shadow: none;
  opacity: 0.72;
  transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.project-modal-thumb:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

.project-modal-thumb.is-active {
  border-color: var(--red);
  opacity: 1;
}

.project-modal-content {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  padding: clamp(26px, 4vw, 42px);
  border-left: 1px solid var(--line);
  background: var(--white);
}

.project-modal-category {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--red);
  background: rgba(209, 47, 47, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-modal-content h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.project-modal-description {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

@keyframes modalBackdropIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalBackdropOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modalPopOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pageCurtain {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}

@keyframes headerDrop {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroImageSettle {
  from {
    transform: scale(1.1);
    filter: saturate(0.9);
  }

  to {
    transform: scale(1.04);
    filter: saturate(1);
  }
}

@keyframes heroImageDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.08) translate3d(1.8%, -1.2%, 0);
  }
}

@keyframes heroSweep {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(120%);
  }
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body::before {
    display: none;
  }

  .js-enabled .reveal {
    opacity: 1;
    transform: none;
  }

  .project-modal.is-open .project-modal-backdrop,
  .project-modal.is-closing .project-modal-backdrop,
  .project-modal.is-open .project-modal-panel,
  .project-modal.is-closing .project-modal-panel {
    animation: none;
  }
}

.order-section {
  padding: 92px clamp(20px, 6vw, 84px);
  background: var(--paper);
}

.order-section .eyebrow {
  color: var(--red);
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  gap: clamp(24px, 5vw, 58px);
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.order-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.order-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-weight: 900;
}

.order-form .full {
  grid-column: 1 / -1;
}

.order-form input,
.order-form select,
.order-form textarea {
  border-color: #cbd5dd;
  color: var(--ink);
  background: #f9fbfc;
}

.order-form input::placeholder,
.order-form textarea::placeholder {
  color: #8a96a3;
}

.order-summary {
  position: sticky;
  top: 96px;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.summary-tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--red);
  background: rgba(199, 47, 53, 0.08);
  font-weight: 800;
}

.order-summary h3 {
  margin-bottom: 10px;
}

.estimate-price {
  display: block;
  margin-bottom: 12px;
  color: var(--red);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.15;
}

.estimate-note {
  color: var(--muted);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.summary-row span {
  color: var(--muted);
}

.summary-row b {
  text-align: right;
}

.order-result {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.order-id {
  margin-bottom: 12px;
  color: var(--red);
  font-weight: 900;
}

.order-text {
  max-height: 260px;
  overflow: auto;
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  white-space: pre-wrap;
}

.order-actions {
  display: grid;
  gap: 10px;
}

.order-actions .btn.secondary {
  border-color: var(--line);
  color: var(--navy);
  background: var(--white);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(340px, 0.86fr);
  gap: clamp(30px, 7vw, 84px);
  align-items: start;
  padding: 92px clamp(20px, 6vw, 84px);
  color: var(--ink);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.contact-band h2 {
  max-width: 760px;
}

.contact-band p {
  color: var(--muted);
}

.contact-note {
  display: inline-flex;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--red);
  background: rgba(199, 47, 53, 0.08);
  font-weight: 800;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-weight: 800;
}

.contact-form .full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d8e0e7;
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fbfcfd;
  font: inherit;
}

select option {
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #8a96a3;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--red);
  font-weight: 800;
}

.site-footer {
  padding: 66px clamp(20px, 7vw, 120px) 26px;
  color: var(--white);
  background: var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.1fr;
  gap: clamp(28px, 5vw, 70px);
}

.site-footer h3 {
  margin: 0 0 20px;
  color: var(--white);
  font-size: 1rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-logo-mark {
  display: grid;
  width: 64px;
  height: 48px;
  place-items: center;
  border-left: 12px solid #ff1f1f;
  color: var(--white);
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 900;
}

.footer-logo strong,
.footer-logo small {
  display: block;
}

.footer-logo strong {
  font-size: 1.02rem;
}

.footer-wordmark {
  position: relative;
  width: fit-content;
  padding-right: 8px;
  font-size: 1.16rem !important;
  line-height: 1.08;
  font-weight: 900;
}

.footer-wordmark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 8px;
  bottom: -7px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), rgba(255, 255, 255, 0.42));
}

.footer-logo small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
}

.contact-list,
.footer-links {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}

.contact-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.45);
  font-weight: 900;
}

.contact-list p,
.footer-bottom p {
  margin: 0;
}

.contact-list p,
.footer-links a {
  color: var(--white);
  font-weight: 800;
}

.footer-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-links a::before {
  content: "›";
  color: var(--white);
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 400;
}

.footer-links a:hover {
  color: var(--gold);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.social-links a {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.46);
  font-weight: 900;
}

.social-links a:hover {
  background: var(--red);
}

.footer-partner {
  color: rgba(242, 184, 75, 0.75);
  font-size: 3rem;
  line-height: 1;
  font-style: italic;
  font-weight: 900;
}

.footer-bottom {
  display: grid;
  gap: 16px;
  margin-top: 44px;
  padding-top: 22px;
  color: var(--white);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 8px;
    background: rgba(32, 48, 68, 0.96);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(14px);
  }

  .site-nav.is-open {
    display: flex;
  }

  .intro-band,
  .contact-band,
  .order-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }

  .service-grid,
  .free-grid,
  .project-grid,
  .portfolio-grid,
  .standard-grid,
  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-card-wide {
    grid-column: span 2;
  }

  .project-modal-panel {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }

  .project-modal-image,
  .project-modal-thumbs,
  .project-modal-content {
    grid-column: 1;
  }

  .project-modal-image {
    height: min(58vh, 520px);
  }

  .project-modal-content {
    grid-row: auto;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand > span:last-child small {
    display: none;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .brand-mark strong {
    font-size: 1.38rem;
  }

  .brand-mark small {
    font-size: 0.45rem;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .hero {
    min-height: 88vh;
    padding: 110px 18px 54px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(24, 39, 56, 0.9), rgba(24, 39, 56, 0.74)),
      linear-gradient(0deg, rgba(24, 39, 56, 0.48), rgba(24, 39, 56, 0));
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .intro-band ul,
  .service-grid,
  .free-grid,
  .project-grid,
  .portfolio-grid,
  .standard-grid,
  .stats,
  .order-form,
  .contact-form,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .standards,
  .contact-band,
  .intro-band {
    padding: 68px 18px;
  }

  .portfolio-hero {
    min-height: 62vh;
    padding: 120px 18px 54px;
  }

  .consultation-hero {
    min-height: 64vh;
    padding: 120px 18px 54px;
  }

  .portfolio-card-wide {
    grid-column: auto;
  }

  .project-card {
    min-height: 390px;
  }

  .project-content {
    padding: 22px;
  }

  .project-modal {
    padding: 10px;
  }

  .project-modal-image {
    height: min(52vh, 420px);
  }

  .project-modal-thumbs {
    padding: 10px;
  }

  .project-modal-thumb {
    flex-basis: 76px;
    height: 54px;
  }
}
