:root {
  --ink: #16181a;
  --ink-2: #24272a;
  --paper: #f4f1eb;
  --white: #ffffff;
  --muted: #60656a;
  --line: #d9d4cb;
  --orange: #f36c21;
  --orange-deep: #c84a0c;
  --orange-soft: #ffe3d1;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); padding: 10px 14px; }
.skip-link:focus { top: 12px; }
.topline { background: var(--ink); color: #d9dde0; font-size: 13px; letter-spacing: .01em; }
.topline .container { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topline a { color: var(--white); text-decoration: none; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; background: var(--orange); color: var(--white); font-weight: 900; letter-spacing: -.08em; font-size: 20px; }
.brand-copy strong, .brand-copy span { display: block; }
.brand-copy strong { font-size: 17px; line-height: 1.15; }
.brand-copy span { color: var(--muted); font-size: 12px; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 700; }
.nav-links a { text-decoration: none; }
.nav-links a:not(.button):hover { color: var(--orange-deep); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 2px solid var(--orange); background: var(--orange); color: var(--white); text-decoration: none; font-weight: 800; letter-spacing: .01em; transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease; }
.button:hover { background: var(--orange-deep); border-color: var(--orange-deep); transform: translateY(-1px); }
.button.dark { background: var(--ink); border-color: var(--ink); }
.button.dark:hover { background: #000; border-color: #000; }
.button.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.button.outline:hover { background: var(--ink); color: var(--white); }
.button.light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.72); }
.button.light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { color: var(--orange-deep); font-weight: 800; text-underline-offset: 4px; }

.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,20,22,.98) 0%, rgba(18,20,22,.92) 49%, rgba(18,20,22,.48) 100%), url("assets/exterior-house.jpg") 82% 50%/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 6px; background: linear-gradient(90deg, var(--orange) 0 38%, transparent 38%); }
.hero .container { position: relative; min-height: 650px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .55fr); gap: 70px; align-items: center; padding-block: 78px; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 17px; color: var(--orange-deep); font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 36px; height: 3px; background: currentColor; }
.hero .eyebrow { color: #ffad7c; }
h1, h2, h3 { margin-top: 0; text-wrap: balance; }
h1 { max-width: 820px; margin-bottom: 24px; font-size: clamp(43px, 6vw, 72px); line-height: .99; letter-spacing: -.045em; }
.hero-copy > p { max-width: 720px; margin: 0 0 30px; color: #d9dde0; font-size: clamp(18px, 2vw, 21px); }
.hero-note { margin-top: 22px; color: #b8bec3; font-size: 13px; }
.hero-card { align-self: end; margin-bottom: 22px; padding: 28px; border-top: 5px solid var(--orange); background: rgba(255,255,255,.95); color: var(--ink); box-shadow: 0 24px 65px rgba(0,0,0,.26); }
.hero-card small { color: var(--orange-deep); font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero-card h2 { margin: 10px 0 16px; font-size: 24px; line-height: 1.15; }
.hero-card ul { list-style: none; padding: 0; margin: 0; }
.hero-card li { padding: 10px 0; border-top: 1px solid var(--line); font-weight: 700; }

.proof-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { min-height: 112px; padding: 25px 22px; border-left: 1px solid var(--line); }
.proof-item:last-child { border-right: 1px solid var(--line); }
.proof-item strong { display: block; margin-bottom: 4px; font-size: 16px; }
.proof-item span { color: var(--muted); font-size: 13px; }

section { padding: 92px 0; }
.section-heading { max-width: 820px; margin-bottom: 38px; }
.section-heading h2 { margin-bottom: 14px; font-size: clamp(34px, 4.5vw, 54px); line-height: 1.04; letter-spacing: -.035em; }
.section-heading p { max-width: 720px; margin: 0; color: var(--muted); font-size: 18px; }
.section-heading.inverse p { color: #c7ccd0; }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { min-height: 240px; padding: 34px; background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-num { color: var(--orange-deep); font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.service h3 { margin: 34px 0 10px; font-size: 25px; }
.service p { max-width: 500px; margin: 0; color: var(--muted); }

.dark-section { background: var(--ink); color: var(--white); }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #3c4043; border: 1px solid #3c4043; }
.step { min-height: 260px; padding: 30px 26px; background: var(--ink-2); }
.step b { color: #ffad7c; font-size: 13px; letter-spacing: .14em; }
.step h3 { margin: 34px 0 10px; font-size: 21px; }
.step p { margin: 0; color: #bfc5ca; font-size: 15px; }

.market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.market { position: relative; min-height: 390px; padding: 38px; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.market::after { content: ""; position: absolute; right: -56px; bottom: -56px; width: 150px; height: 150px; border: 30px solid var(--orange-soft); transform: rotate(12deg); }
.market .status { display: inline-flex; padding: 7px 10px; background: var(--orange-soft); color: #8b360e; font-size: 11px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.market h3 { margin: 36px 0 13px; font-size: 32px; line-height: 1.08; }
.market p { max-width: 500px; color: var(--muted); }
.market ul { padding-left: 19px; margin: 24px 0 0; }
.market li { margin: 8px 0; }
.market .text-link { position: relative; z-index: 2; display: inline-block; margin-top: 18px; }

.work-grid { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: 280px 280px; gap: 14px; }
.project-photo { position: relative; margin: 0; overflow: hidden; background: #ddd; }
.project-photo:first-child { grid-row: span 2; }
.project-photo img { height: 100%; object-fit: cover; transition: transform .35s ease; }
.project-photo:hover img { transform: scale(1.025); }
.project-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 22px 18px; color: var(--white); font-weight: 800; background: linear-gradient(transparent, rgba(0,0,0,.78)); }

.partner-banner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; padding: 52px; background: var(--orange); color: var(--white); }
.partner-banner h2 { margin: 0 0 12px; font-size: clamp(32px, 4vw, 48px); line-height: 1.04; }
.partner-banner p { margin: 0; color: #fff5ee; font-size: 18px; }
.partner-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }

.contact { background: var(--white); }
.contact-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: start; }
.contact h2 { margin-bottom: 18px; font-size: clamp(36px, 5vw, 58px); line-height: 1.02; letter-spacing: -.04em; }
.contact .lead { max-width: 680px; margin: 0 0 28px; color: var(--muted); font-size: 19px; }
.contact-card { padding: 32px; background: var(--paper); border-top: 5px solid var(--ink); }
.contact-card h3 { margin-bottom: 20px; }
.contact-line { padding: 14px 0; border-top: 1px solid var(--line); }
.contact-line small { display: block; color: var(--muted); margin-bottom: 2px; }
.contact-line a { font-weight: 800; text-decoration: none; }

.subhero { background: var(--ink); color: var(--white); }
.subhero .container { padding-block: 92px; }
.subhero h1 { max-width: 900px; }
.subhero p { max-width: 760px; color: #c8cdd1; font-size: 20px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plain-panel { padding: 34px; background: var(--white); border: 1px solid var(--line); }
.plain-panel h2 { font-size: 30px; }
.plain-panel ul { padding-left: 20px; }
.plain-panel li { margin: 10px 0; }
.qualification-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.qualification { padding: 28px; background: var(--white); border-top: 4px solid var(--orange); }
.qualification h3 { font-size: 20px; }
.qualification p { color: var(--muted); }
.legal-note { color: var(--muted); font-size: 13px; }

footer { background: #0e0f10; color: #aeb4b9; padding: 38px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; align-items: start; }
footer strong { color: var(--white); }
footer a { color: #dce0e3; text-decoration: none; }
footer p { margin: 7px 0; font-size: 13px; }
.copyright { margin-top: 30px; padding-top: 20px; border-top: 1px solid #303336; font-size: 12px; }

@media (max-width: 900px) {
  .nav-links a:not(.button) { display: none; }
  .hero .container { min-height: auto; grid-template-columns: 1fr; gap: 40px; }
  .hero-card { align-self: auto; max-width: 520px; margin: 0; }
  .proof-grid, .process { grid-template-columns: repeat(2, 1fr); }
  .market-grid, .contact-layout, .partner-banner, .split { grid-template-columns: 1fr; }
  .qualification-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--max)); }
  .topline .container { padding-block: 9px; align-items: flex-start; flex-direction: column; gap: 2px; }
  .topline .email { display: none; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy span { display: none; }
  .nav { min-height: 68px; }
  .nav-links { gap: 0; }
  .nav-links .button { min-height: 42px; padding-inline: 13px; font-size: 13px; }
  .hero::before { background: linear-gradient(rgba(18,20,22,.9), rgba(18,20,22,.97)), url("assets/exterior-house.jpg") 67% 50%/cover no-repeat; }
  .hero .container { padding-block: 64px; }
  h1 { font-size: clamp(40px, 13vw, 56px); }
  .hero-card { padding: 23px; }
  section { padding: 68px 0; }
  .proof-grid, .service-grid, .process, .qualification-grid { grid-template-columns: 1fr; }
  .proof-item { border-right: 1px solid var(--line); }
  .service { min-height: 0; }
  .market { min-height: 0; padding: 30px 24px; }
  .work-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 300px); }
  .project-photo:first-child { grid-row: auto; }
  .partner-banner { padding: 34px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
