/* ==========================================================================
   Runina Creative — design system
   Palette: aged paper, moss green, brick red. Vintage editorial print feel.
   Display: Cormorant Garamond (variable). Script: Yellowtail.
   Body: system stack for clarity and zero font cost.
   ========================================================================== */

:root {
  --paper: #f2ebdc;
  --paper-deep: #eae0cb;
  --paper-edge: #e2d6bc;
  --ink: #33361f;
  --moss: #414e28;
  --moss-deep: #333d1f;
  --brick: #ad401d;
  --brick-deep: #8f3317;
  --fade: #7d7458;
  --tan: #eadfc8;
  --blush: #f0e2cf;
  --line: rgba(70, 64, 40, 0.25);
  --line-soft: rgba(70, 64, 40, 0.14);
  --cream: #f4eedd;

  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-script: 'Yellowtail', 'Snell Roundhand', cursive;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, sans-serif;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-gap: clamp(4.5rem, 9vw, 8rem);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/CormorantGaramond-var.woff2') format('woff2');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/CormorantGaramond-italic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Yellowtail';
  src: url('/fonts/Yellowtail-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paper grain over everything, fixed so it never repaints on scroll */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.35;
  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='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.28 0 0 0 0 0.26 0 0 0 0 0.18 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: var(--brick);
}

::selection {
  background: var(--brick);
  color: var(--cream);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--moss);
  line-height: 1.05;
  margin: 0 0 0.6em;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--moss);
  color: var(--cream);
  padding: 0.5rem 1rem;
  transition: top 120ms ease;
}
.skip-link:focus {
  top: 1rem;
}

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

/* Utility type ----------------------------------------------------------- */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 1rem;
}

.script {
  font-family: var(--font-script);
  color: var(--brick);
  font-weight: 400;
}

/* Section headers: centered, small caps serif like a print chapter title */
.section-head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h1,
.section-head h2 {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.section-head .lede {
  max-width: 46ch;
  margin: 0 auto;
  color: var(--fade);
}
.section-head::after {
  /* eight-spoked asterisk, a small print fleuron. \FE0E forces the text
     glyph; without it iOS swaps in the green emoji tile. */
  content: '\2733\FE0E';
  display: block;
  width: max-content;
  margin: 1.1rem auto 0;
  padding-inline: 1.1rem;
  color: var(--brick);
  font-size: 1.05rem;
  line-height: 1;
  /* short hairline rules flanking the fleuron, chapter-divider style */
  background:
    linear-gradient(currentColor, currentColor) left center / 2.6rem 1px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 2.6rem 1px no-repeat;
}

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

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  border: 1px solid var(--brick);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.btn-solid {
  background: var(--brick);
  color: var(--cream);
}
.btn-solid:hover {
  background: var(--brick-deep);
  border-color: var(--brick-deep);
}
.btn-ghost {
  background: transparent;
  color: var(--brick);
}
.btn-ghost:hover {
  background: rgba(173, 64, 29, 0.08);
}
.btn:active {
  transform: translateY(1px);
}

/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
/* In-app browsers (Telegram, Instagram) and Safari inset the layout
   viewport below a translucent toolbar, so page content scrolls visibly
   through the gap above a sticky header. Extend the header plate upward
   to paper over that band; above the document top it is simply offscreen. */
.site-header::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 100vh;
  background: var(--paper);
  pointer-events: none;
}
.site-header.is-stuck {
  border-bottom-color: var(--line-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
  text-decoration: none;
}
.brand-text span {
  display: block;
}
.logo-mark {
  flex: none;
  transition: transform 500ms ease;
}
.brand:hover .logo-mark {
  transform: rotate(60deg);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.7rem);
}
.site-nav a:not(.btn) {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}
.site-nav a:not(.btn):hover {
  color: var(--brick);
  border-bottom-color: var(--brick);
}

.nav-toggle {
  display: none;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    background: none;
    border: 0;
    padding: 0.6rem 0.2rem;
    cursor: pointer;
  }
  .nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: transform 180ms ease, opacity 180ms ease;
  }
  .nav-toggle[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    background: var(--paper);
    border-bottom: 1px solid var(--line-soft);
    padding: 1rem var(--gutter) 1.5rem;
    gap: 0.4rem;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav a:not(.btn) {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .site-nav .btn {
    margin-top: 0.8rem;
  }
}

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

.hero {
  padding-block: clamp(3rem, 7vw, 6.5rem) var(--section-gap);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.7rem, 5.6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.02;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}
.hero h1 .script {
  display: inline-block;
  position: relative;
  font-size: 0.94em;
  transform: rotate(-2deg);
  margin-top: 0.1em;
}
/* hand-drawn swash under the script words */
.hero h1 .script::after {
  content: '';
  position: absolute;
  left: 3%;
  right: 5%;
  bottom: -0.16em;
  height: 0.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 55 3, 150 2, 197 6' fill='none' stroke='%23ad401d' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* Page-load sequence for the hero */
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow,
  .hero h1,
  .hero-sub,
  .hero-actions {
    opacity: 0;
    transform: translateY(16px);
    animation: rise 650ms ease forwards;
  }
  .hero h1 { animation-delay: 90ms; }
  .hero-sub { animation-delay: 190ms; }
  .hero-actions { animation-delay: 290ms; }
  .hero .photo-frame {
    opacity: 0;
    animation: rise-photo 750ms ease 220ms forwards;
  }
  @keyframes rise {
    to { opacity: 1; transform: none; }
  }
  @keyframes rise-photo {
    from { transform: rotate(3.5deg) translateY(16px); }
    to { opacity: 1; transform: rotate(1.6deg); }
  }
}

/* Ticker: letterpress strip of the craft, loops slowly. Dark plate like
   the portfolio section so the strip reads as printed ink on the page. */
.ticker {
  background: var(--moss-deep);
  overflow: hidden;
  padding-block: 0.8rem;
  margin-bottom: var(--section-gap);
}
.ticker-track {
  display: flex;
  gap: 2.6rem;
  width: max-content;
  animation: ticker 42s linear infinite;
}
.ticker span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 238, 221, 0.92);
  white-space: nowrap;
}
.ticker .ast {
  color: #d98a63;
  letter-spacing: 0;
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
.hero-sub {
  max-width: 40ch;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Taped photograph: the site's signature framing device */
.photo-frame {
  position: relative;
  background: #fff;
  padding: 12px;
  border-radius: var(--r-md);
  box-shadow: 0 14px 34px -18px rgba(51, 54, 31, 0.55);
  transform: rotate(1.6deg);
  margin: 0;
}
.photo-frame img {
  filter: sepia(0.12) saturate(0.94);
  border-radius: calc(var(--r-md) - 6px);
}
.photo-frame figcaption {
  text-align: center;
  font-family: var(--font-script);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.3;
  color: var(--fade);
  padding: 0.6rem 0.5rem 0.25rem;
}
.photo-frame::before,
.photo-frame::after {
  content: '';
  position: absolute;
  width: 92px;
  height: 26px;
  background: rgba(214, 199, 161, 0.8);
  box-shadow: 0 1px 3px rgba(51, 54, 31, 0.18);
  top: -12px;
}
.photo-frame::before {
  left: -26px;
  transform: rotate(-38deg);
}
.photo-frame::after {
  right: -26px;
  transform: rotate(38deg);
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero .photo-frame {
    max-width: 26rem;
    margin-inline: auto;
  }
}

/* Pricing ---------------------------------------------------------------- */

.section {
  padding-block: 0 var(--section-gap);
}

/* Full-width tinted bands give the page a print-spread rhythm */
.band {
  padding-block: calc(var(--section-gap) * 0.75) calc(var(--section-gap) * 0.8);
  margin-bottom: var(--section-gap);
  border-block: 1px solid var(--line-soft);
}
.band-blush {
  background: var(--blush);
}
.band-tan {
  background: var(--tan);
}
.band .chip {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(125, 116, 88, 0.55);
}
.band .chip:hover {
  background: rgba(173, 64, 29, 0.07);
  border-color: var(--brick);
}
.band-tan .field input,
.band-tan .field select,
.band-tan .field textarea {
  background: rgba(255, 255, 255, 0.72);
}

.pricing-note {
  text-align: center;
  color: var(--fade);
  font-size: 0.95rem;
  max-width: 52ch;
  margin: 2.2rem auto 0;
}

.card-featured {
  position: relative;
  background: var(--moss-deep);
  color: var(--cream);
  padding: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 2rem;
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 2rem;
  align-items: center;
  box-shadow: 0 18px 40px -24px rgba(51, 61, 31, 0.8);
}
/* double rule inset, vintage certificate style */
.card-featured::before {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(244, 238, 221, 0.35);
  border-radius: calc(var(--r-lg) - 8px);
  pointer-events: none;
}
.card-featured h3 {
  color: var(--cream);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.5rem;
}
.card-featured p {
  color: rgba(244, 238, 221, 0.85);
  max-width: 52ch;
  margin-bottom: 0;
}
.card-featured .flag {
  position: absolute;
  top: -0.8rem;
  left: clamp(1.8rem, 4vw, 3rem);
  background: var(--brick);
  color: var(--cream);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}
.price-tag {
  text-align: right;
}
.price-tag .from {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 238, 221, 0.6);
  margin-bottom: 0.3rem;
}
.price-tag .amount {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
}
.price-tag .btn {
  margin-top: 1.2rem;
}

@media (max-width: 720px) {
  .card-featured {
    grid-template-columns: 1fr;
  }
  .price-tag {
    text-align: left;
  }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.price-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--paper-deep);
  border: 1px solid var(--paper-edge);
  border-radius: var(--r-md);
  padding: 1.6rem 1.5rem 1.3rem;
  text-decoration: none;
  color: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.price-card:hover {
  transform: translateY(-3px);
  border-color: var(--brick);
  box-shadow: 0 14px 28px -20px rgba(51, 54, 31, 0.5);
}
.price-card h3 {
  font-size: 1.45rem;
  margin: 0;
}
.price-card p {
  color: var(--fade);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}
.price-card .tail {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px dashed var(--line);
  padding-top: 0.85rem;
}
.price-card .price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--moss);
}
.price-card .more {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
  white-space: nowrap;
}

/* Icon sits on the title line, replacing the old letterpress numeral.
   Brick like the other accents, full strength on hover. */
.card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}
.svc-icon {
  flex: none;
  display: block;
  width: 26px;
  height: 26px;
  color: var(--brick);
  opacity: 0.8;
  transition: opacity 160ms ease;
}
.svc-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.price-card:hover .svc-icon {
  opacity: 1;
}
.card-featured .card-head {
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.card-featured .card-head h3 {
  margin-bottom: 0;
}
.card-featured .svc-icon {
  width: 34px;
  height: 34px;
  color: #d98a63;
  opacity: 0.95;
}

/* Additional services chips ---------------------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.chip {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss);
  border: 1px dashed var(--fade);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  background: transparent;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}
a.chip {
  text-decoration: none;
}
.chip:hover {
  border-color: var(--brick);
  color: var(--brick);
  background: rgba(173, 64, 29, 0.05);
}
.chips-note {
  text-align: center;
  color: var(--fade);
  font-size: 0.95rem;
  max-width: 62ch;
  margin: 2.2rem auto 0;
}

/* Detailed services accordion --------------------------------------------- */

.accordion {
  max-width: 50rem;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}
.accordion details {
  border-bottom: 1px solid var(--line);
  transition: background-color 250ms ease;
}
.accordion details[open] {
  background: rgba(234, 223, 200, 0.5);
  border-radius: var(--r-md);
  padding-inline: clamp(0.6rem, 2vw, 1.4rem);
  margin-inline: calc(clamp(0.6rem, 2vw, 1.4rem) * -1);
}
.accordion summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1.1rem;
  padding: 1.35rem 0.2rem;
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary:hover h3 {
  color: var(--brick);
}
.accordion .svc-icon {
  width: 28px;
  height: 28px;
  align-self: center;
  color: var(--brick-deep);
  opacity: 1;
}
.accordion h3 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  margin: 0;
  transition: color 140ms ease;
}
.accordion .teaser {
  grid-column: 2;
  color: var(--fade);
  font-size: 0.95rem;
  margin: 0.15rem 0 0;
}
.accordion .indicator {
  grid-row: 1;
  grid-column: 3;
  align-self: center;
  position: relative;
  width: 16px;
  height: 16px;
}
.accordion .indicator::before,
.accordion .indicator::after {
  content: '';
  position: absolute;
  background: var(--brick);
  transition: transform 200ms ease;
}
.accordion .indicator::before {
  left: 0;
  right: 0;
  top: 7px;
  height: 2px;
}
.accordion .indicator::after {
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
}
.accordion details[open] .indicator::after {
  transform: scaleY(0);
}
.accordion .details-body {
  padding: 0.3rem 0.2rem 1.9rem;
  max-width: var(--measure);
}
.accordion .details-body h4 {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 1.5rem 0 0.7rem;
}
.accordion .includes {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 2.5rem;
}
.accordion .includes li {
  break-inside: avoid;
  padding: 0.28rem 0 0.28rem 1.2rem;
  position: relative;
  font-size: 0.97rem;
}
.accordion .includes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.45rem;
  height: 1px;
  background: var(--brick);
}
@media (max-width: 620px) {
  .accordion .includes {
    columns: 1;
  }
}
.accordion .footnote {
  font-size: 0.9rem;
  color: var(--fade);
  font-style: italic;
  margin: 1.2rem 0 0;
}

/* Portfolio (dark section) ------------------------------------------------ */

.work {
  position: relative;
  background: var(--moss-deep);
  color: var(--cream);
  padding-block: var(--section-gap);
  margin-block: 14px var(--section-gap);
}
/* Torn-paper edges where the dark plate meets the page */
.work::before,
.work::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='14'%3E%3Cpath d='M0 14 C 18 5 36 12 55 7 C 74 2 92 12 110 6 C 128 1 150 11 172 5 C 192 2 208 9 220 14 Z' fill='%23333d1f'/%3E%3C/svg%3E") repeat-x bottom / 220px 14px;
}
.work::before {
  top: 1px;
  transform: translateY(-100%);
}
.work::after {
  bottom: 1px;
  transform: translateY(100%) scaleY(-1);
}
.work .section-head h2 {
  color: var(--cream);
}
.work .eyebrow {
  color: #d98a63;
}
.work .section-head .lede {
  color: rgba(244, 238, 221, 0.65);
}
.work .section-head::after {
  color: #d98a63;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}
/* Prints pinned to the studio wall */
.work-card {
  margin: 0;
  background: #f7f2e6;
  padding: 10px 10px 0;
  border-radius: var(--r-sm);
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.65);
  transform: rotate(-1.3deg);
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.work-card:nth-child(even) {
  transform: rotate(1.2deg);
}
.work-card:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 0 22px 38px -18px rgba(0, 0, 0, 0.7);
}
.work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--r-sm) - 4px);
  filter: sepia(0.07) saturate(0.97);
}
.work-card .meta {
  padding: 0.7rem 0.35rem 0.8rem;
}
.work-card .client {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0;
}
.work-card .kind {
  font-size: 0.78rem;
  color: var(--fade);
  margin: 0.1rem 0 0;
}
.work-link {
  position: relative;
  display: block;
  cursor: zoom-in;
  border-radius: calc(var(--r-sm) - 4px);
}
.work-link:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
}
.gallery-count {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  background: rgba(247, 242, 230, 0.92);
  color: var(--moss);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  pointer-events: none;
}

/* Lightbox: native <dialog>, scrollable photo grid per client ------------- */

.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  width: min(94vw, 68rem);
  max-height: 100dvh;
}
.lightbox[open] {
  display: flex;
  flex-direction: column;
}
.lightbox::backdrop {
  background: rgba(24, 28, 13, 0.93);
}
.lb-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0.2rem;
}
.lb-caption {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cream);
}
.lb-counter {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 238, 221, 0.65);
  margin-right: auto;
}
.lb-close {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(244, 238, 221, 0.4);
  background: transparent;
  color: var(--cream);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.lb-close:hover {
  background: rgba(244, 238, 221, 0.12);
  border-color: var(--cream);
}
.lb-close:focus-visible {
  outline: 2px solid #d98a63;
  outline-offset: 2px;
}
/* Uniform tile grid: fixed aspect ratio per tile so layout never depends
   on image load order; the grid itself scrolls when the set is long */
.lb-grid {
  overflow-y: auto;
  overscroll-behavior: contain;
  max-height: calc(92dvh - 4.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 0.1rem 0.2rem 1.2rem;
}
@media (max-width: 1000px) {
  .lb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .lb-grid {
    /* minmax(0, …) keeps the intrinsic image width from widening the
       track and forcing a horizontal scrollbar */
    grid-template-columns: minmax(0, 1fr);
  }
  /* One photo per row, capped so the whole 4:5 tile fits the screen
     instead of running taller than the viewport */
  .lb-item {
    width: min(100%, calc((100dvh - 9rem) * 4 / 5));
    margin-inline: auto;
  }
}
.lb-item {
  margin: 0;
  aspect-ratio: 4 / 5;
  background: #f7f2e6;
  padding: 8px;
  border-radius: var(--r-sm);
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.65);
}
.lb-item picture {
  display: block;
  width: 100%;
  height: 100%;
}
.lb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--r-sm) - 4px);
}

/* In motion --------------------------------------------------------------- */
.film-feature {
  margin: 0 auto 2.6rem;
  max-width: 56rem;
  background: #fff;
  padding: 10px 10px 0;
  border-radius: var(--r-md);
  box-shadow: 0 20px 42px -22px rgba(51, 61, 31, 0.55);
  transform: rotate(-0.4deg);
}
.film-feature video,
.reel-card video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--r-md) - 6px);
  background: #232a17;
}
.reel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.reel-card {
  margin: 0;
  background: #fff;
  padding: 8px 8px 0;
  border-radius: var(--r-md);
  box-shadow: 0 16px 32px -20px rgba(51, 61, 31, 0.5);
  transform: rotate(-0.7deg);
}
.reel-card:nth-child(even) {
  transform: rotate(0.7deg);
}
.reel-card video {
  aspect-ratio: 9 / 16;
}
.motion .meta {
  padding: 0.6rem 0.35rem 0.7rem;
}
.motion .client {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0;
}
.motion .kind {
  font-size: 0.78rem;
  color: var(--fade);
  margin: 0.1rem 0 0;
}
@media (max-width: 900px) {
  .reel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .reel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }
}

/* Quotes ------------------------------------------------------------------ */

.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}
@media (max-width: 900px) {
  .quotes {
    grid-template-columns: 1fr;
    max-width: 34rem;
    margin-inline: auto;
  }
}
/* Testimonials as taped index cards, kin to the photo frames */
.quote-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #f7f2e6;
  border-radius: var(--r-sm);
  padding: 2rem 1.6rem 1.4rem;
  position: relative;
  box-shadow: 0 14px 28px -18px rgba(51, 54, 31, 0.45);
  transform: rotate(-1deg);
}
.quote-card:nth-child(2) {
  transform: rotate(0.9deg) translateY(7px);
}
.quote-card:nth-child(3) {
  transform: rotate(-0.6deg);
}
.quote-card::after {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  width: 88px;
  height: 24px;
  background: rgba(214, 199, 161, 0.8);
  box-shadow: 0 1px 3px rgba(51, 54, 31, 0.18);
  transform: translateX(-50%) rotate(-2deg);
}
.quote-card:nth-child(2)::after {
  transform: translateX(-50%) rotate(1.5deg);
}
.quote-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 0.6;
  color: var(--brick);
  display: block;
  margin-bottom: 0.75rem;
}
.quote-card blockquote {
  margin: 0;
}
.quote-card blockquote p {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-style: italic;
  font-weight: 500;
  color: var(--moss);
  line-height: 1.4;
  margin: 0;
}
.quote-card figcaption {
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fade);
}

/* Contact ----------------------------------------------------------------- */

.contact .wrap {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 860px) {
  .contact .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}
.contact .section-head {
  text-align: left;
  margin-bottom: 1.5rem;
}
.contact .section-head::after {
  margin-left: 0;
}
.contact-intro {
  max-width: 48ch;
  color: var(--ink);
}

/* What happens next: a true sequence, so it earns the letterpress numbers */
.next-steps-title {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 2.4rem 0 0.4rem;
}
.next-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 46ch;
}
.next-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding-block: 0.85rem;
  border-top: 1px dashed var(--line);
}
.next-steps li:last-child {
  border-bottom: 1px dashed var(--line);
}
.next-steps .num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--brick);
}
.next-steps p {
  margin: 0;
  font-size: 0.95rem;
}
.next-steps strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--moss);
  margin-right: 0.35rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.form-grid .field {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.form-grid .full {
  grid-column: 1 / -1;
}
@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.35rem;
}
.field label .opt {
  color: var(--fade);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: none;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.7rem 0.9rem;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.field textarea {
  resize: vertical;
  min-height: 8.5rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brick);
  background: #fff;
}
.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
}
.form-status.ok {
  color: var(--moss);
}
.form-status.err {
  color: var(--brick-deep);
}

/* Founder ----------------------------------------------------------------- */

.founder .wrap {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 860px) {
  .founder .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .founder .photo-frame {
    max-width: 22rem;
    margin-inline: auto;
  }
}
.founder .photo-frame {
  transform: rotate(-1.8deg);
}
.founder h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  text-wrap: balance;
}
/* Editorial drop cap on the opening line of Eva's note */
.founder-note h2 + p::first-letter {
  float: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3.1em;
  line-height: 0.78;
  padding: 0.06em 0.14em 0 0;
  color: var(--brick);
}
.founder .sig {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--brick);
  margin-top: 1.4rem;
}
.founder-note p {
  max-width: var(--measure);
}

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

.site-footer {
  position: relative;
  background: var(--moss-deep);
  color: rgba(244, 238, 221, 0.75);
  padding-block: 3rem 2rem;
  margin-top: 14px;
  font-size: 0.92rem;
}
.site-footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 1px;
  transform: translateY(-100%);
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='14'%3E%3Cpath d='M0 14 C 18 5 36 12 55 7 C 74 2 92 12 110 6 C 128 1 150 11 172 5 C 192 2 208 9 220 14 Z' fill='%23333d1f'/%3E%3C/svg%3E") repeat-x bottom / 220px 14px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer .brand {
  color: var(--cream);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}
.site-footer a {
  color: rgba(244, 238, 221, 0.85);
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.site-footer .fineprint {
  width: 100%;
  border-top: 1px solid rgba(244, 238, 221, 0.15);
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(244, 238, 221, 0.55);
}

/* Blog -------------------------------------------------------------------- */

.blog-index {
  padding-block: clamp(3rem, 6vw, 5rem) var(--section-gap);
}
/* Latest post as a taped card, kin to the quote cards and photo frames */
.post-featured {
  position: relative;
  max-width: 46rem;
  margin: 0 auto 3rem;
  background: #f7f2e6;
  border-radius: var(--r-sm);
  padding: 2rem 2.2rem 1.9rem;
  box-shadow: 0 16px 32px -20px rgba(51, 54, 31, 0.5);
  transform: rotate(-0.8deg);
}
.post-featured::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  width: 88px;
  height: 24px;
  background: rgba(214, 199, 161, 0.8);
  box-shadow: 0 1px 3px rgba(51, 54, 31, 0.18);
  transform: translateX(-50%) rotate(-2deg);
}
.post-featured .eyebrow {
  margin-bottom: 0.5rem;
}
.post-featured .date {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fade);
}
.post-featured h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.1rem);
  margin: 0.35rem 0 0.45rem;
}
.post-featured h2 a {
  color: var(--moss);
  text-decoration: none;
}
.post-featured h2 a:hover {
  color: var(--brick);
}
.post-featured p {
  margin: 0;
  color: var(--fade);
}

.post-list {
  max-width: 46rem;
  margin-inline: auto;
  list-style: none;
  padding: 0;
}
.post-list li {
  border-bottom: 1px solid var(--line-soft);
  padding-block: 1.8rem;
}
.post-list .date {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fade);
}
.post-list h2 {
  font-size: 1.7rem;
  margin: 0.3rem 0 0.4rem;
}
.post-list h2 a {
  color: var(--moss);
  text-decoration: none;
}
.post-list h2 a:hover {
  color: var(--brick);
}
.post-list p {
  margin: 0;
  color: var(--fade);
}

.article {
  padding-block: clamp(3rem, 6vw, 5rem) var(--section-gap);
}
.article-inner {
  max-width: 44rem;
  margin-inline: auto;
}
.article header {
  margin-bottom: 2.5rem;
}
.article h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  text-wrap: balance;
}
.article .byline {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fade);
}
.article-body h2 {
  font-size: 1.8rem;
  margin-top: 2.2em;
}
.article-body h3 {
  font-size: 1.35rem;
  margin-top: 1.8em;
}
.article-body img {
  border-radius: var(--r-sm);
  margin-block: 1.5rem;
}
.article-body blockquote {
  margin: 1.6rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 3px solid var(--brick);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--moss);
}
.article-body code {
  background: var(--paper-deep);
  border: 1px solid var(--paper-edge);
  border-radius: 2px;
  padding: 0.1em 0.35em;
  font-size: 0.9em;
}
.article-body pre {
  background: var(--moss-deep);
  color: var(--cream);
  padding: 1.1rem 1.3rem;
  border-radius: var(--r-sm);
  overflow-x: auto;
}
.article-body pre code {
  background: none;
  border: 0;
  padding: 0;
}
.article-footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}

/* Reveal animation --------------------------------------------------------
   Gated on (scripting: enabled): the hidden start state only applies when
   JS will run to add .is-visible, so content never disappears without JS. */

@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms ease, transform 600ms ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
  /* staggered entrances for card grids and chips */
  .pricing-grid.reveal.is-visible .price-card,
  .chips.reveal.is-visible .chip {
    animation: rise 550ms ease backwards;
  }
  .pricing-grid.reveal.is-visible .price-card:nth-child(2) { animation-delay: 80ms; }
  .pricing-grid.reveal.is-visible .price-card:nth-child(3) { animation-delay: 160ms; }
  .pricing-grid.reveal.is-visible .price-card:nth-child(4) { animation-delay: 240ms; }
  .pricing-grid.reveal.is-visible .price-card:nth-child(5) { animation-delay: 320ms; }
  .pricing-grid.reveal.is-visible .price-card:nth-child(6) { animation-delay: 400ms; }
  .chips.reveal.is-visible .chip:nth-child(2) { animation-delay: 50ms; }
  .chips.reveal.is-visible .chip:nth-child(3) { animation-delay: 100ms; }
  .chips.reveal.is-visible .chip:nth-child(4) { animation-delay: 150ms; }
  .chips.reveal.is-visible .chip:nth-child(5) { animation-delay: 200ms; }
  .chips.reveal.is-visible .chip:nth-child(6) { animation-delay: 250ms; }
  .chips.reveal.is-visible .chip:nth-child(7) { animation-delay: 300ms; }
  .chips.reveal.is-visible .chip:nth-child(8) { animation-delay: 350ms; }

  /* pinned prints keep their tilt after revealing */
  .work-card.reveal.is-visible {
    transform: rotate(-1.3deg);
  }
  .work-card.reveal.is-visible:nth-child(even) {
    transform: rotate(1.2deg);
  }
  .work-card.reveal.is-visible:hover {
    transform: rotate(0deg) translateY(-5px);
  }
}

@media print {
  body::after,
  .site-header,
  .skip-link {
    display: none;
  }
}
