/* ==========================================================================
   alyssac.net — orchid, ink, paper & leopard
   ========================================================================== */

:root {
  --paper: #f1ebe2;
  --paper-2: #e8ded1;
  --ink: #3a2320;
  --ink-soft: #7a5d56;
  --orchid: #d4567e;
  --orchid-deep: #8c1f47;
  --blush: #f4c9d4;
  --throat: #e8b64a;
  --spot: #1b1614;
  --line: rgba(58, 35, 32, 0.18);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

/* "Wild mode": the dark theme */
:root[data-theme="wild"] {
  --paper: #161010;
  --paper-2: #221818;
  --ink: #f4e7e0;
  --ink-soft: #bfa39c;
  --orchid: #ff7ba6;
  --orchid-deep: #ffb3cb;
  --blush: #5c2338;
  --throat: #f1c65e;
  --spot: #f4e7e0;
  --line: rgba(244, 231, 224, 0.18);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  transition: background-color .6s var(--ease), color .6s var(--ease);
  -webkit-font-smoothing: antialiased;
}

/* Paper grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="wild"] body::before { mix-blend-mode: screen; opacity: .12; }

::selection { background: var(--blush); color: var(--ink); }

a { color: inherit; }
img, svg, canvas { display: block; }

.defs { position: absolute; width: 0; height: 0; }

.script {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--orchid);
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 14px 24px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

:focus-visible { outline: 2px dashed var(--orchid); outline-offset: 4px; }

/* --- Cursor trail & vine ------------------------------------------------ */
.trail {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 40;
}

.vine {
  position: absolute;
  top: 0;
  right: 0;
  width: 170px;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.vine .ink-line { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.vine .wash-line { fill: none; stroke: var(--orchid); opacity: .28; stroke-linecap: round; filter: url(#wash); }
.vine .dot { fill: var(--ink); transition: opacity .5s, transform .5s var(--ease); transform-box: fill-box; transform-origin: center; }
.vine .dot:not(.on) { opacity: 0; transform: scale(0); }

/* --- Nav ---------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color .6s var(--ease);
}
.nav__mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  line-height: 1;
  text-decoration: none;
  margin-right: auto;
}
.nav__mark span { color: var(--orchid); }
.nav nav { display: flex; gap: 22px; }
.nav nav a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: .04em;
  position: relative;
}
.nav nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1.5px;
  background: var(--orchid);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.wild-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-style: italic;
  cursor: pointer;
  padding: 4px;
}
.wild-toggle__label { font-family: var(--serif); font-size: 18px; }
.wild-toggle__track {
  width: 46px;
  height: 26px;
  border-radius: 99px;
  border: 1.5px solid var(--ink);
  position: relative;
  transition: background .4s var(--ease);
}
.wild-toggle__knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--leopard, var(--ink));
  background-size: 60px;
  border: 1px solid var(--ink);
  transition: transform .45s var(--ease);
}
.wild-toggle[aria-pressed="true"] .wild-toggle__knob { transform: translateX(20px) rotate(180deg); }
.wild-toggle[aria-pressed="true"] .wild-toggle__track { background: var(--orchid); }

/* --- Sections ----------------------------------------------------------- */
main > section {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 12vw, 160px) var(--gutter);
  padding-right: max(var(--gutter), 150px);
}

.section-head { margin-bottom: clamp(36px, 6vw, 72px); }
.section-head h2, .contact h2 {
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(56px, 11vw, 150px);
  line-height: .86;
  letter-spacing: -.01em;
  margin: 0;
}
.section-head h2 .script, .contact h2 .script { font-size: 1.05em; }
.section-sub { font-family: var(--serif); font-style: italic; font-size: 24px; margin: 14px 0 0; color: var(--ink-soft); }

/* --- Hero --------------------------------------------------------------- */
.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 0 32px;
  padding-top: clamp(32px, 6vw, 72px) !important;
}

.more {
  list-style: none;
  margin: 0;
  padding: 0;
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  position: relative;
  z-index: 3;
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(40px, 7vw, 104px);
  line-height: .86;
  letter-spacing: -.005em;
}
.more li {
  width: max-content;
  cursor: default;
  transition: color .3s var(--ease);
  animation: rise .9s var(--ease) both;
}
.more li:nth-child(2) { animation-delay: 70ms; }
.more li:nth-child(3) { animation-delay: 140ms; }
.more li:nth-child(4) { animation-delay: 210ms; }
.more li:hover { color: var(--orchid); }
.more__live:hover .more__word { color: var(--orchid-deep); }
.more__word { color: var(--orchid); }
.caret {
  display: inline-block;
  width: .06em;
  height: .72em;
  margin-left: .06em;
  background: var(--orchid);
  vertical-align: baseline;
  animation: blink 1s steps(1) infinite;
}

@keyframes rise { from { opacity: 0; transform: translateY(.5em); } }
@keyframes blink { 50% { opacity: 0; } }

.hero__orchids {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  justify-self: center;
  align-self: center;
  width: min(62vw, 720px);
  aspect-ratio: 1;
  margin: -4vh 0 0 -16vw;
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.orchid-spray { width: 100%; height: 100%; overflow: visible; }
.orchid { cursor: pointer; pointer-events: auto; }
.orchid .petal { transform-box: view-box; transition: transform .8s var(--ease); }
.orchid:hover .petal { transform: scale(1.06); }

.hero__intro {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  justify-self: end;
  max-width: 440px;
  position: relative;
  z-index: 3;
  padding-bottom: 12px;
  animation: rise 1.1s var(--ease) .6s both;
}
.hero__intro h1 {
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(64px, 9vw, 128px);
  line-height: .85;
  margin: 0 0 20px;
}
.hero__intro h1 .script { font-size: 1.1em; text-transform: none; margin-right: .08em; }
.lede { font-family: var(--serif); font-size: clamp(21px, 2vw, 25px); line-height: 1.35; margin: 0 0 28px; }
.lede em { color: var(--orchid-deep); }

/* --- Leopard lens (about) ---------------------------------------------- */
.lens__text {
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(48px, 8.4vw, 124px);
  line-height: .9;
  margin: 0;
  max-width: 13ch;
}
.lens__text em { font-family: var(--serif); font-weight: 500; text-transform: none; color: var(--orchid); font-stretch: normal; }
.lens__body {
  max-width: 560px;
  margin: 48px 0 0 auto;
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.45;
}

/* --- Work cards --------------------------------------------------------- */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.card:nth-child(even) { margin-top: clamp(0px, 8vw, 110px); }
.card__link { display: block; text-decoration: none; }
.card__art {
  position: relative;
  aspect-ratio: 4 / 3.2;
  border-radius: 4px;
  overflow: hidden;
  background:
    radial-gradient(40% 50% at 30% 40%, hsl(var(--hue) 70% 72% / .9), transparent 70%),
    radial-gradient(45% 55% at 72% 62%, hsl(calc(var(--hue) + 20) 60% 60% / .7), transparent 70%),
    radial-gradient(30% 35% at 60% 25%, hsl(45 80% 70% / .45), transparent 70%),
    var(--paper-2);
  transition: transform .6s var(--ease), border-radius .6s var(--ease);
}
.card__art::before { /* soft focus bloom */
  content: "";
  position: absolute;
  inset: -20%;
  background: inherit;
  filter: blur(24px);
  transition: transform 1.2s var(--ease);
}
.card__art::after { /* leopard wipe */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--leopard, var(--spot));
  background-size: 140px;
  mix-blend-mode: multiply;
  opacity: .85;
  clip-path: circle(0% at 100% 100%);
  transition: clip-path .8s var(--ease);
}
:root[data-theme="wild"] .card__art::after { mix-blend-mode: normal; opacity: .6; }
:root[data-theme="wild"] .card__art { --paper-2: #3a2428; }
.card__num {
  position: absolute;
  left: 18px;
  bottom: 6px;
  z-index: 1;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(64px, 9vw, 120px);
  line-height: 1;
  color: #fff8f4;
  text-shadow: 0 0 40px hsl(var(--hue) 60% 40% / .35);
}
.card__link:hover .card__art { transform: rotate(-1deg) scale(.985); border-radius: 40% 4px 40% 4px / 30% 4px 30% 4px; }
.card__link:hover .card__art::before { transform: scale(1.15) rotate(8deg); }
.card__link:hover .card__art::after { clip-path: circle(38% at 100% 100%); }

.card__meta { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding-top: 16px; }
.card__meta h3 { margin: 0; font-size: clamp(20px, 2vw, 26px); font-weight: 700; line-height: 1.15; }
.card__meta p { margin: 0; color: var(--ink-soft); font-size: 15px; grid-column: 1; }
.card__year { grid-column: 2 !important; grid-row: 1; font-family: var(--serif); font-style: italic; font-size: 20px !important; }

/* --- Playground --------------------------------------------------------- */
.toys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.toy { margin: 0; }
.toy figcaption { margin-top: 14px; font-size: 15px; color: var(--ink-soft); }
.toy figcaption strong { color: var(--ink); }
.toy__stage {
  position: relative;
  aspect-ratio: 1;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--paper-2) 55%, transparent);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.bloom-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bloom-btn {
  position: absolute;
  bottom: 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: transform .2s var(--ease);
}
.bloom-btn:active, .bloom-btn.holding { transform: scale(.95); }

.ink { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.ink-hint {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--ink-soft);
  pointer-events: none;
  transition: opacity .4s;
}
.ink-hint.gone { opacity: 0; }
.ink-clear {
  position: absolute;
  top: 10px; right: 10px;
  font: inherit;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  background: none;
  border: 0;
  color: var(--ink-soft);
  cursor: pointer;
}
.ink-clear:hover { color: var(--orchid); }

.spots-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.spots-svg .spot { fill: var(--spot); transition: transform .5s var(--ease), opacity .5s; transform-box: fill-box; transform-origin: center; }
.spots-range {
  position: absolute;
  bottom: 14px;
  left: 14px; right: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 99px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
}
.spots-range input { flex: 1; accent-color: var(--orchid); min-width: 0; }

/* --- Process ------------------------------------------------------------ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps li { border-top: 1.5px solid var(--ink); padding-top: 18px; transition: transform .5s var(--ease); }
.steps li:hover { transform: translateY(-6px); }
.steps__n { font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--orchid); }
.steps h3 { font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: 40px; line-height: 1; margin: 6px 0 10px; }
.steps p { margin: 0; color: var(--ink-soft); }

/* --- Contact & footer --------------------------------------------------- */
.contact { text-align: left; }
.wild-word { color: var(--orchid-deep); }
.links { list-style: none; padding: 0; margin: 48px 0 0; display: flex; flex-wrap: wrap; gap: 14px; }
.links a {
  display: inline-block;
  padding: 12px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.links a:hover { background: var(--orchid); border-color: var(--orchid); color: #fff; transform: rotate(-3deg); }

.footer {
  position: relative;
  z-index: 1;
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}
.footer p { margin: 0; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  main > section { padding-right: var(--gutter); }
  .vine { display: none; }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto; min-height: 0; }
  .more { grid-row: 1; }
  .more li { width: auto; }
  .hero__orchids { grid-column: 1; grid-row: 1 / 3; width: 110vw; margin: 12vh -30vw 0 0; justify-self: end; opacity: .9; }
  .hero__intro { grid-column: 1; grid-row: 3; justify-self: start; margin-top: 24px; }
  .cards { grid-template-columns: 1fr; }
  .card:nth-child(even) { margin-top: 0; }
  .toys { grid-template-columns: 1fr; }
  .toy__stage { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nav { gap: 12px; }
  .nav nav { display: none; }
  .steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
