/* Wide Sky Studios
   Spacing scale: 4 8 12 16 24 32 48 64 96 128. Weights: 400 + 600 only. */
:root {
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --paper: #F5F1EA;
  --paper-2: #ECE6DB;
  --white: #FFFDF9;
  --ink: #1C211E;
  --ink-2: #4A514C;
  --line: #D8CFBF;
  --brand: #1F4A3C;
  --brand-deep: #15342A;
  --berry: #3E5C8A;
  --berry-soft: #9DB3D6;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
  --wrap: 1200px;
  --gutter: var(--s4);
}
@media (min-width: 720px) { :root { --gutter: var(--s6); } }
@media (min-width: 1100px) { :root { --gutter: var(--s7); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
p { text-wrap: pretty; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 var(--s4); }
h1, h2, h3 { margin: 0; font-weight: 400; }
strong { font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: var(--s2); z-index: 100; background: var(--ink); color: var(--paper); padding: var(--s3) var(--s4); }
.skip:focus { left: var(--s2); }

/* Type */
.h2 {
  font-family: var(--serif); font-size: clamp(2.125rem, 1.4rem + 2.6vw, 3.5rem);
  line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; margin-bottom: var(--s5);
}
.h3 { font-family: var(--serif); font-size: clamp(1.5rem, 1.25rem + .8vw, 1.875rem); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: var(--s3); }
.muted { color: var(--ink-2); }
.label {
  display: flex; align-items: center; gap: var(--s3);
  font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--berry); margin-bottom: var(--s4);
}
.label::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.label--light { color: var(--berry-soft); }
em { font-style: italic; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s3);
  min-height: 52px; padding: 0 var(--s5);
  background: var(--brand); color: var(--white); border: 0; border-radius: 999px;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--brand-deep); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn .ph { font-size: 1.125rem; transition: transform .2s ease; }
.btn:hover .ph-arrow-right { transform: translateX(3px); }
.btn--small { min-height: 44px; padding: 0 var(--s4); font-size: .9375rem; }
.btn--block { width: 100%; }
.link-arrow {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 6px;
}
.link-arrow:hover { text-decoration-color: currentColor; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 28px; height: 28px; }
.brand__name { font-family: var(--serif); font-size: 1.375rem; letter-spacing: -0.01em; line-height: 1; }
.brand__tag { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-top: 3px; }
.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; gap: var(--s6); margin-left: auto; }
  .nav a { font-size: .9375rem; text-decoration: none; padding: var(--s3) 0; }
  .nav a:hover { text-decoration: underline; }
}
@media (max-width: 899px) { .site-header .btn--small { display: none; } }

/* Hero */
.hero { padding: var(--s7) 0 var(--s8); }
.hero__grid { display: grid; gap: var(--s7); align-items: center; }
.kicker { font-size: .9375rem; color: var(--ink-2); margin-bottom: var(--s5); }
.hero__title {
  font-family: var(--serif); font-size: clamp(2.5rem, 1.5rem + 4.6vw, 5rem);
  line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; margin-bottom: var(--s5);
}
.hero__title em { color: var(--brand); }
.hero__lede { font-size: 1.125rem; color: var(--ink-2); max-width: 31em; text-wrap: pretty; margin-bottom: var(--s6); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); }
.facts { grid-column: 1 / -1; display: grid; gap: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s5); }
.facts li { display: flex; align-items: center; gap: var(--s3); font-size: .9375rem; font-weight: 600; }
.facts .ph { font-size: 1.25rem; color: var(--berry); }
@media (min-width: 600px) { .facts { grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s6); } }
@media (min-width: 1000px) { .facts { grid-template-columns: repeat(4, auto); justify-content: space-between; margin-top: var(--s4); } }

.hero__visual { position: relative; padding: 0 0 var(--s7) var(--s7); }
.hero__visual::before {
  content: ""; position: absolute; inset: var(--s7) var(--s6) 0 0; border-radius: 16px;
  background: var(--brand);
}
.browser--hero { position: relative; transform: rotate(0deg); }
.phone {
  position: absolute; left: 0; bottom: 0; width: 30%; min-width: 96px;
  border: 6px solid #111; border-radius: 26px; overflow: hidden; background: #111;
  box-shadow: 0 24px 48px -16px rgba(0,0,0,.45);
}
.phone img { border-radius: 19px; aspect-ratio: 390 / 700; object-fit: cover; object-position: top; }
.hero__caption { position: absolute; right: calc(var(--s6) + var(--s5)); bottom: var(--s3); margin: 0; font-size: .8125rem; color: var(--paper); opacity: .8; }
@media (max-width: 599px) {
  .hero__visual { padding: 0 0 var(--s6) var(--s6); }
  .hero__visual::before { inset: var(--s6) var(--s4) 0 0; }
  .phone { border-width: 4px; border-radius: 18px; }
  .phone img { border-radius: 14px; }
  .hero__caption { display: none; }
}
@media (min-width: 1000px) {
  .hero { padding: var(--s8) 0 var(--s9); }
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: var(--s8); }
  .hero__visual { margin-right: calc(var(--gutter) * -1); }
}

/* Browser frame */
.browser {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 24px 48px -24px rgba(28,33,30,.35);
  border: 1px solid rgba(28,33,30,.08);
}
.browser__bar {
  display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 var(--s3);
  background: #EFEAE1; border-bottom: 1px solid rgba(28,33,30,.08);
}
.browser__bar span { width: 9px; height: 9px; border-radius: 50%; background: #D3CABB; }
.browser__bar em {
  font-style: normal; font-size: .6875rem; color: #6B6F68; margin: 0 auto; padding: 2px var(--s4);
  background: var(--white); border-radius: 999px; transform: translateX(-16px);
}
.browser img { width: 100%; aspect-ratio: 1.9; object-fit: cover; object-position: top; }

/* Statement */
.statement { padding: var(--s8) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statement__text {
  font-family: var(--serif); font-size: clamp(1.625rem, 1.1rem + 2.2vw, 2.75rem);
  line-height: 1.2; letter-spacing: -0.015em; max-width: 26em; margin: 0; text-wrap: pretty; color: var(--ink-2);
}
.statement__text span { color: var(--ink); font-style: italic; }

/* Sections */
.section { padding: var(--s9) 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--brand-deep); color: var(--paper); }
.section--dark .muted { color: #C5CEC8; }
.section-head { display: grid; gap: var(--s4); margin-bottom: var(--s7); }
.section-head .h2 { margin-bottom: 0; }
.section-head__note { max-width: 32em; margin: 0; }
@media (min-width: 900px) {
  .section { padding: var(--s10) 0; }
  .section-head { grid-template-columns: 1.1fr 1fr; align-items: end; gap: var(--s8); margin-bottom: var(--s8); }
}

.split { display: grid; gap: var(--s6); }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: var(--s9); }
  .split__aside { position: sticky; top: 108px; align-self: start; }
}

/* Services */
.service { display: grid; grid-template-columns: 40px 1fr; gap: var(--s4); padding: var(--s6) 0; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service__num { font-size: .875rem; font-weight: 600; color: var(--berry); padding-top: 8px; margin: 0; font-variant-numeric: tabular-nums; }
.service p { color: var(--ink-2); max-width: 36em; }
.ticks { display: grid; gap: var(--s2) var(--s5); margin-top: var(--s4); }
.ticks li { position: relative; padding-left: var(--s5); font-size: .9375rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 6px;
  border-left: 1.5px solid var(--brand); border-bottom: 1.5px solid var(--brand); transform: rotate(-45deg);
}
@media (min-width: 600px) { .ticks { grid-template-columns: 1fr 1fr; } .service { grid-template-columns: 64px 1fr; } }

/* Built around you */
.around { background: var(--paper-2); padding: var(--s9) 0; }
.around__grid { display: grid; gap: var(--s6); }
.around__quote {
  font-family: var(--serif); font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);
  line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance;
}
.around__quote em { color: var(--brand); }
.around__body p { color: var(--ink-2); font-size: 1.0625rem; }
.around__body p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .around { padding: var(--s10) 0; }
  .around__grid { grid-template-columns: 7fr 4fr; gap: var(--s9); align-items: end; }
}

/* Work */
.work-grid { display: grid; gap: var(--s7); }
.work-item { margin: 0; }
.work-item .browser { transition: transform .3s ease, box-shadow .3s ease; }
.work-item:hover .browser { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 32px 56px -24px rgba(28,33,30,.4); }
.work-item figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s1) var(--s4); padding-top: var(--s4); }
.work-item__title { font-family: var(--serif); font-size: 1.375rem; line-height: 1.2; }
.work-item__meta { font-size: .875rem; color: var(--ink-2); }
.work-item__tag {
  display: inline-block; margin-left: var(--s2); padding: 2px var(--s2); border: 1px solid var(--line); border-radius: 999px;
  font-size: .75rem; font-weight: 600; color: var(--ink-2); vertical-align: 2px;
}
@media (min-width: 760px) {
  .work-grid { grid-template-columns: 1fr 1fr; gap: var(--s8) var(--s6); }
  .work-item:first-child { grid-column: 1 / -1; }
  .work-item:first-child .work-item__title { font-size: 1.75rem; }
  .work-item:nth-child(odd):not(:first-child) { transform: translateY(var(--s8)); }
  .work-grid { padding-bottom: var(--s8); }
}
@media (min-width: 1100px) {
  .work-item:first-child { display: grid; grid-template-columns: 8fr 3fr; gap: var(--s6); align-items: end; }
  .work-item:first-child figcaption { display: block; padding: 0 0 var(--s4); }
  .work-item:first-child .work-item__meta { display: block; margin-top: var(--s2); }
  .work-item:first-child .work-item__tag { margin: var(--s4) 0 0; }
}

/* Process */
.steps { display: grid; gap: var(--s6); counter-reset: none; }
.step { border-top: 1px solid rgba(245,241,234,.25); padding-top: var(--s5); }
.step__num { display: block; font-family: var(--serif); font-size: 4.5rem; line-height: 1; color: var(--berry-soft); margin-bottom: var(--s5); }
.step p { color: #C5CEC8; margin: 0; max-width: 30em; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s7); } .step__num { font-size: 6rem; } }

/* Pricing */
.price-group { margin-bottom: var(--s8); }
.price-group__title {
  display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap;
  font-family: var(--sans); font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding-bottom: var(--s4); border-bottom: 1px solid var(--ink);
}
.price-group__title span { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-2); font-size: .9375rem; }
.price-row {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s2) var(--s5);
  padding: var(--s5) 0; border-bottom: 1px solid var(--line);
}
.price-row p { margin: 0; }
.price-row__name { font-family: var(--serif); font-size: 1.75rem; line-height: 1.2; }
.price-row__price { font-family: var(--serif); font-size: 1.75rem; line-height: 1.2; text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.price-row__price small { display: block; font-family: var(--sans); font-size: .8125rem; color: var(--ink-2); }
.price-row__desc { grid-column: 1 / -1; grid-row: 2; color: var(--ink-2); max-width: 40em; }
.price-row--minor .price-row__name, .price-row--minor .price-row__price { font-size: 1.375rem; }
@media (min-width: 900px) {
  .price-row { grid-template-columns: 3fr 6fr 3fr; gap: var(--s6); align-items: baseline; padding: var(--s6) 0; }
  .price-row__desc { grid-column: 2; grid-row: 1; }
  .price-row__name, .price-row__price { font-size: 2.25rem; }
}
.terms { display: grid; gap: var(--s5); }
.terms li { display: flex; gap: var(--s4); color: var(--ink-2); font-size: .9375rem; }
.terms strong { color: var(--ink); }
.terms .ph { font-size: 1.5rem; color: var(--brand); flex: none; }
@media (min-width: 900px) { .terms { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
  min-height: 64px; padding: var(--s4) 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 1.375rem; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.5rem; color: var(--berry); transition: transform .2s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); max-width: 36em; padding-bottom: var(--s5); margin: 0; }

/* Contact */
.contact__details { display: grid; gap: var(--s5); margin: var(--s6) 0 0; }
.contact__details dt { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--s1); }
.contact__details dd { margin: 0; font-size: 1.125rem; }
.contact__details a { display: inline-block; padding: var(--s2) 0; word-break: break-word; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: var(--s5); }
@media (min-width: 600px) { .form { padding: var(--s7); } }
.field { margin-bottom: var(--s5); }
.field label { display: block; font-size: .9375rem; font-weight: 600; margin-bottom: var(--s2); }
.field label span { font-weight: 400; color: var(--ink-2); margin-left: var(--s1); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: var(--s3) var(--s4);
  font: 400 1rem/1.5 var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
}
.field input::placeholder { color: #7A7F79; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--berry); outline-offset: 1px; border-color: transparent; }
.field [aria-invalid="true"] { border-color: #A2412B; }
.form__error { color: #A2412B; font-size: .9375rem; min-height: 0; margin: 0; }
.form__error:not(:empty) { margin-bottom: var(--s4); }
.form__note { font-size: .875rem; color: var(--ink-2); margin: var(--s4) 0 0; text-align: center; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding: var(--s8) 0 var(--s5); }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer a:hover { color: var(--berry-soft); }
.site-footer .muted { color: #B7BDB8; max-width: 26em; }
.site-footer__grid { display: grid; gap: var(--s6); padding-bottom: var(--s7); }
.site-footer__brand { font-family: var(--serif); font-size: 2rem; line-height: 1.1; margin-bottom: var(--s3); }
.site-footer__h { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #B7BDB8; margin-bottom: var(--s3); }
.site-footer p a { display: inline-block; padding: var(--s1) 0; }
.site-footer__base { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(245,241,234,.15); padding-top: var(--s5); font-size: .875rem; color: #B7BDB8; }
.site-footer__base p { margin: 0; }
.site-footer__base a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: var(--s8); } }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; left: var(--s4); right: var(--s4); bottom: var(--s4); z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 52px; border-radius: 999px; background: var(--brand); color: var(--white);
  font-weight: 600; text-decoration: none; box-shadow: 0 12px 32px -8px rgba(21,52,42,.55);
  transition: transform .25s ease, opacity .25s ease;
}
.sticky-cta:hover { color: var(--white); }
.sticky-cta.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
@media (max-width: 899px) { body { padding-bottom: 84px; } }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* Message us: floating button + panel (assets/message.js) */
.msg-fab {
  position: fixed; right: var(--s4); bottom: var(--s4); z-index: 70;
  display: inline-flex; align-items: center; gap: var(--s2); padding: 12px 18px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--white); font: 600 15px/1 var(--sans); cursor: pointer;
  box-shadow: 0 12px 32px -8px rgba(28,33,30,.5);
}
.msg-fab .ph { font-size: 20px; }
.msg-fab:hover { background: var(--brand-deep); }
@media (max-width: 899px) { .msg-fab { bottom: 84px; padding: 12px; } .msg-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.msg-box {
  position: fixed; right: var(--s4); bottom: 84px; z-index: 71; width: min(360px, calc(100vw - 32px));
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: var(--s5);
  box-shadow: 0 24px 60px -20px rgba(28,33,30,.45);
}
@media (max-width: 899px) { .msg-box { bottom: 148px; } }
.msg-box[hidden] { display: none; }
.msg-box__head { display: flex; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.msg-box__head strong { display: block; font: 400 24px/1.1 var(--serif); color: var(--ink); }
.msg-box__head span { font-size: 14px; color: var(--ink-2); }
.msg-box__close { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink-2); }
.msg-box__form, .intake-form { display: grid; gap: var(--s3); }
.msg-box__form label, .intake-form label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink); }
.msg-box__form input, .msg-box__form textarea, .intake-form input, .intake-form textarea {
  font: 400 16px/1.4 var(--sans); padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink);
}
.msg-box__form input:focus, .msg-box__form textarea:focus, .intake-form input:focus, .intake-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.msg-box__note { font-size: 13px; color: var(--ink-2); margin: 0; }
.intake { max-width: 720px; margin: 0 auto; padding: var(--s8) var(--gutter); }
.intake-form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: var(--s5); display: grid; gap: var(--s3); }
.intake-form legend { font: 400 22px/1.2 var(--serif); padding: 0 6px; }
.intake-form .hint { font-weight: 400; color: var(--ink-2); font-size: 13px; }
.intake-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
