/* Homestyle – Sara Jamróz · styles
   Mobile-first. Spacing scale: 8 · 16 · 24 · 32 · 48 · 64 · 96 · 128 */

:root {
  --bg: #EFE8DF;
  --paper: #F8F4EE;
  --ink: #2B2621;
  --ink-2: #3B342D;
  --muted: #6B5F54;
  --line: #D8CCBE;
  --line-soft: #E6DCD0;
  --acc: #C2A88A;
  --acc-ink: #85674B;
  --on-dark: #F8F4EE;
  --on-dark-muted: #BBAE9F;
  --line-dark: rgba(248, 244, 238, .14);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Red Hat Display', system-ui, -apple-system, sans-serif;
  --script: 'Allura', cursive;

  --gutter: 24px;
  --max: 1240px;
  --section: clamp(72px, 10vw, 128px);
  --head-gap: clamp(40px, 5vw, 64px);
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--on-dark); padding: 12px 16px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; font-weight: 500; }
.display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.04;
}
.display em { font-style: italic; font-weight: 400; color: var(--acc-ink); }
.h1 { font-size: clamp(48px, 9vw, 120px); }
.h2 { font-size: clamp(36px, 5.2vw, 68px); }
.h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
.kicker {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--acc-ink);
  margin-bottom: 16px;
  line-height: 1.2;
}
.label { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 34em; }
.muted { color: var(--muted); }
p { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 52px; padding: 0 24px;
  font-size: 15px; font-weight: 500; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); border-radius: 0;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease-io), border-color .45s var(--ease-io);
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease-io); }
.btn:hover::before { transform: scaleY(1); }
.btn svg { flex: none; transition: transform .45s var(--ease-io); }
.btn:hover svg { transform: translateX(4px); }
.btn--dark { background: var(--ink); color: var(--on-dark); }
.btn--dark::before { background: var(--acc-ink); }
.btn--dark:hover { border-color: var(--acc-ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line::before { background: var(--ink); }
.btn--line:hover { color: var(--on-dark); }
.btn--light { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn--light::before { background: var(--acc); }
.btn--block { width: 100%; }

/* ---------- Progress + nav ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--acc); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }
.nav { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--on-dark); border-bottom: 1px solid var(--line-dark); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.logo { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--on-dark); white-space: nowrap; }
.logo__word { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: .01em; }
.logo__sig { font-family: var(--script); font-size: 26px; line-height: 1; color: var(--on-dark-muted); }
.nav__links { display: none; gap: 32px; }
.nav__links a { position: relative; text-decoration: none; color: #E2D9CE; font-size: 15px; transition: color .3s; }
.nav__links a:hover, .nav__links a.is-active { color: #fff; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--on-dark); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-io); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: none; min-height: 40px; }
.burger { width: 44px; height: 44px; border: 1px solid rgba(246,245,243,.5); border-radius: 50%; background: transparent; color: var(--on-dark); display: grid; place-items: center; cursor: pointer; }

.menu { position: fixed; inset: 0; z-index: 70; background: var(--ink); color: var(--on-dark); padding: 0 var(--gutter) 32px; display: flex; flex-direction: column; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-io), visibility 0s .6s; }
.menu.is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .6s var(--ease-io), visibility 0s; }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); border-bottom: 1px solid var(--line-dark); margin-bottom: 16px; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-family: var(--serif); font-size: 40px; font-weight: 500; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line-dark); display: flex; justify-content: space-between; align-items: baseline; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.menu.is-open nav a { opacity: 1; transform: none; }
.menu.is-open nav a:nth-child(2) { transition-delay: .05s; } .menu.is-open nav a:nth-child(3) { transition-delay: .1s; }
.menu.is-open nav a:nth-child(4) { transition-delay: .15s; } .menu.is-open nav a:nth-child(5) { transition-delay: .2s; } .menu.is-open nav a:nth-child(6) { transition-delay: .25s; }
.menu nav a span { font-family: var(--sans); font-size: 13px; color: var(--on-dark-muted); }
.menu__foot { margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; gap: 8px; color: var(--on-dark-muted); font-size: 15px; }
.menu__foot a { text-decoration: none; color: var(--on-dark); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(600px, calc(100svh - var(--nav-h)), 880px); display: flex; color: var(--on-dark); overflow: hidden; background: var(--ink-2); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg picture, .hero__bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,38,33,.5) 0%, rgba(43,38,33,.08) 35%, rgba(43,38,33,.12) 55%, rgba(43,38,33,.78) 100%); }
.hero__in { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.hero__eyebrow { font-size: 15px; color: #EDE4D8; display: flex; align-items: center; gap: 12px; }
.hero__eyebrow::before { content: ''; width: 32px; height: 1px; background: currentColor; }
.hero .h1 { color: var(--on-dark); }
.hero .h1 em { color: #E9D6BE; }
.hero__bottom { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.hero__lead { color: #EDE4D8; max-width: 30em; }
.circle-link { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; color: var(--on-dark); font-size: 15px; font-weight: 500; min-height: 44px; }
.circle-link i { width: 64px; height: 64px; border: 1px solid var(--on-dark); border-radius: 50%; display: grid; place-items: center; transition: background .4s, color .4s; }
.circle-link:hover i { background: var(--on-dark); color: var(--ink); }
.circle-link svg { animation: nudge 2.4s ease-in-out infinite; }

.line-in { display: block; overflow: hidden; padding-bottom: .06em; }
.line-in > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.line-in:nth-child(2) > span { animation-delay: .1s; }
.fade-in { animation: up .9s var(--ease) both; }
.d1 { animation-delay: .25s; } .d2 { animation-delay: .45s; }

.draw [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s cubic-bezier(.6,0,.3,1) forwards; }
.draw .s2 { animation-delay: .35s; } .draw .s3 { animation-delay: .7s; }
.render { animation: wipe 1.8s 1.3s var(--ease-io) both; }
.hero__bg .render { animation: wipe 1.6s .1s var(--ease-io) both, zoom 22s 1.6s ease-out both; transform-origin: 50% 60%; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts strong { font-weight: 500; font-size: 16px; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--on-dark); border-top: 0 !important; }
.section--dark + .section { border-top: 0; }
.section--dark .lead, .section--dark .muted { color: var(--on-dark-muted); }
.section--dark .kicker { color: #D9C2A6; }
.head { display: grid; gap: 24px; margin-bottom: var(--head-gap); }
.head .lead { max-width: 30em; }

/* Problems */
.rows { border-top: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px 16px; padding: 28px 0; border-bottom: 1px solid var(--line); position: relative; }
.row::before { content: ''; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-io); }
.row:hover::before { transform: scaleX(1); }
.row__n { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--acc-ink); line-height: 1.4; }
.row__q { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.2; }
.row__a { grid-column: 2; color: var(--muted); }

/* Before / after */
.ba { position: relative; aspect-ratio: 4 / 3; background: var(--paper); border: 1px solid var(--line); overflow: hidden; touch-action: pan-y; --split: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--split); width: 1px; background: var(--ink); pointer-events: none; }
.ba__knob { position: absolute; top: 50%; left: 0; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--ink); color: var(--on-dark); display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(43,38,33,.6); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; }
.ba__tag { position: absolute; top: 16px; padding: 6px 12px; font-size: 13px; font-weight: 500; pointer-events: none; }
.ba__tag--l { left: 16px; background: var(--paper); border: 1px solid var(--ink); }
.ba__tag--r { right: 16px; background: var(--ink); color: var(--on-dark); }
.ba__hint { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* About */
.about { display: grid; gap: 48px; }
.portrait { position: relative; display: flex; justify-content: center; }
.portrait img { width: auto; max-width: 100%; max-height: 560px; height: auto; opacity: .92; }
.portrait__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--on-dark-muted); font-size: 14px; text-align: center; padding: 24px; }
.signature { font-family: var(--script); font-size: clamp(64px, 8vw, 104px); line-height: 1; color: var(--on-dark); margin: 0 0 24px; font-weight: 400; }
.about__text { display: flex; flex-direction: column; gap: 20px; }
.about__text p { font-size: 18px; color: #E2D9CE; max-width: 36em; }
.pull { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3vw, 34px); line-height: 1.25; color: var(--on-dark) !important; padding-left: 24px; border-left: 1px solid var(--acc); margin: 12px 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; border-top: 1px solid rgba(246,245,243,.5); }
.stat { padding: 20px 16px 0 0; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--line-dark); }
.stat b { display: block; white-space: nowrap; font-family: var(--serif); font-size: clamp(30px, 4vw, 52px); font-weight: 500; line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: 14px; color: var(--on-dark-muted); line-height: 1.4; }

/* Process */
.steps { display: grid; border-top: 1px solid var(--ink); }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.step__n { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--acc-ink); line-height: 1.4; }
.step p { grid-column: 2; color: var(--muted); }
.perk { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: 32px 24px; background: var(--paper); border: 1px solid var(--line); }
.perk p { color: var(--muted); margin-top: 8px; }

/* Works */
.works { display: grid; gap: 56px 24px; }
.work { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: inherit; }
.work__img2 { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease) !important; }
.work:hover .work__img2 { opacity: 1; }
.work__ig { position: absolute; right: 12px; top: 12px; background: var(--paper); color: var(--ink); padding: 6px 12px; font-size: 13px; font-weight: 500; opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .4s var(--ease); }
.work:hover .work__ig, .work:focus-visible .work__ig { opacity: 1; transform: none; }
.work__more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--acc-ink); border-bottom: 1px solid transparent; align-self: flex-start; transition: border-color .3s; }
.work:hover .work__more { border-color: currentColor; }
.work:hover h3 { color: var(--acc-ink); }
.work h3 { transition: color .3s; }

/* Photo interlude */
.break { position: relative; height: clamp(440px, 82vh, 780px); overflow: hidden; background: var(--ink-2); color: var(--on-dark); }
.break > img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; object-position: 40% 50%; }
.break__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,38,33,0) 40%, rgba(43,38,33,.7) 100%); }
.break__in { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding-bottom: clamp(32px, 6vw, 64px); }
.break__q { font-family: var(--serif); font-size: clamp(34px, 5vw, 64px); font-weight: 500; line-height: 1.05; max-width: 14em; }
.break__q em { font-style: italic; font-weight: 400; color: #F0DCC2; }
.break__cap { font-size: 14px; color: #E2D9CE; }
@supports (animation-timeline: view()) {
  .break > img { animation: none; }
}
@keyframes parallax { from { transform: translateY(-6%); } to { transform: translateY(6%); } }
.work__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #E2D7CA; }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work:hover .work__img img { transform: scale(1.04); }
.work__img .sw { position: absolute; transition: transform .9s var(--ease-io); }
.sw1 { left: 8%; top: 12%; width: 46%; height: 62%; } .sw2 { left: 46%; top: 30%; width: 30%; height: 40%; }
.sw3 { left: 70%; top: 16%; width: 20%; height: 28%; } .sw4 { left: 62%; top: 62%; width: 26%; height: 22%; }
.work:hover .sw1 { transform: translate(-4%, -3%); } .work:hover .sw2 { transform: translate(5%, 4%); }
.work:hover .sw3 { transform: translate(6%, -6%); } .work:hover .sw4 { transform: translate(-6%, 6%); }
.work__ph { position: absolute; left: 12px; bottom: 12px; background: var(--paper); padding: 4px 10px; font-size: 12px; color: var(--muted); }
.work__meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1px solid var(--ink); font-size: 14px; color: var(--muted); }
.work p { color: var(--muted); font-size: 16px; }
.works__more { margin-top: 56px; }

/* Pricing */
.plans { display: grid; border-top: 1px solid var(--ink); }
.plan { display: flex; flex-direction: column; gap: 16px; padding: 32px 0; border-bottom: 1px solid var(--line); position: relative; }
.plan__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 26px; }
.plan__top .label { white-space: nowrap; }
.badge { white-space: nowrap; font-size: 12px; font-weight: 500; letter-spacing: .04em; padding: 4px 10px; background: var(--acc); color: var(--ink); }
.plan p.muted { font-size: 16px; }
.price { font-family: var(--serif); font-size: 52px; font-weight: 500; line-height: 1; margin-top: 8px; }
.price small { font-family: var(--sans); font-size: 15px; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; margin: 0; padding: 0; flex: 1; border-top: 1px solid var(--line-soft); }
.plan li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; color: var(--muted); }
.plan li::before { content: '—'; color: var(--acc-ink); }
.plan--hot { background: var(--ink); color: var(--on-dark); padding: 32px 24px; margin: 0 calc(var(--gutter) * -1); border-bottom: 0; }
.plan--hot .muted, .plan--hot li, .plan--hot .price small { color: var(--on-dark-muted); }
.plan--hot ul, .plan--hot li { border-color: var(--line-dark); }
.plan--hot li::before { color: #D9C2A6; }
.plan--hot .btn--line { color: var(--on-dark); border-color: var(--on-dark); }
.plan--hot .btn--line::before { background: var(--on-dark); }
.plan--hot .btn--line:hover { color: var(--ink); }
.custom { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; margin-top: 48px; padding: 32px 24px; border: 1px solid var(--ink); }
.custom p { color: var(--muted); margin-top: 8px; }
.note { margin-top: 24px; font-size: 13px; color: var(--muted); }

/* Quotes */
.quotes { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.quote { margin: 0; padding: 32px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.35; }
.quote figcaption { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.quote figcaption b { color: var(--ink); font-weight: 500; }

/* FAQ */
.faq-grid { display: grid; gap: 40px; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 16px; align-items: center; padding: 24px 0; font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1.25; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.plus { width: 32px; height: 32px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; transition: transform .5s var(--ease-io), background .3s, color .3s; }
.faq details[open] .plus { transform: rotate(45deg); background: var(--ink); color: var(--on-dark); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); animation: up .5s var(--ease) both; }

/* Contact */
.contact { display: grid; gap: 56px; }
.contact__alt { display: flex; flex-direction: column; margin-top: 40px; border-top: 1px solid var(--line-dark); }
.contact__alt a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); text-decoration: none; font-size: 17px; transition: padding .4s var(--ease-io); }
.contact__alt a span { font-size: 14px; color: var(--on-dark-muted); }
.contact__alt a:hover { padding-left: 8px; }
.form { display: grid; gap: 32px; }
.field { display: flex; flex-direction: column; gap: 12px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { font-size: 14px; font-weight: 500; color: var(--on-dark-muted); padding: 0; }
.field input[type=text], .field input[type=email], .field textarea {
  width: 100%; background: transparent; color: var(--on-dark); border: 0; border-bottom: 1px solid rgba(246,245,243,.3); border-radius: 0;
  padding: 8px 0 12px; min-height: 48px; font-size: 18px; transition: border-color .3s;
}
.field textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #8E8276; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--acc); }
.field .err { font-size: 14px; color: #E9B9A0; display: none; }
.field.has-error .err { display: block; }
.field.has-error input, .field.has-error textarea { border-color: #E9B9A0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid rgba(246,245,243,.3); font-size: 15px; cursor: pointer; transition: background .3s, border-color .3s, color .3s; }
.chip span:hover { border-color: var(--on-dark); }
.chip input:checked + span { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--on-dark-muted); line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--acc); }
.consent a { color: var(--on-dark); }
.form__micro { font-size: 14px; color: var(--on-dark-muted); }
.form__error { font-size: 15px; color: #E9B9A0; }
.hp { position: absolute; left: -9999px; }
.done { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; animation: up .6s var(--ease) both; }
.done__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--acc); color: var(--ink); display: grid; place-items: center; }
.done p { color: var(--on-dark-muted); font-size: 18px; max-width: 30em; }

/* Footer */
.footer { padding: 72px 0 120px; }
.footer__grid { display: grid; gap: 32px; }
.footer__brand .logo { color: var(--ink); }
.footer__brand .logo__sig { color: var(--muted); }
.footer p { color: var(--muted); font-size: 15px; margin-top: 12px; max-width: 30em; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer__links a { text-decoration: none; font-size: 15px; }
.footer__links a:hover { color: var(--acc-ink); }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }

/* Mobile bottom bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: minmax(0, 1fr) 56px 56px; background: var(--ink); border-top: 1px solid var(--line-dark); padding-bottom: env(safe-area-inset-bottom); transform: translateY(100%); transition: transform .5s var(--ease); }
.bar.is-visible { transform: none; }
.bar a { min-height: 56px; display: flex; align-items: center; justify-content: center; color: var(--on-dark); text-decoration: none; font-weight: 500; border-left: 1px solid var(--line-dark); }
.bar a:first-child { border-left: 0; justify-content: space-between; padding: 0 24px; }

/* ---------- Motion ---------- */
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes nudge { 50% { transform: translateY(6px); } }
@keyframes grow { to { transform: scaleX(1); } }

/* Scroll reveal: CSS scroll-driven where supported, JS fallback adds .is-in */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@supports (animation-timeline: view()) {
  .reveal { opacity: 1; transform: none; transition: none; animation: up linear both; animation-timeline: view(); animation-range: entry 0% cover 20%; }
  .progress { animation: grow linear both; animation-timeline: scroll(); }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 1px solid var(--line); }
  .plan { padding: 32px; border-right: 1px solid var(--line); }
  .plan--hot { margin: 0; }
  .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
  .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .perk, .custom { padding: 32px 40px; }
}
@media (min-width: 1024px) {
  body { font-size: 17px; }
  .nav__links, .nav__cta { display: flex; }
  .burger { display: none; }
  .hero__in { padding-bottom: 64px; }
  .head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 64px; }
  .row { grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; padding: 32px 0; }
  .row__a { grid-column: auto; padding-top: 6px; }
  .about { grid-template-columns: 5fr 7fr; gap: 96px; align-items: center; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; border-top: 0; }
  .step { grid-template-columns: 1fr; border-top: 1px solid var(--ink); border-bottom: 0; padding: 24px 0 0; gap: 12px; }
  .step p { grid-column: auto; }
  .works { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 96px 40px; }
  .work:nth-child(1) { grid-column: 1 / 8; } .work:nth-child(2) { grid-column: 9 / 13; margin-top: 120px; }
  .work:nth-child(3) { grid-column: 1 / 6; } .work:nth-child(4) { grid-column: 7 / 13; }
  .work:nth-child(5) { grid-column: 2 / 8; } .work:nth-child(6) { grid-column: 9 / 13; margin-top: 96px; }
  .work:nth-child(7) { grid-column: 1 / 6; margin-top: 48px; } .work:nth-child(8) { grid-column: 7 / 13; }
  .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: 5fr 7fr; gap: 96px; }
  .contact { grid-template-columns: 5fr 7fr; gap: 96px; }
  .footer { padding-bottom: 72px; }
  .footer__grid { grid-template-columns: 1fr auto; align-items: end; }
  .bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .draw [pathLength] { stroke-dashoffset: 0; }
}

/* Dark-section accents + simple pages */
.section--dark .display em, .done .display { color: #E2CDB2; }
.page { min-height: 70vh; padding: clamp(72px, 10vw, 128px) 0; }
.page .wrap { max-width: 820px; }
.page h1 { margin-bottom: 32px; }
.page h2 { font-family: var(--serif); font-size: 28px; margin: 40px 0 12px; }
.page p, .page li { color: var(--muted); margin-bottom: 12px; }

/* Mobile hero: stronger shade so the headline stays legible over the render */
@media (max-width: 719px) {
  .hero__shade { background: linear-gradient(180deg, rgba(43,38,33,.45) 0%, rgba(43,38,33,.6) 40%, rgba(43,38,33,.85) 100%); }
  .hero__in { gap: 24px; padding-bottom: 40px; }
}

@media (max-width: 719px) { .portrait img { max-height: 360px; } }

/* ================= Motion layer (light, modern) ================= */

/* Page load */
body { animation: pageIn .6s ease both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* Nav hides on scroll down, returns on scroll up */
.nav { transition: transform .5s var(--ease-io); }
.nav.is-hidden { transform: translateY(-100%); }

/* Headings: word-by-word rise */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split.is-in .w > span { transform: none; }

/* Kicker: short line draws in front */
.kicker { display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ''; width: 0; height: 1px; background: currentColor; transition: width .9s var(--ease-io) .1s; }
.is-in .kicker::before, .kicker.is-in::before { width: 28px; }

/* Image curtain reveal + settle zoom */
.img-reveal { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease-io); }
.img-reveal img { transform: scale(1.18); transition: transform 1.6s var(--ease); }
.img-reveal.is-in { clip-path: inset(0 0 0 0); }
.img-reveal.is-in img { transform: scale(1); }
.work:hover .img-reveal.is-in img:first-child { transform: scale(1.04); transition-duration: 1.2s; }

/* Hero parallax handled in JS on .hero__bg */
.hero__bg { will-change: transform; }

/* Ticker */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); padding: 22px 0; }
.ticker__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3vw, 36px); color: var(--muted); white-space: nowrap; display: flex; align-items: center; }
.ticker i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); margin: 0 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Rows / steps: subtle slide on hover */
.row__q, .step .h3 { transition: transform .5s var(--ease), color .3s; }
.row:hover .row__q { transform: translateX(8px); }
.step .step__n { display: inline-block; transition: transform .5s var(--ease); }
.step:hover .step__n { transform: translateX(6px); }

/* Pricing: lift + shadow */
.plan { transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s; }
@media (hover: hover) and (min-width: 720px) {
  .plan:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -34px rgba(43,38,33,.45); z-index: 1; }
}

/* Quotes: big opening mark */
.quote blockquote::before { content: '“'; display: block; font-size: 64px; line-height: .6; height: 28px; color: var(--acc); }

/* Chips: soft press */
.chip span { transition: background .3s, border-color .3s, color .3s, transform .2s; }
.chip:active span { transform: scale(.96); }

/* Magnetic elements (JS sets --mx/--my) */
.magnetic { transform: translate(var(--mx, 0), var(--my, 0)); transition: transform .4s var(--ease), color .45s var(--ease-io), border-color .45s var(--ease-io), background .4s; }


/* Form success: check draws */
.done__icon path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw2 .8s .3s var(--ease) forwards; }
@keyframes draw2 { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .split .w > span, .img-reveal img { transform: none !important; }
  .img-reveal { clip-path: none !important; }
  .kicker::before { width: 28px; }
  .nav.is-hidden { transform: none; }
  .ticker__track { animation: none; }
}
.portrait img { animation: float 9s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-.6deg); } }
@media (prefers-reduced-motion: reduce) { .portrait img { animation: none; } }

/* ---- Round 3 fixes ---- */
/* Stats: two columns */
.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; }

/* Before/after: show the full drawing at a size that stays sharp */
.ba { aspect-ratio: 4 / 3; max-width: 960px; margin: 0 auto; background: #fff; }
.ba img { object-fit: cover; image-rendering: auto; }
.ba__hint { max-width: 960px; margin: 16px auto 0; }

/* Form: more breathing room */
.form { gap: 44px; }
.field { gap: 16px; }
.field > legend { margin-bottom: 16px; }
.chips { gap: 12px 12px; }
.chip span { min-height: 48px; padding: 0 20px; }
.two { row-gap: 44px; }
.consent { gap: 14px; }
.form__micro { margin-top: -20px; }

/* ---- Round 4 ---- */
/* Projects: only the Instagram link is clickable */
.work { cursor: default; }
.work:hover h3 { color: inherit; }
.work__ig { display: none !important; }
.work__more { text-decoration: none; padding: 6px 0; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 0; }
.work__more:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.work:hover .work__more { border-color: transparent; }

/* Interlude: full width, no text, lower, parallax */
.break { position: relative; width: 100%; height: clamp(300px, 52vw, 620px); overflow: hidden; background: var(--ink-2); }
.break > img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; object-position: 50% 45%; max-width: none; will-change: transform; }

/* Sara drawing: whole drawing, white line straight on the dark background */
.section--dark .portrait { background: none !important; aspect-ratio: auto !important; overflow: visible; padding: 0; display: flex; justify-content: center; align-items: center; }
.section--dark .portrait img { width: auto !important; height: auto !important; max-width: 100%; max-height: 560px; object-fit: contain !important; background: none; }
.portrait__ph { display: none; }
@media (max-width: 719px) { .section--dark .portrait img { max-height: 380px; } }

/* Form spacing — larger */
.form { gap: 56px; }
.field { gap: 20px; }
.field > legend { display: block; float: left; width: 100%; margin: 0; padding: 0; }
.field > legend + * { clear: both; }
.chips { gap: 14px; }
.chip span { min-height: 52px; padding: 0 22px; }
.two { row-gap: 56px; column-gap: 40px; }
.consent { margin-top: 8px; }
.form__micro { margin-top: -24px; }

/* Interlude parallax: the photo scrolls inside its frame */
.break { height: clamp(280px, 48vw, 560px); }
.break > img { top: -20%; height: 140%; }

/* ---- Round 5 ---- */
/* Navigation always pinned to the top */
.nav { position: sticky; top: 0; z-index: 50; transform: none !important; }
.nav.is-hidden { transform: none !important; }

/* Hero: slightly darker photo for legible text */
.hero__shade {
  background:
    linear-gradient(180deg, rgba(30,26,22,.55) 0%, rgba(30,26,22,.28) 35%, rgba(30,26,22,.38) 60%, rgba(30,26,22,.82) 100%),
    rgba(30,26,22,.18);
}
.hero .h1, .hero__lead, .hero__eyebrow, .circle-link { text-shadow: 0 1px 24px rgba(20,17,14,.35); }
@media (max-width: 719px) {
  .hero__shade { background: linear-gradient(180deg, rgba(30,26,22,.55) 0%, rgba(30,26,22,.62) 40%, rgba(30,26,22,.88) 100%); }
}

/* ---- Round 6 ---- */
/* Polish typography: avoid widows and ragged headings */
p, li, blockquote, summary, .row__q, .row__a { text-wrap: pretty; }
h1, h2, h3, .h3 { text-wrap: balance; }

/* Steps: numbers, titles and texts aligned in rows across cards */
@media (min-width: 1024px) {
  .steps { grid-template-rows: auto auto 1fr; row-gap: 0; }
  .step { grid-row: span 3; display: grid; grid-template-rows: subgrid; row-gap: 14px; align-content: start; }
  .step .step__n, .step .h3, .step p { align-self: start; margin: 0; }
}

/* Perk without button */
.perk { justify-content: flex-start; }
.perk p { max-width: 46em; }

/* Quotes: name only */
.quote figcaption { justify-content: flex-start; }
@media (prefers-reduced-motion: reduce) { .done__icon path { stroke-dashoffset: 0; } }
