/* Pulchrion type & color system
   Canvas 60%  Paper 30%  Accent 10%
   Contrast: ink on canvas ~12:1, muted on canvas ~7:1, cream on night ~12:1
   Scale: major third 1.250 from 16
   Space: 8px grid */
:root {
  --canvas: #F6F3EE;
  --paper: #E9E3D9;
  --ink: #0E1A2B;
  --muted: #4A5568;
  --line: rgba(14, 26, 43, 0.12);
  --accent: #FF5A3C;
  --accent-deep: #D63E24;
  --gold: #FF5A3C;
  --lime: #3D6BFF;
  --night: #0E1A2B;
  --cream: #F6F3EE;
  --cobalt: #3D6BFF;
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4rem;
  --s7: 6rem;
  --max: 70rem;
  --gutter: 1.5rem;
  --serif: "Fraunces", "Iowan Old Style", Palatino, serif;
  --sans: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --t0: 0.75rem;
  --t1: 0.875rem;
  --t2: 1rem;
  --t3: 1.25rem;
  --t4: 1.563rem;
  --t5: 2.441rem;
  --t6: 3.052rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ivory: var(--canvas);
  --espresso: var(--ink);
  --copper: var(--gold);
  --terracotta: var(--accent);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(255,90,60,0.14), transparent 55%),
    radial-gradient(700px 380px at 0% 40%, rgba(61,107,255,0.10), transparent 50%),
    var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t2);
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.09;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.09  0 0 0 0 0.07  0 0 0 0 0.05  0 0 0 0.45 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
}
p { margin: 0; }
.wrap {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.site-header .bar,
.site-footer .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: 0.85rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand img, .foot-brand img, .logo img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  mix-blend-mode: multiply;
}
.brand span, .logo {
  font-family: var(--serif);
  font-size: var(--t2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
nav { display: flex; align-items: center; gap: var(--s3); }
nav a {
  font-size: var(--t0);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
nav a:hover { color: var(--ink); }
.nav-contact {
  color: var(--canvas) !important;
  background: var(--ink);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
}
.nav-contact:hover { background: var(--accent) !important; color: var(--canvas) !important; }

.hero {
  padding: var(--s6) 0 var(--s5);
  background: var(--night);
  color: var(--cream);
}
.hero .lede { color: color-mix(in srgb, var(--cream) 78%, #c9b49a); }
.hero h1 .quiet { color: color-mix(in srgb, var(--cream) 70%, var(--cobalt)); }
.hero h1 .latin { color: var(--accent); }
.hero .ghost { color: var(--cream); border-bottom-color: var(--gold); }
.hero-grid {
  display: grid;
  gap: var(--s4);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: var(--s5); min-height: calc(100svh - 5.5rem); }
}
.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08em;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .latin {
  font-family: var(--sans);
  font-size: var(--t0);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.hero h1 .pul {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  color: var(--accent);
  letter-spacing: -0.045em;
  line-height: 0.88;
}
.hero h1 .line:not(.latin):not(.pul) {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}
.hero h1 .quiet {
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  margin: 0.35rem 0 0.1rem;
}
.lede {
  margin-top: var(--s4);
  max-width: 28rem;
  color: var(--muted);
  font-size: var(--t3);
  font-weight: 500;
  line-height: 1.45;
}
.motto {
  margin-top: var(--s3);
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t4);
  color: var(--cream);
  max-width: 22rem;
}
.cta-row {
  margin-top: var(--s4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--cream);
  text-decoration: none;
  padding: 0.9rem 1.35rem;
  font-size: var(--t1);
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--sans);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 32%, transparent);
  transition: transform 0.35s var(--ease), background 0.25s ease, box-shadow 0.35s ease;
}
.btn:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
}
.ghost {
  font-size: var(--t2);
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.12rem;
}
.ghost:hover { color: var(--ink); }
.hero-shot {
  margin: 0;
  overflow: hidden;
  height: min(82vh, 44rem);
  background: #2a1a12;
  outline: 0;
  outline-offset: -8px;
}
.hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.32) contrast(1.08);
  transform: scale(1.04);
}

.proof { padding: var(--s6) 0; background: var(--paper); border-block: 0; }
.block-head { max-width: 22rem; margin-bottom: var(--s4); }
.block-head.light { color: var(--cream); }
.section-label {
  font-size: var(--t0);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s2);
}
.block-head.light .section-label { color: var(--gold); }
.block-head h2, .offer h2, .contact h2 {
  font-size: clamp(var(--t5), 4vw, var(--t6));
}
.who-layout {
  display: grid;
  gap: 2.4rem;
  align-items: start;
}
@media (min-width: 900px) {
  .who-layout {
    grid-template-columns: minmax(16rem, 0.78fr) minmax(0, 1.22fr);
    gap: 3.2rem;
  }
  .who-copy { position: sticky; top: 5.2rem; padding-top: 0.4rem; }
}
.who-copy h2 { max-width: 12ch; }
.who-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.who-cards li {
  position: relative;
  overflow: hidden;
  min-height: 17.5rem;
  background: var(--night);
}
.who-cards img {
  width: 100%;
  height: 17.5rem;
  object-fit: cover;
  filter: saturate(1.18) contrast(1.05);
  transition: transform 0.9s var(--ease);
}
.who-cards li:hover img { transform: scale(1.06); }
.who-cards div {
  position: absolute;
  inset: auto 0 0;
  padding: 3.2rem 1.05rem 1.05rem;
  background: linear-gradient(180deg, transparent, rgba(14, 26, 43, 0.88));
  color: var(--cream);
}
.who-cards span {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: var(--t1);
}
.who-cards h3 {
  font-size: 1.35rem;
  margin: 0.15rem 0 0.25rem;
  color: var(--cream);
}
.who-cards p {
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--cream) 78%, #aaa);
  font-weight: 500;
}
.who-cards li.will-reveal { transform: none; }
@media (max-width: 560px) {
  .who-cards { grid-template-columns: 1fr; }
  .who-cards img, .who-cards li { height: 16rem; min-height: 16rem; }
}

.offer { padding: var(--s6) 0; background: var(--accent); color: var(--cream); }
.offer .section-label { color: var(--gold); }
.offer .prose { color: color-mix(in srgb, var(--cream) 88%, white); }
.offer-grid {
  display: grid;
  gap: var(--s4);
  align-items: start;
}
@media (min-width: 800px) {
  .offer-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--s6); }
}
.prose {
  color: var(--muted);
  max-width: 38rem;
  font-size: var(--t3);
  font-weight: 500;
}
.prose p + p { margin-top: var(--s2); }

.method {
  padding: var(--s6) 0;
  background: var(--night);
  color: var(--cream);
}
.steps-stage {
  perspective: 1600px;
  padding: 2.4rem 0 3.2rem;
  overflow: visible;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.4rem;
  transform-style: preserve-3d;
}
.steps li {
  width: min(20.5rem, 100%);
  padding: var(--s4);
  min-height: 15.5rem;
  background: color-mix(in srgb, var(--night) 55%, #3a2a22);
  border: 1px solid rgba(243, 238, 230, 0.16);
  box-shadow: 0 28px 50px rgba(0,0,0,0.35);
  transform-style: preserve-3d;
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 8deg)) translateZ(24px);
  animation: bob 4.8s ease-in-out infinite;
  transition: transform 0.45s var(--ease), box-shadow 0.45s ease;
}
.steps li.s1 { --ry: -16deg; --rx: 10deg; margin-top: 2.6rem; animation-delay: 0s; }
.steps li.s2 { --ry: 6deg; --rx: -6deg; margin-top: -0.4rem; width: min(22.5rem, 100%); z-index: 2; animation-delay: -1.6s; background: color-mix(in srgb, var(--accent) 22%, #1a1418); }
.steps li.s3 { --ry: 18deg; --rx: 8deg; margin-top: 3.2rem; animation-delay: -3.1s; }
.steps li:hover {
  animation-play-state: paused;
  transform: rotateY(0deg) rotateX(0deg) translateZ(56px) scale(1.05);
  z-index: 6;
  box-shadow: 0 40px 70px rgba(0,0,0,0.45);
}
.steps li.will-reveal,
.steps li.will-reveal.in {
  opacity: 1;
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 8deg)) translateZ(24px);
}
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
@keyframes spin-slow {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}
.steps .num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: var(--t3);
  margin-bottom: var(--s3);
}
.steps h3 { font-size: var(--t4); margin-bottom: 0.6rem; }
.steps p { color: color-mix(in srgb, var(--cream) 72%, #9a9086); font-size: var(--t2); }

.contact { padding: var(--s6) 0 var(--s7); background: var(--paper); }
.contact .section-label { color: var(--cobalt); }
.card-form { background: var(--canvas); box-shadow: 12px 14px 0 var(--ink); }
.contact-grid {
  display: grid;
  gap: var(--s5);
  align-items: start;
}
@media (min-width: 880px) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--s6); }
}
.mail {
  margin-top: var(--s3);
  font-family: var(--serif);
  font-size: var(--t4);
}
.mail a { text-decoration: none; border-bottom: 1px solid var(--gold); }
.card-form {
  display: grid;
  gap: var(--s2);
  padding: var(--s4);
  background: var(--paper);
  border: 1px solid var(--line);
}
label {
  display: grid;
  gap: 0.4rem;
  font-size: var(--t0);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
input, textarea {
  font: inherit;
  font-size: var(--t2);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: var(--canvas);
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0.15rem;
  width: 100%;
  border-radius: 0;
}
input:focus, textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
textarea { min-height: 6.5rem; resize: vertical; }
.row-2 { display: grid; gap: var(--s2); }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { min-height: 1.25rem; font-size: var(--t1); color: var(--muted); }
.form-status.err { color: var(--accent-deep); }
.btn[disabled] { opacity: 0.6; cursor: wait; box-shadow: none; }
.opt { text-transform: none; letter-spacing: 0; font-weight: 500; color: #8a8076; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.foot-brand { display: flex; align-items: center; gap: 0.7rem; }
.foot-brand span { font-family: var(--serif); font-style: italic; color: var(--muted); }
.meta {
  font-size: var(--t1);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}
.meta a { text-decoration: none; border-bottom: 1px solid var(--gold); }

.page-plain { padding: var(--s7) 0; min-height: 60vh; }
.page-plain h1 { font-size: clamp(var(--t5), 4vw, var(--t6)); margin-bottom: var(--s3); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.motion-on .hero h1 .line-inner {
  display: block;
  transform: translate3d(0, 108%, 0);
  transition: transform 1.05s var(--ease);
}
.motion-on.hero-in .hero h1 .line-inner { transform: none; }
.motion-on .hero h1 .line:nth-child(1) .line-inner { transition-delay: 0.06s; }
.motion-on .hero h1 .line:nth-child(2) .line-inner { transition-delay: 0.16s; }
.motion-on .hero h1 .line:nth-child(3) .line-inner { transition-delay: 0.32s; }
.motion-on .hero h1 .line:nth-child(4) .line-inner { transition-delay: 0.44s; }
.motion-on .hero h1 .line:nth-child(5) .line-inner { transition-delay: 0.54s; }
.motion-on .hero h1 .line:nth-child(6) .line-inner { transition-delay: 0.64s; }
.motion-on .hero h1 .line:nth-child(7) .line-inner { transition-delay: 0.74s; }
.motion-on .lede, .motion-on .cta-row, .motion-on .hero-shot {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.motion-on.hero-in .lede { opacity: 1; transform: none; transition-delay: 0.95s; }
.motion-on.hero-in .cta-row { opacity: 1; transform: none; transition-delay: 1.08s; }
.motion-on.hero-in .hero-shot { opacity: 1; transform: none; transition-delay: 0.35s; }
.will-reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.will-reveal.in { opacity: 1; transform: none; }
.gallery li.will-reveal:nth-child(2) { transition-delay: 0.07s; }
.gallery li.will-reveal:nth-child(3) { transition-delay: 0.14s; }
.gallery li.will-reveal:nth-child(4) { transition-delay: 0.21s; }
.steps li.will-reveal:nth-child(2) { transition-delay: 0.08s; }
.steps li.will-reveal:nth-child(3) { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .will-reveal, .hero h1 .line-inner, .lede, .cta-row, .hero-shot {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.nav-contact { background: var(--accent) !important; }
.site-header { background: color-mix(in srgb, var(--night) 88%, transparent); border-bottom-color: transparent; color: var(--cream); }
.site-header .brand span, .site-header nav a { color: var(--cream); }
.site-header .brand img { mix-blend-mode: normal; filter: brightness(9); }

.gallery li, .steps li, .hero-shot, .card-form {
  transform-style: preserve-3d;
  perspective: 1000px;
}
.gallery li { transition: transform 0.45s var(--ease); }
.work-hero {
  padding: var(--s7) 0 var(--s5);
  background: var(--night);
  color: var(--cream);
}
.work-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.work-hero .lede { color: color-mix(in srgb, var(--cream) 78%, #9aa); }
.work-list { padding: var(--s5) 0 var(--s6); }
.case { margin-bottom: var(--s6); }
.case-head { max-width: 36rem; margin-bottom: var(--s3); }
.case-head h2 { font-size: var(--t5); margin-bottom: 0.4rem; }
.case-head p { color: var(--muted); }
.compare {
  position: relative;
  overflow: hidden;
  background: var(--night);
  user-select: none;
  transform: perspective(1200px) rotateX(4deg);
  box-shadow: 0 28px 60px rgba(14,26,43,0.22);
  aspect-ratio: 16/9;
}
.compare img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.compare-after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 52%;
  overflow: hidden;
  border-right: 2px solid var(--cream);
}
.compare-after img { width: max(100%, calc(100% / 0.52)); max-width: none; height: 100%; }
.compare input[type=range] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  appearance: none;
}
.tag {
  position: absolute;
  bottom: 0.8rem;
  font-size: var(--t0);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--night);
  color: var(--cream);
  padding: 0.3rem 0.55rem;
  pointer-events: none;
}
.tag-before { right: 0.8rem; }
.tag-after { left: 0.8rem; }
.work-cta { text-align: left; }
.work-cta .cta-row { margin-top: var(--s3); }
.proof-note a { color: var(--accent-deep); }

.steps .num {
  display: inline-block;
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: translateZ(0) scale(1); color: var(--gold); }
  50% { transform: translateZ(20px) scale(1.08); color: var(--accent); }
}
.hero-shot { animation: bob 7s ease-in-out infinite; }
.card-form {
  animation: bob 8s ease-in-out infinite;
  transform: rotateY(-6deg) rotateX(3deg);
  transform-style: preserve-3d;
}
.card-form:hover { animation-play-state: paused; transform: rotateY(0) rotateX(0); }
.offer h2 { animation: bob 5.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .steps li, .gallery li, .hero-shot, .card-form, .steps .num, .offer h2 {
    animation: none !important;
    rotate: 0deg !important;
    transform: none !important;
    translate: none !important;
  }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  height: 3px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}
.who-cards li {
  clip-path: inset(12% 12% 12% 12%);
}
.motion-on .who-cards li.will-reveal {
  opacity: 1;
  clip-path: inset(100% 0 0 0);
  transform: none;
  transition: clip-path 1.15s var(--ease);
}
.motion-on .who-cards li.will-reveal.in {
  clip-path: inset(0);
}
.motion-on .who-cards li:nth-child(2).in { transition-delay: 0.12s; }
.motion-on .who-cards li:nth-child(3).in { transition-delay: 0.2s; }
.motion-on .who-cards li:nth-child(4).in { transition-delay: 0.28s; }
.who-cards img { will-change: transform; }
.motion-on .who-copy.will-reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
}
.motion-on .who-copy.will-reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .who-cards li { clip-path: none !important; }
}
