/* ═══════════════════════════════════════════════════════════
   Barn Yard Buddies — light, typography-driven design
   Fonts: Host Grotesk (body/UI), DM Sans (display), Codystar (accent)
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #ebebeb;
  --bg-soft: #f5f5f5;
  --text: #0b0b0b;
  --muted: #575757;
  --dim: #9f9f9f;
  --line: rgba(0, 0, 0, 0.1);
  --chip-bg: rgba(255, 255, 255, 0.6);
  --chip-text: #0b0b0b;
  --bar-bg: rgba(0, 0, 0, 0.32);
  --bar-text: rgba(255, 255, 255, 0.92);
  --field-bg: rgba(0, 0, 0, 0.02);
  --field-border: rgba(0, 0, 0, 0.1);
  --accent: #9d2a1c;      /* brand red, from the logo */
  --font-sans: "Host Grotesk", system-ui, sans-serif;
  --font-display: "DM Sans", sans-serif;
  --font-brand: "Fredoka", sans-serif;
  --gutter: 5vw;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}


* { box-sizing: border-box; margin: 0; padding: 0; }

::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 380;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 1s var(--ease), color 1s var(--ease);
}

::selection { background: var(--text); color: var(--bg); }

main { padding: 0 var(--gutter); }

/* ── Reveal-on-scroll ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(2.2rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Shared type ─────────────────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: clamp(0.7rem, 0.9vw, 0.95rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.eyebrow .dot {
  width: 0.5em; height: 0.5em;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.statement {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(1.8rem, 3.2vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.statement em {
  font-style: italic;
  font-weight: 380;
  color: var(--muted);
}
.statement-xl { font-size: clamp(2.2rem, 4.6vw, 5.4rem); }

.fade { color: var(--dim); }

.dots-accent {
  font-family: var(--font-brand);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.body-copy {
  color: var(--muted);
  max-width: 56ch;
  font-size: clamp(0.95rem, 1.1vw, 1.2rem);
}

.index {
  font-size: clamp(0.7rem, 0.85vw, 0.9rem);
  color: var(--dim);
  letter-spacing: 0.1em;
}

.arrow, .spark {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
a:hover .arrow, button:hover .arrow { transform: translate(0.15em, -0.15em); }
a:hover .spark, button:hover .spark { transform: rotate(90deg); }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--gutter);
}
.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem; height: 3.6rem;
  border-radius: 1rem;
  background: var(--chip-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: var(--chip-text);
  overflow: hidden;
  transition: transform 0.25s var(--ease), background 0.3s var(--ease);
}
.chip:hover { transform: scale(1.05); }
.form-chip {
  background: #0b0b0b;
  color: #fff;
}
.form-chip:hover { background: #232323; }
.logo-chip {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  width: 4.6rem;
  height: 4.6rem;
  color: var(--text);
}
.logo-mark {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.logo-tie { fill: var(--accent); }

.nav-bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  height: 3.6rem;
  border-radius: 1rem;
  background: var(--bar-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0 1vw;
}
.nav-bar a {
  color: var(--bar-text);
  text-decoration: none;
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  font-weight: 430;
  padding: 0 2.2vw;
  height: 100%;
  display: flex;
  align-items: center;
  transition: opacity 0.3s var(--ease);
}
.nav-bar a:hover { opacity: 0.65; }

.nav-right { display: flex; gap: 0.6rem; }

.mail-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-burger span {
  display: block;
  width: 1.2rem; height: 1.5px;
  margin: 0 auto;
  background: var(--chip-text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
  padding: 0 8vw;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 2rem;
}
.mobile-menu a:hover, .mobile-menu .mobile-cta { color: var(--text); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 7rem;
  padding-bottom: 2rem;
  position: relative;
}
.hero::before {
  /* soft warm glow pulled from the logo palette */
  content: "";
  position: absolute;
  top: -20%; right: -15%;
  width: 55vw; height: 55vw;
  background: radial-gradient(closest-side, rgba(176, 67, 47, 0.07), transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  animation: heroFade 1s var(--ease) 0.15s both;
}
.hero-display {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(2.7rem, 8.4vw, 9.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 3vw 0 4vw;
}
.hero-display .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  will-change: transform;
}
.hero-display .line-inner {
  display: inline-block;
  transform: translateY(115%);
  animation: heroRise 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-display .line:nth-child(1) .line-inner { animation-delay: 0.25s; }
.hero-display .line:nth-child(2) .line-inner { animation-delay: 0.38s; }
.hero-display .line:nth-child(3) .line-inner { animation-delay: 0.51s; }
.hero-display em {
  font-style: italic;
  font-weight: 400;
  color: var(--dim);
}
@keyframes heroRise {
  to { transform: translateY(0); }
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: none; }
}

/* "coats" wears a fur coat: turbulence filter shags the glyph edges */
.furry { filter: url(#fur); }

/* The tittle of the i in "nails" is a claw (dotless ı + svg nail) */
.i-nail { position: relative; }
.nail-dot {
  position: absolute;
  left: -0.005em;
  top: 0.19em;
  width: 0.145em;
  height: 0.19em;
  fill: var(--accent);
  transform: rotate(8deg);
}

/* Abstract dog hiding in the type: the “gg” gets eyes, the sentence ends in a tail */
.g-eye { position: relative; }
.pupil {
  position: absolute;
  left: 53%;
  top: 55%;
  width: 0.088em;
  height: 0.088em;
  margin: -0.044em 0 0 -0.044em;
  border-radius: 50%;
  background: var(--text);
  transform: translate(calc(var(--pupil-x, 0) * 0.045em), calc(var(--pupil-y, 0) * 0.045em));
  animation: pupilBlink 4.6s infinite;
  pointer-events: none;
}
@keyframes pupilBlink {
  0%, 92%, 96%, 100% { opacity: 1; }
  93.5%, 94.5% { opacity: 0; }
}
.hero-tail {
  height: 0.62em;
  width: auto;
  display: inline-block;
  vertical-align: baseline;
  margin-left: 0.05em;
  color: var(--dim);
  overflow: visible;
}
.hero-tail path {
  transform-origin: 8px 58px;
  animation: tailWag 0.5s ease-in-out infinite alternate;
}
@keyframes tailWag {
  from { transform: rotate(-14deg); }
  to { transform: rotate(16deg); }
}
.hero-display .line:hover .hero-tail path { animation-duration: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  .pupil, .hero-tail path { animation: none; }
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 4vw;
  animation: heroFade 1s var(--ease) 0.9s both;
}
.hero-copy {
  color: var(--muted);
  max-width: 44ch;
  font-size: clamp(0.95rem, 1.1vw, 1.2rem);
}
.trust-line {
  margin-top: 1.2em;
  font-size: clamp(0.68rem, 0.75vw, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dim);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-shrink: 0;
}
.hero-link {
  color: var(--muted);
  text-decoration: none;
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: color 0.3s var(--ease);
}
.hero-link:hover { color: var(--text); }
.hero-link .arrow { transition: transform 0.3s var(--ease); }
.hero-link:hover .arrow { transform: translateY(0.15em); }

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-foot { animation: none; }
  .hero-display .line-inner { animation: none; transform: none; }
}

/* ── Marquee ─────────────────────────────────────────────── */
.marquee {
  margin: 7vw calc(-1 * var(--gutter)) 0;
  padding: 1.4vw 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 3vw;
  animation: scroll 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 2rem);
  color: var(--muted);
}
.marquee-track i {
  font-style: normal;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
}
.mq-icon {
  width: clamp(1.4rem, 2vw, 2.3rem);
  height: clamp(1.4rem, 2vw, 2.3rem);
  fill: currentColor;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ── Value props ─────────────────────────────────────────── */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3vw;
  margin-top: 8vw;
}
.value {
  border-top: 1px solid var(--line);
  padding-top: 1.4vw;
}
.value-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4vw;
}
.dot-grid {
  width: 1.6rem; height: 1.6rem;
  background-image: radial-gradient(var(--dim) 1.2px, transparent 1.2px);
  background-size: 0.55rem 0.55rem;
  opacity: 0.9;
}
.value h3 {
  font-family: var(--font-display);
  font-weight: 520;
  font-size: clamp(1.2rem, 1.6vw, 1.8rem);
  margin-bottom: 0.6em;
  letter-spacing: -0.01em;
}
.value p { color: var(--muted); font-size: clamp(0.9rem, 1vw, 1.1rem); }

/* ── Sections ────────────────────────────────────────────── */
section { scroll-margin-top: 7rem; }
.section-head { margin-bottom: 4vw; }
.section-head .eyebrow { margin-bottom: 1.6vw; }

.services, .portfolio, .pricing, .about, .faq, .contact { margin-top: 12vw; }

/* ── Service rows ────────────────────────────────────────── */
.service-list { border-bottom: 1px solid var(--line); }
.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 6ch 1fr auto;
  align-items: start;
  gap: 2.5vw;
  padding: 3vw 0;
  border-top: 1px solid var(--line);
}
.service-row::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--gutter));
  background: var(--bg-soft);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.service-row:hover::before { opacity: 1; }
.service-row > * { position: relative; }
.service-row .index { padding-top: 0.6em; }
.service-main h3 {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(1.6rem, 2.6vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  transition: transform 0.4s var(--ease);
}
.service-row:hover .service-main h3 { transform: translateX(0.6vw); }
.service-main p {
  color: var(--muted);
  max-width: 52ch;
  margin-top: 0.7em;
  font-size: clamp(0.9rem, 1vw, 1.1rem);
}
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1em;
}
.chips li {
  font-size: clamp(0.7rem, 0.8vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 2em;
  padding: 0.4em 0.9em;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-row:hover .chips li { color: var(--text); border-color: var(--dim); }
.service-cta {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--muted);
  text-decoration: none;
  font-size: clamp(0.85rem, 0.95vw, 1rem);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.service-cta:hover, .service-row:hover .service-cta { color: var(--text); }

/* ── Portfolio ───────────────────────────────────────────── */
.portfolio-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5vw;
  margin-bottom: 5vw;
}
.portfolio-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 60vw;
}
.portfolio-aside {
  max-width: 24vw;
  padding-top: 0.6vw;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.1vw, 1.2rem);
}
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw 2.2vw;
}
.work-card { display: flex; flex-direction: column; gap: 1.2em; }
.work-media {
  position: relative;
  aspect-ratio: 10 / 7;
  border-radius: 0.4vw;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: crosshair;
  outline: none;
}
.work-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
}
.work-media .img-before {
  opacity: 0;
  transform: scale(1.06);
}
.work-media:hover .img-before,
.work-media:focus-visible .img-before,
.work-media.show-before .img-before { opacity: 1; }
.work-media:hover .img-after,
.work-media:focus-visible .img-after,
.work-media.show-before .img-after { transform: scale(1.04); }
.tag {
  position: absolute;
  top: 1em; left: 1em;
  z-index: 2;
  font-size: clamp(0.65rem, 0.75vw, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.45em 1em;
  border-radius: 2em;
  backdrop-filter: blur(12px);
  transition: opacity 0.4s var(--ease);
}
.tag-after { background: rgba(255, 255, 255, 0.85); color: #000; }
.tag-before { background: var(--accent); color: #f5efe2; opacity: 0; }
.work-media:hover .tag-after,
.work-media:focus-visible .tag-after,
.work-media.show-before .tag-after { opacity: 0; }
.work-media:hover .tag-before,
.work-media:focus-visible .tag-before,
.work-media.show-before .tag-before { opacity: 1; }
.work-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.work-meta h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.work-loc {
  color: var(--muted);
  font-size: clamp(0.85rem, 0.95vw, 1.05rem);
  text-align: left;
  line-height: 1.35;
  padding-top: 0.3em;
}
.work-loc span {
  display: block;
  color: var(--dim);
}
.work-hint {
  display: none;
  margin-top: 1.5rem;
  color: var(--dim);
  font-size: 0.85rem;
}

/* ── Pricing ─────────────────────────────────────────────── */
.pricing {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5vw;
  align-items: start;
}
.pricing-copy .eyebrow { margin-bottom: 1.6vw; }
.pricing-copy .statement { margin-bottom: 1.6vw; }
.pricing-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 1vw;
  padding: 3vw;
}
.card-label {
  font-size: clamp(0.72rem, 0.85vw, 0.9rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dim);
  margin-bottom: 1.6em;
}
.checklist { list-style: none; }
.checklist li {
  display: flex;
  gap: 0.9em;
  padding: 0.9em 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: clamp(0.9rem, 1vw, 1.1rem);
}
.checklist li::before { content: "✦"; color: var(--accent); font-size: 0.8em; padding-top: 0.25em; }

/* ── Price table ─────────────────────────────────────────── */
.price-table-wrap {
  grid-column: 1 / -1;
  margin-top: 3vw;
  border: 1px solid var(--line);
  border-radius: 1vw;
  padding: 3vw;
  background: var(--bg-soft);
  overflow-x: auto;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.price-table th, .price-table td {
  text-align: left;
  padding: 1.1em 1em 1.1em 0;
  border-bottom: 1px solid var(--line);
  font-weight: 380;
}
.price-table thead th {
  font-size: clamp(0.7rem, 0.8vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dim);
  font-weight: 480;
}
.price-table thead th span {
  display: block;
  margin-top: 0.3em;
  opacity: 0.7;
  letter-spacing: 0.05em;
}
.price-table tbody th {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  letter-spacing: -0.01em;
  color: var(--text);
}
.price-table tbody td {
  color: var(--muted);
  font-size: clamp(0.9rem, 1vw, 1.1rem);
}
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td { border-bottom: none; }
.price-note {
  margin-top: 1.6em;
  color: var(--dim);
  font-size: clamp(0.82rem, 0.9vw, 0.95rem);
  max-width: 60ch;
}

/* ── About ───────────────────────────────────────────────── */
.about .statement-xl { margin: 2vw 0 3.5vw; max-width: 22ch; }
.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  margin-left: auto;
  max-width: 62vw;
}
.about-cols p { color: var(--muted); font-size: clamp(0.95rem, 1.15vw, 1.25rem); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list { border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2vw 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 470;
  font-size: clamp(1.1rem, 1.7vw, 2rem);
  letter-spacing: -0.01em;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover, .faq-item[open] summary { color: var(--text); }
.plus {
  position: relative;
  flex: none;
  width: 1.1rem; height: 1.1rem;
}
.plus::before, .plus::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}
.plus::after { transform: rotate(90deg); }
.faq-item[open] .plus::after { transform: rotate(0); }
.faq-item p {
  color: var(--muted);
  max-width: 60ch;
  padding-bottom: 2.2vw;
  font-size: clamp(0.9rem, 1.05vw, 1.15rem);
}

/* ── Contact ─────────────────────────────────────────────── */
.contact-statement {
  max-width: 68vw;
  margin-bottom: 5vw;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6vw;
  align-items: start;
}
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 2.5vw;
}
.contact-open .body-copy { margin-bottom: 2vw; }
.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.contact-block h3 {
  font-size: clamp(0.7rem, 0.8vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--dim);
  font-weight: 480;
  margin-bottom: 0.8em;
}
.contact-block a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: clamp(1rem, 1.15vw, 1.25rem);
  transition: color 0.3s var(--ease);
  width: fit-content;
  margin-bottom: 0.3em;
}
.contact-block a:hover { color: var(--text); }
.contact-block p {
  color: var(--muted);
  font-size: clamp(1rem, 1.15vw, 1.25rem);
}

/* Lesse-style boxed fields with floating labels */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1vw;
}
.form-label {
  font-size: clamp(0.75rem, 0.9vw, 0.95rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1vw;
}
.form-row {
  display: flex;
  gap: 1vw;
}
.form-row .box-field { flex: 1; }
.box-field {
  position: relative;
  height: clamp(3.2rem, 3.5vw, 4rem);
  border-radius: clamp(0.5rem, 0.5vw, 0.6rem);
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  cursor: text;
  transition: border-color 0.4s var(--ease);
}
.box-field:focus-within { border-color: var(--muted); }
.box-field label {
  position: absolute;
  left: clamp(0.7rem, 0.75vw, 0.9rem);
  top: 50%;
  transform: translateY(-50%);
  color: color-mix(in srgb, var(--text) 50%, transparent);
  font-size: clamp(0.85rem, 1vw, 1.05rem);
  pointer-events: none;
  transition: top 0.3s var(--ease), transform 0.3s var(--ease), font-size 0.3s var(--ease);
  white-space: nowrap;
  max-width: calc(100% - 1.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
}
.box-field input:focus ~ label,
.box-field input:not(:placeholder-shown) ~ label,
.box-field textarea:focus ~ label,
.box-field textarea:not(:placeholder-shown) ~ label {
  top: clamp(0.45rem, 0.5vw, 0.6rem);
  transform: none;
  font-size: clamp(0.62rem, 0.7vw, 0.75rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.box-field input, .box-field textarea {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: clamp(1.9rem, 1.9vw, 2.2rem);
  padding: 0 clamp(0.7rem, 0.75vw, 0.9rem) 0.35em;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1vw, 1.1rem);
}
.box-area { height: clamp(9rem, 12vw, 14rem); }
.box-area textarea {
  top: clamp(1.9rem, 2vw, 2.4rem);
  height: calc(100% - clamp(2.4rem, 2.5vw, 3rem));
  resize: none;
  line-height: 1.4;
}
.box-area label { top: clamp(1rem, 1.1vw, 1.3rem); transform: none; }

.form-services { margin: 1.5vw 0; }
.form-services h3 {
  font-size: clamp(0.75rem, 0.9vw, 0.95rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 450;
  margin-bottom: 1.2vw;
}
.pick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8vw 2vw;
}
.service-pick {
  display: flex;
  align-items: center;
  gap: 0.8vw;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  color: var(--text);
  opacity: 0.5;
  padding: 0.3em 0;
  transition: opacity 0.3s var(--ease);
}
.service-pick:hover { opacity: 0.8; }
.service-pick.selected { opacity: 1; }
.service-pick .circle {
  flex: none;
  width: clamp(1.1rem, 1.1vw, 1.3rem);
  height: clamp(1.1rem, 1.1vw, 1.3rem);
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--dim) 60%, transparent);
  background: transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-pick.selected .circle {
  background: var(--text);
  border-color: var(--text);
}

.form-photo {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  margin-bottom: 1.5vw;
}
.form-photo label {
  font-size: clamp(0.75rem, 0.9vw, 0.95rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.form-photo input { color: var(--muted); font-size: clamp(0.85rem, 0.95vw, 1rem); }
.form-photo input::file-selector-button {
  background: transparent;
  border: 1px solid var(--field-border);
  border-radius: 2em;
  color: var(--muted);
  font-family: var(--font-sans);
  padding: 0.5em 1.2em;
  margin-right: 1em;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.form-photo input::file-selector-button:hover { border-color: var(--dim); color: var(--text); }

.btn-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: clamp(0.6rem, 0.6vw, 0.8rem);
  padding: 1em 1.8em;
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  font-weight: 480;
  cursor: pointer;
  transition: transform 0.25s var(--ease), opacity 0.3s var(--ease);
}
.btn-submit:hover { transform: scale(1.04); }
.btn-book {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  color: var(--text);
  border: 1px solid var(--field-border);
  border-radius: clamp(0.6rem, 0.6vw, 0.8rem);
  padding: calc(1em - 1px) 1.8em;
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  font-weight: 480;
  text-decoration: none;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-book:hover {
  transform: scale(1.04);
  border-color: var(--text);
}
.form-confirm {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.7rem);
  color: var(--text);
}
.form-confirm p { margin-bottom: 1rem; }
.form-confirm .btn-book {
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

/* ── Estimate form modal ─────────────────────────────────── */
.form-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
}
.form-modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.4s var(--ease);
}
.modal-panel {
  position: absolute;
  top: 1.2rem; right: 1.2rem; bottom: 1.2rem;
  width: min(600px, calc(100vw - 2.4rem));
  background: #0e0e0e;
  color: #ebebeb;
  border-radius: 1.5rem;
  padding: clamp(1.6rem, 3vw, 3rem);
  overflow-y: auto;
  animation: slideIn 0.5s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideIn { from { transform: translateX(4rem); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal-panel { animation: none; }
}
.modal-close {
  position: absolute;
  top: clamp(1.2rem, 2vw, 2rem);
  right: clamp(1.2rem, 2vw, 2rem);
  background: none;
  border: none;
  color: #9f9f9f;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.modal-close:hover { color: #fff; transform: rotate(90deg); }
.modal-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  max-width: 12ch;
}
.modal-title .fade { color: #6f6f6f; }

/* Dark form fields inside the modal */
.form-modal .contact-form { gap: 0.9rem; }
.form-modal .form-row { gap: 0.9rem; }
.form-modal .box-field {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(159, 159, 159, 0.3);
}
.form-modal .box-field:focus-within { border-color: #9f9f9f; }
.form-modal .box-field label { color: rgba(255, 255, 255, 0.55); }
.form-modal .box-field input,
.form-modal .box-field textarea { color: #fff; }
.form-modal .form-services h3 { color: #ebebeb; }
.form-modal .service-pick { color: #ebebeb; }
.form-modal .service-pick .circle { border-color: rgba(159, 159, 159, 0.5); }
.form-modal .service-pick.selected .circle { background: #fff; border-color: #fff; }
.form-modal .form-photo label { color: #9f9f9f; }
.form-modal .form-photo input { color: #9f9f9f; }
.form-modal .form-photo input::file-selector-button {
  border-color: rgba(159, 159, 159, 0.3);
  color: #b6b6b6;
}
.form-modal .form-photo input::file-selector-button:hover { color: #fff; border-color: #9f9f9f; }
.form-modal .btn-submit { background: #ebebeb; color: #0b0b0b; }
.form-modal .form-confirm { color: #ebebeb; }
.form-modal .btn-book { color: #ebebeb; border-color: rgba(255, 255, 255, 0.35); }
.form-modal .btn-book:hover { border-color: #ebebeb; }
.form-modal .form-services { margin: 0.8rem 0; }
.form-modal .pick-grid { gap: 0.7rem 1.5rem; }
.form-modal .form-photo { margin-bottom: 0.8rem; }

body.modal-open { overflow: hidden; }

/* ── Floating bottom CTA ─────────────────────────────────── */
.bottom-pill {
  position: fixed;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  height: 3.6rem;
  padding: 0 1.8em;
  border: none;
  border-radius: 1rem;
  background: var(--bar-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: var(--bar-text);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  font-weight: 450;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(1.5rem);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
body.past-hero .bottom-pill {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%);
}
.bottom-pill:hover { transform: translateX(-50%) scale(1.05); }
.bottom-pill .spark { color: #fff; }

/* ── Footer (stays dark in both themes) ──────────────────── */
.footer {
  margin-top: 14vw;
  padding: 5vw var(--gutter) 8rem;
  background: #0b0b0b;
  color: #ebebeb;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3vw;
}
.footer-col { display: flex; flex-direction: column; gap: 0.7em; }
.footer-col h3 {
  font-size: clamp(0.7rem, 0.8vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ebebeb;
  font-weight: 500;
  margin-bottom: 0.8em;
}
.footer-col a {
  color: #575757;
  text-decoration: none;
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  transition: color 0.3s var(--ease);
  width: fit-content;
}
.footer-col a:hover { color: #b8b8b8; }
.footer-note p { color: #575757; font-size: clamp(0.9rem, 1vw, 1.05rem); }

.footer-logo {
  display: block;
  width: min(520px, 55vw);
  height: auto;
  margin: 6vw auto 4vw;
  user-select: none;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 1.6vw;
  font-size: clamp(0.72rem, 0.8vw, 0.85rem);
  color: #575757;
}
.footer-bar a { color: #575757; text-decoration: none; transition: color 0.3s var(--ease); }
.footer-bar a:hover { color: #ebebeb; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .navbar { padding: 1rem var(--gutter); }
  .nav-bar { display: none; }
  .nav-burger { display: flex; }
  .chip { width: 3.2rem; height: 3.2rem; border-radius: 0.85rem; }

  .hero { padding-top: 8rem; min-height: 92svh; }
  .hero-display { font-size: clamp(2.6rem, 12.5vw, 4.6rem); margin: 2rem 0 2.5rem; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 1.8rem; }
  .hero-actions { flex-wrap: wrap; gap: 1.2rem; }

  .marquee { margin-top: 14vw; padding: 3.5vw 0; }
  .values { grid-template-columns: 1fr; gap: 2.5rem; margin-top: 16vw; }
  .value-head { margin-bottom: 1.2rem; }

  .services, .portfolio, .pricing, .about, .faq, .contact { margin-top: 22vw; }
  .section-head { margin-bottom: 2.5rem; }
  .section-head .eyebrow { margin-bottom: 1rem; }

  .service-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem 0;
  }
  .service-row .index { padding-top: 0; }
  .service-cta { align-self: flex-start; }

  .portfolio-head { flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
  .portfolio-title, .portfolio-aside { max-width: none; }
  .work-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .work-media { border-radius: 0.6rem; }
  .work-hint { display: block; }

  .pricing { grid-template-columns: 1fr; gap: 2.5rem; }
  .pricing-card { border-radius: 0.8rem; padding: 1.6rem; }
  .pricing-copy .eyebrow, .pricing-copy .statement { margin-bottom: 1.2rem; }
  .price-table-wrap { margin-top: 0; border-radius: 0.8rem; padding: 1.4rem; overflow-x: visible; }
  /* Stack the price table into per-service cards on small screens */
  .price-table { min-width: 0; }
  .price-table thead { display: none; }
  .price-table tbody tr {
    display: block;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
  }
  .price-table tbody tr:last-child { border-bottom: none; padding-bottom: 0.2rem; }
  .price-table tbody th {
    display: block;
    border: none;
    padding: 0 0 0.5rem;
  }
  .price-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    border: none;
    padding: 0.25rem 0;
  }
  .price-table tbody td[data-size]::before {
    content: attr(data-size);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dim);
  }
  .price-note { margin-top: 1.2rem; }

  .about .statement-xl { margin: 1.2rem 0 2rem; }
  .about-cols { grid-template-columns: 1fr; max-width: none; gap: 1.5rem; }

  .faq-item summary { padding: 1.3rem 0; }
  .faq-item p { padding-bottom: 1.5rem; }

  .contact-statement { max-width: none; margin-bottom: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-aside { flex-direction: row; flex-wrap: wrap; gap: 2rem 3rem; }
  .contact-form { gap: 0.8rem; }
  .form-label { margin-bottom: 0.6rem; }
  .form-row { flex-direction: column; gap: 0.8rem; }
  /* flex:1 has basis 0, which collapses the fixed-height boxes once the row stacks */
  .form-row .box-field { flex: none; }
  .pick-grid { grid-template-columns: 1fr; gap: 0.7rem; }
  .service-pick { gap: 0.8rem; }
  .form-services { margin: 1.2rem 0; }
  .form-photo { margin-bottom: 1.2rem; }

  .bottom-pill { bottom: 1.1rem; height: 3.2rem; }

  .footer { padding-top: 3rem; padding-bottom: 7rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
  .footer-logo { width: 78vw; margin: 3.5rem auto 2.5rem; }
  .logo-chip { width: 3.9rem; height: 3.9rem; }
  .footer-bar { padding-top: 1.2rem; flex-direction: column; align-items: flex-start; }
}
