/* ==============================================================
   Main Street Studio — editorial landing page
   Tokens
   ============================================================== */
:root {
  --paper:      #f4f2ea;   /* warm off-white, newsprint */
  --paper-2:    #ecebe2;
  --ink:        #0d1a12;
  --ink-2:      #2a362e;
  --ink-3:      #6b7269;
  --ink-4:      #a4a89f;
  --rule:       #d8d6cb;
  --rule-2:     #c4c2b5;

  --green:      #0f4a2b;   /* deep forest — primary accent */
  --green-ink:  #0a3620;   /* near-black green for text */
  --green-hi:   #14623a;   /* hover */
  --green-tint: #e6ebe3;

  --fs-display: clamp(44px, 6.8vw, 108px);
  --fs-title:   clamp(32px, 4vw, 56px);
  --fs-sub:     clamp(16px, 1.2vw, 19px);

  --wrap: 1240px;

  --ff-display: 'Fraunces', 'Times New Roman', serif;
  --ff-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

/* ==============================================================
   Reset
   ============================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.02em; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

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

.mono {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.italic {
  font-style: italic;
  font-family: var(--ff-display);
  font-weight: 300;
  color: var(--green);
}

/* ==============================================================
   Nav
   ============================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 242, 234, 0.82);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}
.wordmark-studio {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  padding-top: 1px;
}

/* "Main Street" rendered as a tiny NYC street sign badge */
.sign-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px 5px;
  background: linear-gradient(180deg, #126038 0%, #0f4a2b 60%, #0a3620 100%);
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 1px 2px rgba(13, 26, 18, 0.12);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sign-badge::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 0.75px solid rgba(255, 255, 255, 0.7);
  border-radius: 1.5px;
  pointer-events: none;
}
.sign-badge-inner {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #f4f2ea;
  padding: 0 2px;
  text-transform: uppercase;
}
.wordmark:hover .sign-badge {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 3px 8px rgba(13, 26, 18, 0.2);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.status {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 74, 43, 0.15);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(15, 74, 43, 0.15); }
  50% { box-shadow: 0 0 0 6px rgba(15, 74, 43, 0.04); }
}
.link-cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}
.link-cta::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.link-cta:hover::after { transform: scaleX(1); }

/* ==============================================================
   Hero
   ============================================================== */
.hero {
  position: relative;
  padding: 36px 0 48px;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.hero-grid { position: relative; z-index: 1; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
}
.meta-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta-row .mono { color: var(--ink); }
.mono-sub {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero-title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin-bottom: 22px;
}
.hero-title .line { display: block; }
.hero-title .italic {
  font-style: italic;
  font-weight: 300;
  color: var(--green);
}

.hero-lede {
  max-width: 540px;
  font-size: var(--fs-sub);
  line-height: 1.45;
  color: var(--ink-2);
  margin-bottom: 26px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn-solid {
  background: var(--ink);
  color: var(--paper);
  padding: 14px 24px;
  border-radius: 2px;
}
.btn-solid:hover {
  background: var(--green);
}
.btn-underline {
  padding: 14px 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
}
.btn-underline:hover { color: var(--green); border-color: var(--green); }
.btn-full { width: 100%; padding: 18px 26px; }

.hero-stat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  gap: 24px;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.stat-unit {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stat-label {
  font-size: 13px;
  color: var(--ink-2);
}

.hero-bleed {
  position: absolute;
  right: -6%;
  bottom: -14%;
  font-family: var(--ff-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(180px, 22vw, 340px);
  color: var(--green);
  opacity: 0.04;
  letter-spacing: -0.05em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
}

/* ==============================================================
   Marquee
   ============================================================== */
.marquee-section {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  overflow: hidden;
}
.marquee {
  padding: 22px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: scroll-x 48s linear infinite;
}
.marquee-track span {
  font-family: var(--ff-display);
  font-weight: 400;
  font-style: italic;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink-2);
}
.marquee-track i {
  color: var(--green);
  font-style: normal;
  font-size: 14px;
}
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==============================================================
   Section scaffolding
   ============================================================== */
.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--rule);
}
.section-head {
  margin-bottom: 52px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: var(--fs-title);
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 920px;
}
.section-title .italic { font-weight: 300; }

/* ==============================================================
   Services list
   ============================================================== */
.service-list {
  border-top: 1px solid var(--rule);
}
.service {
  display: grid;
  grid-template-columns: 100px 1fr 280px;
  gap: 48px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: padding 0.3s ease, background 0.3s ease;
}
.service:hover {
  padding-left: 16px;
  padding-right: 16px;
  background: var(--green-tint);
}
.service-idx { color: var(--ink); padding-top: 6px; }
.service-title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.service-desc {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 620px;
}
.service-desc em {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}
.service-meta {
  text-align: right;
  line-height: 1.8;
  color: var(--ink-3);
}

/* ==============================================================
   Timeline
   ============================================================== */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
}
.tl-step {
  padding: 26px 20px 26px 0;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.tl-step:last-child { border-right: 0; }
.tl-step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--green);
}
.tl-time {
  color: var(--green);
  font-size: 12px;
  font-weight: 500;
}
.tl-step h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.tl-step p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ==============================================================
   Promise / pricing
   ============================================================== */
.promise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.promise-body p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 32px;
  max-width: 520px;
}
.promise-list {
  border-top: 1px solid var(--rule);
}
.promise-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  font-size: 17px;
  color: var(--ink);
  align-items: baseline;
}
.promise-list .mono { color: var(--green); }

/* ==============================================================
   Contact
   ============================================================== */
.contact { background: var(--ink); color: var(--paper); border-bottom: 0; }
.contact .mono { color: var(--ink-4); }
.contact .section-title { color: var(--paper); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.contact-copy { display: flex; flex-direction: column; gap: 24px; }
.contact-copy .section-title {
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.95;
}
.contact-lede {
  font-size: 18px;
  color: #cfd1c8;
  max-width: 420px;
  line-height: 1.5;
}
.contact-direct {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-direct a {
  font-family: var(--ff-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(24px, 2.5vw, 32px);
  color: #9bd3b1;
  letter-spacing: -0.02em;
}
.contact-direct a:hover { color: var(--paper); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 14px;
  transition: border-color 0.2s ease;
}
.field:focus-within { border-color: #9bd3b1; }
.field label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #cfd1c8;
  font-weight: 500;
}
.field label .mono { color: #7c8a80; }
.field input,
.field textarea {
  font-family: inherit;
  font-size: 17px;
  color: var(--paper);
  background: transparent;
  border: 0;
  padding: 4px 0;
  resize: vertical;
}
.field input:focus,
.field textarea:focus { outline: none; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.35); }

.contact .btn-solid {
  background: var(--paper);
  color: var(--ink);
  margin-top: 8px;
}
.contact .btn-solid:hover { background: #9bd3b1; color: var(--ink); }

/* ==============================================================
   Footer
   ============================================================== */
.footer {
  padding: 40px 0;
  background: var(--paper);
}
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-display);
  font-size: 16px;
}
.footer-meta {
  display: flex;
  gap: 24px;
  color: var(--ink-3);
}

/* ==============================================================
   Responsive
   ============================================================== */
@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-meta {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-bottom: 32px;
    margin-bottom: 40px;
  }
  .hero-stat { grid-template-columns: 1fr 1fr; }
  .service {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 0;
  }
  .service-meta { text-align: left; }
  .service:hover { padding-left: 0; padding-right: 0; background: transparent; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .tl-step { border-right: 0; border-bottom: 1px solid var(--rule); padding: 24px 16px 24px 0; }
  .promise-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 48px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .status { display: none; }
  .hero-stat { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .hero-cta-row { gap: 20px; margin-bottom: 56px; }
  .marquee-track span { font-size: 22px; }
}
