/* Glowing Cleaning Service. Ink, ivory and gilt. */
:root {
  --ivory: #f8f4ec;
  --ivory-2: #efe8da;
  --paper: #fffdf8;
  --ink: #1a1611;
  --ink-2: #2a241c;
  --ink-soft: #5d554a;
  --gold: #b8903f;
  --gold-deep: #8a6a27;
  --gold-light: #e9cd85;
  --gold-pale: #f4e6c0;
  --line: rgba(26, 22, 17, .12);
  --line-light: rgba(248, 244, 236, .16);
  --ok: #3f6b45;
  --warn: #9a4b25;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Poppins', system-ui, sans-serif;
  --radius: 4px;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--gold-light); color: var(--ink); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
.eyebrow {
  font: 500 .72rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-deep); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.dark .eyebrow { color: var(--gold-light); }
em.gilt { font-style: italic; color: var(--gold-deep); }
.dark em.gilt { color: var(--gold-light); }

/* ---------- The glow ---------- */
.glow {
  background: linear-gradient(100deg, #8a6a27 0%, #c9a24f 22%, #fff3c9 38%, #e9cd85 46%, #b8903f 60%, #8a6a27 80%, #c9a24f 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 6s var(--ease) infinite, breathe 4s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(233, 205, 133, .35));
}
@keyframes sheen { 0% { background-position: 120% 0; } 55%, 100% { background-position: -40% 0; } }
@keyframes breathe {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(233, 205, 133, .25)); }
  50% { filter: drop-shadow(0 0 22px rgba(233, 205, 133, .65)) drop-shadow(0 0 2px rgba(255, 243, 201, .6)); }
}
.on-light .glow { filter: drop-shadow(0 0 6px rgba(184, 144, 63, .25)); animation-name: sheen, breathe-light; }
@keyframes breathe-light {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(184, 144, 63, .15)); }
  50% { filter: drop-shadow(0 0 12px rgba(184, 144, 63, .45)); }
}

/* ---------- Header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .4s, box-shadow .4s, color .4s;
  color: var(--ivory);
}
.site-head.solid, body:not(.has-hero) .site-head { background: rgba(248, 244, 236, .92); backdrop-filter: blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-word { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: .14em; line-height: 1; }
.brand-word small { display: block; font: 500 .56rem/1 var(--sans); letter-spacing: .36em; margin-top: 4px; opacity: .8; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-size: .86rem; letter-spacing: .04em; position: relative; padding: 4px 0; }
.nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold); transition: right .35s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav-toggle { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px auto; transition: transform .3s; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border: 1px solid var(--b); background: var(--b); color: var(--ivory);
  font: 500 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  border-radius: 999px; cursor: pointer; position: relative; overflow: hidden; transition: color .35s, border-color .35s;
}
.btn::before {
  content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, var(--gold-deep), var(--gold-light), var(--gold));
  transform: translateX(-101%); transition: transform .5s var(--ease); z-index: 0;
}
.btn > * , .btn { z-index: 1; }
.btn span { position: relative; z-index: 1; }
.btn:hover::before { transform: none; }
.btn:hover { color: var(--ink); border-color: var(--gold); }
.btn-gold { --b: var(--gold); color: var(--ink); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-sm { padding: 10px 18px; font-size: .68rem; }
.nav .btn { padding: 11px 20px; font-size: .68rem; }
.site-head:not(.solid) .nav .btn { --b: transparent; border-color: var(--gold-light); color: var(--gold-light); }
body:not(.has-hero) .site-head .nav .btn { --b: var(--ink); color: var(--ivory); border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; background: var(--ink); color: var(--ivory);
  display: grid; place-items: center; overflow: hidden; text-align: center;
}
.hero::before { /* soft light behind the name */
  content: ''; position: absolute; left: 50%; top: 46%; width: min(1100px, 120vw); aspect-ratio: 1.6; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(233, 205, 133, .16), rgba(184, 144, 63, .05) 55%, transparent);
  pointer-events: none; animation: halo 8s ease-in-out infinite;
}
.hero::after { /* grain */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-copy { position: relative; z-index: 2; padding: 130px 16px 90px; display: flex; flex-direction: column; align-items: center; width: min(var(--wrap), 100%); }
.hero-copy .eyebrow::after { content: ''; width: 34px; height: 1px; background: currentColor; }
.hero-word { font-family: var(--serif); font-weight: 600; line-height: .86; letter-spacing: .02em; margin: 0 0 30px; }
/* Taller line box and bottom padding so the gradient (background-clip: text) covers the G's descender */
.hero-word .glow { display: block; font-size: clamp(4.4rem, 15vw, 13rem); line-height: 1.05; padding: 0 .06em .1em; margin-bottom: -.2em; }
.hero-word .rest { display: block; font-size: clamp(.95rem, 2.1vw, 1.7rem); font-weight: 500; letter-spacing: .5em; margin-right: -.5em; color: var(--ivory); margin-top: 20px; font-family: var(--sans); }
.hero-lede { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.3; font-style: italic; max-width: 32ch; color: var(--ivory-2); margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-meta { display: flex; gap: clamp(24px, 5vw, 64px); margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--line-light); font-size: .8rem; letter-spacing: .08em; color: rgba(248, 244, 236, .7); flex-wrap: wrap; justify-content: center; }
.hero-meta strong { display: block; color: var(--gold-light); font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: 0; }
.hero-scroll { position: absolute; bottom: 24px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 1px solid rgba(233, 205, 133, .5); border-radius: 999px; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold-light); animation: scrolldot 2s ease-in-out infinite; }
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
.polish-band { background: var(--ink); padding: 0 16px clamp(60px, 9vw, 110px); position: relative; }
.hero-visual { position: relative; height: min(78vh, 760px); width: min(1100px, 100%); margin: 0 auto; border-radius: 320px 320px 6px 6px; overflow: hidden; box-shadow: 0 40px 80px rgba(0, 0, 0, .45); background: #2a241c; }
.polish-meter { position: absolute; left: 50%; bottom: 72px; transform: translateX(-50%); width: 160px; height: 3px; background: rgba(248, 244, 236, .25); border-radius: 3px; z-index: 3; overflow: hidden; transition: opacity .6s; }
.polish-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-light)); box-shadow: 0 0 10px var(--gold-light); transition: width .25s; }
.hero-visual.clean .polish-meter, .hero-visual.clean .wipe-hint { opacity: 0; }
.hero-visual canvas { transition: opacity 1.2s var(--ease); }
.hero-visual.clean canvas { opacity: 0; pointer-events: none; }
.clean-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.8); z-index: 4; opacity: 0; transition: opacity .8s, transform .8s var(--ease);
  font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.6rem); font-style: italic; color: var(--ivory); text-shadow: 0 2px 30px rgba(0, 0, 0, .6); pointer-events: none; white-space: nowrap; }
.hero-visual.clean .clean-badge { opacity: 1; transform: translate(-50%, -50%) scale(1); animation: badge-out 1s 2.6s forwards; }
@keyframes badge-out { to { opacity: 0; transform: translate(-50%, -60%); } }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: none; touch-action: none; }
.wipe-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 3;
  font: 500 .7rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--ink);
  background: rgba(248, 244, 236, .9); padding: 12px 18px; border-radius: 999px; pointer-events: none; transition: opacity .6s;
  white-space: nowrap;
}
.wipe-hint.gone { opacity: 0; }
.cloth { position: absolute; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; pointer-events: none; z-index: 4;
  border: 1px solid rgba(255, 243, 201, .9); box-shadow: 0 0 24px rgba(233, 205, 133, .7), inset 0 0 18px rgba(255, 243, 201, .4); opacity: 0; transition: opacity .3s; }
.hero-visual:hover .cloth { opacity: 1; }
.sparkle { position: absolute; width: 10px; height: 10px; pointer-events: none; z-index: 3; animation: spark .9s ease-out forwards; }
.sparkle::before, .sparkle::after { content: ''; position: absolute; inset: 0; background: #fff6d6; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
@keyframes spark { from { transform: scale(0) rotate(0); opacity: 1; } to { transform: scale(1.6) rotate(90deg) translateY(-14px); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--gold); color: var(--ink); overflow: hidden; border-block: 1px solid var(--gold-deep); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-style: italic; padding: 16px 0; white-space: nowrap; }
.marquee span::after { content: '\2726'; font-style: normal; font-size: .7em; margin: 0 34px; color: var(--ivory); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.section.tight { padding: clamp(56px, 8vw, 96px) 0; }
.dark { background: var(--ink); color: var(--ivory); }
.dark .muted { color: rgba(248, 244, 236, .66); }
.muted { color: var(--ink-soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 60px; flex-wrap: wrap; }
.head-row p { max-width: 42ch; margin: 0; }

/* Manifesto */
.manifesto p.big { font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 3.1rem); line-height: 1.18; margin: 0; }
.manifesto p.big em { color: var(--gold-deep); }

/* Services: editorial list */
.svc-list { border-top: 1px solid var(--line-light); counter-reset: svc; }
.svc {
  display: grid; grid-template-columns: 90px 1.1fr 1.4fr 48px; gap: 30px; align-items: center;
  padding: 34px 0; border-bottom: 1px solid var(--line-light); text-decoration: none; position: relative; isolation: isolate;
}
.svc::before { counter-increment: svc; content: counter(svc, decimal-leading-zero); font-family: var(--serif); font-size: 1.1rem; color: var(--gold-light); }
.svc::after { content: ''; position: absolute; inset: 0 -12px; background: linear-gradient(90deg, rgba(184, 144, 63, .18), transparent 70%); opacity: 0; transition: opacity .4s; z-index: -1; }
.svc:hover::after { opacity: 1; }
.svc h3 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.3rem); transition: transform .4s var(--ease); }
.svc:hover h3 { transform: translateX(10px); }
.svc p { margin: 0; color: rgba(248, 244, 236, .7); font-size: .95rem; }
.svc .arrow { width: 48px; height: 48px; border: 1px solid var(--line-light); border-radius: 50%; display: grid; place-items: center; transition: background .3s, border-color .3s, transform .4s var(--ease); }
.svc:hover .arrow { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: rotate(-45deg); }

/* Before / after reveal cards */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.ba {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--ink);
  cursor: pointer; border: 0; padding: 0; width: 100%; text-align: left; color: var(--ivory);
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ba .after { clip-path: inset(0 0 0 100%); transition: clip-path .5s cubic-bezier(.3, .9, .3, 1), transform 1.2s var(--ease); will-change: clip-path; }
.ba.show .after { clip-path: inset(0 0 0 0); }
.ba .seam { position: absolute; top: 0; bottom: 0; width: 2px; left: 100%; background: var(--gold-light); box-shadow: 0 0 18px var(--gold-light); transition: left .5s cubic-bezier(.3, .9, .3, 1); z-index: 2; }
.ba.show .seam { left: 0; }
.ba .tag { position: absolute; top: 16px; left: 16px; z-index: 3; font: 500 .62rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; background: rgba(26, 22, 17, .75); backdrop-filter: blur(6px); }
.ba .tag b { font-weight: 500; }
.ba .tag .t-after { display: none; color: var(--gold-light); }
.ba.show .tag .t-before { display: none; }
.ba.show .tag .t-after { display: inline; }
/* Hover only on devices that really hover. On touch screens :hover sticks after a tap and hides the toggle (FB-0021) */
@media (hover: hover) {
  .ba:hover .after { clip-path: inset(0 0 0 0); }
  .ba:hover img { transform: scale(1.04); }
  .ba:hover .seam { left: 0; }
  .ba:hover .tag .t-before { display: none; }
  .ba:hover .tag .t-after { display: inline; }
}
.ba .cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 50px 18px 18px; background: linear-gradient(transparent, rgba(26, 22, 17, .85)); }
.ba .cap .ba-title { display: block; font-family: var(--serif); font-size: 1.45rem; line-height: 1.1; color: var(--ivory); }
.ba .cap small { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }

.tile { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ivory-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile figcaption { position: absolute; left: 12px; bottom: 12px; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; background: rgba(248, 244, 236, .92); padding: 7px 11px; border-radius: 999px; }
.composite img { height: auto; }

/* Horizontal photo strip */
.strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 max(16px, calc((100vw - var(--wrap)) / 2)) 18px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.strip .tile { flex: 0 0 clamp(220px, 26vw, 340px); aspect-ratio: 3 / 4; scroll-snap-align: start; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--ivory); padding: 40px 34px; }
.step b { font-family: var(--serif); font-size: 3.6rem; font-weight: 500; line-height: 1; display: block; margin-bottom: 20px; }
.step h3 { font-size: 1.5rem; }

/* Call to action */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(2.8rem, 7vw, 6rem); }
.cta .halo { position: absolute; width: 600px; height: 600px; left: 50%; top: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(233, 205, 133, .28), transparent 65%); pointer-events: none; animation: halo 6s ease-in-out infinite; }
@keyframes halo { 50% { transform: translate(-50%, -50%) scale(1.25); opacity: .6; } }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* Page header for inner pages */
.page-head { padding: 170px 0 70px; background: var(--ink); color: var(--ivory); position: relative; overflow: hidden; }
.page-head h1 { max-width: 16ch; }
.page-head p { max-width: 54ch; color: rgba(248, 244, 236, .72); font-size: 1.05rem; margin: 0; }
.page-head .orb { position: absolute; right: -120px; top: -120px; width: 480px; height: 480px; border-radius: 50%; border: 1px solid rgba(233, 205, 133, .25); }
.page-head .orb::after { content: ''; position: absolute; inset: 60px; border-radius: 50%; border: 1px solid rgba(233, 205, 133, .15); }

/* Gallery filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filters button { font: 500 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }
.masonry { columns: 3 300px; column-gap: 22px; }
.masonry > * { break-inside: avoid; margin-bottom: 22px; }
.masonry .ba { aspect-ratio: 4 / 5; }
.masonry [hidden] { display: none; }

/* Forms */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: clamp(24px, 4vw, 48px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid rgba(26, 22, 17, .3); padding: 10px 0; border-radius: 0; transition: border-color .3s;
}
textarea { min-height: 120px; resize: vertical; border: 1px solid rgba(26, 22, 17, .3); padding: 12px; border-radius: var(--radius); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
.check { display: flex; gap: 12px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: .92rem; color: var(--ink); }
.check input { width: 18px; height: 18px; margin-top: 4px; flex: none; accent-color: var(--gold-deep); }
.hp { position: absolute; left: -5000px; }
.alert { padding: 14px 18px; border-left: 3px solid var(--warn); background: #f7e9df; margin-bottom: 24px; border-radius: var(--radius); }
.alert.ok { border-color: var(--ok); background: #e6efe3; }
.flash { position: fixed; top: 94px; left: 50%; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--gold-light); padding: 14px 22px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: .9rem; animation: flash 5s forwards; max-width: calc(100% - 32px); text-align: center; }
@keyframes flash { 0% { opacity: 0; transform: translate(-50%, -10px); } 8%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; pointer-events: none; } }

/* Contact strip */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 20px; }
.contact-list span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); padding-top: 6px; }
.contact-list a, .contact-list b { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; text-decoration: none; word-break: break-word; }

/* Tables (account and admin) */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap { overflow-x: auto; }
.pill { display: inline-block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--ivory-2); white-space: nowrap; }
.pill.requested, .pill.new { background: var(--gold-pale); color: var(--gold-deep); }
.pill.confirmed, .pill.in.progress { background: #e3ebf3; color: #2d4a66; }
.pill.completed, .pill.done { background: #e2eddf; color: var(--ok); }
.pill.cancelled, .pill.declined { background: #eee; color: #777; }

/* App shell (account and admin) */
.app { padding: 120px 0 80px; min-height: 80vh; }
.app-grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.side { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.side > a { text-decoration: none; padding: 10px 14px; border-radius: var(--radius); font-size: .9rem; display: flex; justify-content: space-between; }
.side > a:hover { background: var(--ivory-2); }
.side > a[aria-current="page"] { background: var(--ink); color: var(--gold-light); }
.side .count { font-size: .72rem; background: var(--gold); color: var(--ink); border-radius: 999px; padding: 1px 8px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 40px; }
.stat { background: var(--paper); border: 1px solid var(--line); padding: 22px; border-radius: 6px; text-decoration: none; }
.stat b { display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 500; line-height: 1; }
.stat span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.admin-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.ag { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.ag .imgs { display: flex; aspect-ratio: 4 / 3; background: var(--ivory-2); }
.ag .imgs img { flex: 1; min-width: 0; object-fit: cover; }
.ag .body { padding: 12px 14px; font-size: .85rem; }
.ag .note { color: var(--warn); font-size: .8rem; margin: 6px 0; }
.ag.off { opacity: .72; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline { display: inline; }

/* Footer */
.site-foot { background: var(--ink); color: rgba(248, 244, 236, .72); padding: 90px 0 40px; font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid var(--line-light); }
.site-foot h4 { font: 500 .7rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 18px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--gold-light); }
.foot-word { font-family: var(--serif); font-size: clamp(3rem, 8vw, 7rem); font-weight: 600; letter-spacing: .04em; line-height: .9; margin: 0 0 20px; }
.foot-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 30px; font-size: .78rem; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.review { margin: 0; padding: 34px 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); position: relative; }
.dark .review { background: var(--ink-2); border-color: var(--line-light); }
.review::before { content: '\201C'; position: absolute; top: -8px; right: 22px; font-family: var(--serif); font-size: 7rem; line-height: 1; color: var(--gold); opacity: .35; }
.review blockquote { margin: 14px 0 18px; font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; white-space: pre-line; }
.review figcaption { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.dark .review figcaption { color: var(--gold-light); }
.stars { color: var(--gold); letter-spacing: .12em; font-size: 1.05rem; }
.stars .off { color: rgba(184, 144, 63, .25); }
.rating { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating legend { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; float: left; width: 100%; }
.rating input { position: absolute; opacity: 0; width: 1px; }
.rating label { font-size: 2.2rem; letter-spacing: 0; text-transform: none; margin: 0; cursor: pointer; color: rgba(184, 144, 63, .25); transition: color .2s, transform .2s; line-height: 1; }
.rating input:checked ~ label, .rating label:hover, .rating label:hover ~ label { color: var(--gold); }
.rating label:hover { transform: scale(1.15); }
.rating input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Admin: chips, access details, calendar */
.job-chip { display: block; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; text-decoration: none; font-size: .9rem; background: var(--ivory); }
.job-chip:hover { border-color: var(--gold); }
.job-chip b { font-weight: 500; margin-right: 6px; }
.access { display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; margin: 0; padding: 14px 16px; background: var(--gold-pale); border-radius: var(--radius); font-size: .9rem; }
.access dt { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); padding-top: 3px; }
.access dd { margin: 0; }
.cal-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal-head h2 { margin: 0 8px; font-size: 2.2rem; min-width: 8ch; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--line); gap: 1px; }
.cal-dow { background: var(--ink); color: var(--gold-light); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; padding: 10px 8px; text-align: center; }
.cal-day { background: var(--paper); min-height: 112px; padding: 6px; position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day.out { background: var(--ivory); }
.cal-day.out .cal-num { opacity: .4; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--gold); }
.cal-num { font-family: var(--serif); font-size: 1.2rem; text-decoration: none; line-height: 1; padding: 2px 4px; align-self: flex-start; border-radius: 4px; }
.cal-day.today .cal-num { background: var(--gold); color: var(--ink); }
.cal-job { font-size: .72rem; padding: 3px 6px; border-radius: 4px; background: var(--ink); color: var(--ivory); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-job b { color: var(--gold-light); font-weight: 500; }
.cal-job.requested { background: var(--gold-pale); color: var(--ink); }
.cal-job.requested b { color: var(--gold-deep); }
.cal-job.completed { background: #e2eddf; color: var(--ok); }
.cal-job.completed b { color: var(--ok); }
.cal-more { font-size: .7rem; color: var(--ink-soft); }
.cal-add { position: absolute; top: 4px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; color: var(--gold-deep); opacity: 0; transition: opacity .2s; }
.cal-day:hover .cal-add, .cal-add:focus { opacity: 1; background: var(--gold-pale); }
.day-job { display: grid; grid-template-columns: 100px 1fr; gap: 24px; }
.day-time b { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 500; line-height: 1; }
.day-time span { font-size: .8rem; color: var(--ink-soft); }
.changelog h2 { font-size: 1.8rem; margin: 28px 0 10px; }
.changelog h2:first-child { margin-top: 0; }
.changelog h4 { font: 500 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin: 16px 0 8px; }
.cl-item { margin: 0 0 6px; padding-left: 18px; position: relative; }
.cl-item::before { content: '\2726'; position: absolute; left: 0; color: var(--gold); font-size: .7rem; top: 5px; }

/* Quote and invoice line editor */
.lines { display: grid; gap: 8px; }
.line { display: grid; grid-template-columns: 1fr 80px 120px 110px 32px; gap: 12px; align-items: center; }
.line-head { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.line-amt { text-align: right; font-variant-numeric: tabular-nums; }
.line-del { border: 0; background: none; font-size: 1.4rem; cursor: pointer; color: var(--ink-soft); }
.line-del:hover { color: var(--warn); }
.lines-total { font-size: 1.1rem; }
.lines-total b { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; margin-left: 8px; }

/* Quote and invoice sheet */
.doc-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.doc-sheet { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: clamp(28px, 5vw, 64px); position: relative; overflow: hidden; box-shadow: 0 30px 60px rgba(26, 22, 17, .08); }
.doc-sheet::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-light), var(--gold)); }
.doc-head { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.doc-brand { display: flex; gap: 14px; align-items: center; }
.doc-brand svg { width: 54px; height: 54px; }
.doc-word { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; letter-spacing: .12em; line-height: 1; }
.doc-word .glow { animation: none; filter: none; background-position: 30% 0; }
.doc-sub { font-size: .62rem; letter-spacing: .42em; color: var(--ink-soft); margin-top: 6px; }
.doc-title { text-align: right; }
.doc-title h1 { font-size: 2.6rem; margin: 0; }
.doc-num { font-size: .8rem; letter-spacing: .24em; color: var(--gold-deep); }
.doc-stamp { display: inline-block; margin-top: 10px; padding: 6px 14px; border: 2px solid var(--ok); color: var(--ok); border-radius: 4px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; transform: rotate(-3deg); }
.doc-stamp.void { border-color: var(--warn); color: var(--warn); }
.doc-parties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 30px 0; }
.doc-sheet h4 { font: 500 .66rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 12px; }
.doc-parties p { margin: 0; font-size: .92rem; line-height: 1.6; }
.doc-parties dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: .92rem; }
.doc-parties dt { color: var(--ink-soft); }
.doc-parties dd { margin: 0; }
.doc-lines { width: 100%; border-collapse: collapse; font-size: .95rem; }
.doc-lines th { text-align: left; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; padding: 12px 10px; background: var(--ink); color: var(--gold-light); }
.doc-lines th:first-child { border-radius: 4px 0 0 4px; } .doc-lines th:last-child { border-radius: 0 4px 4px 0; }
.doc-lines td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-lines .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc-totals { margin: 24px 0 0 auto; width: min(340px, 100%); display: grid; gap: 8px; }
.doc-totals > div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.doc-totals .grand { border-top: 2px solid var(--ink); padding-top: 12px; font-size: 1.1rem; }
.doc-totals .grand span:last-child { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1; }
.doc-notes { margin-top: 30px; padding: 20px 22px; background: var(--ivory); border-radius: var(--radius); }
.doc-notes p { margin: 0; white-space: pre-wrap; }
.doc-foot { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.doc-pay { padding: 18px 22px; border: 1px solid var(--gold); border-radius: var(--radius); }
.doc-pay p { margin: 0 0 4px; }
.doc-thanks { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.doc-tag { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--gold-deep); text-align: center; }

@media print {
  @page { margin: 14mm; }
  body { background: #fff; }
  .site-head, .site-foot, .side, .no-print, .flash, .skip, .eyebrow { display: none !important; }
  .app { padding: 0; min-height: 0; }
  .app-grid { display: block; }
  .doc-sheet { border: 0; box-shadow: none; padding: 0; }
  .doc-sheet::before { display: none; }
  .doc-lines th { background: #fff; color: var(--ink); border-bottom: 2px solid var(--ink); }
  .doc-parties { grid-template-columns: repeat(3, 1fr); }
  .card { border: 0; padding: 0 0 12px; break-inside: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Toggles, demo tags and admin bits */
.admin-h1 { font-size: clamp(2.2rem, 6vw, 3rem); }
.toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--ink); margin: 0; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-track { width: 48px; height: 28px; border-radius: 999px; background: rgba(26, 22, 17, .2); position: relative; flex: none; transition: background .25s; }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); transition: transform .25s var(--ease); }
.toggle input:checked + .toggle-track { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); box-shadow: 0 0 12px rgba(233, 205, 133, .5); }
.toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(20px); }
.toggle input:focus-visible + .toggle-track { outline: 2px solid var(--gold); outline-offset: 3px; }
.toggles { display: grid; gap: 12px; align-content: center; }
.pill.demo { background: #ece6f6; color: #5b4a86; vertical-align: middle; }
.svc-edit.off { opacity: .65; }
.svc-price { display: inline-block; font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); border: 1px solid rgba(233, 205, 133, .4); border-radius: 999px; padding: 4px 10px; vertical-align: middle; margin-left: 6px; }
.howto { background: var(--ivory); border-radius: var(--radius); padding: 12px 16px; font-size: .9rem; }
.howto summary { cursor: pointer; font-weight: 500; }
.howto ol, .howto ul { padding-left: 20px; }
.howto li { margin-bottom: 6px; }
code, .copy { font-family: ui-monospace, Consolas, monospace; font-size: .85em; background: var(--gold-pale); padding: 2px 6px; border-radius: 4px; word-break: break-all; }
.preview-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.preview-tabs button { font: 500 .68rem/1 var(--sans); letter-spacing: .08em; padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.preview-tabs button[aria-selected="true"] { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }
.preview-frame { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #efe8da; }
.preview-frame iframe { width: 100%; height: 760px; border: 0; display: block; }
.doc-actions { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; margin-bottom: 20px; }
.accept-card { margin-top: 28px; border-color: var(--gold); }
.sig-input { font-family: var(--serif); font-size: 1.8rem; font-style: italic; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink-soft); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; }
.doc-accepted { margin-top: 26px; padding: 18px 22px; border-left: 3px solid var(--ok); background: #f1f6ef; border-radius: var(--radius); }
.doc-sig { font-family: var(--serif); font-style: italic; font-size: 2rem; margin: 0 0 4px; line-height: 1.1; }

/* Before and after on touch screens */
.ba-hint { display: none; position: absolute; right: 14px; top: 14px; z-index: 3; align-items: center; gap: 6px;
  font: 500 .6rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); background: var(--gold-light);
  padding: 8px 11px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
@media (hover: none) {
  .ba-hint { display: inline-flex; }
  .ba.autoplay .ba-hint { animation: hintpulse 1.6s ease-in-out 2; }
  .cal-tip { display: none; }
}
@keyframes hintpulse { 50% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(233, 205, 133, .35); } }

/* Scheduling and team */
.prompt-card { border-color: var(--gold); background: linear-gradient(135deg, var(--paper), var(--gold-pale)); }
.staff-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.staff-filter a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-size: .8rem; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; }
.staff-filter a.on { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }
.staff-filter i, .staff-tag i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.staff-tag { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; }
.cal-tip { font-size: .8rem; margin: -10px 0 0; }
.cal-job.dragging, .job-chip.dragging { opacity: .4; }
.cal-day.drop-over { background: var(--gold-pale); box-shadow: inset 0 0 0 2px var(--gold); }
.cal-job[draggable="true"], .job-chip[draggable="true"] { cursor: grab; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { margin: 0; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; width: 1px; }
.swatch span:first-of-type { display: block; width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; box-shadow: 0 0 0 1px var(--line); }
.swatch input:checked + span { border-color: var(--paper); box-shadow: 0 0 0 2px var(--ink); }
.swatch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.team-job { display: grid; grid-template-columns: 90px 1fr; gap: 18px; text-decoration: none; margin-bottom: 10px; padding: 18px 20px; transition: border-color .2s; }
.team-job:hover { border-color: var(--gold); }
.team-job.completed { opacity: .6; }
.tj-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; display: block; }
.upcoming .up-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.upcoming .up-row:first-of-type { border-top: 0; }
.up-date { text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 6px 0; line-height: 1; }
.up-date b { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.up-date span { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.up-row.next .up-date { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }
.up-row.next .up-date span { color: var(--gold-light); }
.pay-form { display: grid; gap: 14px; margin-bottom: 20px; border-color: var(--gold); }
.doc-stamp small { display: block; font-size: .62rem; letter-spacing: .12em; margin-top: 3px; text-align: center; }

/* Privacy policy and terms */
.legal { max-width: 820px; }
.legal h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); margin: 48px 0 14px; scroll-margin-top: 100px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal p, .legal li { line-height: 1.75; }
.legal .table-wrap { margin: 16px 0; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.legal-toc a { font-size: .78rem; text-decoration: none; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; }
.legal-toc a:hover { border-color: var(--gold); }
mark.tbc { background: var(--gold-pale); color: var(--gold-deep); padding: 1px 5px; border-radius: 3px; border-bottom: 1px dashed var(--gold); }
.foot-legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-copy { padding: 120px 16px 80px; }
  .hero-visual { height: 64vh; border-radius: 180px 180px 6px 6px; }
  .split, .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 50px 1fr 40px; }
  .svc p { grid-column: 2 / 3; }
  .svc .arrow { grid-row: 1; grid-column: 3; width: 40px; height: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .app-grid { grid-template-columns: 1fr; gap: 24px; }
  .side { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; align-items: center; }
  .side > a { white-space: nowrap; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; }
  .side > a.muted { border: 0; padding: 8px 4px; }
  .side > p, .side > form { flex-basis: 100%; margin: 4px 0 0 !important; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; background: var(--ink); color: var(--ivory); flex-direction: column; justify-content: center;
    gap: 22px; opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  .nav a { font-family: var(--serif); font-size: 2rem; }
  .nav .btn { font-family: var(--sans); font-size: .8rem; }
  .nav-open .nav { opacity: 1; pointer-events: auto; }
  .nav-open .nav-toggle { position: relative; z-index: 2; color: var(--ivory); }
  .nav-open .nav-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-open .nav-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .doc-parties { grid-template-columns: 1fr; gap: 18px; }
  .doc-title { text-align: left; }
  .line { grid-template-columns: 1fr 64px 92px 28px; }
  .line .line-amt, .line-head span:nth-child(4) { display: none; }
  .cal-day { min-height: 74px; }
  .cal-job { font-size: 0; padding: 0; height: 6px; border-radius: 3px; }
  .cal-job b { display: none; }
  .day-job { grid-template-columns: 1fr; gap: 10px; }
  .access { grid-template-columns: 1fr; }
  .doc-actions { grid-template-columns: 1fr; }
  .preview-frame iframe { height: 640px; }
  .site-foot a[href^="mailto"] { font-size: .82rem; }
}
@media (max-width: 640px) {
  .card { padding: 22px 18px; }
  .form-grid { gap: 16px; }
  .hero-meta { gap: 18px 28px; }
  .doc-sheet { padding: 22px 16px; }
  .doc-lines th, .doc-lines td { padding-left: 6px; padding-right: 6px; font-size: .85rem; }
  .doc-totals .grand span:last-child { font-size: 1.6rem; }
  /* Tables become a stack of labelled cards on phones */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; margin-bottom: 12px; background: var(--paper); }
  .table td { border: 0; padding: 6px 0; display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
  .table td::before { content: attr(data-label); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
  .table td:not([data-label])::before, .table td[data-label=""]::before { display: none; }
  .table td[data-label=""] { grid-template-columns: 1fr; }
  .team-job { grid-template-columns: 1fr; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .glow { filter: drop-shadow(0 0 12px rgba(233, 205, 133, .45)); }
}
