/* ==========================================================================
   Anexx Shady — animal & pet portraits
   Design tokens lifted from "Anexx Shady Portfolio v2.dc.html"
   ========================================================================== */

:root {
  /* surfaces */
  --cream: #fbf7f1;
  --white: #fff;
  --lilac: #e5dcf7;
  --lilac-100: #f3eefc;
  --lilac-50: #f8f4fd;
  --sand-card: #fdf6ec;
  --sage-card: #f2f8ee;

  /* ink */
  --ink: #35304a;
  --ink-soft: #5c5476;
  --ink-faint: #8b83a3;

  /* brand */
  --purple: #6b53b0;
  --purple-deep: #52409c;
  --purple-mid: #8266cc;
  --purple-border: #d9cdf2;
  --green-dot: #7fb069;

  /* type */
  --font-display: "Comfortaa", sans-serif;
  --font-body: "Atkinson Hyperlegible", sans-serif;

  /* layout */
  --gutter: clamp(20px, 5vw, 48px);
  --measure: 1280px;
}

/* Commission status drives the pill beside the "Commissions" heading.
   Change data-status on <body> together with the two .status-label strings. */
body[data-status="open"] { --status-bg: #e7f2df; --status-fg: #4a6b38; }
body[data-status="closed"] { --status-bg: #f0edea; --status-fg: #6f6a63; }
body[data-status="waitlist"] { --status-bg: #fdf6ec; --status-fg: #9a6c22; }

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
}

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

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

::selection { background: var(--lilac); }

img,
svg { display: block; max-width: 100%; }

figure { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--purple-mid);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  max-width: var(--measure);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--white);
  color: var(--purple-deep);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  z-index: 10;
}

.skip-link:focus { left: var(--gutter); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn--solid {
  background: var(--purple-mid);
  color: var(--white);
  padding: 14px 28px;
}

.btn--solid:hover {
  background: var(--purple);
  color: var(--white);
}

.btn--outline {
  background: var(--white);
  color: var(--purple-deep);
  border: 2px solid var(--purple-border);
  padding: 12px 26px;
}

.btn--outline:hover {
  background: var(--lilac-100);
  color: var(--purple-deep);
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px var(--gutter);
  background: var(--cream);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__brand img {
  height: 40px;
  width: auto;
}

.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}

.nav__links {
  display: flex;
  gap: clamp(14px, 2.5vw, 24px);
  font-size: 15px;
  font-weight: 700;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
  padding: 4px 0;
}

.nav__links::-webkit-scrollbar { display: none; }

.nav__links a {
  flex: none;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
  align-items: center;
  padding: 40px var(--gutter) 72px;
  max-width: var(--measure);
  margin-inline: auto;
}

.hero__copy { flex: 1.1 1 340px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lilac);
  color: var(--purple-deep);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 24px;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-dot);
}

.hero h1 {
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1.15;
  margin: 0 0 24px;
  text-wrap: pretty;
}

.hero__lede {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 32px;
  max-width: 480px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__art {
  position: relative;
  flex: 1 1 300px;
  max-width: 576px;
  padding: 0 16px 16px 0;
}

/* offset lilac plate peeking out behind the portrait */
.hero__art::before {
  content: "";
  position: absolute;
  inset: 24px 0 0 24px;
  background: var(--lilac);
  border-radius: 28px;
}

.hero__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background: var(--lilac-100);
  box-shadow: 0 18px 40px rgba(82, 64, 156, 0.18);
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Crop saved on the design's hero image slot (scale 1.2212, offset -5.58% / -0.21%). */
.hero__frame img {
  transform: translate(-5.58%, -0.21%) scale(1.2212);
}

/* --------------------------------------------------------------------------
   Selected work
   -------------------------------------------------------------------------- */

.work {
  background: var(--white);
  padding: 72px var(--gutter);
  border-radius: 48px 48px 0 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 34px;
  margin: 0;
}

.section-head p {
  font-size: 15px;
  color: var(--ink-faint);
  margin: 0;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(140px, 14%)), 1fr));
  gap: clamp(12px, 2.5vw, 24px);
}

.piece {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.piece__frame {
  aspect-ratio: 4 / 5;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--lilac-100);
}

.piece__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.piece__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 0 4px;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
  background: var(--white);
  padding: 24px var(--gutter) 72px;
}

.about__card {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  align-items: center;
  background: var(--lilac-50);
  border-radius: 32px;
  padding: clamp(24px, 5vw, 48px);
}

.about__portrait {
  aspect-ratio: 1 / 1;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  flex: 1 1 240px;
  max-width: 420px;
  background: var(--lilac-100);
}

.about__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__copy { flex: 1.6 1 320px; }

.about__copy h2 {
  font-size: 34px;
  margin: 0 0 20px;
}

.about__copy p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.about__note {
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: var(--ink-faint) !important;
  margin-bottom: 24px !important;
}

.about__signature {
  width: 200px;
  height: auto;
  margin-left: -20px;
}

/* --------------------------------------------------------------------------
   Commissions
   -------------------------------------------------------------------------- */

.commissions {
  background: var(--white);
  padding: 0 var(--gutter) 88px;
}

.commissions__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.commissions__head h2 {
  font-size: 34px;
  margin: 0;
}

.status-tag {
  background: var(--status-bg);
  color: var(--status-fg);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
  margin: 0 0 56px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  background: var(--lilac-50);
  border-radius: 20px;
  padding: 22px;
  counter-increment: step;
}

.step h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--purple);
  margin: 0 0 8px;
}

.step h3::before { content: counter(step) " · "; }

.step p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.commissions h3.subhead {
  font-size: 24px;
  margin: 0 0 24px;
}

.styles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}

.style-card {
  background: var(--card-bg, var(--lilac-50));
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.style-card--lilac { --card-bg: var(--lilac-50); }
.style-card--sand { --card-bg: var(--sand-card); }
.style-card--sage { --card-bg: var(--sage-card); }

.style-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.style-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.prices {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.prices li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  border-top: 1px solid rgba(53, 48, 74, 0.1);
  padding-top: 6px;
}

.prices span { color: var(--ink-soft); }

.prices b {
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}

.style-card__note {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-faint);
}

.style-card__peek {
  display: flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--purple-mid);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.style-card__peek svg {
  width: 14px;
  height: 14px;
  flex: none;
}

/* "Hover"/"Tap" wording follows the pointer the visitor actually has. */
.peek-hover { display: none; }

@media (hover: hover) {
  .peek-hover { display: inline; }
  .peek-tap { display: none; }
}

.style-card__example {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  background: var(--white);
}

.style-card__example img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.style-card__example figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--purple-deep);
}

.style-card.is-revealed .style-card__example { opacity: 1; }

@media (hover: hover) {
  .style-card:hover .style-card__example { opacity: 1; }
}

.commissions__fineprint {
  margin: 32px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-faint);
  max-width: 760px;
  text-wrap: pretty;
}

.commissions__cta {
  margin: 16px 0 0;
  font-size: 16px;
  color: var(--ink-soft);
}

.u-underline { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Terms & FAQ
   -------------------------------------------------------------------------- */

.terms { padding: 72px var(--gutter) 88px; }

.terms h2 {
  font-size: 34px;
  margin: 0 0 12px;
}

.terms__lede {
  margin: 0 0 36px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 720px;
  text-wrap: pretty;
}

.terms__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 48px;
  align-items: start;
}

.terms h3 {
  font-size: 20px;
  margin: 0 0 16px;
  color: var(--purple);
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion details {
  background: var(--white);
  border-radius: 16px;
  padding: 16px 20px;
}

.accordion summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.accordion ul {
  margin: 12px 0 4px;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion p {
  margin: 12px 0 4px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--purple-mid);
  padding: 72px var(--gutter) 40px;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: center;
  margin-bottom: 56px;
}

.footer__top h2 {
  flex: 1.4 1 320px;
  font-size: clamp(32px, 4vw, 48px);
  color: var(--white);
  margin: 0;
  line-height: 1.2;
  text-wrap: pretty;
}

.footer__contact {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.footer__email {
  background: var(--white);
  color: var(--purple-deep);
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 16px;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.footer__email:hover {
  background: var(--lilac-100);
  color: var(--purple-deep);
}

.footer__socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer__socials a {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.footer__socials a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 24px;
}

.footer__lockup {
  height: 96px;
  width: auto;
}

.footer__colophon {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Soap bubbles (see main.js)
   -------------------------------------------------------------------------- */

.bubble-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.bubble {
  position: absolute;
  will-change: transform, opacity;
  animation: bubble-rise var(--dur) cubic-bezier(0.25, 0.35, 0.45, 1) forwards;
}

.bubble__film {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 22%),
    radial-gradient(circle at 68% 74%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 22%),
    radial-gradient(circle at 50% 50%,
      rgba(255, 255, 255, 0) 58%,
      rgba(255, 192, 228, 0.28) 70%,
      rgba(168, 224, 255, 0.32) 78%,
      rgba(196, 170, 255, 0.4) 85%,
      rgba(255, 255, 255, 0.22) 90%,
      rgba(255, 255, 255, 0) 94%);
  animation: bubble-wobble var(--wobble) ease-in-out infinite;
}

@keyframes bubble-rise {
  0% { transform: translate(0, 8px) scale(0.3); opacity: 0; }
  8% { opacity: 0.9; }
  70% { opacity: 0.85; }
  93% { transform: translate(calc(var(--dx) * 0.93), calc(var(--dy) * 0.93)) scale(1.02); opacity: 0.75; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.22); opacity: 0; }
}

@keyframes bubble-wobble {
  0%, 100% { transform: scale(1.05, 0.95) translateX(1.5px); }
  50% { transform: scale(0.95, 1.05) translateX(-1.5px); }
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
