/* Annapolis Valley Designer — orchard brass atelier */
:root {
  --ink: oklch(22% 0.025 145);
  --ink-soft: oklch(32% 0.03 145);
  --parchment: oklch(95% 0.018 95);
  --parchment-deep: oklch(90% 0.025 95);
  --orchard: oklch(36% 0.07 145);
  --orchard-deep: oklch(26% 0.055 145);
  --orchard-lit: oklch(42% 0.075 145);
  --brass: oklch(72% 0.095 75);
  --brass-deep: oklch(58% 0.1 70);
  --fog: oklch(88% 0.015 145);
  --blush: oklch(86% 0.035 45);
  --max: 72rem;
  --measure: 38rem;
  --font-display: "Petrona", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Commissioner", "Avenir Next", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 10% -10%, oklch(92% 0.04 85 / 0.7), transparent 55%),
    radial-gradient(90% 60% at 100% 0%, oklch(88% 0.04 145 / 0.45), transparent 50%),
    linear-gradient(180deg, var(--parchment), var(--parchment-deep));
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--orchard);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brass-deep);
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--parchment);
  padding: 0.5rem 0.75rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Magical dust */
.spark-field {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.35;
}

.spark-field span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--brass);
  animation: drift 18s var(--ease) infinite;
  opacity: 0.55;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 20vh, 0) scale(0.6);
    opacity: 0;
  }
  20% {
    opacity: 0.7;
  }
  100% {
    transform: translate3d(8vw, -30vh, 0) scale(1.2);
    opacity: 0;
  }
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: oklch(95% 0.018 95 / 0.82);
  border-bottom: 1px solid oklch(70% 0.02 145 / 0.25);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand-text span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-links {
  display: none;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.nav-links a:hover {
  color: var(--orchard);
}

.nav-toggle {
  appearance: none;
  border: 1px solid oklch(50% 0.04 145 / 0.35);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.85rem;
}

.nav-links.is-open {
  display: grid;
  position: absolute;
  inset: 100% 0 auto;
  background: var(--parchment);
  padding: 1rem 1.25rem 1.25rem;
  border-bottom: 1px solid oklch(70% 0.02 145 / 0.25);
}

@media (min-width: 880px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
  }
}

/* Hero */
.hero {
  min-height: min(92vh, 54rem);
  display: grid;
  align-items: end;
  position: relative;
  color: var(--parchment);
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: gentle-zoom 24s var(--ease) alternate infinite;
}

@keyframes gentle-zoom {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, oklch(22% 0.04 145 / 0.88) 0%, oklch(26% 0.05 145 / 0.55) 48%, oklch(30% 0.04 75 / 0.35) 100%),
    radial-gradient(60% 50% at 80% 20%, oklch(70% 0.1 75 / 0.28), transparent 70%);
}

.hero-inner {
  padding: clamp(4rem, 12vh, 8rem) 0 clamp(2.5rem, 6vh, 4rem);
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.hero-brand {
  width: min(9rem, 34vw);
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 8px 24px oklch(20% 0.03 145 / 0.45));
  animation: rise 1.1s var(--ease) both;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 12ch;
  animation: rise 1.15s var(--ease) 0.08s both;
}

.hero .lede {
  margin: 0 0 1.5rem;
  max-width: 34ch;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  color: oklch(93% 0.02 95);
  animation: rise 1.2s var(--ease) 0.16s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 1.25s var(--ease) 0.24s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 1.25rem, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brass);
  color: var(--orchard-deep);
}

.btn-primary:hover {
  background: oklch(78% 0.09 80);
  color: var(--orchard-deep);
}

.btn-ghost {
  border-color: oklch(95% 0.02 95 / 0.45);
  color: var(--parchment);
}

.btn-ghost:hover {
  background: oklch(95% 0.02 95 / 0.1);
  color: var(--parchment);
}

.btn-ink {
  background: var(--orchard);
  color: var(--parchment);
}

.btn-ink:hover {
  background: var(--orchard-lit);
  color: var(--parchment);
}

/* Sections */
section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-deep);
  font-weight: 600;
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 1.4rem + 2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 16ch;
}

.section-copy {
  max-width: var(--measure);
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
}

.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .split.reverse {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .split.reverse > :first-child {
    order: 2;
  }
}

.portrait {
  position: relative;
}

.portrait img {
  width: 100%;
  border-radius: 1.25rem 0.35rem 1.25rem 0.35rem;
  box-shadow: 0 24px 60px oklch(25% 0.04 145 / 0.22);
}

.portrait::after {
  content: "";
  position: absolute;
  inset: auto -0.75rem -0.75rem auto;
  width: 42%;
  height: 42%;
  border: 1px solid var(--brass);
  border-radius: 1rem 0.2rem;
  z-index: -1;
  opacity: 0.7;
}

.credential-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.credential-list li {
  padding: 0.7rem 0.85rem;
  background: oklch(98% 0.01 95 / 0.7);
  border: 1px solid oklch(70% 0.02 145 / 0.2);
  border-radius: 0.65rem;
  font-size: 0.95rem;
}

.credential-list a {
  font-weight: 600;
}

/* Contact strip */
.reach {
  background: var(--orchard-deep);
  color: var(--parchment);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.reach h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
}

.reach a {
  color: var(--brass);
}

.reach dl {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.reach dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.reach dd {
  margin: 0 0 0.35rem;
}

/* Testimonials */
.quote-band {
  background: linear-gradient(180deg, transparent, oklch(92% 0.02 145 / 0.55), transparent);
}

.quote-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .quote-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.quote-col h3 {
  margin: 0.85rem 0 1rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
}

.quote-col > img {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 24px oklch(25% 0.03 145 / 0.2);
}

blockquote {
  margin: 0 0 1.1rem;
  padding: 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

blockquote p {
  margin: 0 0 0.5rem;
}

blockquote footer {
  font-size: 0.85rem;
  color: var(--orchard);
  font-weight: 600;
}

/* Funny luxury offerings */
.whimsy {
  background: var(--orchard-deep);
  color: var(--parchment);
  position: relative;
  overflow: hidden;
}

.whimsy::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, oklch(70% 0.1 75 / 0.25), transparent 65%);
  pointer-events: none;
}

.whimsy-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .whimsy-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.whimsy-card {
  border: 1px solid oklch(95% 0.02 95 / 0.18);
  border-radius: 1.1rem;
  padding: 1.35rem 1.4rem 1.5rem;
  background: oklch(30% 0.05 145 / 0.55);
  transform: rotate(-0.4deg);
}

.whimsy-card:nth-child(2) {
  transform: rotate(0.55deg);
}

.whimsy-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  font-weight: 500;
  color: var(--brass);
}

.whimsy-card p {
  margin: 0 0 0.75rem;
  color: oklch(93% 0.015 95);
}

.whimsy-card p:last-child {
  margin-bottom: 0;
}

.eyebrow-joke {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(80% 0.05 85);
}

/* Portfolio */
.portfolio-shell {
  display: grid;
  gap: 1rem;
}

.slide-frame {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--orchard-deep);
  min-height: clamp(16rem, 48vw, 28rem);
}

.slide-frame img {
  width: 100%;
  height: clamp(16rem, 48vw, 28rem);
  object-fit: cover;
}

.slide-caption {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.slide-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.slide-controls button {
  appearance: none;
  border: 1px solid oklch(50% 0.04 145 / 0.35);
  background: var(--parchment);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.slide-controls button.pri {
  background: var(--orchard);
  color: var(--parchment);
  border-color: transparent;
}

.thumb-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 4.5rem;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.thumb-rail button {
  appearance: none;
  border: 2px solid transparent;
  padding: 0;
  border-radius: 0.4rem;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
}

.thumb-rail button[aria-current="true"] {
  border-color: var(--brass);
}

.thumb-rail img {
  width: 4.5rem;
  height: 3.2rem;
  object-fit: cover;
}

/* Areas */
.area-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.area-grid a {
  display: block;
  text-decoration: none;
  padding: 0.7rem 0.8rem;
  border-radius: 0.55rem;
  background: oklch(98% 0.01 95 / 0.75);
  border: 1px solid oklch(70% 0.02 145 / 0.18);
  color: var(--ink);
  font-size: 0.92rem;
}

.area-grid a:hover {
  border-color: var(--brass);
  color: var(--orchard);
}

/* FAQ */
.faq details {
  border-bottom: 1px solid oklch(70% 0.02 145 / 0.25);
  padding: 0.85rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  margin: 0.55rem 0 0.2rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid oklch(70% 0.02 145 / 0.25);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: grid;
  gap: 0.75rem;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 1rem, 0);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-media img {
    transform: none;
  }
}
