/* Dalton Tims portfolio. One stylesheet for the whole page; the intro has its own (intro.css).
   Palette: near-black, off-white and one accent. Type: Instrument Serif for headlines, Inter for everything else. */

:root {
  --ink: #14130f;
  --paper: #f5f2ec;
  --panel: #e9e4d9;
  --card: #fcfbf8;
  --muted: #5e5a52;
  --line: rgba(20, 19, 15, .14);
  --accent: #2f5bff;
  --accent-deep: #1f47e0;
  --accent-soft: #93a9ff;            /* the accent, lightened for dark backgrounds */
  --on-ink: #f5f2ec;
  --on-ink-muted: #b5b0a6;
  --line-on-ink: rgba(245, 242, 236, .18);
  --display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --space: clamp(68px, 9.5vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* Names the intro's "Want to see your site get this treatment?" line looks for, so it matches this page */
  --sk-surface: var(--panel);
  --sk-line: var(--line);
  --sk-text: var(--ink);
  --sk-accent: var(--accent);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; background: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; counter-reset: sec; }
main img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
main h1, main h2, main h3, main p, main ul, main ol, main figure { margin: 0; }
main ul, main ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

/* ---------- Type ---------- */
.display { font: 400 clamp(3.05rem, 12.4vw, 8.4rem)/.96 var(--display); letter-spacing: -.022em; }
.display em, .display-2 em { font-style: italic; color: var(--accent); }
.display-2 { font: 400 clamp(2.8rem, 9vw, 5.6rem)/.98 var(--display); letter-spacing: -.02em; }
.h2 { font: 400 clamp(2.5rem, 7.4vw, 4.8rem)/1 var(--display); letter-spacing: -.02em; }
.h3 { font: 400 clamp(1.9rem, 4.6vw, 2.9rem)/1.06 var(--display); letter-spacing: -.015em; }
.h3 small { display: block; margin-top: 10px; color: var(--muted); font: 400 1rem/1.4 var(--body); letter-spacing: 0; }
.kicker { color: var(--muted); font-size: .78rem; font-weight: 500; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.lede { max-width: 34em; font-size: clamp(1.05rem, 1.55vw, 1.22rem); line-height: 1.55; }
.note { color: var(--muted); font-size: .95rem; }
.text-link { display: inline-block; padding: 10px 0; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color .2s ease; }
.text-link:hover { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: 10px 26px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font: 500 1rem/1.2 var(--body); text-align: center; text-decoration: none; transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.btn-sm { min-height: 40px; padding: 6px 16px; font-size: .88rem; }
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-deep); }
.btn-line { border-color: currentColor; }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-arrow::after { content: "\2192"; transition: transform .25s var(--ease); }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header: slim and sticky ---------- */
.hd { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px var(--gutter); background: rgba(245, 242, 236, .9); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hd-brand { margin-right: auto; padding: 8px 0; font: 400 1.5rem/1 var(--display); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.hd-nav { display: none; }
.hd-nav a { text-decoration: none; }
.hd-menu { min-height: 40px; padding: 0 14px; background: none; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); cursor: pointer; font: 500 .88rem/1 var(--body); }
@media (max-width: 799px) {
  .hd.is-open .hd-nav { position: absolute; top: 100%; right: 0; left: 0; display: grid; padding: 4px var(--gutter) 14px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .hd.is-open .hd-nav a { padding: 14px 0; font-size: 1.05rem; }
  .hd.is-open .hd-nav a + a { border-top: 1px solid var(--line); }
}
@media (min-width: 800px) {
  .hd-nav { display: flex; gap: 30px; margin-right: 18px; }
  .hd-nav a { padding: 10px 0; color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .2s ease; }
  .hd-nav a:hover { color: var(--ink); }
  .hd-menu { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(52px, 10vw, 132px) 0 clamp(60px, 9vw, 120px); }
.hero .display { max-width: 11.5em; margin-top: clamp(18px, 2.6vw, 32px); }
.hero-foot { display: grid; gap: 28px; margin-top: clamp(34px, 5vw, 64px); padding-top: clamp(24px, 3vw, 34px); border-top: 1px solid var(--line); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
@media (min-width: 900px) {
  .hero-foot { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 64px; }
}

/* ---------- Sections ---------- */
.sec { padding: var(--space) 0; }
.hero + .sec { padding-top: 0; }
/* Each section opens with a thin rule, its number (counted here, so adding a section renumbers the rest) and a serif heading */
.sec-head { counter-increment: sec; display: grid; gap: 14px; margin-bottom: clamp(36px, 6vw, 76px); padding-top: 20px; border-top: 1px solid var(--line); }
.sec-head::before { content: counter(sec, decimal-leading-zero); color: var(--accent); font-size: .78rem; font-weight: 600; letter-spacing: .14em; line-height: 1.4; }
.sec-sub { max-width: 30em; color: var(--muted); font-size: clamp(1.05rem, 1.55vw, 1.22rem); }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: 100px minmax(0, 1fr); column-gap: 0; }
  .sec-head::before { padding-top: 1.1em; }
  .sec-head > * { grid-column: 2; }
}

/* Small check-mark lists (project points and plan features) */
.ticks li { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; top: 1.22em; left: 2px; width: 12px; height: 6px; border-bottom: 1.5px solid var(--accent); border-left: 1.5px solid var(--accent); transform: rotate(-45deg); }

/* ---------- Recent work: the main project ---------- */
.case-top { display: grid; gap: 26px; margin-bottom: clamp(28px, 4vw, 52px); }
.case-top .h3 { margin-top: 12px; }
@media (min-width: 900px) {
  .case-top { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: end; }
}

/* The stage: one panel, a laptop or a phone drawn in CSS, and a switch between them.
   The heights are worked out from the page width so the switch never makes the frames jump or overflow. */
.stage {
  --pad: 16px;
  --inner: calc(min(100vw - 2 * var(--gutter), var(--maxw)) - 2 * var(--pad));
  --lap-w: min(var(--inner) * .86, 780px);
  --h-desktop: calc(var(--lap-w) * .66 + 20px);
  --h-mobile: max(430px, var(--h-desktop));
  display: grid; justify-items: center; gap: 22px; padding: 20px var(--pad) 30px; background: var(--panel); border-radius: 20px;
}
.seg { display: none; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.js .seg { display: inline-flex; }
.seg button { min-height: 40px; padding: 0 20px; background: none; border: 0; border-radius: 999px; color: var(--muted); cursor: pointer; font: 500 .9rem/1 var(--body); transition: background-color .3s ease, color .3s ease; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.stage-area { display: grid; place-items: center; width: 100%; height: var(--h-desktop); transition: height .6s var(--ease); }
.stage[data-stage="mobile"] .stage-area { height: var(--h-mobile); }
.stage-area > * { grid-area: 1 / 1; transition: opacity .5s ease, transform .7s var(--ease), visibility 0s; }
.stage[data-stage="desktop"] .phone, .stage[data-stage="mobile"] .laptop { opacity: 0; visibility: hidden; transform: translateY(14px) scale(.96); transition: opacity .35s ease, transform .5s var(--ease), visibility 0s .35s; }

.laptop { width: var(--lap-w); max-width: 86%; }
.laptop-screen { aspect-ratio: 16 / 10; overflow: hidden; background: #0b0b0c; border: clamp(5px, 1.1vw, 11px) solid #19191b; border-bottom-width: clamp(7px, 1.4vw, 14px); border-radius: clamp(8px, 1.5vw, 16px) clamp(8px, 1.5vw, 16px) 0 0; box-shadow: 0 0 0 1px #2d2d31; }
.laptop-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.laptop-base { position: relative; height: clamp(7px, 1.3vw, 14px); margin: 0 -7%; background: linear-gradient(#e7e5e1, #bdbab4 55%, #96938d); border-radius: 0 0 12px 12px; box-shadow: 0 22px 30px -12px rgba(20, 19, 15, .4); }
.laptop-base::before { content: ""; position: absolute; top: 0; left: 50%; width: 14%; height: 38%; margin-left: -7%; background: #a09d97; border-radius: 0 0 6px 6px; }

.phone { position: relative; display: flex; flex-direction: column; height: 94%; max-height: 580px; aspect-ratio: 390 / 844; overflow: hidden; background: #050505; border: 7px solid #19191b; border-radius: 13% / 6%; box-shadow: 0 0 0 1.5px #3b3b40, 0 34px 50px -22px rgba(20, 19, 15, .5); }
.phone-bar { position: relative; flex: none; height: 4.6%; background: #050505; }
.phone-bar::after { content: ""; position: absolute; top: 30%; left: 50%; width: 28%; height: 56%; margin-left: -14%; background: #1c1c1f; border-radius: 99px; }
.phone img { flex: 1; width: 100%; min-height: 0; object-fit: cover; object-position: top; }

/* ---------- Website before/after ---------- */
.versus { margin-top: clamp(64px, 9vw, 124px); }
.versus-head { display: grid; gap: 12px; margin-bottom: clamp(22px, 3vw, 34px); }
.versus-head .note { max-width: 30em; }
@media (min-width: 1000px) {
  .versus { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: end; }
  .versus-head { gap: 18px; margin-bottom: 0; }
}
.browser { overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 34px 60px -34px rgba(20, 19, 15, .4); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 8px; height: 8px; background: rgba(20, 19, 15, .18); border-radius: 50%; }
.cmp { --pos: 50%; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0b0b0c; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cmp-img { position: absolute; inset: 0; }
.cmp-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; }
.cmp-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-tag { position: absolute; bottom: 10px; padding: 5px 11px; background: rgba(20, 19, 15, .84); border-radius: 999px; color: #fff; font-size: .72rem; font-weight: 500; letter-spacing: .03em; line-height: 1.4; white-space: nowrap; }
.cmp-tag span { display: none; }
.cmp-before .cmp-tag { left: 10px; }
.cmp-after .cmp-tag { right: 10px; }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); display: grid; place-items: center; width: 44px; margin-left: -22px; }
.cmp-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.cmp-knob { position: relative; width: 44px; height: 44px; background: #fff; border-radius: 50%; box-shadow: 0 4px 18px rgba(0, 0, 0, .35); }
.cmp-knob::before, .cmp-knob::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border: solid var(--ink); }
.cmp-knob::before { left: 12px; border-width: 0 0 1.5px 1.5px; transform: rotate(45deg); }
.cmp-knob::after { right: 12px; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
@media (min-width: 700px) {
  .cmp-tag { bottom: 16px; padding: 6px 13px; font-size: .8rem; }
  .cmp-tag span { display: inline; }
  .cmp-before .cmp-tag { left: 16px; }
  .cmp-after .cmp-tag { right: 16px; }
}

/* ---------- Built for phones: the one dark band in the middle of the page ---------- */
.mm { margin: clamp(64px, 9vw, 124px) 0; background: var(--ink); color: var(--on-ink); }
.mm-grid { display: grid; gap: 44px; align-items: center; padding-block: clamp(60px, 8vw, 110px); }
.mm .display-2 em { color: var(--accent-soft); }
.mm-line { max-width: 24em; margin-top: 20px; color: var(--on-ink-muted); font-size: clamp(1.05rem, 1.55vw, 1.22rem); line-height: 1.55; }
.mm-device { display: grid; place-items: center; height: clamp(430px, 58vw, 560px); }
.mm .phone { height: 100%; border-color: #2b2a27; box-shadow: 0 0 0 1.5px #55524c, 0 40px 80px -30px #000; }
@media (min-width: 800px) {
  .mm-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; }
}

/* ---------- Concept sites: a row to swipe or step through ---------- */
.rail-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.rail-head .note { margin-top: 10px; }
.rail-nav { display: none; flex: none; gap: 8px; }
.js .rail-nav { display: flex; }
.rail-nav button { position: relative; width: 46px; height: 46px; background: none; border: 1px solid var(--ink); border-radius: 50%; cursor: pointer; transition: background-color .25s ease, opacity .25s ease; }
.rail-nav button::before { content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -6.5px; border: solid var(--ink); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); transition: border-color .25s ease; }
.rail-nav [data-rail-prev]::before { margin-left: -2.5px; transform: rotate(-135deg); }
.rail-nav button:hover:not(:disabled) { background: var(--ink); }
.rail-nav button:hover:not(:disabled)::before { border-color: var(--paper); }
.rail-nav button:disabled { cursor: default; opacity: .28; }
.rail { --edge: max(var(--gutter), calc((100% - var(--maxw)) / 2)); display: flex; gap: clamp(14px, 2vw, 24px); margin: 0; padding: clamp(20px, 3vw, 34px) var(--edge) 34px; overflow-x: auto; overscroll-behavior-x: contain; scroll-padding-inline: var(--edge); scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > li { flex: none; width: min(82%, 560px); scroll-snap-align: start; }
.tile { display: block; text-decoration: none; transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); transition: transform .6s var(--ease); }
.tile-img { display: block; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 0 0 0 rgba(20, 19, 15, 0); transition: box-shadow .6s var(--ease); }
.tile-img img { width: 100%; aspect-ratio: 1280 / 770; object-fit: cover; object-position: top; }
.tile-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 2px 0; }
.tile-label { color: var(--muted); font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.tile-name { font: 400 clamp(1.5rem, 3vw, 2rem)/1.1 var(--display); letter-spacing: -.01em; }
.tile-name::after { content: " \2197"; color: var(--accent); font-family: var(--body); font-size: .62em; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { --rx: 1.5deg; --ry: -2.5deg; --lift: -6px; }
  .tile:hover .tile-img { box-shadow: 0 30px 50px -26px rgba(20, 19, 15, .45); }
  .tile.is-tilting { transition-duration: .18s; }
}

/* ---------- See your business: the generator ----------
   The form and frame match the rest of the page. The two little sites drawn inside the frame (the joke one and the
   clean one) are sized in em from .gen-canvas, whose font size follows the frame's width, so they scale with it. */
.gen-sec { display: none; }
.js .gen-sec { display: block; }
.gen { display: grid; gap: 40px; }
.gen-form { display: grid; gap: 22px; align-content: start; }
.field { display: grid; gap: 4px; }
.field input, .field select { width: 100%; min-height: 48px; margin: 0; padding: 8px 0; background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; color: var(--ink); font: 400 1.15rem/1.3 var(--body); -webkit-appearance: none; appearance: none; }
.field select { padding-right: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2314130f' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center / 12px 8px; cursor: pointer; }
.field input::placeholder { color: rgba(20, 19, 15, .36); }
.field input:focus-visible, .field select:focus-visible { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.gen-form .btn { justify-self: start; min-width: 150px; margin-top: 6px; }
.gen-out { min-width: 0; }
.gen-bar { justify-content: flex-start; }
.gen-tab { max-width: 60%; margin: 0 auto; padding-right: 34px; overflow: hidden; color: var(--muted); font-size: .72rem; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.gen-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--card); container-type: inline-size; }
.gen-canvas { position: absolute; inset: 0; font-size: 10px; font-size: 1.3333cqw; line-height: 1.4; }
.gen-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gen-under { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; margin-top: 16px; }
.gen-under[hidden] { display: none; }
.gen-replay { background: none; border: 0; color: inherit; cursor: pointer; font: 500 1rem/1.6 var(--body); }
@media (max-width: 699px) {
  /* The frame becomes a phone */
  .gen-frame { width: min(300px, 84%); margin-inline: auto; background: #050505; border: 7px solid #19191b; border-radius: 40px; box-shadow: 0 0 0 1.5px #3b3b40, 0 34px 50px -22px rgba(20, 19, 15, .5); }
  .gen-bar { position: relative; height: 26px; background: #050505; border: 0; }
  .gen-bar i, .gen-tab { display: none; }
  .gen-bar::after { content: ""; position: absolute; top: 8px; left: 50%; width: 28%; height: 13px; margin-left: -14%; background: #1c1c1f; border-radius: 99px; }
  .gen-screen { aspect-ratio: 390 / 770; }
  .gen-canvas { font-size: 10px; font-size: 3.6cqw; }
  .gen-under { flex-direction: column; justify-content: center; margin-top: 20px; text-align: center; }
  .gen-cta { font-size: .94rem; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .gen-form { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
  .gen-form .btn { grid-column: 1; }
  .gen-form .note { grid-column: 2 / -1; align-self: center; margin-top: 6px; }
}
@media (min-width: 1100px) {
  .gen { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
}

/* The clean version. Each business type sets its own colors and headline style. */
.gg { --bg: #f5f2ec; --fg: #14130f; --ac: #2f5bff; --ac-fg: #fff; --kc: #2f5bff; --soft: #fcfbf8; --rule: rgba(20, 19, 15, .14); --p1: #dfe6ff; --p2: #aebdff; --hf: var(--display); --hw: 400; --ht: -.02em; --hc: none; --hs: 1; --br: 999px;
  position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); color: var(--fg); font-family: var(--body); }
.gg[data-type="barber"] { --bg: #15120e; --fg: #f3ead9; --ac: #c9a24a; --ac-fg: #15120e; --kc: #c9a24a; --soft: #1f1b15; --rule: rgba(243, 234, 217, .16); --p1: #2b241a; --p2: #6b5426; --hf: var(--body); --hw: 700; --ht: -.01em; --hc: uppercase; --hs: .78; --br: 4px; }
.gg[data-type="salon"] { --bg: #f8efe9; --fg: #2b2024; --ac: #9c4a5d; --ac-fg: #fff; --kc: #9c4a5d; --soft: #fff8f4; --rule: rgba(43, 32, 36, .14); --p1: #f1d6cf; --p2: #d9a5a7; }
.gg[data-type="detailing"] { --bg: #0b0d10; --fg: #f2f4f7; --ac: #3b9dff; --ac-fg: #06121f; --kc: #6fb6ff; --soft: #14181d; --rule: rgba(242, 244, 247, .14); --p1: #10202f; --p2: #1f5f9c; --hf: var(--body); --hw: 700; --ht: -.03em; --hs: .88; --br: 8px; }
.gg[data-type="lawn"] { --bg: #f3f6ee; --fg: #16261a; --ac: #2c7a3a; --ac-fg: #fff; --kc: #2c7a3a; --soft: #fff; --rule: rgba(22, 38, 26, .14); --p1: #cfe6c4; --p2: #7fbf7a; --hf: var(--body); --hw: 700; --ht: -.03em; --hs: .88; --br: 10px; }
.gg[data-type="pressure"] { --bg: #eef6fb; --fg: #0d2a3a; --ac: #0a6fb0; --ac-fg: #fff; --kc: #0a6fb0; --soft: #fff; --rule: rgba(13, 42, 58, .14); --p1: #cfe8f7; --p2: #6db8e6; --hf: var(--body); --hw: 700; --ht: -.03em; --hs: .88; }
.gg[data-type="hvac"] { --bg: #f6f7f9; --fg: #10233f; --ac: #c2410c; --ac-fg: #fff; --kc: #c2410c; --soft: #fff; --rule: rgba(16, 35, 63, .14); --p1: #d6e2f5; --p2: #f0a878; --hf: var(--body); --hw: 700; --ht: -.03em; --hs: .88; --br: 8px; }
.gg[data-type="cleaning"] { --bg: #f1faf7; --fg: #12302b; --ac: #0b7a6c; --ac-fg: #fff; --kc: #0b7a6c; --soft: #fff; --rule: rgba(18, 48, 43, .14); --p1: #cdeee6; --p2: #7fd1c0; }
.gg-top { display: flex; flex: none; align-items: center; gap: 2.2em; padding: 1.5em 2.8em; border-bottom: 1px solid var(--rule); }
.gg-logo { max-width: 55%; margin-right: auto; overflow: hidden; font-family: var(--hf); font-size: 2em; font-weight: var(--hw); letter-spacing: var(--ht); line-height: 1.15; text-overflow: ellipsis; text-transform: var(--hc); white-space: nowrap; }
.gg-nav { display: flex; gap: 1.8em; font-size: 1.15em; opacity: .72; }
.gg-burger { display: none; width: 2em; height: 1.3em; border: solid var(--fg); border-width: .2em 0; }
.gg-btn { display: inline-flex; align-items: center; justify-content: center; padding: .75em 1.6em; background: var(--ac); border-radius: var(--br); color: var(--ac-fg); font-size: 1.5em; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.gg-top .gg-btn { font-size: 1.15em; }
.gg-hero { display: grid; flex: 1; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.8em; align-items: center; min-height: 0; padding: 2.2em 2.8em; }
.gg-kicker { color: var(--kc); font-size: 1.05em; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; overflow-wrap: anywhere; }
.gg-h { margin-top: .3em; font-family: var(--hf); font-size: calc(4.6em * var(--hs)); font-weight: var(--hw); letter-spacing: var(--ht); line-height: 1; text-transform: var(--hc); overflow-wrap: anywhere; }
.gg-h.is-long { font-size: calc(3.5em * var(--hs)); }
.gg-sub { margin-top: .9em; font-size: 1.3em; opacity: .78; }
.gg-hero .gg-btn { margin-top: 1.1em; }
.gg-photo { display: flex; align-items: flex-end; align-self: stretch; min-height: 0; padding: 1.2em 1.4em; background: linear-gradient(135deg, var(--p1), var(--p2)); border-radius: 1.2em; }
.gg-photo span { font-size: 1em; font-weight: 600; letter-spacing: .12em; opacity: .7; text-transform: uppercase; }
.gg-services { display: grid; flex: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2em; padding: 0 2.8em 2.2em; }
.gg-card { display: flex; flex-direction: column; align-items: flex-start; gap: .6em; padding: 1.2em 1.4em; background: var(--soft); border: 1px solid var(--rule); border-radius: .9em; }
.gg-card b { font-size: 1.45em; font-weight: 600; line-height: 1.2; }
.gg-tag { padding: .2em .7em; border: 1px solid currentColor; border-radius: 999px; font-size: .95em; font-weight: 600; letter-spacing: .1em; line-height: 1.4; opacity: .68; text-transform: uppercase; }
@media (max-width: 699px) {
  .gg-top { gap: 1em; padding: 1.3em 1.6em; }
  .gg-nav, .gg-top .gg-btn { display: none; }
  .gg-burger { display: block; }
  .gg-logo { max-width: 80%; font-size: 1.75em; }
  .gg-hero { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 1.5em; padding: 1.8em 1.6em; }
  .gg-h { font-size: calc(3.5em * var(--hs)); }
  .gg-h.is-long { font-size: calc(2.7em * var(--hs)); }
  .gg-sub { display: none; }
  .gg-hero .gg-btn { display: flex; margin-top: 1.2em; padding: .85em; }
  .gg-photo { height: 8em; }
  .gg-services { grid-template-columns: minmax(0, 1fr); gap: .8em; padding: 0 1.6em 1.8em; }
  .gg-card { flex-direction: row-reverse; align-items: center; justify-content: space-between; padding: 1em 1.3em; }
}

/* The joke version: the same style as the page's intro, in miniature */
.gb { position: absolute; inset: 0; overflow: hidden; color: #000; font-family: "Times New Roman", Times, serif; }
.gb-bg { position: absolute; inset: 0; background-color: #008080; background-image: radial-gradient(circle, #ffff00 0 .3em, transparent .36em), radial-gradient(circle, #ff00ff 0 .24em, transparent .3em), linear-gradient(45deg, rgba(0, 0, 128, .35) 25%, transparent 25% 75%, rgba(0, 0, 128, .35) 75%); background-position: 0 0, 1.4em 1.4em, 0 0; background-size: 2.8em 2.8em, 2.8em 2.8em, 1.4em 1.4em; }
.gb-in { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: .8em; height: 100%; padding: 0 1.2em 1.4em; }
.gb-marquee { width: 100%; overflow: hidden; background: #000080; border: .25em ridge #c0c0c0; color: #ffff00; font: bold 1.3em/1.5 "Courier New", Courier, monospace; white-space: nowrap; }
.gb-marquee span { display: inline-block; padding-left: 60%; animation: gb-marquee 7s linear infinite; }
.gb-title { max-width: 100%; rotate: -3deg; background: linear-gradient(90deg, #ff0000, #ff9900, #ffff00, #33ff00, #00ffff, #3366ff, #ff00ff); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1px #000080; filter: drop-shadow(.06em .06em 0 #000); font: bold 5.2em/1 "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Comic Neue", cursive; overflow-wrap: anywhere; text-align: center; text-transform: uppercase; }
.gb-title.is-long { font-size: 3.5em; }
.gb-construction { display: flex; align-items: center; justify-content: center; gap: .7em; width: 92%; margin-left: -.8em; padding: .3em; background: #ffd500; border-top: .7em solid; border-bottom: .7em solid; border-image: repeating-linear-gradient(45deg, #000 0 .7em, #ffd500 .7em 1.4em) 10; font: bold 1.4em/1.2 Arial, Helvetica, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.gb-construction::before, .gb-construction::after { content: ""; border: solid transparent; border-width: 0 .5em .85em; border-bottom-color: #000; }
.gb-table { display: grid; grid-template-columns: 32% minmax(0, 1fr); gap: .3em; width: 100%; padding: .3em; background: #c0c0c0; border: .35em ridge #ff00ff; }
.gb-links, .gb-hello { padding: .6em .8em; border: .15em inset #fff; }
.gb-links { background: #00ff00; }
.gb-links b { display: block; color: #ff0000; font: bold 1.4em/1.3 "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive; text-decoration: underline; }
.gb-links span { display: block; color: #0000ee; font-size: 1.4em; line-height: 1.3; text-decoration: underline; }
.gb-links span + span { padding-left: .6em; color: #551a8b; }
.gb-hello { background: #ffff00; }
.gb-hello b { display: block; color: #ff0000; font: bold 1.7em/1.2 "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive; }
.gb-hello span { display: block; margin-top: .2em; color: #0000ff; font-size: 1.45em; font-style: italic; line-height: 1.25; overflow-wrap: anywhere; text-align: right; }
.gb-counter { color: #fff; font: bold 1.2em/1.4 Arial, Helvetica, sans-serif; text-align: center; text-shadow: 1px 1px 0 #000; }
.gb-counter span { display: inline-block; margin-left: .5em; padding: .05em .4em; background: #000; border: .2em inset #c0c0c0; color: #33ff00; font: bold 1.3em/1.2 "Courier New", Courier, monospace; letter-spacing: .18em; text-shadow: none; }
@media (max-width: 699px) {
  .gb-title { font-size: 4em; }
  .gb-title.is-long { font-size: 2.9em; }
  .gb-table { grid-template-columns: 38% minmax(0, 1fr); }
}

/* The change: after a moment the joke pieces leave and the clean version comes up underneath */
.gen-screen[data-state="bad"] .gg { opacity: 0; }
.gen-screen[data-state="fixing"] .gg { animation: gg-in .8s .3s var(--ease) both; }
.gen-screen[data-state="fixing"] .gb-bg { animation: gb-fade .55s .3s ease forwards; }
.gen-screen[data-state="fixing"] .gb-marquee span { animation: none; }
.gen-screen[data-state="fixing"] [data-out] { animation: gb-fade .6s var(--d, 0s) ease-in forwards; }
.gen-screen[data-state="fixing"] [data-out="fall"] { animation-name: gb-fall; }
.gen-screen[data-state="fixing"] [data-out="left"] { animation-name: gb-left; }
.gen-screen[data-state="fixing"] [data-out="right"] { animation-name: gb-right; }
/* Reduced motion: no flying pieces, just a cross-fade */
.gen-screen[data-state="fading"] .gb { opacity: 0; transition: opacity .5s ease; }
@keyframes gb-marquee { to { transform: translateX(-100%); } }
@keyframes gb-fade { to { opacity: 0; } }
@keyframes gb-fall { to { opacity: .8; transform: translateY(70em) rotate(22deg); } }
@keyframes gb-left { to { opacity: .8; transform: translateX(-95em) rotate(-12deg); } }
@keyframes gb-right { to { opacity: .8; transform: translateX(95em) rotate(12deg); } }
@keyframes gg-in { from { opacity: 0; transform: translateY(1.8em); } }
@media (prefers-reduced-motion: reduce) {
  .gb-marquee { white-space: normal; text-align: center; }
  .gb-marquee span { padding-left: 0; animation: none; }
}

/* ---------- How it works ---------- */
.steps { display: grid; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: baseline; padding: 24px 0; border-top: 1px solid var(--line); font: 400 clamp(1.6rem, 4.4vw, 2.15rem)/1.12 var(--display); letter-spacing: -.012em; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); color: var(--accent); font-style: italic; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
  .steps li, .steps li:last-child { grid-template-columns: 1fr; gap: 26px; padding: 26px 0 0; border-bottom: 0; }
  .steps li::before { font-size: 3.6rem; line-height: .9; }
}

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 16px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.plan-name { color: var(--muted); font: 500 .8rem/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.plan-price { margin-top: 20px; font: 400 3.5rem/1 var(--display); letter-spacing: -.02em; }
.plan-price small { color: var(--muted); font: 400 1rem/1 var(--body); letter-spacing: 0; }
.plan-month { margin-top: 8px; font-weight: 500; }
.plan .ticks { margin: 24px 0 28px; font-size: .97rem; line-height: 1.5; }
.plan .btn { width: 100%; margin-top: auto; }
.plan-flag { position: absolute; top: 22px; right: 20px; padding: 5px 11px; background: var(--accent); border-radius: 999px; color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
/* The highlighted plan is the one dark card */
.plan-top { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.plan-top .plan-name, .plan-top .plan-price small { color: var(--on-ink-muted); }
.plan-top .ticks li { border-color: var(--line-on-ink); }
.plan-top .ticks li::before { border-color: var(--accent-soft); }
.plans-note { max-width: 44em; margin-top: 26px; color: var(--muted); }
@media (min-width: 640px) and (max-width: 979px) {
  .plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-rows: auto auto auto 1fr; column-gap: 40px; padding: 30px; }
  .plan-name, .plan-price, .plan-month, .plan .btn { grid-column: 1; }
  .plan .ticks { grid-column: 2; grid-row: 1 / span 4; margin: 0; }
  .plan .btn { align-self: end; margin-top: 24px; }
  .plan-flag { position: static; grid-column: 1; justify-self: start; margin-bottom: 14px; }
  .plan-top .ticks { grid-row: 1 / span 5; }
}
@media (min-width: 980px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .plan { padding: 32px 28px 28px; }
}

/* ---------- Contact and footer ---------- */
.contact { background: var(--ink); color: var(--on-ink); }
.contact .sec-head { margin-bottom: 0; border-color: var(--line-on-ink); }
.contact .sec-head::before { padding-top: 0; color: var(--accent-soft); }
.contact .kicker { color: var(--on-ink-muted); }
.contact .display em { color: var(--accent-soft); }
.contact-foot { display: grid; gap: 26px; margin-top: clamp(30px, 5vw, 60px); }
.contact .lede { color: var(--on-ink-muted); }
.contact .text-link:hover { color: var(--accent-soft); }
@media (min-width: 900px) {
  .contact-foot { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 64px; padding-left: 100px; }
}
.ft { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 28px; padding: 22px var(--gutter) 34px; background: var(--ink); border-top: 1px solid var(--line-on-ink); color: var(--on-ink-muted); font-size: .88rem; }
.ft p { margin: 0; }

/* ---------- Motion: things rise in as they scroll into view ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  /* Headlines: each word rises out of its own line. portfolio.js wraps the words. */
  .w { display: inline-block; overflow: hidden; margin: -.1em -.08em -.22em; padding: .1em .08em .22em; vertical-align: top; }
  .wi { display: inline-block; transform: translateY(120%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
  .is-in .wi { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn-arrow::after, .text-link, .seg button, .stage-area, .stage-area > *, .tile, .tile-img, .rail-nav button { transition: none !important; }
  .tile, .tile:hover { transform: none; }
}
