/* Ericho Studio: "editor's desk" look. Lake teal, coral pen, yellow sticky notes. */
:root {
  --bg: #EAF4F2;
  --dot: #CFE2DE;
  --ink: #0F3A3D;
  --ink-2: #3F6466;
  --mute: #6E8E8B;
  --white: #FFFFFF;
  --coral: #FF6F59;      /* pen marks, pins, strikes (graphics only) */
  --coral-text: #B8402B; /* coral for small text on light backgrounds */
  --sticky: #FFE08A;
  --sticky-ink: #3D3000;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --r: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.55;
  background: var(--bg);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}
img, svg { display: block; }
a { color: var(--ink); transition: color 150ms ease-out; }
a:hover { color: var(--coral-text); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--sans); letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }
.accent { color: var(--coral-text); }
.muted { color: var(--ink-2); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--coral-text); margin-bottom: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 4px; border: 0; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color 150ms ease-out, color 150ms ease-out, transform 150ms ease-out; }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: 0 24px; font-size: 18px; }
.btn-dark, .btn-accent { background: var(--ink); color: var(--white); }
.btn-dark:hover, .btn-accent:hover { background: #082426; color: var(--white); }
.btn-light { background: var(--sticky); color: var(--ink); }
.btn-light:hover { background: #FFD45E; color: var(--ink); }

/* Nav */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.brand { font-family: var(--mono); font-weight: 600; font-size: 16px; text-decoration: none; }
.brand span { color: var(--coral); }
.nav nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-family: var(--mono); font-size: 14px; }
.nav nav a:not(.btn) { text-decoration: none; text-transform: lowercase; }
.nav nav .btn { font-family: var(--mono); font-weight: 600; font-size: 14px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 96px; }
@media (min-width: 1000px) { .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr); gap: 48px; } }
.hero h1 { font-weight: 700; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.22; margin-top: 18px; }
.fixw { position: relative; display: inline-block; }
.del { position: relative; color: var(--mute); }
.del::after { content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: 5px; background: var(--coral); border-radius: 3px; transform: rotate(-3deg); }
.ins { position: absolute; left: 4px; top: -0.55em; font-family: var(--hand); font-size: 0.78em; letter-spacing: 0; color: var(--coral-text); transform: rotate(-6deg); white-space: nowrap; }
.lead { margin-top: 24px; font-size: 20px; max-width: 34ch; color: var(--ink-2); }
.cta-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.hint { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }

/* Hero board: marked-up example site with sticky-note fixes */
.board { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0; align-items: center; }
@media (min-width: 640px) { .board { grid-template-columns: 62% 38%; } }
.frame { background: var(--white); border: 1.5px solid var(--ink); box-shadow: 0 24px 40px -28px rgba(15,58,61,0.6); }
.bar { display: flex; gap: 10px; padding: 8px 10px; border-bottom: 1.5px solid var(--ink); font-family: var(--mono); font-size: 11px; }
.bar i { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: var(--mute); }
.frame-shot { position: relative; }
.frame-shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.pin { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--coral); color: var(--ink); font-family: var(--mono); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 5px rgba(255,111,89,0.25); }
.notes { list-style: none; margin: 0 0 0 -14%; padding: 0; display: grid; gap: 18px; position: relative; z-index: 1; }
.sticky { position: relative; background: var(--sticky); color: var(--sticky-ink); padding: 12px 16px 14px; box-shadow: 0 12px 20px -12px rgba(0,0,0,0.45); }
.sticky::before { content: ""; position: absolute; top: -10px; left: 40%; width: 60px; height: 20px; background: rgba(255,255,255,0.5); }
.notes .sticky:nth-child(1) { transform: rotate(3deg); }
.notes .sticky:nth-child(2) { transform: rotate(-2.5deg); margin-right: 16px; }
.notes .sticky:nth-child(3) { transform: rotate(2deg); }
.sticky-h { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; }
.sticky-h span { width: 20px; height: 20px; border-radius: 50%; background: var(--coral); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.sticky s { display: block; margin-top: 6px; font-size: 14px; color: #6B5A1E; }
.sticky b { display: block; margin-top: 2px; font-family: var(--hand); font-size: 27px; line-height: 1; color: var(--ink); }

/* Numbers */
.numbers { background: var(--ink); color: var(--white); border-radius: var(--r); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); overflow: hidden; margin-bottom: 88px; }
.numbers > div { padding: 30px 36px; border-right: 1px dashed rgba(255,255,255,0.25); }
.numbers > div:last-child { border-right: 0; }
.numbers .hl { background: var(--coral); color: var(--ink); }
.numbers .n { font-weight: 700; font-size: 76px; line-height: 0.9; letter-spacing: -0.04em; }
.numbers p:not(.n) { margin-top: 10px; font-family: var(--mono); font-size: 14px; color: #BFD6D3; }
.numbers .hl p:not(.n) { color: var(--ink); }

/* Sections */
.band { background: var(--white); padding: 96px 0; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.section { padding-top: 96px; padding-bottom: 96px; }
.section-tight { padding-bottom: 96px; }
h2 { font-weight: 700; font-size: clamp(38px, 4.6vw, 54px); line-height: 1.02; }
.sub { margin: 14px 0 40px; color: var(--ink-2); max-width: 54ch; }
.section h2, #faq h2, #pricing h2 { margin-bottom: 32px; }
.section h2 + .sub { margin-top: -18px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.tile { background: var(--bg); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 26px; }
.tile svg { width: 30px; height: 30px; fill: none; stroke: var(--coral); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; margin: 16px 0 6px; }
.tile p { color: var(--ink-2); font-size: 17px; }

/* Work */
#work { padding-bottom: 0; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.work { display: block; text-decoration: none; background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; padding-bottom: 22px; transition: transform 150ms ease-out, box-shadow 150ms ease-out; }
a.work:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--ink); color: var(--ink); }
.work-media, .work > img { position: relative; border-bottom: 1.5px solid var(--ink); }
.work-media .is-before { display: none; }
.work.show-before .is-before { display: block; }
.work.show-before .is-after { display: none; }
.toggle { position: absolute; right: 10px; bottom: 10px; display: inline-flex; background: var(--ink); border-radius: 4px; padding: 3px; gap: 2px; }
.toggle button { font-family: var(--mono); font-size: 12px; font-weight: 600; color: #BFD6D3; background: transparent; border: 0; border-radius: 3px; min-height: 34px; padding: 0 10px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.work.show-before .toggle button[data-show="before"] { background: var(--coral); color: var(--ink); }
.work img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--dot); }
.work h3 { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; margin: 18px 20px 4px; }
.work p { margin: 0 20px; color: var(--ink-2); font-size: 16px; }
.work-link { text-decoration: none; display: inline-block; margin: 12px 20px 0; font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--coral-text); }

/* How it works: sticky notes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px 22px; }
.steps li { position: relative; background: var(--sticky); color: var(--sticky-ink); padding: 26px 24px 28px; box-shadow: 0 14px 22px -14px rgba(0,0,0,0.45); }
.steps li::before { content: ""; position: absolute; top: -10px; left: 38%; width: 64px; height: 20px; background: rgba(255,255,255,0.55); }
.steps li:nth-child(odd) { transform: rotate(-1.5deg); }
.steps li:nth-child(even) { transform: rotate(1.5deg); }
.step-n { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: var(--ink); color: var(--white); font-family: var(--mono); font-weight: 600; font-size: 15px; }
.steps li:last-child .step-n { background: var(--coral); color: var(--ink); }
.steps h3 { font-family: var(--hand); font-weight: 700; font-size: 32px; letter-spacing: 0; line-height: 1; margin: 14px 0 8px; color: var(--ink); }
.steps li > p:last-child { color: var(--sticky-ink); font-size: 17px; }

/* Pricing */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 36px; }
.card-dark { background: var(--ink); color: var(--white); }
.card-k { font-family: var(--mono); font-size: 14px; font-weight: 600; }
.card-dark .card-k, .card-dark .card-s { color: #BFD6D3; }
.card .accent { color: var(--coral-text); }
.price { margin-top: 8px; font-weight: 700; font-size: 76px; line-height: 1; letter-spacing: -0.04em; }
.price span { font-size: 28px; letter-spacing: -0.01em; }
.card-s { margin: 6px 0 24px; font-family: var(--mono); font-size: 14px; }
.card ul { margin: 0 0 28px; padding-left: 20px; display: grid; gap: 8px; }
.card:not(.card-dark) ul { margin-bottom: 0; }
.scope { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.scope > div { border: 1.5px dashed var(--ink-2); border-radius: var(--r); padding: 26px 32px; }
.scope h3 { font-family: var(--mono); font-weight: 600; font-size: 14px; letter-spacing: 0; text-transform: uppercase; margin-bottom: 12px; }
.scope ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); font-size: 16px; }
.scope p { color: var(--ink-2); font-size: 16px; }
.fine { margin-top: 20px; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }

/* Also available */
#also h2 { margin-bottom: 0; }
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.extra { background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 0 0 24px; overflow: hidden; }
.extra-img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-bottom: 1.5px solid var(--ink); }
.extra h3, .extra p { margin-left: 24px; margin-right: 24px; }
.extra .extra-k { margin: 16px 24px -10px; font-size: 12px; color: var(--coral-text); }
.extra svg { width: 30px; height: 30px; fill: none; stroke: var(--coral); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.extra h3 { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; margin-top: 18px; margin-bottom: 6px; }
.extra p { color: var(--ink-2); font-size: 17px; }

/* About */
.about { background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 44px; display: grid; grid-template-columns: 180px 1fr; gap: 40px; align-items: center; }
.monogram { width: 180px; height: 180px; background: var(--sticky); color: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 600; font-size: 56px; transform: rotate(-3deg); box-shadow: 0 14px 22px -14px rgba(0,0,0,0.45); }
.portrait { width: 180px; height: 180px; object-fit: cover; border: 8px solid var(--white); box-shadow: 0 14px 24px -14px rgba(0,0,0,0.5); transform: rotate(-3deg); }
.about h2 { font-size: 40px; margin-bottom: 12px; }
.about p { font-size: 19px; max-width: 62ch; color: var(--ink-2); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 18px 24px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 22px; line-height: 1; color: var(--coral-text); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; color: var(--ink-2); }

/* Start / form */
.start { background: var(--ink); color: var(--white); border-radius: var(--r); padding: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.start h2 { font-size: clamp(40px, 5vw, 62px); }
.start > div > p { margin-top: 16px; font-size: 20px; color: #D3E4E1; }
form { display: grid; gap: 14px; font-family: var(--mono); font-size: 13px; }
form label { display: grid; gap: 6px; }
form input { font-family: var(--sans); font-size: 18px; padding: 12px 16px; min-height: 52px; border: 0; border-radius: 4px; background: var(--white); color: var(--ink); }
form input:focus-visible { outline: 3px solid var(--sticky); }
.start .btn { background: var(--sticky); color: var(--ink); font-family: var(--sans); }
.start .btn:hover { background: #FFD45E; }
.hp { display: none; }
/* Moved off-screen rather than display:none, so bots that skip hidden fields still see it. */
.honey { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status:empty { min-height: 0; }
.fallback { display: grid; gap: 10px; background: rgba(255,255,255,0.08); border-radius: 4px; padding: 16px; }
.fallback[hidden] { display: none; }
.fallback a, .form-alt a { color: var(--white); }
.fallback textarea { font: inherit; font-size: 14px; padding: 10px 12px; border: 0; border-radius: 4px; resize: vertical; color: var(--ink); }
.fallback .btn { justify-self: start; }
.form-alt { font-size: 13px; color: #D3E4E1; }

/* Footer + legal pages */
.foot { display: flex; gap: 20px; padding-bottom: 40px; font-family: var(--mono); font-size: 13px; }
.foot a { color: var(--ink-2); }
.legal { max-width: 720px; padding-top: 40px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(38px, 5vw, 52px); margin: 0 0 8px; }
.legal h2 { font-size: 24px; letter-spacing: -0.01em; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal .fine { margin-top: 0; }
.legal .kicker { color: var(--coral-text); }

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .nav nav { gap: 16px; }
  .nav nav a:not(.btn) { display: none; }
  .hero { padding-top: 24px; padding-bottom: 64px; gap: 40px; }
  .notes { margin: -18px 10px 0; }
  .notes .sticky:nth-child(2) { margin-right: 0; }
  .numbers > div { border-right: 0; border-bottom: 1px dashed rgba(255,255,255,0.25); }
  .about { grid-template-columns: 1fr; padding: 28px; }
  .monogram { width: 96px; height: 96px; font-size: 30px; }
  .portrait { width: 140px; height: 140px; border-width: 6px; }
  .start, .card { padding: 28px; }
  .band, .section { padding-top: 64px; padding-bottom: 64px; }
  .section-tight { padding-bottom: 64px; }
}

/* Scroll animations. Only active when the head script adds .anim
   (never with "reduce motion", and removed if site.js fails to run). */
@media (prefers-reduced-motion: no-preference) {
  .anim [data-rv] { opacity: 0; translate: 0 18px; transition: opacity .55s ease-out, translate .6s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
  .anim [data-rv].in { opacity: 1; translate: 0 0; }
  /* sticky notes drop in and stick (their tilt is kept, it lives in transform) */
  .anim [data-rv="stick"] { translate: 0 -30px; scale: 1.06; transition: opacity .3s ease-out, translate .55s cubic-bezier(.3,1.45,.5,1), scale .55s cubic-bezier(.3,1.45,.5,1); transition-delay: var(--d, 0s); }
  .anim [data-rv="stick"].in { translate: 0 0; scale: 1; }
  /* pins pop */
  .anim [data-rv="pop"] { translate: 0 0; scale: 0; transition: opacity .15s, scale .45s cubic-bezier(.3,1.8,.5,1); transition-delay: var(--d, 0s); }
  .anim [data-rv="pop"].in { scale: 1; }
  /* photo tilts into place like it's being pinned */
  .anim [data-rv="photo"] { rotate: 10deg; scale: .9; transition: opacity .5s, rotate .75s cubic-bezier(.3,1.4,.5,1), scale .75s cubic-bezier(.3,1.4,.5,1), translate .75s; }
  .anim [data-rv="photo"].in { rotate: 0deg; scale: 1; }
  /* headline: pen strikes through DIY, then "Sharp" is written in */
  .anim .del::after { transform: rotate(-3deg) scaleX(0); transform-origin: left center; transition: transform .45s cubic-bezier(.6,0,.3,1) .55s; }
  .anim .ins { clip-path: inset(-30% 100% -30% 0); transition: clip-path .7s ease-out 1s; }
  .anim .hero.go .del::after { transform: rotate(-3deg) scaleX(1); }
  .anim .hero.go .ins { clip-path: inset(-30% -10% -30% 0); }
}
