/* NH Decorators: claret and brush ochre, Fraunces with Figtree.
   One idea runs through every page: a single brush stroke. */

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

:root {
  /* Brand palette */
  --primary:      #4b1d28;  /* lacquer claret, the dominant colour */
  --primary-mid:  #6e2c3b;
  --primary-dark: #2f1018;
  --accent:       #e2a630;  /* brush ochre, the one sharp accent */
  --accent-mid:   #f0c56a;
  --accent-deep:  #c4871a;

  /* Neutrals */
  --bg:         #fdfbfa;
  --surface:    #ffffff;
  --border:     #e6dcd9;
  --text:       #241417;
  --text-soft:  #5b474b;
  --text-muted: #6f5f63;
  --on-dark:      #fbf1ee;
  --on-dark-soft: #ead8d3;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Figtree', system-ui, sans-serif;

  /* Spacing */
  --section-pad: clamp(60px, 8vw, 120px);
  --container:   1200px;
  --radius:      3px;
  --radius-lg:   6px;
  --bleed: max(var(--gutter), (100vw - var(--container)) / 2);

  /* base.css hooks */
  --color-bg: var(--bg);
  --color-surface: var(--surface);
  --color-text: var(--text);
  --color-muted: var(--text-soft);
  --color-accent: var(--primary);
  --color-accent-text: #ffffff;
  --color-line: var(--border);
  --focus: #1f5fbf;

  /* Brush marks, used as small details */
  --daub: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120' preserveAspectRatio='none'%3E%3Cfilter id='f' filterUnits='userSpaceOnUse' x='-20' y='-40' width='440' height='200'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.015 0.3' numOctaves='3' seed='5' result='n'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='n' scale='16' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Cpath d='M38 66 C 120 50, 250 76, 362 54' fill='none' stroke='%23e2a630' stroke-width='62' stroke-linecap='round' filter='url(%23f)'/%3E%3C/svg%3E");
  --daub-claret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120' preserveAspectRatio='none'%3E%3Cfilter id='f' filterUnits='userSpaceOnUse' x='-20' y='-40' width='440' height='200'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.015 0.3' numOctaves='3' seed='11' result='n'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='n' scale='18' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Cpath d='M30 60 C 130 72, 250 48, 370 62' fill='none' stroke='%236e2c3b' stroke-width='70' stroke-linecap='round' filter='url(%23f)'/%3E%3C/svg%3E");
  --stroke-small: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 14' preserveAspectRatio='none'%3E%3Cpath d='M3 8 C 30 4, 62 11, 97 6' fill='none' stroke='%23e2a630' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E");
}

[hidden] { display: none !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 450;
  line-height: 1.15;
  letter-spacing: 0;
  text-wrap: balance;
}
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); font-weight: 500; }
p { color: var(--text-soft); }
.lede { font-size: var(--step-1); line-height: 1.6; color: var(--text); }

.text-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.2s;
}
.text-link:hover { text-decoration-color: var(--primary); }

a.email[href^="mailto:"] { overflow-wrap: normal; word-break: normal; max-width: 100%; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.section { padding-block: var(--section-pad); }

/* Buttons */
.btn {
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--primary-dark); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #ffffff; }
.btn-accent { background: var(--accent); color: var(--primary-dark); }
.btn-accent:hover { background: var(--accent-mid); color: var(--primary-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #fdfbfa;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--primary);
  text-decoration: none;
}
.wordmark::before {
  content: "";
  width: 1.9rem;
  height: 0.85rem;
  background: var(--daub) center / 100% 100% no-repeat;
  flex: none;
}
.wordmark:hover { color: var(--primary-mid); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.nav-toggle:hover { border-color: var(--primary); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s, background-color 0.2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav-list { list-style: none; }
.nav-list a {
  display: inline-block;
  padding: 0.8rem 0;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav-list a:hover { color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.nav-list a[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
  background: var(--stroke-small) left bottom 0.45rem / 100% 0.55em no-repeat;
}
.nav-list a[aria-current="page"]:hover { text-decoration: none; }

/* Brush stroke titles: the signature */
.title-wrap {
  position: relative;
  isolation: isolate;
  --title-size: clamp(2.85rem, 1.45rem + 6vw, 6.4rem);
}
.paint-title {
  position: relative;
  z-index: 1;
  font-size: var(--title-size);
  font-weight: 400;
  line-height: 1.15;
  font-variation-settings: "opsz" 144;
  padding-bottom: 0.08em;
}
.paint-stroke {
  position: absolute;
  z-index: 0;
  left: calc(-1 * var(--bleed));
  width: calc(100% + 2 * var(--bleed));
  max-width: none;
  bottom: calc(-0.2 * var(--title-size));
  height: calc(1.9 * var(--title-size));
  overflow: visible;
  pointer-events: none;
}
.paint-stroke path { fill: none; stroke-dasharray: 1 1.2; stroke-dashoffset: 0; }
.paint-stroke .stroke-main { stroke: var(--accent); stroke-width: 118; stroke-linecap: round; }
.paint-stroke .streak { stroke-linecap: round; }
.paint-stroke .streak-1 { stroke: var(--accent-mid); stroke-width: 10; opacity: 0.85; }
.paint-stroke .streak-2 { stroke: var(--accent-mid); stroke-width: 6; opacity: 0.8; }
.paint-stroke .streak-3 { stroke: var(--accent-deep); stroke-width: 5; opacity: 0.7; }
.paint-stroke .streak-4 { stroke: var(--accent-deep); stroke-width: 4; opacity: 0.6; }

/* Hero */
.hero { padding-block: clamp(2.25rem, 5vw, 4.5rem) var(--section-pad); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
.hero-aside { border-top: 1px solid var(--border); padding-top: 1.25rem; max-width: 34rem; }
.hero-aside p { font-size: var(--step-1); line-height: 1.6; color: var(--text); margin-bottom: 1.5rem; }
.hero-figure img { width: 100%; aspect-ratio: 16 / 10; border-radius: 2px; }
.areas-label { font-size: var(--step--1); font-weight: 600; color: var(--text-muted); margin-bottom: 0.25rem; }
.hero-areas ul { list-style: none; border-top: 1px solid var(--primary); }
.hero-areas li {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.3;
  color: var(--primary);
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--border);
}

/* Painted frames: a brush mark swept under each picture */
.painted-frame {
  position: relative;
  isolation: isolate;
  padding: 0 0 1.4rem 1.2rem;
  margin-bottom: 0.5rem;
}
.painted-frame::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.4rem;
  bottom: -0.2rem;
  width: 62%;
  height: 3.2rem;
  background: var(--daub) center / 100% 100% no-repeat;
}
.painted-frame--right { padding: 0 1.2rem 1.4rem 0; }
.painted-frame--right::before { left: auto; right: -0.4rem; }
.painted-frame img, .painted-frame .ph { display: block; width: 100%; border-radius: 2px; }

/* Brush rule divider */
.brush-rule { display: block; margin-bottom: 1.5rem; line-height: 0; }
.brush-rule svg { width: min(100%, 13rem); max-width: none; height: 0.9rem; overflow: visible; }
.brush-rule path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 15;
  stroke-linecap: round;
  stroke-dasharray: 1 1.2;
  stroke-dashoffset: 0;
  filter: url(#rough);
}

/* Home: what NH Decorators does */
.offer-grid { display: grid; gap: 2.5rem; }
.offer-intro p { margin-top: 1rem; }
.offer-list { list-style: none; border-top: 1px solid var(--primary); }
.offer-list li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  column-gap: 1.1rem;
  row-gap: 0.4rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--border);
}
.offer-list .daub {
  grid-row: 1 / span 2;
  width: 2.6rem;
  height: 1rem;
  margin-top: 0.7em;
  background: var(--daub) center / 100% 100% no-repeat;
}
.offer-list h3 a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
.offer-list h3 a:hover { color: var(--primary-mid); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.offer-list p { grid-column: 2; }

/* Home: kitchen feature */
.kitchen { padding-top: 0; }
.kitchen-grid { display: grid; gap: 2.5rem; align-items: center; }
.kitchen-figure { max-width: 36rem; }
.kitchen-figure img { aspect-ratio: 1 / 1; object-position: 0% 50%; }
.kitchen-copy > * + * { margin-top: 1.1rem; }
.kitchen-copy .btn { margin-top: 1.75rem; }

/* Claret band: every text element gets an explicit light colour */
.band {
  background: var(--primary);
  color: var(--on-dark);
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}
.band { position: relative; margin-top: 2.25rem; }
.band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1.9rem;
  height: 2rem;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cfilter id='e' filterUnits='userSpaceOnUse' x='-20' y='-20' width='1240' height='100'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.25' numOctaves='3' seed='3' result='n'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='n' scale='22' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Cpath d='M-20 30 C 200 18, 420 34, 650 24 S 1050 20, 1220 28 L1220 70 L-20 70 Z' fill='%234b1d28' filter='url(%23e)'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
.band h2, .band p, .band li, .band a:not(.btn) { color: var(--on-dark); }
.band .insta a { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.22em; }
.band .insta a:hover { text-decoration-thickness: 2px; }
.details-panel a.email { white-space: nowrap; font-size: clamp(1.05rem, 4.9vw, 1.5rem); }
.band p { margin-top: 1rem; max-width: 36rem; }
.band .insta { color: var(--on-dark-soft); }
.band-grid { display: grid; gap: 2.25rem; }
.band-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.band-link {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.3;
  color: var(--on-dark);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: text-decoration-color 0.2s;
}
.band-link:hover { text-decoration-color: var(--on-dark); text-decoration-thickness: 2px; }
.band :focus-visible { outline-color: var(--accent); }

/* Page heads (Services, Contact, Privacy) */
.page-head { padding-block: clamp(2.25rem, 5vw, 4.25rem) clamp(3rem, 6vw, 5rem); }
.page-head .title-wrap { --title-size: clamp(2.5rem, 1.5rem + 4.2vw, 5rem); }
.page-head--small .title-wrap { --title-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); }
.page-head-grid { display: grid; gap: 2rem; }
.page-head-aside { border-top: 1px solid var(--border); padding-top: 1.1rem; max-width: 34rem; }
.page-head-aside p { font-size: var(--step-1); line-height: 1.6; color: var(--text); }
.jump-links { list-style: none; margin-top: 1rem; }
.jump-links a {
  display: inline-block;
  padding-block: 0.35rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.2s;
}
.jump-links a:hover { text-decoration-color: var(--primary); }

/* Services */
.service { padding-block: clamp(3.5rem, 7vw, 6.5rem); border-top: 1px solid var(--border); scroll-margin-top: 4.5rem; }
.service-grid { display: grid; gap: 2.25rem; align-items: center; }
.service-copy > * + * { margin-top: 1rem; }
.service-copy > .text-link { display: inline-block; margin-top: 1.5rem; }
.service-figure img, .service-figure .ph { aspect-ratio: 4 / 3; object-fit: cover; }
/* Designed placeholders */
.ph { position: relative; overflow: hidden; }
.ph-interior {
  background:
    linear-gradient(90deg,
      transparent 0 calc(33.3% - 1px), rgba(47, 16, 24, 0.35) calc(33.3% - 1px) 33.3%,
      transparent 33.3% calc(66.6% - 1px), rgba(47, 16, 24, 0.35) calc(66.6% - 1px) 66.6%,
      transparent 66.6%) left bottom / 100% 44% no-repeat,
    linear-gradient(180deg, #f1e8e4 0 52%, #fdfbfa 52% 55.5%, #cdb9b3 55.5% 56%, var(--primary-mid) 56% 100%);
}
.ph-interior::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 10%;
  height: 26%;
  border: 2px solid rgba(251, 241, 238, 0.22);
}
.ph-interior::after {
  content: "";
  position: absolute;
  left: -6%;
  top: 22%;
  width: 70%;
  height: 26%;
  background: var(--daub-claret) center / 100% 100% no-repeat;
}
.ph-exterior {
  background: repeating-linear-gradient(180deg, #e7dfd6 0 1.35rem, #c9bcaf 1.35rem calc(1.35rem + 2px));
}
.ph-exterior::before {
  content: "";
  position: absolute;
  left: 22%;
  top: 14%;
  width: 34%;
  height: 70%;
  border: 0.6rem solid #fdfbfa;
  box-shadow: 0 0.5rem 0 -0.1rem #fdfbfa, 0 0.9rem 0.6rem -0.3rem rgba(47, 16, 24, 0.25);
  background:
    linear-gradient(#fdfbfa, #fdfbfa) 50% 0 / 5px 100% no-repeat,
    linear-gradient(#fdfbfa, #fdfbfa) 0 50% / 100% 8px no-repeat,
    linear-gradient(#fdfbfa, #fdfbfa) 0 25% / 100% 4px no-repeat,
    linear-gradient(#fdfbfa, #fdfbfa) 0 75% / 100% 4px no-repeat,
    linear-gradient(160deg, #75868d, #3d4a51);
}
.ph-exterior::after {
  content: "";
  position: absolute;
  right: 6%;
  top: 30%;
  width: 30%;
  height: 22%;
  background: var(--daub) center / 100% 100% no-repeat;
  opacity: 0.9;
}

/* Areas (Services) */
.areas-head { display: grid; gap: 1rem; margin-bottom: 2.25rem; }
.towns { list-style: none; border-top: 1px solid var(--primary); }
.towns li {
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1.2;
  color: var(--primary);
  padding-block: 1rem;
  border-bottom: 1px solid var(--border);
}

/* Contact */
.contact-section { padding-bottom: var(--section-pad); }
.contact-grid { display: grid; gap: 3rem; }
.form-title { font-size: var(--step-3); margin-bottom: 1.5rem; }
.form-row { display: grid; gap: 0 1.25rem; }
.form-field { margin-bottom: 1.35rem; }
label { color: var(--text); }
.field-hint { font-weight: 400; color: var(--text-muted); }
.field-help { font-size: var(--step--1); color: var(--text-muted); margin-top: 0.4rem; }
input:not([type="checkbox"]):not([type="radio"]), textarea {
  background: var(--surface);
  border-color: #c9b9b5;
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
input:not([type="checkbox"]):not([type="radio"]):hover, textarea:hover { border-color: var(--primary-mid); }
input:not([type="checkbox"]):not([type="radio"]):focus, textarea:focus { border-color: var(--primary); }
.form-note { font-size: var(--step--1); margin-top: 1rem; }
.form-note a { color: var(--primary); }
.thanks {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.thanks h2 { font-size: var(--step-3); margin-bottom: 0.75rem; }
.thanks a { color: var(--primary); font-weight: 600; }
.thanks:focus { outline: none; }
.thanks:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.details-panel {
  background: var(--primary);
  color: var(--on-dark);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border-radius: var(--radius-lg);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.details-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -3rem;
  bottom: -0.6rem;
  width: 13rem;
  height: 3rem;
  background: var(--daub) center / 100% 100% no-repeat;
  opacity: 0.9;
}
.details-panel h2 { color: var(--on-dark); font-size: var(--step-3); }
.details-panel dl { margin-top: 0.5rem; padding-bottom: 2.5rem; }
.details-panel dt {
  color: var(--on-dark-soft);
  font-size: var(--step--1);
  font-weight: 600;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(251, 241, 238, 0.25);
}
.details-panel dd {
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.35;
  margin-top: 0.2rem;
}
.details-panel a {
  color: var(--on-dark);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.22em;
}
.details-panel a:hover { text-decoration-thickness: 2px; }
.details-panel :focus-visible { outline-color: var(--accent); }

/* Privacy */
.prose-section { padding-top: 0; }
.prose { max-width: 42rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 0.75rem; color: var(--text); }
.prose a { color: var(--primary); font-weight: 600; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  background: var(--bg);
}
.footer-grid { display: grid; gap: 2rem; }
.footer-name { font-family: var(--font-display); font-size: var(--step-2); color: var(--primary); margin-bottom: 0.5rem; }
.footer-links { list-style: none; display: grid; gap: 0.2rem; }
.footer-links a, .footer-contact a {
  display: inline-block;
  padding-block: 0.3rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.footer-links a[aria-current="page"] { color: var(--primary); font-weight: 600; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.footer-base p { font-size: var(--step--1); color: var(--text-muted); }
.credit a { color: var(--text-soft); }
.credit a:hover { color: var(--primary); }

/* Entrance: brush sweeps, headline is painted in its wake */
@media (prefers-reduced-motion: no-preference) {
  .paint-stroke path { animation: draw 1.05s cubic-bezier(0.45, 0.05, 0.35, 1) 0.12s both; }
  .paint-stroke .streak-1 { animation-delay: 0.15s; }
  .paint-stroke .streak-2 { animation-delay: 0.17s; }
  .paint-stroke .streak-3 { animation-delay: 0.2s; }
  .paint-stroke .streak-4 { animation-delay: 0.14s; }
  .paint-title { animation: paint-in 1s cubic-bezier(0.45, 0.05, 0.35, 1) 0.22s backwards; }
  .page-head .paint-stroke path { animation-duration: 0.8s; animation-delay: 0.1s; }
  .page-head .paint-title { animation-duration: 0.8s; animation-delay: 0.16s; }
}
@keyframes draw {
  from { stroke-dashoffset: 1.08; }
  to { stroke-dashoffset: 0; }
}
@keyframes paint-in {
  from {
    -webkit-mask-image: linear-gradient(90deg, #000 46%, transparent 54%);
    mask-image: linear-gradient(90deg, #000 46%, transparent 54%);
    -webkit-mask-size: 220% 100%;
    mask-size: 220% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
    transform: translateY(0.08em);
  }
  to {
    -webkit-mask-image: linear-gradient(90deg, #000 46%, transparent 54%);
    mask-image: linear-gradient(90deg, #000 46%, transparent 54%);
    -webkit-mask-size: 220% 100%;
    mask-size: 220% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
    transform: none;
  }
}

/* Tablet */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-list { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); }
  .nav-list a { padding: 0.45rem 0; }
  .nav-list .nav-phone a {
    padding: 0.45rem 1rem;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    color: var(--primary);
    font-weight: 600;
  }
  .nav-list .nav-phone a:hover { background: var(--primary); color: #ffffff; text-decoration: none; }

  .paint-stroke { width: calc(100% + var(--bleed)); }

  .kitchen-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; }
  .service-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; }
  .service--flip .service-figure { order: 2; }
  .form-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .areas-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 3rem; }
  .towns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .towns li { border-bottom: 0; padding: 1.5rem 1.5rem 0.5rem 0; }
  .towns li + li { padding-left: 1.5rem; border-left: 1px solid var(--border); }
  .band-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 3rem; }
  .footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 2.5rem; }
}

/* Desktop */
@media (min-width: 1024px) {
  .details-panel a.email { font-size: clamp(1.05rem, 1.7vw, 1.4rem); }
  .hero-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    column-gap: 3.5rem;
    row-gap: 3rem;
    align-items: end;
  }
  .hero .title-wrap { grid-column: 1; grid-row: 1; }
  .hero-aside { grid-column: 2; grid-row: 1; }
  .hero-figure { grid-column: 1; grid-row: 2; }
  .hero-figure img { aspect-ratio: 2 / 1; }
  .hero-areas { grid-column: 2; grid-row: 2; align-self: start; padding-top: 0.25rem; }
  .hero-aside { align-self: end; }

  .page-head-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: end; gap: 3.5rem; }

  .offer-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; }
  .offer-intro { align-self: start; position: sticky; top: 6.5rem; }

  .kitchen-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 5rem; }
  .service-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 5rem; }
  .service--flip .service-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

  .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4.5rem; align-items: start; }
  .details-panel { position: sticky; top: 6rem; }
}

/* Mobile navigation: kept last so nothing above can show the links on small screens */
@media (max-width: 767.98px) {
  .site-header .site-nav .nav-list { display: none; }
  .site-header .site-nav.is-open .nav-list {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fdfbfa;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 24px rgba(47, 16, 24, 0.08);
    padding: 0.25rem var(--gutter) 1rem;
  }
  .site-header .site-nav.is-open .nav-list li + li { border-top: 1px solid var(--border); }
}
