/* =========================================================
   Twisted Scissors — shared styles
   Palette: porcelain / plum-charcoal ink / dusty mauve accent
   Type: Fraunces (display) + Inter (body)
   ========================================================= */

/* Smooth cross-fade between pages (supported browsers; ignored elsewhere) */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.32s; }

:root {
  --porcelain: #F3F1EC;
  --porcelain-soft: #EEEAE3;
  --mauve-tint: #EDE5E7;
  --ink: #241F27;
  --ink-soft: #322B36;
  --stone: #6E6772;
  --mauve: #93697B;
  --mauve-deep: #6E4E5C;
  --champagne: #C9AE86;
  --line: rgba(36, 31, 39, 0.12);
  --line-light: rgba(243, 241, 236, 0.16);

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;

  --ff-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--mauve-deep); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

/* ---------- layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }

.eyebrow {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mauve);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--mauve);
  opacity: 0.7;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--stone);
  max-width: 46ch;
}

.display-xl { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
.display-l  { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.display-m  { font-size: clamp(1.7rem, 3vw, 2.3rem); }

.accent-italic { font-style: italic; color: var(--mauve-deep); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--ff-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--porcelain);
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover { background: var(--mauve-deep); border-color: var(--mauve-deep); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--porcelain); }

.btn--light {
  background: var(--porcelain);
  color: var(--ink);
  border-color: var(--porcelain);
}
.btn--light:hover { background: var(--mauve); border-color: var(--mauve); color: var(--porcelain); }

.textlink {
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mauve-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s var(--ease);
}
.textlink:hover { gap: 0.85rem; }
.textlink::after { content: "\2192"; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(243, 241, 236, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo {
  height: 54px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a:not(.btn) {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-block: 0.4rem;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--mauve);
  transition: width 0.32s var(--ease);
}
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn)[aria-current="page"]::after { width: 100%; }
.nav-links a:not(.btn)[aria-current="page"] { color: var(--mauve-deep); }

/* Accent CTA button in the nav — mauve so it reads as a button and fits the palette */
.nav-cta { margin-left: 0.5rem; }
.nav-cta .btn {
  padding: 0.7rem 1.25rem;
  background: var(--mauve-deep);
  border-color: var(--mauve-deep);
  color: var(--porcelain);
}
.nav-cta .btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--porcelain);
}

/* hamburger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero (home, text-only) ---------- */
.hero {
  text-align: center;
  padding-block: clamp(4.5rem, 13vh, 9rem);
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 860px; margin-inline: auto; }
.hero .eyebrow { justify-content: center; }
.hero .eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--mauve);
  opacity: 0.7;
}
.hero h1 {
  font-size: clamp(2.7rem, 7vw, 5rem);
  margin-bottom: 1.6rem;
}
.hero .lede { margin: 0 auto 2.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }
.hero-tags {
  margin: 3.25rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  max-width: 640px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  line-height: 2;
}

/* page banner (interior pages) */
.page-banner {
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.page-banner .lede { margin-top: 1.25rem; }

/* ---------- generic section heads ---------- */
.section-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head .lede { margin-top: 1rem; }

/* ---------- service preview grid ---------- */
.grid-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--porcelain);
  padding: clamp(1.6rem, 3vw, 2.3rem);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: background 0.35s var(--ease);
}
.service-card:hover { background: var(--mauve-tint); }
.service-card .num {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--mauve);
}
.service-card h3 { font-size: 1.45rem; }
.service-card p { color: var(--stone); font-size: 0.95rem; }

/* ---------- full services list (services page) ---------- */
.svc-block { border-top: 1px solid var(--line); padding-block: clamp(2rem, 4vw, 2.75rem); }
.svc-block:last-child { border-bottom: 1px solid var(--line); }
.svc-block-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: start;
}
.svc-block h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.svc-block .svc-kicker {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 0.7rem;
}
.svc-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
.svc-list li {
  padding: 0.4rem 0 0.4rem 1.3rem;
  position: relative;
  break-inside: avoid;
  color: var(--ink-soft);
}
.svc-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.95rem;
  width: 7px; height: 7px;
  border: 1px solid var(--mauve);
  transform: rotate(45deg);
}
.svc-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--stone);
}

/* ---------- gallery strip / grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.6rem, 1.2vw, 1rem);
}
.gallery-grid.is-strip { grid-template-columns: repeat(4, 1fr); }
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--ink);
  border-radius: var(--radius);
}
.gallery-item.tall { aspect-ratio: 3 / 4; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(36,31,39,0.28), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.gallery-item:hover::after { opacity: 1; }

/* ---------- dark band ---------- */
.band-dark {
  background: var(--ink);
  color: var(--porcelain);
}
.band-dark .eyebrow { color: var(--champagne); }
.band-dark .eyebrow::before { background: var(--champagne); }
.band-dark .lede { color: rgba(243,241,236,0.7); }
.band-dark h2 { color: var(--porcelain); }

.band-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

/* ---------- values row ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.value h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.band-dark .value h3 { border-top-color: var(--line-light); }
.value p { color: var(--stone); font-size: 0.95rem; }
.band-dark .value p { color: rgba(243,241,236,0.66); }

/* ---------- about split ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.about-split .media img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.about-copy p + p { margin-top: 1.1rem; }
.about-copy p { color: var(--ink-soft); }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}
.contact-detail { padding-block: 1.1rem; border-top: 1px solid var(--line); }
.contact-detail:last-of-type { border-bottom: 1px solid var(--line); }
.contact-detail .label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 0.35rem;
}
.contact-detail .val { font-size: 1.05rem; color: var(--ink); }
.contact-detail .val a { color: var(--ink); }
.contact-detail .val a:hover { color: var(--mauve-deep); }

.form-field { margin-bottom: 1.15rem; }
.form-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.5rem;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--mauve);
  box-shadow: 0 0 0 3px rgba(147, 105, 123, 0.15);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.85rem; color: var(--stone); margin-top: 0.75rem; }

.map-placeholder {
  margin-top: 2.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  aspect-ratio: 16 / 6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-align: center;
  background: var(--porcelain-soft);
}
.map-embed {
  margin-top: 2.5rem;
  width: 100%;
  aspect-ratio: 16 / 7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: block;
}
.hours {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 320px;
  font-size: 0.98rem;
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.32rem 0;
  border-bottom: 1px solid var(--line);
}
.hours li:last-child { border-bottom: none; }
.hours li .day { color: var(--stone); }
.hours li .closed { color: var(--stone); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--porcelain);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-light);
}
.footer-brand .name {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}
.footer-logo {
  height: 78px;
  width: auto;
  filter: invert(1);
  margin-bottom: 1.1rem;
}
.footer-brand p { color: rgba(243,241,236,0.6); max-width: 32ch; font-size: 0.95rem; }
.footer-col h4 {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a, .footer-col span { color: rgba(243,241,236,0.72); font-size: 0.92rem; }
.footer-col a:hover { color: var(--porcelain); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  font-size: 0.78rem;
  color: rgba(243,241,236,0.5);
}
.footer-bottom .credit a { color: rgba(243,241,236,0.6); }
.footer-bottom .credit a:hover { color: var(--champagne); }

/* ---------- scroll reveal ---------- */
.reveal {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
/* Only hide when JS is confirmed present — prevents flash / invisible content */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .band-inner,
  .about-split,
  .contact-grid,
  .svc-block-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .grid-services { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .gallery-grid.is-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav-links {
    position: fixed;
    inset: 84px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--porcelain);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-120%);
    box-shadow: 0 20px 40px rgba(36,31,39,0.08);
  }
  /* Only animate after first paint — stops the menu sliding on every page load */
  .nav-ready .nav-links {
    transition: transform 0.42s var(--ease);
    will-change: transform;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) { display: block; width: 100%; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 0.75rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: block; }
  .grid-services { grid-template-columns: 1fr; }
  .svc-list { columns: 1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  body { font-size: 16px; }
  /* Fade only on mobile — no vertical movement, so scroll reveals never feel jumpy */
  .js .reveal { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  * { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
}
