/* Wafa Signs Ireland. One family (Archivo, self-hosted), two tones, logo yellow for actions. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #0e0e0f;
  --bg-2: #161617;
  --ink: #f3f0e8;
  --muted: #b3aea3;
  --line: rgb(255 255 255 / .14);
  --accent: #fcbf05;
  --accent-ink: #fcbf05;
  --on-accent: #111;
  --orange: #f9640a;
  --green: #03c77d;
  --radius: 14px;
  --radius-s: 10px;
  --gutter: clamp(16px, 4.5vw, 40px);
  --max: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --head-h: 64px;
  color-scheme: dark;
}
.light {
  --bg: #f4f1ea;
  --bg-2: #ebe7dd;
  --ink: #141414;
  --muted: #57534b;
  --line: rgb(0 0 0 / .13);
  --accent-ink: #8a5a00;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
p a, li a, dd a, .prose a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.light p a, .light li a, .light dd a, .light .prose a { text-decoration-color: var(--accent-ink); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.02; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.light :focus-visible { outline-color: #111; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { background: var(--bg); color: var(--ink); padding-block: clamp(64px, 11vw, 128px); }
.section + .section.same { padding-top: 0; }
.same > .wrap { border-top: 1px solid var(--line); padding-top: clamp(48px, 8vw, 96px); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #111; padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.display {
  font-size: clamp(42px, 9.6vw, 92px);
  font-stretch: 112%;
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: .96;
}
.h2 { font-size: clamp(32px, 6.4vw, 58px); font-stretch: 108%; font-weight: 720; letter-spacing: -.036em; max-width: 19ch; }
.h3 { font-size: clamp(21px, 2.6vw, 26px); font-stretch: 104%; font-weight: 680; letter-spacing: -.02em; line-height: 1.15; }
.dot { color: var(--accent); }
.light .dot { color: var(--orange); }
.kicker { display: block; font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 14px; letter-spacing: 0; }
.lede { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.5; color: var(--muted); max-width: 40ch; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 6vw, 56px); }
.section-head .lede { margin: 0; }
@media (min-width: 900px) {
  .section-head.split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 48px; }
}

.h2 + .lede { margin-top: 22px; }
.section-head .h2 + .lede { margin-top: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--on-accent);
  font: 650 17px/1 "Archivo", sans-serif; font-stretch: 104%; text-decoration: none; cursor: pointer;
  transition: transform .5s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { box-shadow: inset 0 0 0 1px rgb(0 0 0 / .35); }
.btn:active { transform: scale(.98); }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn svg { width: 20px; height: 20px; flex: none; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; min-height: 44px; }
.link::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .4s var(--ease); }
.link:hover::after { transform: translateX(4px) rotate(45deg); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Header */
.head {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head-h);
  transition: transform .5s var(--ease), background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.head.solid { background: rgb(14 14 15 / .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: rgb(255 255 255 / .08); }
.head.away { transform: translateY(-100%); }
.head-in { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; color: #f3f0e8; }
.brand img { width: 40px; height: 40px; }
.brand span { font-weight: 720; font-stretch: 112%; letter-spacing: -.02em; line-height: 1; font-size: 17px; }
.brand small { display: block; font-size: 12px; font-weight: 600; color: var(--green); letter-spacing: .02em; margin-top: 3px; font-stretch: 100%; }
.nav { display: none; }
.nav a { color: #f3f0e8; text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 550; transition: background-color .25s; }
.nav a:hover, .nav a[aria-current="page"] { background: rgb(255 255 255 / .09); }
.head .btn { min-height: 44px; padding: 0 18px; font-size: 15px; display: none; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 0;
  background: rgb(255 255 255 / .08); color: #f3f0e8; cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn span { position: relative; display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: background-color .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
@media (min-width: 1000px) {
  .nav { display: flex; gap: 2px; }
  .head .btn { display: inline-flex; }
  .menu-btn, .head .call-btn { display: none; }
}
.menu {
  position: fixed; inset: var(--head-h) 0 0; z-index: 49; background: #0e0e0f; color: #f3f0e8;
  padding: 24px var(--gutter) 40px; overflow-y: auto; display: flex; flex-direction: column; gap: 28px;
}
.menu nav a { display: block; font-size: 30px; font-weight: 700; font-stretch: 110%; letter-spacing: -.03em; padding: 10px 0; text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / .1); }
.menu .actions .btn { flex: 1 1 100%; }

/* Hero */
.hero { padding-top: calc(var(--head-h) + clamp(28px, 6vw, 72px)); padding-bottom: clamp(48px, 8vw, 96px); position: relative; overflow: clip; }
.hero-grid { display: grid; gap: 28px; grid-template-areas: "h" "s" "t"; }
.hero-h { grid-area: h; }
.hero-t { grid-area: t; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-areas: "h h" "t s"; column-gap: 64px; row-gap: 48px; align-items: end; }
  .hero-h { max-width: 17ch; }
}
.hero h1 .kw { display: block; font-size: clamp(17px, 2vw, 20px); font-weight: 600; letter-spacing: 0; font-stretch: 100%; color: var(--muted); line-height: 1.3; margin-bottom: 18px; }
.hero .lede { margin: 0 0 28px; }
.reassure { margin: 20px 0 0; font-size: 15px; color: var(--muted); }
.reassure a { color: var(--ink); font-weight: 600; }
.viewer { grid-area: s; min-width: 0; }
.viewer-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; isolation: isolate; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; z-index: 0; }
.viewer:not(.warm) .slide:not(.on) { display: none; }
.slide.was { opacity: 1; z-index: 1; }
.slide.on { opacity: 1; z-index: 2; clip-path: inset(0 0 0 0); }
.slide img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .slide.on.anim { animation: wipe 1.1s var(--ease) both; }
  .slide.on.anim img { animation: settle 6s var(--ease) both; }
}
@keyframes wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
.viewer-tag { position: absolute; left: 12px; top: 12px; z-index: 3; padding: 6px 10px; border-radius: 8px; background: rgb(10 10 10 / .7); color: #f3f0e8; font-size: 13px; font-weight: 600; }
.viewer-rail { display: grid; grid-template-columns: repeat(5, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.viewer-rail::-webkit-scrollbar { display: none; }
.thumb { position: relative; display: block; padding: 0 0 8px; border: 0; background: none; color: #f3f0e8; text-align: left; cursor: pointer; font: inherit; }
.thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; opacity: .55; transition: opacity .3s; }
.thumb:hover img, .thumb.on img { opacity: 1; }
.thumb-t { display: block; margin-top: 7px; min-width: 0; }
.thumb-t b { display: block; font-size: 13.5px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #c9c4b8; transition: color .3s; }
.thumb.on .thumb-t b { color: #f3f0e8; }
.thumb-t small { display: none; }
.thumb-p { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.thumb.on .thumb-p { animation: prog 5.5s linear forwards; }
.viewer.paused .thumb-p, .viewer.off .thumb-p { animation-play-state: paused; }
.viewer.held .thumb.on .thumb-p { animation: none; transform: scaleX(1); }
@keyframes prog { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .thumb.on .thumb-p { animation: none !important; transform: scaleX(1); } }

/* Statement */
.statement { padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 88px); }
.big-line { margin: 0; font-size: clamp(28px, 5vw, 52px); font-weight: 700; font-stretch: 108%; letter-spacing: -.035em; line-height: 1.08; max-width: 30ch; text-wrap: balance; }

/* Portfolio: sign photos are never cropped. */
.folio { display: grid; gap: 28px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.folio .lead { grid-column: 1 / -1; }
@media (min-width: 1000px) {
  .folio { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 18px; }
  .folio.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .folio .lead figcaption { display: flex; gap: 12px; align-items: baseline; padding-top: 14px; font-size: 16px; }
}
.mosaic { display: grid; gap: 22px 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 16px; } .mosaic.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mosaic .tile.wide { grid-column: 1 / -1; }
.tile { margin: 0; break-inside: avoid; }
.tile-a { position: relative; display: block; border-radius: var(--radius-s); overflow: hidden; background: var(--bg-2); }
.tile-a img { width: 100%; transition: transform 1.2s var(--ease); }
.tile-a:hover img { transform: scale(1.035); }
.tile-zoom { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgb(10 10 10 / .62); opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.tile-zoom::before, .tile-zoom::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: #fff; border-radius: 2px; }
.tile-zoom::after { transform: rotate(90deg); }
.tile-a:hover .tile-zoom, .tile-a:focus-visible .tile-zoom { opacity: 1; transform: none; }
@media (hover: none) { .tile-zoom { opacity: 1; transform: none; } }
.tile figcaption { padding: 12px 2px 0; font-size: 15px; line-height: 1.35; }
.tile figcaption b { display: block; font-weight: 650; }
.tile figcaption span { color: var(--muted); }
.masonry { columns: 2 160px; column-gap: 10px; }
.masonry .tile { margin-bottom: 22px; }
@media (min-width: 900px) { .masonry { columns: 3; column-gap: 16px; } .masonry .tile { margin-bottom: 32px; } }
.after-grid { margin-top: 28px; }

/* Featured project */
.feat { display: grid; gap: 28px; }
@media (min-width: 1000px) { .feat { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; align-items: center; } }
.feat-main { margin: 0; }
.feat-info .h2 { margin-bottom: 16px; }
.feat-info .muted { max-width: 44ch; }
.feat-site { margin: 24px 0 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; }
.feat-site img { width: 96px; height: 128px; object-fit: cover; }
.feat-site figcaption { font-size: 14px; color: var(--muted); line-height: 1.4; }
.kicker.on-dark { color: var(--accent); }

/* Lightbox */
.lb { width: min(100vw, 1280px); max-width: 100vw; max-height: 100dvh; margin: auto; padding: 0; border: 0; background: transparent; color: #f3f0e8; overflow: visible; }
.lb::backdrop { background: rgb(6 6 6 / .9); backdrop-filter: blur(6px); }
.lb-fig { margin: 0; padding: 56px 16px 16px; }
.lb-fig img { width: 100%; max-height: calc(100dvh - 190px); object-fit: contain; border-radius: var(--radius-s); background: #000; }
.lb-fig figcaption { margin-top: 14px; font-size: 15px; line-height: 1.45; max-width: 70ch; }
.lb-fig figcaption span { color: #c9c4b8; }
.lb-desc { display: block; margin-top: 4px; }
.lb-btn, .lb-close { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); cursor: pointer; }
.lb-btn::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border: solid #fff; border-width: 2px 2px 0 0; }
.lb-prev { left: 22px; top: calc(50% - 40px); }
.lb-prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.lb-next { right: 22px; top: calc(50% - 40px); }
.lb-next::before { transform: translate(-70%, -50%) rotate(45deg); }
.lb-close { right: 16px; top: 4px; }
.lb-close::before, .lb-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px; background: #fff; transform: rotate(45deg); }
.lb-close::after { transform: rotate(-45deg); }
.lb-count { position: absolute; left: 18px; top: 16px; margin: 0; font-size: 14px; color: #c9c4b8; }
@media (max-width: 700px) { .lb-prev, .lb-next { top: auto; bottom: 12px; } .lb-prev { left: calc(50% - 56px); } .lb-next { right: calc(50% - 56px); } .lb-fig { padding-bottom: 72px; } }
@media (prefers-reduced-motion: no-preference) { .lb[open] { animation: lbin .45s var(--ease); } }
@keyframes lbin { from { opacity: 0; transform: scale(.98); } }

/* Service rows */
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.row { border-top: 1px solid var(--line); }
.row a { display: grid; grid-template-columns: 84px minmax(0, 1fr) 20px; gap: 16px; align-items: center; padding: 18px 0; text-decoration: none; }
.row img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; }
.row h3 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 680; font-stretch: 106%; letter-spacing: -.02em; line-height: 1.15; }
.row p { margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.row .chev { width: 10px; height: 10px; border: solid var(--muted); border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .4s var(--ease), border-color .3s; justify-self: end; }
.row a:hover .chev { transform: translateX(4px) rotate(45deg); border-color: var(--accent); }
.row-txt { display: block; min-width: 0; }
@media (min-width: 900px) {
  .row a { grid-template-columns: 132px minmax(0, 1fr) 24px; gap: 32px; padding: 22px 0; }
  .row-txt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
  .row img { width: 132px; height: 92px; }
  .row p { margin: 0; font-size: 16px; }
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { align-content: start; counter-increment: s; padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.steps h3 { font-size: 20px; font-weight: 680; letter-spacing: -.015em; line-height: 1.25; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .steps li { grid-template-columns: 1fr; gap: 10px; padding-top: 24px; }
  .steps li::before { grid-row: auto; margin-bottom: 6px; }
}

/* Story */
.story { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 900px) { .story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.story-pics { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 10px; align-items: start; }
.story-pics figure { margin: 0; }
.story-pics .stack { display: grid; gap: 22px; }
.story-pics img { width: 100%; border-radius: var(--radius-s); }
.story-pics figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.35; }
.facts { margin: 28px 0 0; border-bottom: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr); gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; font-size: 16px; overflow-wrap: anywhere; }

/* Areas */
.areas { display: grid; gap: 0 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.areas li { border-top: 1px solid var(--line); }
.areas a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 0; text-decoration: none; font-weight: 600; min-height: 48px; }
.areas a span { color: var(--muted); font-weight: 400; font-size: 14px; white-space: nowrap; }
@media (min-width: 900px) { .areas { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 16px; align-items: center;
  padding: 20px 0; font-size: clamp(18px, 2vw, 20px); font-weight: 620; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line);
  background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat;
  transition: transform .4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 48px 22px 0; color: var(--muted); }
.faq .ans p:last-child { margin: 0; }

/* Quote form */
.cta-grid { display: grid; gap: clamp(36px, 5vw, 64px); }
@media (min-width: 1000px) { .cta-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; } }
.contact-lines { list-style: none; padding: 0; margin: 28px 0 0; border-bottom: 1px solid var(--line); }
.contact-lines li { border-top: 1px solid var(--line); }
.contact-lines a, .contact-lines div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 12px; padding: 14px 0; text-decoration: none; min-height: 48px; align-items: center; }
.contact-lines span { color: var(--muted); font-size: 15px; }
.contact-lines b { font-weight: 600; overflow-wrap: anywhere; }
.form { background: var(--bg-2); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); }
.form fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.form legend, .form label.lab { display: block; font-weight: 620; font-size: 16px; margin-bottom: 10px; padding: 0; }
.form .opt { color: var(--muted); font-weight: 400; }
.fields { display: grid; gap: 16px; margin-bottom: 22px; }
@media (min-width: 600px) { .fields.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.field label { display: block; font-weight: 620; font-size: 16px; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius-s); border: 0;
  background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 17px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.field input[type="file"] { padding: 12px; min-height: 0; font-size: 15px; }
.field .hint { font-size: 14px; color: var(--muted); margin-top: 6px; }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #ff6b5e; }
.err { color: #ff8a80; font-size: 14px; margin-top: 6px; }
.light .err { color: #b3261e; }
.consent { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; line-height: 1.45; margin-bottom: 22px; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.form .btn { width: 100%; }
.form-alt { margin: 16px 0 0; font-size: 15px; color: var(--muted); text-align: center; }
.form-done { text-align: left; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Quote form: three steps and a confirmation */
.qf-wrap { min-width: 0; }
.qf, .qf-done { background: var(--bg-2); border-radius: var(--radius); padding: clamp(20px, 4.5vw, 36px); }
.qf-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.qf-count { margin: 0; font-size: 14px; color: var(--muted); white-space: nowrap; }
.qf-count b { color: var(--ink); }
.qf-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.qf-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(.333); transition: transform .6s var(--ease); }
.qf-panel { border: 0; margin: 0; padding: 0; min-width: 0; }
.qf:not(.is-js) .qf-panel + .qf-panel { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) { .qf.is-js .qf-panel:not([hidden]) { animation: qfin .55s var(--ease) both; } }
@keyframes qfin { from { opacity: 0; transform: translateY(14px); } }
.qf-title { display: block; padding: 0; margin: 0 0 8px; font-size: clamp(24px, 3.4vw, 32px); font-weight: 720; font-stretch: 106%; letter-spacing: -.03em; line-height: 1.1; outline: none; }
.qf-sub { margin: 0 0 18px; color: var(--muted); font-size: 16px; }
.qf-check { display: grid; gap: 10px; }
@media (min-width: 520px) { .qf-check { grid-template-columns: minmax(0, 1fr) auto; } }
.qf-check input { width: 100%; min-height: 56px; padding: 14px 16px; border: 0; border-radius: var(--radius-s); background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 18px; letter-spacing: .02em; }
.qf-check input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.qf-check input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #ff6b5e; }
.qf-check .btn { min-height: 56px; }
.qf-result { margin: 14px 0 0; min-height: 1.5em; font-size: 16px; line-height: 1.45; }
.qf-result.is-ok { color: var(--ink); padding-left: 30px; position: relative; }
.qf-result.is-ok::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--green); }
.qf-result.is-ok::after { content: ""; position: absolute; left: 6px; top: 6px; width: 8px; height: 4px; border: solid #08130d; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.qf-result.is-no { color: #ff8a80; }
.light .qf-result.is-no { color: #b3261e; }
.qf-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.qf-opts { display: grid; gap: 8px; margin-top: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 519px) { .qf-opt small { display: none; } .qf-opt span { padding: 12px 10px 12px 38px; } .qf-opt span::before { left: 11px; top: 14px; } .qf-opt b { font-size: 15px; } }
.qf-opt { position: relative; display: block; cursor: pointer; }
.qf-opt input, .qf-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qf-opt span { display: block; height: 100%; padding: 13px 14px 13px 44px; border-radius: var(--radius-s); background: var(--bg); transition: box-shadow .2s, background-color .2s; position: relative; }
.qf-opt span::before { content: ""; position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--muted); transition: box-shadow .2s; }
.qf-opt b { display: block; font-size: 16px; font-weight: 640; line-height: 1.3; }
.qf-opt small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.qf-opt:hover span { box-shadow: inset 0 0 0 1px var(--line); }
.qf-opt input:checked + span { box-shadow: inset 0 0 0 2px var(--accent); }
.qf-opt input:checked + span::before { box-shadow: inset 0 0 0 6px var(--accent); }
.qf-opt input:focus-visible + span, .qf-pill input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.qf-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.qf-nav .btn { margin-left: auto; }
.qf-back { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.qf-back::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg) translateY(-2px); }
.qf-back:hover { color: var(--ink); }
.qf-sub-fs { border: 0; margin: 4px 0 20px; padding: 0; min-width: 0; }
.qf-sub-fs legend { padding: 0; margin-bottom: 10px; font-weight: 620; font-size: 16px; }
.qf-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.qf-pill { position: relative; cursor: pointer; }
.qf-pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--bg); font-size: 15px; transition: box-shadow .2s, background-color .2s; }
.qf-pill:hover span { box-shadow: inset 0 0 0 1px var(--line); }
.qf-pill input:checked + span { background: var(--accent); color: #111; font-weight: 600; }
.qf .field input { background: var(--bg); }
.qf-done { text-align: center; padding-block: clamp(36px, 7vw, 64px); outline: none; }
.qf-tick { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; background: var(--green); color: #08130d; }
.qf-tick svg { width: 40px; height: 40px; }
@media (prefers-reduced-motion: no-preference) {
  .qf-done:not([hidden]) .qf-tick { animation: pop .6s var(--ease) both; }
  .qf-done:not([hidden]) .qf-tick path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .5s .25s var(--ease) forwards; }
}
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.qf-done-h { font-size: clamp(28px, 4vw, 38px); font-weight: 500; font-stretch: 106%; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 14px; }
.qf-done-h b { font-weight: 780; }
.qf-done p { max-width: 42ch; margin-inline: auto; color: var(--muted); }

/* Inner pages */
.page-hero { padding-top: calc(var(--head-h) + clamp(28px, 5vw, 56px)); padding-bottom: clamp(40px, 6vw, 72px); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-hero .display { font-size: clamp(38px, 7.4vw, 76px); max-width: 16ch; }
.page-hero .lede { margin: 22px 0 28px; max-width: 46ch; }
.page-grid { display: grid; gap: clamp(36px, 5vw, 72px); }
@media (min-width: 1000px) { .page-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.pics { display: grid; gap: 18px 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.pics figure { margin: 0; }
.pics figure:first-child { grid-column: 1 / -1; }
.pics img { width: 100%; border-radius: var(--radius-s); }
.pics figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.35; }
.prose { max-width: 680px; }
.prose h2 { font-size: clamp(26px, 3.6vw, 36px); font-stretch: 106%; letter-spacing: -.03em; margin: 48px 0 16px; line-height: 1.1; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; margin: 32px 0 10px; line-height: 1.2; letter-spacing: -.015em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--accent-ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 16px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-top: 1px solid var(--line); }
.prose th { font-weight: 620; }
.prose .note { font-size: 15px; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid var(--line); }
.ticks li { padding: 13px 0 13px 30px; border-top: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 12px; height: 7px; border: solid var(--accent-ink); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.two-col { display: grid; gap: 40px; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.meta-line { font-size: 14px; color: var(--muted); }
.related { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 32px; border-bottom: 1px solid var(--line); }
.related li { border-top: 1px solid var(--line); }
.related a { display: block; padding: 16px 0; text-decoration: none; font-weight: 600; }
.related a span { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }
@media (min-width: 900px) { .related { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.toc { font-size: 15px; border-top: 1px solid var(--line); padding-top: 16px; }
.toc ol { margin: 8px 0 0; padding-left: 1.2em; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (min-width: 1000px) { .guide { display: grid; grid-template-columns: 220px minmax(0, 680px); gap: 64px; } .toc { position: sticky; top: calc(var(--head-h) + 24px); align-self: start; } }

/* Footer */
.foot { border-top: 1px solid rgb(255 255 255 / .1); background: #080808; color: #f3f0e8; padding: 64px 0 calc(32px + env(safe-area-inset-bottom)); font-size: 15px; }
.foot-grid { display: grid; gap: 36px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); } .foot-grid > div:first-child { grid-column: auto; } }
.foot h2 { font-size: 15px; font-weight: 650; margin-bottom: 12px; color: #f3f0e8; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.foot a { color: #c9c4b8; text-decoration: none; display: inline-block; padding: 5px 0; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot p { color: #b3aea3; margin: 0 0 10px; max-width: 34ch; }
.foot-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .1); display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; color: #a8a398; }

/* Mobile call bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgb(14 14 15 / .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgb(255 255 255 / .1); transform: translateY(110%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s;
}
.callbar.on { transform: none; visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
.callbar .btn { min-height: 48px; padding: 0 12px; font-size: 15px; }
@media (min-width: 1000px) { .callbar { display: none; } }

/* Entrance motion: rise once. */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .rise.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .slide img { transform: none !important; }
}
