/*
Theme Name: 山武工業
Theme URI: https://yamatake-industry-demo.pages.dev/
Author: Codex
Description: 山武工業のコーポレートサイト専用WordPressテーマ。
Version: 1.0.0
Requires at least: 6.0
Text Domain: yamatake-industry
*/

:root {
  --ink: #111827;
  --text: #253042;
  --muted: #667085;
  --subtle: #f6f8fb;
  --paper: #ffffff;
  --line: #e5e9f0;
  --line-strong: #d2d9e3;
  --blue: #1f6feb;
  --cyan: #1aa6b7;
  --gold: #f2cf3a;
  --gold-deep: #a67815;
  --orange: #f97316;
  --red: #dc2626;
  --radius: 8px;
  --shadow: 0 18px 46px rgba(17, 24, 39, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 114px;
}

#services,
#works,
#flow,
#faq,
#message,
#company,
#contact {
  scroll-margin-top: 114px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.8;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

input,
textarea,
select,
button {
  font: inherit;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.15;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.26;
}

h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.48;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: block;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(229, 233, 240, 0.9);
  backdrop-filter: blur(18px);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 8px clamp(18px, 4vw, 56px);
  background: white;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 176px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: white;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, #111827, #29415d);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 14%);
}

.logo strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}

.logo small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.header-actions {
  display: flex;
  align-items: stretch;
  gap: 18px;
  min-height: 42px;
}

.header-phone,
.header-mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  line-height: 1;
}

.header-phone {
  color: var(--ink);
  font-size: clamp(18px, 1.75vw, 24px);
}

.header-phone::before {
  content: "TEL";
  margin-right: 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.header-mail {
  position: relative;
  min-width: 144px;
  padding: 0 22px 0 32px;
  color: white;
  background: #08090c;
  font-size: 16px;
  letter-spacing: 0;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.header-mail::before {
  content: "";
  width: 18px;
  height: 14px;
  margin-right: 10px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='16' viewBox='0 0 20 16'%3E%3Cpath fill='black' d='M2 0h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2Zm0 3.2V14h16V3.2l-7.4 5.4a1 1 0 0 1-1.2 0L2 3.2Zm1.7-1.2L10 6.6 16.3 2H3.7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.global-nav {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.15fr 1.25fr 1.1fr;
  min-height: 48px;
  color: white;
  background: linear-gradient(90deg, #111827, #16263b);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
  font-weight: 800;
}

.global-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.11);
}

.global-nav a:first-child {
  background: rgba(31, 111, 235, 0.22);
}

.global-nav a:hover {
  background: rgba(31, 111, 235, 0.24);
}

.global-nav a.has-subnav::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 12px;
  border-top: 5px solid currentColor;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--ink);
  border: 0;
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: white;
}

.section {
  padding: clamp(76px, 9vw, 120px) clamp(18px, 4vw, 56px);
}

.section > * {
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.section-tinted {
  background: var(--subtle);
}

.section-dark {
  color: white;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.92)),
    linear-gradient(135deg, #152234, #243b53 54%, #0f172a);
}

.section-dark h2,
.section-dark h3 {
  color: white;
}

.hero {
  position: relative;
  min-height: calc(100vh - 113px);
  padding: clamp(62px, 8vw, 104px) clamp(18px, 4vw, 56px) 36px;
  overflow: hidden;
  color: white;
  background: #111827;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 13, 23, 0.88) 0%, rgba(7, 13, 23, 0.72) 36%, rgba(7, 13, 23, 0.32) 66%, rgba(7, 13, 23, 0.1) 100%),
    linear-gradient(180deg, rgba(7, 13, 23, 0.18) 0%, rgba(7, 13, 23, 0.28) 100%);
  pointer-events: none;
}

.hero-background-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(180deg, black, transparent 88%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  max-width: 1220px;
  min-height: 620px;
  margin: 0 auto;
}

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

.hero h1 {
  color: white;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.hero .eyebrow {
  color: #9bd7ff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.65;
}

.hero-text {
  max-width: 690px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.button.primary {
  color: var(--ink);
  background: white;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
}

.button.secondary {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
}

.button.full {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.visual-frame {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background: #dce4ed;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.visual-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual > img {
  object-position: 58% center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(17, 24, 39, 0.16)),
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.22), transparent 34%);
  pointer-events: none;
}

.hero-visual::after {
  display: none;
}

.photo-label {
  position: absolute;
  right: 26px;
  bottom: 26px;
  left: 26px;
  z-index: 2;
  padding: 16px 18px;
  color: white;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
  background: rgba(17, 24, 39, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.section-head {
  margin-bottom: 42px;
}

.section-head.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(260px, 0.48fr);
  gap: 28px;
  align-items: end;
}

.section-head.split p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.section-copy-balanced span {
  display: inline;
}

@media (min-width: 821px) {
  .section-copy-balanced span {
    display: block;
  }
}

.section-dark .section-head.split p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.problem-grid div {
  min-height: 116px;
  padding: 22px;
  color: #344054;
  font-weight: 800;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
}

.problem-grid div::before {
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  background:
    #eef5ff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%231f6feb' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L4 17v3h3l5.3-5.3a4 4 0 0 0 5.4-5.4l-2.4 2.4-3-3 2.4-2.4Z'/%3E%3C/svg%3E")
    center / 22px 22px no-repeat;
  border: 1px solid #d8e7ff;
  border-radius: var(--radius);
}

.problem-grid div:nth-child(2n)::before {
  background-color: #e9fbfd;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23087a8a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4h10'/%3E%3Cpath d='M9 4v4l-3 5v7h12v-7l-3-5V4'/%3E%3Cpath d='M8 14h8'/%3E%3C/svg%3E");
  border-color: #cfedf1;
}

.problem-grid div:nth-child(3n)::before {
  background-color: #fff7ed;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v5l3 2'/%3E%3C/svg%3E");
  border-color: #fed7aa;
}

.message-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 34px;
  padding: 28px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.message-band p {
  margin-bottom: 0;
  color: var(--muted);
}

.text-link {
  color: var(--blue);
  font-weight: 900;
  border-bottom: 2px solid rgba(31, 111, 235, 0.22);
}

.reason-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.055);
}

.reason-card {
  min-height: 276px;
  padding: 28px;
}

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

.card-number,
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 34px;
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  background: #eef5ff;
  border: 1px solid #d8e7ff;
  border-radius: var(--radius);
}

.card p,
.service-card p,
.flow-item p,
.work-body p,
.message-copy p,
.contact-copy p {
  color: var(--muted);
}

.service-card {
  overflow: hidden;
  min-height: 300px;
  padding: 0 28px 28px;
}

.service-photo {
  position: relative;
  height: 160px;
  margin: 0 -28px 24px;
  overflow: hidden;
  background: #dce4ed;
}

.service-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.02), rgba(17, 24, 39, 0.16)),
    linear-gradient(90deg, rgba(31, 111, 235, 0.18), transparent 52%);
  pointer-events: none;
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card:nth-child(2) .service-photo img {
  object-position: 34% center;
}

.service-card:nth-child(1) .service-photo img {
  object-position: 62% 48%;
}

.service-card:nth-child(3) .service-photo img {
  object-position: 72% center;
}

.service-card:nth-child(2n) .service-icon {
  color: #087a8a;
  background: #e9fbfd;
  border-color: #cfedf1;
}

.works-section {
  overflow: hidden;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  overflow: hidden;
  color: var(--ink);
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.work-photo {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 190px;
  padding: 22px;
  overflow: hidden;
  color: white;
  font-weight: 900;
  background: #d9e1ea;
}

.work-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 36%, rgba(17, 24, 39, 0.5)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 44%);
}

.work-photo::after {
  display: none;
}

.work-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-photo.black img {
  object-position: 50% 50%;
}

.work-photo.blue img {
  object-position: 56% 44%;
}

.work-photo.silver img {
  object-position: 50% 58%;
}

.work-photo.gray img {
  object-position: 58% 46%;
}

.work-photo span {
  position: relative;
  z-index: 2;
  max-width: 340px;
  padding: 9px 12px;
  background: rgba(17, 24, 39, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.work-photo.black {
  background: linear-gradient(145deg, #8a94a3, #263241 58%, #101722);
}

.work-photo.blue {
  background: linear-gradient(145deg, #9fe7f4, #2877b6 50%, #152134);
}

.work-photo.silver {
  background: linear-gradient(145deg, #f7fafc, #a6b0bd 48%, #394453);
}

.work-photo.gray {
  background: linear-gradient(145deg, #cfd6df, #7c8795 48%, #202938);
}

.work-body {
  padding: 20px;
}

.work-body dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0 0 18px;
}

.work-body dl div {
  padding: 10px 12px;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.work-body dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.work-body dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.flow-item {
  position: relative;
  min-height: 286px;
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.flow-item::after {
  content: "";
  position: absolute;
  top: 42px;
  right: -10px;
  width: 20px;
  height: 2px;
  background: var(--line-strong);
}

.flow-item:last-child::after {
  display: none;
}

.flow-item span {
  display: block;
  margin-bottom: 42px;
  color: var(--blue);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.035);
}

.faq-item summary {
  position: relative;
  min-height: 68px;
  padding: 20px 58px 20px 24px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 24px;
  color: var(--blue);
  font-size: 26px;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
}

.message-layout,
.company-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
}

.message-layout {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  align-items: start;
}

.portrait {
  min-height: 560px;
  background: #dce4ed;
}

.portrait img {
  object-position: 38% center;
}

.message-copy {
  padding: 8px 0;
}

.signature {
  margin-top: 28px;
  color: var(--ink) !important;
  font-weight: 900;
  text-align: right;
}

.company-layout {
  align-items: stretch;
}

.company-table {
  width: 100%;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-radius: var(--radius);
  border-spacing: 0;
}

.company-table th,
.company-table td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 150px;
  color: var(--ink);
  font-weight: 900;
  background: #f1f5f9;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: 0;
}

.address-lines {
  display: inline-block;
  line-height: 1.75;
}

.confirm {
  display: inline-flex;
  padding: 3px 10px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 900;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
}

.map-panel {
  position: relative;
  display: grid;
  place-content: center;
  overflow: hidden;
  min-height: 380px;
  padding: 32px;
  color: white;
  text-align: center;
  background: #111827;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.map-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 13, 23, 0.22), rgba(7, 13, 23, 0.7)),
    linear-gradient(90deg, rgba(7, 13, 23, 0.76), rgba(7, 13, 23, 0.28));
}

.map-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

.map-panel span {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 16px;
  color: #9bd7ff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.map-panel strong {
  position: relative;
  z-index: 2;
  display: block;
  font-size: 20px;
  line-height: 1.6;
}

.map-panel small {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.map-panel.map-embed {
  display: block;
  min-height: 380px;
  padding: 0;
  background: white;
}

.map-panel.map-embed::before {
  display: none;
}

.map-panel.map-embed iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

.contact-section {
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 10%, rgba(31, 111, 235, 0.12), transparent 30%),
    linear-gradient(180deg, #f8fafc, #ffffff);
}

.contact-layout {
  align-items: start;
}

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

.contact-note {
  margin-top: 30px;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.05);
}

.contact-note strong,
.contact-note span {
  display: block;
}

.contact-note span {
  margin-top: 8px;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 8px;
  font-size: 14px;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  flex: 0 0 100%;
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fbfcfe;
  border: 1px solid #cfd6df;
  border-radius: var(--radius);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid rgba(31, 111, 235, 0.22);
  border-color: var(--blue);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input[type="file"] {
  padding: 9px 12px;
  background: #fff;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 0 clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.7);
  background-color: #0b1220;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}

.site-footer::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--gold);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(250px, 1.25fr) minmax(220px, 0.9fr) minmax(220px, 0.8fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 0 0;
}

.footer-brand {
  padding-left: 18px;
  border-left: 2px solid var(--gold);
}

.footer-kicker,
.footer-label,
.footer-contact span {
  margin: 0;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.footer-brand > strong {
  display: block;
  margin: 4px 0 8px;
  color: white;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.25;
}

.footer-description {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.footer-address {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-style: normal;
  line-height: 1.8;
}

.footer-tel {
  display: inline-block;
  margin-top: 14px;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
}

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

.footer-links {
  padding-top: 2px;
}

.footer-label {
  margin-bottom: 18px;
}

.footer-links nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(92px, 1fr));
  gap: 12px 22px;
  font-size: 14px;
  font-weight: 800;
}

.footer-links a {
  width: max-content;
  max-width: 100%;
  transition: color 180ms ease;
}

.footer-contact {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 18px;
  align-self: start;
  padding: 22px;
  color: #fff;
  border: 1px solid rgba(242, 207, 58, 0.52);
  background: rgba(255, 255, 255, 0.045);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.footer-contact-area {
  align-self: start;
}

.footer-contact::before {
  position: absolute;
  top: -1px;
  right: 20px;
  width: 44px;
  height: 2px;
  content: "";
  background: var(--gold);
}

.footer-contact span,
.footer-contact strong {
  grid-column: 1;
}

.footer-contact strong {
  font-size: 18px;
  line-height: 1.3;
}

.footer-contact i {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--gold);
  font-size: 28px;
  font-style: normal;
  line-height: 1;
}

.footer-contact:hover {
  border-color: var(--gold);
  background: rgba(242, 207, 58, 0.13);
  transform: translateY(-2px);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 38px;
  padding: 20px 0 22px;
  color: rgba(255, 255, 255, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 11px;
  line-height: 1.5;
}

.footer-bottom small {
  font-size: inherit;
}

.footer-bottom span {
  color: rgba(242, 207, 58, 0.72);
  font-weight: 800;
  letter-spacing: 0;
}

.footer-instagram {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-top: 14px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background:
    radial-gradient(circle at 28% 108%, #feda75 0 14%, #fa7e1e 32%, transparent 54%),
    linear-gradient(145deg, #4f5bd5 0%, #962fbf 34%, #d62976 58%, #fa7e1e 82%, #feda75 100%);
  box-shadow: 0 8px 20px rgba(214, 41, 118, 0.22);
  transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.footer-instagram svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.footer-instagram .instagram-dot {
  fill: currentColor;
  stroke: none;
}

.footer-instagram:hover {
  color: #fff;
  filter: saturate(1.15) brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(214, 41, 118, 0.32);
}

@media (max-width: 1040px) {
  .global-nav {
    grid-template-columns: repeat(3, 1fr);
    font-size: 13px;
  }

  .header-mail {
    min-width: 138px;
    padding-right: 22px;
    padding-left: 34px;
    font-size: 17px;
  }

  .hero-content,
  .message-layout,
  .company-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-content {
    min-height: 0;
  }

  .problem-grid,
  .flow-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .reason-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reason-card.wide {
    grid-column: span 1;
  }

  .flow-item::after {
    display: none;
  }
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 84px;
  }

  #services,
  #works,
  #flow,
  #faq,
  #message,
  #company,
  #contact {
    scroll-margin-top: 84px;
  }

  .site-header {
    min-height: 70px;
  }

  .header-top {
    min-height: 70px;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 44px;
  }

  .header-actions {
    align-items: center;
    gap: 10px;
    min-height: 44px;
  }

  .header-phone {
    display: none;
  }

  .header-mail {
    min-width: 92px;
    height: 44px;
    padding: 0 14px 0 22px;
    font-size: 13px;
  }

  .global-nav {
    position: fixed;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    grid-template-columns: 1fr;
    padding: 14px 18px 24px;
    background: white;
    border-bottom: 1px solid var(--line);
    border-top: 0;
    box-shadow: 0 22px 42px rgba(17, 24, 39, 0.14);
  }

  .nav-open .global-nav {
    display: flex;
  }

  .global-nav a {
    justify-content: flex-start;
    padding: 13px 8px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    border-right: 0;
    background: white;
  }

  .global-nav a:first-child,
  .global-nav a:hover {
    background: #f8fafc;
  }

  .global-nav a.has-subnav::after {
    border-top-color: var(--ink);
  }

  .hero {
    min-height: auto;
  }

  .problem-grid,
  .reason-grid,
  .service-grid,
  .works-grid,
  .flow-list,
  .form-grid,
  .section-head.split,
  .message-band,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  #services .section-lead {
    white-space: normal;
  }

  .visual-frame,
  .portrait {
    min-height: 360px;
  }

  .section {
    padding-top: 66px;
    padding-bottom: 66px;
  }

  .scope-section {
    padding-top: 66px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-right: 0;
    padding-left: 0;
  }

  .header-top {
    padding-right: 14px;
    padding-left: 14px;
  }

  .logo {
    min-width: 0;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .logo strong {
    font-size: 17px;
  }

  .logo small {
    font-size: 9px;
  }

  .header-mail::before {
    display: none;
  }

  .hero {
    padding-right: 14px;
    padding-left: 14px;
  }

  .button {
    width: 100%;
  }

  .work-body dl {
    grid-template-columns: 1fr;
  }

  .company-table,
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table {
    overflow: hidden;
  }

  .company-table th {
    padding-bottom: 8px;
    border-bottom: 0;
  }

  .company-table td {
    padding-top: 0;
  }

  .contact-form {
    padding: 20px;
  }
}

/* Premium finish layer */
body {
  background:
    linear-gradient(180deg, #ffffff 0%, #f6f8fb 34%, #ffffff 64%),
    #ffffff;
}

.site-header {
  background:
    linear-gradient(180deg, rgba(5, 10, 17, 0.97), rgba(7, 13, 23, 0.94));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.header-top {
  max-width: none;
  background: transparent;
}

.logo strong {
  color: white;
}

.logo small {
  color: rgba(225, 232, 242, 0.62);
}

.logo-mark {
  color: #080c12;
  background: linear-gradient(135deg, #fff3a0, var(--gold) 54%, var(--gold-deep));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26), 0 10px 24px rgba(242, 207, 58, 0.18);
}

.logo-mark-official {
  width: 66px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.logo-mark-official img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(242, 207, 58, 0.22));
}

@media (max-width: 560px) {
  .logo-mark-official {
    width: 56px;
    height: 34px;
    padding: 0;
  }
}

.header-phone {
  color: white;
}

.header-phone::before {
  color: var(--gold);
}

.header-mail {
  color: #080c12;
  background: linear-gradient(135deg, #fff7ae, var(--gold) 56%, #c89723);
}

.global-nav {
  background:
    linear-gradient(90deg, rgba(7, 12, 21, 0.96) 0%, rgba(15, 26, 43, 0.94) 52%, rgba(7, 12, 21, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.global-nav a {
  transition: background 0.18s ease, color 0.18s ease;
}

.global-nav a:first-child,
.global-nav a:hover {
  background: rgba(242, 207, 58, 0.11);
}

.global-nav a.is-active {
  background: rgba(242, 207, 58, 0.16);
}

.hero {
  min-height: clamp(600px, calc(100vh - 240px), 700px);
  padding: 0 clamp(18px, 4vw, 56px);
  isolation: isolate;
  background: #02060c;
  overflow: hidden;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(2, 6, 12, 0.99) 0%, rgba(2, 6, 12, 0.96) 35%, rgba(2, 6, 12, 0.62) 58%, rgba(2, 6, 12, 0.08) 100%),
    linear-gradient(180deg, rgba(2, 6, 12, 0.08) 0%, rgba(2, 6, 12, 0.88) 100%),
    radial-gradient(circle at 77% 47%, rgba(0, 196, 255, 0.3), transparent 28%);
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 150px;
  background:
    linear-gradient(180deg, transparent, rgba(2, 6, 12, 0.92)),
    linear-gradient(90deg, rgba(242, 207, 58, 0.24), transparent 34%, rgba(0, 174, 255, 0.18));
  pointer-events: none;
  animation: heroHorizonGlow 6.8s ease-in-out infinite;
}

.hero-content {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding-top: clamp(42px, 6vh, 74px);
  padding-bottom: clamp(34px, 5vh, 62px);
  min-height: clamp(560px, calc(100vh - 270px), 620px);
}

.hero-background-image {
  object-position: center center;
  filter: saturate(1.1) contrast(1.18) brightness(0.98);
  transform: scale(1.025);
  transform-origin: 76% 44%;
  animation: heroImageDrift 18s ease-in-out infinite alternate;
}

.hero-bg-grid {
  animation: heroGridDrift 26s linear infinite;
}

.hero-particles,
.hero-light-sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-particles {
  z-index: 2;
  opacity: 0.42;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(242, 207, 58, 0.42) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(88, 206, 255, 0.28) 0 1px, transparent 1.8px);
  background-position: 0 0, 42px 18px, 12px 64px;
  background-size: 92px 92px, 138px 138px, 164px 164px;
  mask-image: linear-gradient(90deg, black 0%, black 48%, rgba(0, 0, 0, 0.66) 66%, transparent 100%);
  animation: heroParticleFloat 34s linear infinite;
}

.hero-light-sweep {
  z-index: 2;
  opacity: 0;
  background:
    linear-gradient(110deg, transparent 0%, rgba(242, 207, 58, 0.08) 38%, rgba(104, 214, 255, 0.16) 49%, transparent 61%);
  transform: translateX(-42%);
  animation: heroLightSweep 8.5s ease-in-out 1.2s infinite;
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 28px;
  color: white;
  font-size: clamp(62px, 6.8vw, 104px);
  line-height: 0.94;
  word-break: keep-all;
  text-shadow:
    0 24px 56px rgba(0, 0, 0, 0.52),
    0 0 34px rgba(0, 184, 255, 0.18);
}

.hero h1 span {
  display: block;
}

.hero h1 span:first-child {
  color: var(--gold);
}

.hero .lead {
  max-width: 660px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 1.42vw, 22px);
  font-weight: 900;
  line-height: 1.72;
}

.hero-meta {
  margin: 0;
  color: rgba(226, 236, 248, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.hero-copy {
  position: relative;
  max-width: 820px;
  padding-left: clamp(20px, 2vw, 30px);
  animation: heroCopySettle 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-copy::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 8px;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), rgba(242, 207, 58, 0.34) 70%, transparent);
  box-shadow: 0 0 30px rgba(242, 207, 58, 0.38);
  transform-origin: top;
  animation: heroAccentGrow 1s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}

.hero-overline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin: 0 0 20px;
  color: rgba(246, 222, 99, 0.94);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.4;
  animation: heroTextRise 0.72s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.hero-overline span + span {
  position: relative;
  padding-left: 18px;
}

.hero-overline span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(242, 207, 58, 0.72);
  transform: translateY(-50%);
  animation: heroPulseDot 2.2s ease-in-out infinite;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: min(100%, 680px);
  margin-top: 34px;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(5, 10, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
  animation: heroTextRise 0.82s cubic-bezier(0.16, 1, 0.3, 1) 0.52s both;
}

.hero-proof span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 12px 16px 12px 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.hero-proof span:first-child {
  border-left: 0;
}

.hero-proof span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 14px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(242, 207, 58, 0.8);
  transform: translateY(-50%);
}

.hero-proof span:hover {
  color: white;
  background: rgba(242, 207, 58, 0.08);
  transform: translateY(-2px);
}

.hero h1 span,
.hero .lead,
.hero-meta {
  animation: heroTextRise 0.86s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1 span:first-child {
  animation-delay: 0.18s;
}

.hero h1 span:last-child {
  animation-delay: 0.3s;
}

.hero .lead {
  animation-delay: 0.4s;
}

.hero-meta {
  animation-delay: 0.48s;
}

.hero-marquee {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(2, 6, 12, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.hero-marquee-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  animation: heroMarquee 28s linear infinite;
  will-change: transform;
}

.hero-marquee-group {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-around;
  min-width: 100vw;
}

.hero-marquee-group span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 30px 0 46px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.hero-marquee-group span::before {
  content: "";
  position: absolute;
  left: 28px;
  width: 5px;
  height: 5px;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(242, 207, 58, 0.7);
}

@keyframes heroImageDrift {
  from {
    transform: scale(1.025) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(-1.4%, 0.8%, 0);
  }
}

@keyframes heroGridDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 92px 92px, 92px 92px;
  }
}

@keyframes heroParticleFloat {
  from {
    background-position: 0 0, 42px 18px, 12px 64px;
  }
  to {
    background-position: 0 -220px, 42px -162px, 12px -116px;
  }
}

@keyframes heroLightSweep {
  0%,
  58% {
    opacity: 0;
    transform: translateX(-42%);
  }
  68% {
    opacity: 0.9;
  }
  84% {
    opacity: 0;
    transform: translateX(42%);
  }
  100% {
    opacity: 0;
    transform: translateX(42%);
  }
}

@keyframes heroHorizonGlow {
  0%,
  100% {
    opacity: 0.86;
  }
  50% {
    opacity: 1;
  }
}

@keyframes heroCopySettle {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroTextRise {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroAccentGrow {
  from {
    opacity: 0;
    transform: scaleY(0);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes heroPulseDot {
  0%,
  100% {
    opacity: 0.7;
    box-shadow: 0 0 14px rgba(242, 207, 58, 0.5);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 24px rgba(242, 207, 58, 0.96);
  }
}

@keyframes heroMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes scopeGridSlide {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 44px 44px, 44px 44px;
  }
}

.section {
  position: relative;
}

.section-head {
  max-width: 1180px;
}

.section-lead {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.scope-section {
  padding-top: clamp(76px, 9vw, 120px);
  padding-bottom: clamp(64px, 7vw, 92px);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

@media (max-width: 820px) {
  .scope-section {
    padding-top: 66px;
  }
}

.scope-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.58fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.scope-card,
.scope-grid div {
  border: 1px solid #dce4ee;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.055);
}

.scope-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 42px);
  color: white;
  background:
    linear-gradient(145deg, rgba(17, 24, 39, 0.94), rgba(20, 34, 56, 0.92)),
    url("assets/finish-blue-detail.jpg") center / cover;
}

.scope-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.18;
  pointer-events: none;
  animation: scopeGridSlide 22s linear infinite;
}

.scope-card > * {
  position: relative;
  z-index: 1;
}

.scope-label {
  margin-bottom: 14px;
  color: #9bd7ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.scope-card h3 {
  margin-bottom: 18px;
  color: white;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.34;
}

.scope-card p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.scope-grid div {
  min-height: 168px;
  padding: 24px;
  background: white;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.scope-grid div:hover {
  border-color: rgba(242, 207, 58, 0.56);
  box-shadow: 0 22px 46px rgba(17, 24, 39, 0.1);
  transform: translateY(-5px);
}

.scope-grid span,
.scope-grid strong,
.scope-grid p {
  display: block;
}

.scope-grid span {
  margin-bottom: 14px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.scope-grid strong {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
}

.scope-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}

#services .section-lead {
  max-width: none;
  white-space: nowrap;
}

@media (max-width: 960px) {
  #services .section-lead {
    white-space: normal;
  }
}

.problem-grid {
  gap: 12px;
}

.problem-grid div {
  position: relative;
  min-height: 104px;
  padding: 22px 22px 22px 76px;
  overflow: hidden;
  border-color: #dde4ee;
  box-shadow: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.problem-grid div:hover {
  transform: translateY(-3px);
  border-color: #b9c8da;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.08);
}

.problem-grid div::before {
  position: absolute;
  top: 22px;
  left: 22px;
  margin-bottom: 0;
}

.problem-grid div > span {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.problem-grid div::before {
  background:
    #f3f6fa
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L4 17v3h3l5.3-5.3a4 4 0 0 0 5.4-5.4l-2.4 2.4-3-3 2.4-2.4Z'/%3E%3C/svg%3E")
    center / 22px 22px no-repeat;
  border-color: #dbe3ed;
}

.problem-grid div:nth-child(2n)::before {
  background-color: #f3f6fa;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4h10'/%3E%3Cpath d='M9 4v4l-3 5v7h12v-7l-3-5V4'/%3E%3Cpath d='M8 14h8'/%3E%3C/svg%3E");
  border-color: #dbe3ed;
}

.problem-grid div:nth-child(3n)::before {
  background-color: #f3f6fa;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v5l3 2'/%3E%3C/svg%3E");
  border-color: #dbe3ed;
}

.problem-grid div > span {
  color: #3b4658;
}

.message-band {
  background:
    linear-gradient(90deg, #ffffff 0%, #f7f8fa 100%);
  border-color: #dfe5ec;
}

.text-link {
  color: #111827;
  border-bottom-color: rgba(17, 24, 39, 0.22);
}

.reason-card,
.service-card,
.work-card,
.flow-item,
.faq-item,
.contact-form,
.company-table,
.map-panel,
.contact-note {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.reason-card:hover,
.service-card:hover,
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.11);
  border-color: #c9d4e2;
}

.quality-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.72fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-top: 22px;
  padding: clamp(28px, 4vw, 44px);
  color: white;
  background:
    linear-gradient(120deg, rgba(17, 24, 39, 0.96), rgba(20, 34, 56, 0.94)),
    url("assets/finish-blue-detail.jpg") center / cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 58px rgba(17, 24, 39, 0.18);
}

.quality-band h3 {
  margin-bottom: 0;
  color: white;
  font-size: clamp(24px, 2.6vw, 34px);
}

.quality-band p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.service-grid {
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.service-card p {
  margin-bottom: 0;
}

.service-photo {
  height: 190px;
}

.service-icon,
.card-number {
  min-width: 54px;
  background: #f3f7fc;
  border-color: #dce7f3;
}

.works-section {
  background:
    linear-gradient(180deg, rgba(12, 18, 32, 0.96), rgba(17, 24, 39, 0.98)),
    url("assets/hero-workshop-painting.jpg") center / cover fixed;
}

.works-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  background: rgba(255, 255, 255, 0.98);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.work-card:hover {
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.22);
  transform: translateY(-6px);
}

.work-photo {
  min-height: 180px;
}

.work-photo img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s ease;
}

.work-card:hover .work-photo img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.055);
}

.work-body h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 18px;
}

.work-body p {
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}

.works-section .section-head.split {
  grid-template-columns: 1fr;
}

.works-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding: 24px 28px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.works-cta p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.flow-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.flow-section .eyebrow {
  color: #4b5565;
}

.flow-list {
  counter-reset: flow;
}

.flow-item {
  overflow: hidden;
  border-color: #dce4ee;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.045);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.flow-item:hover {
  box-shadow: 0 20px 44px rgba(17, 24, 39, 0.09);
  transform: translateY(-4px);
}

.flow-item::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #111827, #6f7b8a);
}

.flow-item span {
  color: #1f2937;
}

.faq-item {
  border-color: #dce4ee;
}

.visual-frame {
  border-color: #d7e0ea;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(17, 24, 39, 0.55));
  pointer-events: none;
}

.portrait-caption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  padding: 8px 11px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  background: rgba(17, 24, 39, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.company-layout {
  align-items: start;
}

.map-panel {
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.12);
}

.contact-section {
  padding-top: clamp(72px, 7vw, 96px);
  color: white;
  background:
    linear-gradient(120deg, rgba(7, 13, 23, 0.95), rgba(17, 24, 39, 0.86)),
    url("assets/hero-workshop-painting.jpg") center / cover;
}

.contact-section h2,
.contact-section h3 {
  color: white;
}

.contact-banner {
  display: block;
  max-width: 1180px;
  margin: 0 auto 36px;
}

.contact-banner .eyebrow {
  margin-bottom: 12px;
  color: #9bd7ff;
}

.contact-banner h2 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(34px, 3.15vw, 46px);
  line-height: 1.24;
  white-space: nowrap;
}

.contact-banner p:last-child {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
}

.contact-layout {
  grid-template-columns: minmax(320px, 0.74fr) minmax(500px, 0.98fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
}

.contact-copy {
  padding-top: 12px;
}

.contact-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 3vw, 42px);
}

.contact-copy p {
  max-width: 560px;
}

.contact-copy p,
.contact-note span {
  color: rgba(255, 255, 255, 0.72);
}

.contact-note {
  max-width: 560px;
  margin-top: 28px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.contact-direct {
  display: grid;
  gap: 4px;
  max-width: 560px;
  margin-top: 16px;
  padding: 20px 22px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.contact-direct span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 900;
}

.contact-direct a {
  width: fit-content;
  color: white;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.2;
}

.contact-direct small {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 800;
}

.contact-form {
  width: 100%;
  max-width: 620px;
  justify-self: end;
  padding: 30px;
  border: 0;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.28);
}

.contact-form .button.primary {
  color: white;
  background: linear-gradient(135deg, #1f6feb, #0f4fb8);
}

@media (max-width: 1040px) {
  .hero-content,
  .contact-banner,
  .quality-band,
  .scope-layout {
    grid-template-columns: 1fr;
  }

  .reason-grid,
  .service-grid,
  .works-grid,
  .flow-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-form {
    max-width: none;
    justify-self: stretch;
  }

  .contact-banner h2 {
    white-space: normal;
  }

}

@media (max-width: 820px) {
  .hero-content {
    min-height: 0;
    padding-top: clamp(116px, 20vh, 150px);
  }

  .hero-background-image {
    object-position: 62% center;
  }

  .hero-copy {
    padding-left: 18px;
  }

  .problem-grid div {
    padding-left: 72px;
  }

  .quality-band,
  .works-cta,
  .scope-grid,
  .problem-grid,
  .reason-grid,
  .service-grid,
  .works-grid,
  .flow-list,
  .form-grid,
  .section-head.split,
  .contact-banner {
    grid-template-columns: 1fr;
  }

  .works-cta {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    margin-bottom: 22px;
    font-size: 42px;
    line-height: 1.04;
  }

  .hero .lead {
    margin-bottom: 22px;
    font-size: 16px;
    line-height: 1.75;
  }

  .hero-overline {
    gap: 7px 11px;
    margin-bottom: 18px;
    font-size: 10px;
  }

  .hero-overline span + span {
    padding-left: 14px;
  }

  .hero-meta {
    font-size: 11px;
    line-height: 1.8;
  }

  .service-photo {
    height: 172px;
  }

  .quality-band,
  .works-cta {
    padding: 22px;
  }

  .contact-banner h2 {
    font-size: 32px;
  }

  .contact-form {
    padding: 22px;
  }
}

/* =========================================================
   追加: モーション・UX強化（写真・ロゴ・ドメイン待ちの間に
   コード側でできる品質底上げ。既存レイアウトへは追加のみ）
   ========================================================= */

/* --- スクロールフェードイン（JS未実行時は常に表示のまま） --- */
.reveal-init {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.985);
  transition: opacity 0.72s ease, transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-init.is-visible {
  opacity: 1;
  transform: none;
}

.scope-card.reveal-init,
.work-card.reveal-init,
.flow-item.reveal-init {
  transform: translate3d(0, 34px, 0) scale(0.97);
}

.scope-card.reveal-init.is-visible,
.work-card.reveal-init.is-visible,
.flow-item.reveal-init.is-visible {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-init {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- ヘッダー: スクロール後に影を強めて浮遊感を出す --- */
.site-header {
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 10, 17, 0.98);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.32);
}

@media (max-width: 820px) {
  .global-nav {
    background: rgba(5, 10, 17, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.28);
  }

  .global-nav a {
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .global-nav a:first-child,
  .global-nav a:hover {
    background: rgba(242, 207, 58, 0.12);
  }

  .global-nav a.has-subnav::after {
    border-top-color: currentColor;
  }

  .hero {
    min-height: 620px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(2, 6, 12, 0.98) 0%, rgba(2, 6, 12, 0.88) 48%, rgba(2, 6, 12, 0.38) 100%),
      linear-gradient(180deg, rgba(2, 6, 12, 0.08) 0%, rgba(2, 6, 12, 0.9) 100%);
  }

  .hero-content {
    padding-top: clamp(88px, 15vh, 122px);
    padding-bottom: 40px;
  }

  .hero-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 520px);
    margin-top: 28px;
  }

  .hero-proof span:nth-child(odd) {
    border-left: 0;
  }

  .hero-proof span:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}

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

  .hero-background-image {
    transform: scale(1.025);
  }

  .hero-light-sweep,
  .hero-particles {
    display: none;
  }
}

/* --- 必須バッジ --- */
.req {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: fit-content;
  min-height: 20px;
  margin-left: 2px;
  padding: 2px 9px;
  color: white;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #111827, #273449);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.14);
  vertical-align: middle;
}

/* --- フォーム送信後のインライン成功メッセージ --- */
.form-success {
  margin: 0;
  padding: 14px 16px;
  color: #14532d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  background: #eefbf1;
  border: 1px solid #b8e6c4;
  border-radius: var(--radius);
  animation: fadeSlideIn 0.4s ease;
}

.form-error {
  margin: 0;
  padding: 14px 16px;
  color: #7f1d1d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: var(--radius);
  animation: fadeSlideIn 0.4s ease;
}

.contact-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- ページ先頭へ戻るボタン --- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 96px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: white;
  font-size: 18px;
  line-height: 1;
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.28);
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.back-to-top:hover {
  background: #000;
  transform: translateY(-3px);
}

.back-to-top[hidden] {
  display: none;
}

@media (max-width: 820px) {
  .back-to-top {
    right: 16px;
    bottom: 92px;
  }
}

/* --- モバイル固定CTAバー（電話 / フォーム） --- */
.mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 -10px 24px rgba(17, 24, 39, 0.14);
  padding-bottom: env(safe-area-inset-bottom, 0);
  transition: transform 0.25s ease;
}

.mobile-cta-bar.is-hidden {
  transform: translateY(100%);
}

.mobile-cta-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  color: white;
  font-size: 14px;
  font-weight: 900;
}

.mobile-cta-call {
  background: #111827;
}

.mobile-cta-mail {
  background: var(--blue);
}

@media (max-width: 820px) {
  .mobile-cta-bar {
    display: grid;
  }

  /* 固定バーの分だけ、ページ最下部（フッター含む）が隠れないよう余白を確保 */
  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0));
  }
}

/* --- Contact heading line control --- */
.contact-banner h2 {
  word-break: keep-all;
  overflow-wrap: normal;
}

.contact-title-line {
  display: inline;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .contact-title-line {
    display: block;
  }
}

@media (max-width: 560px) {
  .contact-banner h2 {
    font-size: clamp(31px, 8.5vw, 36px);
    line-height: 1.34;
  }
}

/* =========================================================
   仕上げ強化: 施工事例・下層CTA・スマホ操作感
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: calc(var(--scroll-progress, 0) * 100%);
  height: 3px;
  background: linear-gradient(90deg, var(--gold), #69d7ff);
  box-shadow: 0 0 18px rgba(242, 207, 58, 0.48);
  pointer-events: none;
}

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

.hero-actions .button {
  min-width: 178px;
}

.hero-primary {
  color: #07101c;
  background: linear-gradient(135deg, #fff7b3, var(--gold) 58%, #c79522);
  box-shadow: 0 20px 42px rgba(242, 207, 58, 0.18);
}

.hero-secondary {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.consult-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  background: #d7e0ea;
  border: 1px solid #d7e0ea;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.055);
}

.consult-strip div {
  position: relative;
  min-height: 126px;
  padding: 22px 24px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
}

.consult-strip span,
.work-kicker {
  display: block;
  color: #4b5565;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.consult-strip strong {
  display: block;
  margin: 7px 0 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.consult-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
}

.works-section {
  position: relative;
  background:
    linear-gradient(180deg, rgba(3, 8, 15, 0.96), rgba(9, 15, 27, 0.98)),
    url("assets/hero-workshop-painting.jpg") center / cover fixed;
}

.works-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.22;
  mask-image: linear-gradient(180deg, transparent 0%, black 16%, black 84%, transparent 100%);
  pointer-events: none;
}

.works-section > * {
  position: relative;
  z-index: 1;
}

.works-lead {
  max-width: 520px;
  margin: 0;
  color: rgba(241, 246, 252, 0.84) !important;
  font-weight: 800;
  line-height: 1.9;
}

.works-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  transform-origin: center bottom;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(242, 207, 58, 0.16), transparent 34%, rgba(95, 213, 255, 0.16));
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.work-card:hover::after,
.work-card.is-focused::after {
  opacity: 1;
}

.featured-work {
  grid-column: auto;
}

.featured-work .work-photo {
  min-height: 240px;
}

.work-photo {
  min-height: 214px;
  padding: 18px;
  background: #0b1220;
}

.work-photo::before {
  background:
    linear-gradient(180deg, transparent 28%, rgba(3, 8, 15, 0.72)),
    linear-gradient(90deg, rgba(3, 8, 15, 0.12), transparent 52%);
}

.work-photo span {
  padding: 10px 13px;
  color: white;
  background: rgba(5, 10, 18, 0.72);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.work-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.featured-work .work-body {
  padding: 28px;
}

.work-kicker {
  margin: 0 0 8px;
  color: #667085 !important;
}

.work-body h3 {
  margin-bottom: 12px;
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.42;
}

.featured-work .work-body h3 {
  font-size: clamp(24px, 2.2vw, 32px);
}

.work-body p:not(.work-kicker) {
  color: #516070;
  font-weight: 800;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.work-tags span {
  padding: 6px 10px;
  color: #223047;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  background: #eef3f9;
  border: 1px solid #dce5ef;
  border-radius: 999px;
}

.works-cta {
  padding: 26px 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(6, 12, 22, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 22px 54px rgba(0, 0, 0, 0.2);
}

.works-cta p strong {
  color: white;
}

.works-cta .button.primary {
  color: #07101c;
  background: linear-gradient(135deg, #fff7b3, var(--gold) 58%, #c79522);
}

.flow-list {
  position: relative;
}

.flow-item {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.flow-item::before {
  background: linear-gradient(90deg, var(--gold), #111827);
}

.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 86% 18%, rgba(242, 207, 58, 0.16), transparent 24%),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 82px 82px, 82px 82px;
  opacity: 0.46;
  pointer-events: none;
}

.contact-section > * {
  position: relative;
  z-index: 1;
}

.contact-banner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.58fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: end;
}

.contact-banner h2 {
  white-space: normal;
}

.contact-banner p:last-child {
  margin: 0;
}

.contact-checklist {
  display: grid;
  gap: 10px;
  max-width: 560px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.contact-checklist li {
  position: relative;
  padding: 12px 14px 12px 34px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
}

.contact-checklist li::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 16px;
  width: 7px;
  height: 7px;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(242, 207, 58, 0.66);
}

.contact-form {
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

@media (max-width: 1040px) {
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-work {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .featured-work .work-photo {
    min-height: 330px;
  }

  .contact-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .works-section .section-head {
    margin-bottom: 28px;
  }

  .works-section .eyebrow {
    color: #7dcfff;
  }

  .works-section h2 {
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.36);
  }

  .works-lead {
    color: rgba(255, 255, 255, 0.82) !important;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-proof {
    margin-top: 22px;
  }

  .consult-strip,
  .works-grid {
    grid-template-columns: 1fr;
  }

  .consult-strip div {
    min-height: 0;
  }

  .featured-work .work-photo,
  .work-photo {
    min-height: 196px;
  }

  .work-card {
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
  }

  .works-cta {
    padding: 22px;
  }

  .back-to-top {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 632px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hero-actions .button {
    min-width: 0;
    min-height: 48px;
    padding: 12px 10px;
    font-size: 13px;
  }

  .consult-strip div,
  .work-body,
  .featured-work .work-body {
    padding: 20px;
  }

  .work-body h3,
  .featured-work .work-body h3 {
    font-size: 22px;
  }

  .mobile-cta-bar {
    right: 12px;
    bottom: 10px;
    left: 12px;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    background: rgba(5, 10, 18, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(14px);
    padding-bottom: 0;
  }

  .mobile-cta-bar a {
    min-height: 50px;
    font-size: 13px;
  }

  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0));
  }
}

/* --- Final contact balance: desktop left alignment, mobile stable line breaks --- */
.contact-banner {
  display: block;
  max-width: 1180px;
  margin: 0 auto 36px;
}

.contact-banner .eyebrow,
.contact-banner p:last-child {
  max-width: 820px;
}

.contact-banner h2 {
  max-width: 1080px;
}

.contact-banner h2 {
  margin-bottom: 18px;
  word-break: keep-all;
  overflow-wrap: normal;
}

.contact-banner p:last-child {
  margin: 0;
}

.contact-title-line {
  display: inline;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .contact-title-line {
    display: block;
  }
}

@media (max-width: 560px) {
  .contact-banner h2 {
    max-width: 360px;
    font-size: clamp(31px, 8.5vw, 36px);
    line-height: 1.34;
  }
}

/* --- Works image alignment --- */
.works-grid .work-photo,
.works-grid .featured-work .work-photo {
  height: 214px;
  min-height: 0;
}

.works-grid .work-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1040px) {
  .works-grid .work-photo,
  .works-grid .featured-work .work-photo {
    height: 240px;
  }
}

@media (max-width: 820px) {
  .works-grid .work-photo,
  .works-grid .featured-work .work-photo {
    height: 196px;
  }
}

/* --- Mobile company table balance --- */
@media (max-width: 820px) {
  .company-table tr {
    background: white;
  }

  .company-table th {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 12px 16px 8px;
  }

  .company-table td {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 14px 16px;
  }
}

/* --- Mobile hero spray composition --- */
@media (max-width: 820px) {
  .hero::before {
    background:
      linear-gradient(90deg, rgba(2, 6, 12, 0.9) 0%, rgba(2, 6, 12, 0.78) 54%, rgba(2, 6, 12, 0.42) 100%),
      linear-gradient(180deg, rgba(2, 6, 12, 0.16) 0%, rgba(2, 6, 12, 0.86) 100%),
      radial-gradient(circle at 58% 38%, rgba(0, 196, 255, 0.18), transparent 34%);
  }

  .hero-background-image {
    animation: none;
    opacity: 0.48;
    object-position: 58% center;
    transform: scale(1.18);
    transform-origin: 54% 44%;
  }
}

/* --- Final trust polish: works photos, reveal stability, message photo, brand CTA --- */
.works-grid .work-photo {
  isolation: isolate;
  background: #080d16;
}

.works-grid .work-photo img {
  z-index: 0;
  display: block;
  opacity: 1;
  visibility: visible;
  filter: saturate(1.05) contrast(1.04);
}

.works-grid .work-photo::before {
  z-index: 1;
  opacity: 0.92;
}

.works-grid .work-photo span {
  z-index: 2;
}

.works-grid .work-photo.black img {
  object-position: 50% 52%;
}

.works-grid .work-photo.silver img {
  object-position: 50% 56%;
}

.reveal-init {
  opacity: 0.82;
  transform: translate3d(0, 10px, 0) scale(0.996);
  transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.scope-card.reveal-init,
.work-card.reveal-init,
.flow-item.reveal-init {
  opacity: 0.86;
  transform: translate3d(0, 12px, 0) scale(0.994);
}

.reveal-init.is-visible,
.scope-card.reveal-init.is-visible,
.work-card.reveal-init.is-visible,
.flow-item.reveal-init.is-visible {
  opacity: 1;
  transform: none;
}

.contact-form .button.primary {
  color: #07101c;
  background: linear-gradient(135deg, #fff7b3, var(--gold) 58%, #c79522);
  box-shadow: 0 18px 38px rgba(242, 207, 58, 0.24);
}

.contact-form .button.primary:hover {
  filter: brightness(1.02);
  box-shadow: 0 22px 46px rgba(242, 207, 58, 0.3);
}

.service-section,
.works-section,
.flow-section,
.message-section {
  padding-bottom: clamp(58px, 6vw, 82px);
}

.section-tinted {
  padding-top: clamp(66px, 7vw, 92px);
  padding-bottom: clamp(66px, 7vw, 92px);
}

@media (max-width: 820px) {
  .service-section,
  .works-section,
  .flow-section,
  .message-section,
  .section-tinted {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

/* --- Industrial work photo composition --- */
.works-grid .work-photo.blue img {
  object-fit: contain;
  object-position: center center;
  transform: none;
  transform-origin: center center;
}

.works-grid .work-card:hover .work-photo.blue img {
  filter: saturate(1.08) contrast(1.04);
  transform: none;
}

/* --- Representative message width guard --- */
.message-section .message-layout {
  display: block;
  width: min(760px, calc(100% - 48px));
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.message-section .message-copy {
  width: 100%;
  max-width: none;
}

.message-section .message-copy h2 {
  word-break: keep-all;
  overflow-wrap: normal;
}

@media (max-width: 560px) {
  .message-section .message-layout {
    width: min(100% - 32px, 760px);
  }
}

/* --- Contact section composition: shared column start for copy and form --- */
.contact-section .contact-layout {
  grid-template-columns: minmax(360px, 1fr) minmax(500px, 1.14fr);
  gap: clamp(42px, 5.4vw, 72px);
}

.contact-section .contact-copy {
  padding-top: 0;
}

.contact-copy .contact-banner {
  max-width: none;
  margin: 0 0 40px;
}

.contact-copy .contact-banner h2 {
  max-width: 520px;
  margin-bottom: 18px;
  font-size: clamp(36px, 3.1vw, 46px);
  line-height: 1.22;
  white-space: normal;
}

.contact-copy .contact-title-line {
  display: block;
}

.contact-copy-detail {
  max-width: 560px;
}

.contact-copy-detail .eyebrow {
  margin-bottom: 12px;
}

.contact-copy-detail h3 {
  margin-bottom: 16px;
  font-size: clamp(28px, 2.5vw, 36px);
}

.contact-section .contact-form {
  max-width: 590px;
  justify-self: stretch;
  padding: 30px;
}

@media (max-width: 1040px) {
  .contact-section .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-section .contact-form {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .contact-copy .contact-banner {
    margin-bottom: 32px;
  }

  .contact-copy .contact-banner h2 {
    font-size: clamp(31px, 8.5vw, 36px);
    line-height: 1.34;
  }
}

/* --- Contact section: title above a single form column --- */
.contact-section .contact-layout.contact-layout--single {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  gap: clamp(28px, 4vw, 44px);
}

.contact-layout--single .contact-banner {
  max-width: 760px;
  margin: 0;
}

.contact-layout--single .contact-banner h2 {
  max-width: none;
  font-size: clamp(34px, 3.15vw, 46px);
  line-height: 1.24;
}

.contact-layout--single .contact-title-line {
  display: inline;
}

.contact-layout--single .contact-form {
  width: 100%;
  max-width: 760px;
  justify-self: stretch;
  padding: clamp(24px, 3vw, 34px);
}

@media (max-width: 1040px) {
  .contact-section .contact-layout.contact-layout--single {
    grid-template-columns: minmax(0, 680px);
  }
}

@media (max-width: 560px) {
  .contact-section .contact-layout.contact-layout--single {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-layout--single .contact-title-line {
    display: block;
  }

  .contact-layout--single .contact-banner h2 {
    font-size: clamp(31px, 8.5vw, 36px);
    line-height: 1.34;
  }
}

/* --- Footer responsive composition --- */
@media (max-width: 1040px) {
  .footer-inner {
    gap: 34px;
  }

  .footer-contact {
    width: min(100%, 420px);
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .footer-inner {
    gap: 30px;
    padding-top: 46px;
  }

  .footer-brand {
    padding-left: 14px;
  }

  .footer-brand > strong {
    font-size: 24px;
  }

  .footer-links nav {
    gap: 12px 18px;
  }

  .footer-contact {
    width: 100%;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
    padding-bottom: 94px;
  }
}

/* --- Hero composition: balance copy with the spray work --- */
@media (min-width: 821px) {
  .hero {
    min-height: calc(100vh - 113px);
    min-height: calc(100svh - 113px);
  }

  .hero-content {
    max-width: 1180px;
    min-height: calc(100vh - 113px);
    min-height: calc(100svh - 113px);
    padding-bottom: 104px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero h1 {
    max-width: 760px;
    margin-bottom: 22px;
    font-size: clamp(58px, 6.05vw, 94px);
  }

  .hero .lead {
    max-width: 590px;
    margin-bottom: 18px;
  }

  .hero-proof {
    width: min(100%, 630px);
    margin-top: 28px;
  }

  .hero-proof span {
    min-height: 54px;
    padding: 11px 13px 11px 25px;
    font-size: 12px;
  }

  .hero-proof span::before {
    left: 12px;
  }

  .hero-background-image {
    transform: scale(1.09) translate3d(-5%, 1%, 0);
    transform-origin: 78% 48%;
    animation-name: heroDesktopImageDrift;
  }

  .hero::after {
    height: 112px;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: calc(100vh - 70px);
    min-height: calc(100svh - 70px);
  }

  .hero-content {
    min-height: calc(100vh - 70px);
    min-height: calc(100svh - 70px);
    padding-bottom: 94px;
  }
}

@keyframes heroDesktopImageDrift {
  from {
    transform: scale(1.09) translate3d(-5%, 1%, 0);
  }
  to {
    transform: scale(1.12) translate3d(-5.8%, 1.6%, 0);
  }
}

/* --- Standalone 404 page --- */
.not-found-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  color: #f8fafc;
  background: #070d18;
}

.not-found-panel {
  width: min(100%, 620px);
  padding: clamp(32px, 6vw, 64px);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #111827;
}

.not-found-panel h1 {
  margin: 10px 0 16px;
  color: #fff;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.3;
}

.not-found-panel > p:not(.eyebrow) {
  margin: 0 0 28px;
  color: #cbd5e1;
  line-height: 1.9;
}
