/* Premium Painting — one-page site, v2. Plain CSS, no build step. */
:root {
  --navy: #1C2B54;
  --navy-deep: #131D3B;
  --burgundy: #7A2233;
  --burgundy-dark: #651A29;
  --ivory: #FAF8F5;      /* page: a hair off white */
  --linen: #F1EDE5;      /* quiet bands */
  --rule: #DCD6CA;
  --ink: #1B2136;
  --slate: #586176;
  --serif: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --sans: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --section: clamp(72px, 10vw, 144px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, fieldset, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; font-variant-numeric: lining-nums; text-wrap: balance; }
h2 { font-size: clamp(2.4rem, 1.5rem + 3vw, 3.75rem); line-height: 1.04; letter-spacing: -0.012em; color: var(--navy); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ivory); color: var(--navy); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.hero :focus-visible, .estimate__copy :focus-visible, .foot :focus-visible, .plain :focus-visible { outline-color: #fff; }

/* Small spaced capitals: the wordmark's own register, used for navigation and buttons only */
.btn, .top__nav a, .top__call {
  font: 500 .84rem/1 var(--sans); letter-spacing: .075em; text-transform: uppercase; text-decoration: none;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 30px; white-space: nowrap;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn--burgundy { background: var(--burgundy); color: #fff; }
.btn--burgundy:hover { background: var(--burgundy-dark); }
.btn--line { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--line:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(250, 248, 245, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 transparent; transition: box-shadow .4s ease; }
.top.is-stuck { box-shadow: 0 1px 0 var(--rule); }
.top__in { display: flex; align-items: center; gap: 36px; min-height: 84px; }
.top__logo { display: block; padding-block: 12px; }
.top__logo img { width: clamp(236px, 27vw, 350px); }
.top__nav { display: flex; gap: 30px; margin-left: auto; }
.top__nav a { position: relative; color: var(--navy); padding: 10px 0; }
.top__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--burgundy); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.top__nav a:hover::after, .top__nav a:focus-visible::after { transform: scaleX(1); }
.top__call { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; color: var(--navy); border: 1px solid var(--navy); border-radius: 2px; letter-spacing: .06em; transition: background-color .2s ease, color .2s ease; }
.top__call:hover { background: var(--navy); color: #fff; }
.top__call-short { display: none; }

/* Hero: the lake, framed on the ivory page */
.hero { padding-inline: clamp(10px, 1.6vw, 24px); }
.hero__frame {
  position: relative; overflow: hidden; border-radius: 4px; isolation: isolate;
  min-height: min(760px, calc(100svh - 108px)); display: flex; align-items: flex-end;
  background: var(--navy);
}
.hero__img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; object-position: 50% 62%; z-index: -2; will-change: translate; }
.hero__frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(19, 29, 59, .9) 0%, rgba(19, 29, 59, .74) 34%, rgba(19, 29, 59, .2) 68%, rgba(19, 29, 59, 0) 100%),
    linear-gradient(0deg, rgba(19, 29, 59, .55) 0%, rgba(19, 29, 59, 0) 45%);
}
.hero__copy {
  width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto;
  padding: clamp(56px, 9vw, 120px) calc(var(--gutter) - clamp(10px, 1.6vw, 24px)) clamp(48px, 7vw, 96px);
  color: #fff;
}
.hero__kicker { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(18px, 2.4vw, 30px); font: 500 .84rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .9); }
.hero__kicker::before { content: ""; width: 56px; height: 1px; background: rgba(255, 255, 255, .75); transform-origin: left; }
/* One line at every width: the quoted tagline is 10.2em wide and the opening mark hangs in the margin. */
.hero__copy { container-type: inline-size; }
.hero h1 { font-size: 7.7vw; font-size: min(9.7cqw, 6.5rem); line-height: 1; letter-spacing: -0.02em; text-wrap: nowrap; }
.hero h1 .ln { display: block; overflow: hidden; padding: .06em .08em .16em 0; margin: 0 0 -.16em max(-.33em, -16px); }
.hero h1 .ln > span { display: block; }
.hero__lede { margin-top: 28px; max-width: 30em; font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: #E4E8F2; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__place { position: absolute; right: clamp(18px, 3vw, 40px); bottom: clamp(16px, 2.4vw, 30px); font: italic 500 1.15rem/1 var(--serif); color: rgba(255,255,255,.92); text-shadow: 0 1px 12px rgba(10, 16, 36, .6); }

/* Three facts */
.facts__in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: clamp(40px, 5.5vw, 72px); }
.facts li { display: flex; align-items: baseline; gap: 22px; padding-inline: clamp(16px, 3vw, 44px); border-left: 1px solid var(--rule); }
.facts li:first-child { padding-left: 0; border-left: 0; }
.facts li:last-child { padding-right: 0; }
.facts__fig { flex: none; font: 600 clamp(2.6rem, 1.8rem + 2.4vw, 3.9rem)/.9 var(--serif); font-variant-numeric: lining-nums; color: var(--burgundy); letter-spacing: -0.01em; }
.facts__cap { color: var(--slate); font-size: .98rem; line-height: 1.5; max-width: 17em; }

/* Services */
.services { padding-block: var(--section); border-top: 1px solid var(--rule); }
.services__in { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 7vw, 110px); align-items: start; }
.services__head { position: sticky; top: 124px; }
.services__head p { margin-top: 24px; color: var(--slate); max-width: 25em; }
.svc li { position: relative; display: grid; grid-template-columns: minmax(0, 15.5rem) minmax(0, 1fr); column-gap: 28px; align-items: baseline; padding: 28px 0; }
.svc li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule); transform-origin: left; }
.svc li:last-child { border-bottom: 1px solid var(--rule); }
.svc h3 { font-size: 1.85rem; line-height: 1.1; color: var(--navy); }
.svc p { color: var(--slate); }

/* The plain statement */
.plain { background: var(--navy); color: #fff; padding-block: clamp(64px, 9vw, 128px); }
.plain p { max-width: 21em; margin-inline: auto; text-align: center; font: italic 500 clamp(1.7rem, 1.1rem + 2.3vw, 2.9rem)/1.22 var(--serif); text-wrap: balance; }
.plain p::before { content: ""; display: block; width: 56px; height: 2px; background: #B4566A; margin: 0 auto clamp(26px, 3vw, 40px); }

/* Process */
.process { background: var(--linen); padding-block: var(--section); }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 34px; margin-top: clamp(40px, 5vw, 68px); }
.steps li { position: relative; counter-increment: step; padding-top: 23px; }
.steps li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--navy); transform-origin: left; }
.steps li::before { content: counter(step); display: block; font: 600 3.1rem/.9 var(--serif); font-variant-numeric: lining-nums; color: var(--burgundy); margin-bottom: 18px; }
.steps h3 { font-size: 1.45rem; line-height: 1.15; color: var(--navy); }
.steps p { margin-top: 10px; font-size: .98rem; color: #4A5166; }

/* About */
.about { padding-block: var(--section); }
.about__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 110px); align-items: center; }
.about__photo { overflow: hidden; border-radius: 4px; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.about__story p { margin-top: 22px; max-width: 35em; }
.creds { margin-top: 38px; max-width: 35em; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.creds li { text-wrap: balance; padding: 14px 0; border-top: 1px solid var(--rule); font-size: .98rem; color: var(--navy); }

/* Estimate */
.estimate { background: var(--navy); color: #fff; padding-block: var(--section); }
.estimate__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 110px); align-items: start; }
.estimate h2 { color: #fff; }
.estimate__copy > p { margin-top: 20px; color: #DDE2EE; }
.estimate__copy .estimate__or { margin-top: 44px; }
.estimate__phone { display: inline-block; margin-top: 2px; font: 600 clamp(2.3rem, 1.7rem + 1.9vw, 3.2rem)/1.1 var(--serif); font-variant-numeric: lining-nums; text-decoration: none; }
.estimate__phone:hover, .estimate__mail:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.estimate__mail { display: block; margin-top: 2px; padding-block: 9px; color: #DDE2EE; text-decoration: none; width: fit-content; }
.estimate__copy .estimate__area { margin-top: 30px; font-size: .95rem; color: #B7C0D8; }

.form { background: var(--ivory); color: var(--ink); border-radius: 4px; padding: clamp(24px, 3.4vw, 44px); }
.form__row { margin-bottom: 22px; }
.form__row--half { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label, .form legend { display: block; font-weight: 500; font-size: .95rem; margin-bottom: 8px; color: var(--navy); }
.form__opt { font-weight: 400; color: var(--slate); }
.form input[type="text"], .form input[type="tel"], .form textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 13px 15px; border: 1px solid #B8B7B2; border-radius: 2px; background: #fff;
}
.form textarea { resize: vertical; min-height: 116px; }
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.form [aria-invalid="true"] { border-color: var(--burgundy); background: #FBF3F4; }
.form__checks { border: 0; margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.form__checks legend { width: 100%; }
.form__checks label { position: relative; margin: 0; font-weight: 400; cursor: pointer; }
.form__checks input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.form__checks span { display: block; padding: 10px 18px; border: 1px solid #B8B7B2; border-radius: 2px; background: #fff; color: var(--ink); transition: background-color .15s ease, color .15s ease; }
.form__checks input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.form__checks input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__send[disabled] { opacity: .65; cursor: progress; }
.form__msg { font-size: .95rem; color: var(--burgundy); font-weight: 500; }
.form__msg:not(:empty) { margin-bottom: 18px; }
.form__msg.is-ok { color: var(--navy); }
.form__send { width: 100%; min-height: 58px; }

/* Footer */
.foot { background: var(--navy-deep); color: #C7CEE1; padding-block: 72px 44px; text-align: center; font-size: .95rem; }
.foot__logo { width: 230px; margin-inline: auto; }
.foot__tag { margin-top: 22px; font: italic 500 1.55rem/1.2 var(--serif); color: #fff; }
.foot__line { margin-top: 22px; }
.foot__contact { margin-top: 2px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; }
.foot__contact a { display: inline-block; padding-block: 9px; color: #fff; text-decoration: none; }
.foot__contact a:hover { text-decoration: underline; text-underline-offset: 5px; }
.foot__legal { margin-top: 34px; font-size: .85rem; color: #98A2BE; }
.foot__credit { margin-top: 8px; font-size: .78rem; color: #7D88A6; }
.foot__credit a { color: inherit; }

/* Phone quick-contact bar */
.bar { display: none; }

/* Tablet */
@media (max-width: 1040px) {
  .top__nav { display: none; }
  .top__call { margin-left: auto; }
  .services__in, .about__in, .estimate__in { grid-template-columns: 1fr; }
  .services__head { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 34px; }
  .about__photo img { aspect-ratio: 16 / 10; }
}

@media (max-width: 860px) {
  .facts__in { grid-template-columns: 1fr; padding-block: 12px; }
  .facts li, .facts li:first-child, .facts li:last-child {
    display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); column-gap: 18px; align-items: center;
    padding: 22px 0; border-left: 0; border-top: 1px solid var(--rule);
  }
  .facts li:first-child { border-top: 0; }
  .facts__fig { font-size: 2.75rem; line-height: 1; }
  .facts__cap { max-width: none; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .foot { padding-bottom: calc(44px + 68px + env(safe-area-inset-bottom)); }
  .top__in { min-height: 64px; gap: 12px; }
  .top__logo img { width: min(226px, 58vw); }
  .top__call-long { display: none; }
  .top__call-short { display: inline; }
  .hero__frame { min-height: calc(100svh - 150px); }
  .hero__frame::before { background: linear-gradient(0deg, rgba(19, 29, 59, .94) 0%, rgba(19, 29, 59, .8) 48%, rgba(19, 29, 59, .15) 86%, rgba(19, 29, 59, 0) 100%); }
  .hero__img { object-position: 62% 40%; }
  .hero__copy { padding: 150px 22px 34px; }
  .hero__actions .btn { width: 100%; }
  .hero__place { top: 16px; bottom: auto; right: 18px; }
  .svc li { grid-template-columns: 1fr; row-gap: 8px; padding: 24px 0; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); column-gap: 10px; padding: 24px 0 26px; }
  .steps li::before { grid-row: 1 / span 2; margin: -2px 0 0; font-size: 2.75rem; line-height: 1; }
  .steps h3, .steps p { grid-column: 2; }
  .steps h3 { align-self: end; }
  .creds { grid-template-columns: 1fr; }
  .form__row--half { grid-template-columns: 1fr; }
  .bar {
    display: grid; grid-template-columns: 1fr 1.7fr; gap: 10px;
    position: fixed; inset: auto 0 0 0; z-index: 30;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    background: var(--ivory); border-top: 1px solid var(--rule);
  }
  .bar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 2px; font: 500 .8rem/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; }
  .bar__call { border: 1px solid var(--navy); color: var(--navy); }
  .bar__est { background: var(--burgundy); color: #fff; }
}

/* ---------- Motion ---------- */
/* Everything is visible without it. Scroll reveals only apply to elements the script has marked
   (.rv), and nothing here runs for people who ask their device for less motion. */
@media (prefers-reduced-motion: no-preference) {
  /* Opening: the lake settles, then the words arrive */
  .top { animation: pp-fade 1s ease both; }
  .hero__img { animation: pp-settle 2.6s cubic-bezier(.16, .7, .2, 1) both; }
  .hero__kicker { animation: pp-fade 1.2s ease .25s both; }
  .hero__kicker::before { animation: pp-draw 1.1s cubic-bezier(.2, .7, .2, 1) .25s both; }
  .hero h1 .ln > span { animation: pp-lift 1.25s cubic-bezier(.16, .8, .2, 1) .4s both; }
  @keyframes pp-lift { from { transform: translateY(112%); } to { transform: none; } }
  @keyframes pp-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .hero__lede { animation: pp-rise 1.2s cubic-bezier(.2, .7, .2, 1) .85s both; }
  .hero__actions { animation: pp-rise 1.2s cubic-bezier(.2, .7, .2, 1) 1s both; }
  .hero__place { animation: pp-fade 1.6s ease 1.3s both; }
  @keyframes pp-settle { from { opacity: 0; scale: 1.09; } to { opacity: 1; scale: 1; } }
  @keyframes pp-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  @keyframes pp-fade { from { opacity: 0; } to { opacity: 1; } }

  /* On scroll: a slow rise, staggered through lists */
  .rv { transition: opacity 1s ease var(--d, 0s), transform 1.1s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
  .rv:not(.is-in) { opacity: 0; transform: translateY(24px); }

  /* The hairlines draw themselves */
  .svc li.rv::before, .steps li.rv::after { transition: transform 1.3s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
  .svc li.rv:not(.is-in)::before, .steps li.rv:not(.is-in)::after { transform: scaleX(0); }
  .plain p.rv::before { transition: width 1.1s cubic-bezier(.2, .7, .2, 1) .2s; }
  .plain p.rv:not(.is-in)::before { width: 0; }

  /* The second photograph opens like a blind. The clip sits on the image, not the figure,
     so the figure itself can still be seen entering the view. */
  .about__photo.rv, .about__photo.rv:not(.is-in) { opacity: 1; transform: none; }
  .about__photo.rv img { clip-path: inset(0 0 0 0); transition: clip-path 1.5s cubic-bezier(.2, .7, .2, 1), scale 2s cubic-bezier(.2, .7, .2, 1); }
  .about__photo.rv:not(.is-in) img { clip-path: inset(0 0 100% 0); scale: 1.1; }

  .btn--burgundy { transition: background-color .25s ease, translate .25s ease; }
  .btn--burgundy:hover { translate: 0 -1px; }
}
