/* Shepstone Labs — shared stylesheet
   Palette: cream #F6F4EF, ink #16191C, accent orange #D6552C */

:root {
  --cream: #F6F4EF;
  --ink: #16191C;
  --orange: #D6552C;
  --text: #3D4349;
  --muted: #8A8F95;
  --border-light: #DEDACE;
  --placeholder-border: #C7C2B6;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--cream);
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink);
}

::selection { background: var(--orange); color: #fff; }

a { color: inherit; text-decoration: none; }

.wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1.5px solid var(--ink);
}
.site-nav .container {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -.01em;
}
.logo .accent { color: var(--orange); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text);
}
.nav-links a.active {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.nav-links a.pitch-link {
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
}

main { flex: 1; }

/* ---------- Buttons ---------- */
.btn {
  cursor: pointer;
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  padding: 12px 24px;
  border: 1.5px solid var(--ink);
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }

/* ---------- Page header (Work/About/Contact/Pitch) ---------- */
.page {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 32px 48px;
}
.page-header {
  padding-bottom: 24px;
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: 32px;
}
.eyebrow {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 10px;
}
.page-header h1 {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 16px 0;
}
.page-header p {
  font-size: 15px;
  color: var(--text);
  max-width: 520px;
  line-height: 1.75;
  margin: 0;
}

/* ---------- Home ---------- */
.home { max-width: 920px; margin: 0 auto; padding: 0 32px 64px; }

.hero {
  margin-top: 44px;
  background: var(--cream);
  border: 2px solid var(--ink);
  position: relative;
  background-image:
    linear-gradient(to right, rgba(22,25,28,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22,25,28,.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.hero .corner {
  position: absolute;
  font-size: 14.5px;
  color: var(--orange);
}
.hero .corner.tl { top: 14px; left: 14px; }
.hero .corner.tr { top: 14px; right: 14px; }
.hero .corner.bl { bottom: 14px; left: 14px; }
.hero .corner.br { bottom: 14px; right: 14px; }

.hero-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
  border-bottom: 1.5px solid var(--ink);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--text);
}
.hero-titlebar .rev { color: var(--orange); font-weight: 700; }

.hero-body { padding: 40px 40px 36px; position: relative; }
.hero-body .eyebrow { margin: 0 0 20px; }
.hero-body h1 {
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.12;
  letter-spacing: -.02em;
  font-weight: 800;
  margin: 0 0 20px;
}
.hero-body h1 mark {
  background: var(--orange);
  color: #fff;
  padding: 0 .16em .12em;
}
.hero-body .lede {
  font-size: 15.5px;
  color: var(--text);
  max-width: 460px;
  line-height: 1.75;
  margin: 0 0 28px;
}

.how-i-work { margin-top: 46px; }
.how-i-work h2 {
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 22px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1.5px solid var(--ink);
}
.step {
  background: #FFF;
  padding: 20px 20px;
  border-right: 1.5px solid var(--ink);
}
.step:last-child { border-right: none; }
.step .num {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: .1em;
  margin: 0 0 12px;
}
.step .title { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.step p:last-child { font-size: 13px; color: var(--text); line-height: 1.65; margin: 0; }

.teaser-strip {
  margin-top: 46px;
  border: 1.5px solid var(--ink);
  background: #FFF;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
}
.teaser-strip .badge {
  position: absolute;
  top: -9px;
  right: 24px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 3px 8px;
  transform: rotate(-2deg);
}
.teaser-strip h3 { font-size: 16.5px; font-weight: 800; margin: 0 0 6px; }
.teaser-strip p { font-size: 14px; color: var(--text); margin: 0; }
.teaser-strip .view-link {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--orange);
  white-space: nowrap;
}

.cta-banner {
  margin-top: 46px;
  background: var(--cream);
  background-image:
    linear-gradient(to right, rgba(22,25,28,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22,25,28,.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.cta-banner .inner {
  border: 1.5px solid var(--ink);
  background: #FFF;
  padding: 36px 32px;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(18px, 3vw, 24px); font-weight: 800; margin: 0 0 12px; }
.cta-banner p { font-size: 14.5px; color: var(--text); max-width: 400px; margin: 0 auto 26px; }

.bottom-cta {
  margin-top: 32px;
  border: 1.5px solid var(--ink);
  background: #FFF;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.bottom-cta h2 { font-size: 20px; font-weight: 800; margin: 0 0 8px; }
.bottom-cta p { font-size: 14px; color: var(--text); margin: 0; }

/* ---------- Work page ---------- */
.section-label { font-size: 13.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin: 0 0 8px; }
.section-title { font-size: 17.5px; font-weight: 800; margin: 0 0 22px; }

.products { display: flex; flex-direction: column; gap: 18px; }
.product-card { border: 1.5px solid var(--ink); background: #FFF; position: relative; }
.product-card .path {
  padding: 8px 24px;
  border-bottom: 1.5px solid var(--ink);
  font-size: 12px;
  color: var(--text);
  letter-spacing: .02em;
}
.product-card .body { padding: 20px 24px 22px; }
.product-card .row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.product-card .info { flex: 1; min-width: 260px; }
.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 3px 8px;
  margin-bottom: 14px;
}
.product-card .name { font-size: 18.5px; font-weight: 800; margin: 0 0 10px; letter-spacing: -.01em; }
.product-card .desc { font-size: 14.5px; color: var(--text); line-height: 1.7; margin: 0 0 14px; max-width: 640px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 11.5px; color: var(--text); border: 1px solid var(--border-light); padding: 3px 9px; }

.placeholder-tile {
  width: 88px; height: 88px; flex: none;
  border: 1.5px dashed var(--placeholder-border);
  background: repeating-linear-gradient(45deg, var(--cream), var(--cream) 8px, #EFEBE1 8px, #EFEBE1 16px);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.placeholder-tile span {
  font-size: 8.5px; color: var(--muted);
  letter-spacing: .04em; text-transform: uppercase; line-height: 1.3;
}

.product-card .footer-row { display: flex; justify-content: flex-end; margin-top: 18px; }
.stay-in-loop {
  cursor: pointer; white-space: nowrap;
  font-weight: 700; font-size: 13px; color: var(--ink);
  border: 1.5px solid var(--ink); padding: 11px 20px;
}

.website-design-section { margin-top: 40px; }

/* ---------- About page ---------- */
.divider { height: 1px; background: var(--border-light); margin: 32px 0; }

.studio-copy p, .behind-work p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 0 12px;
}
.studio-copy p:last-child, .behind-work p:last-child { margin-bottom: 0; }
.studio-copy strong { color: var(--ink); }

.founder-row { display: flex; gap: 28px; flex-wrap: wrap; }
.founder-avatar {
  width: 120px; height: 120px; flex: none;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
}
.founder-info { flex: 1; min-width: 280px; }
.founder-info .name { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 4px; }
.founder-info .role { font-size: 12.5px; color: var(--orange); font-weight: 700; letter-spacing: .04em; margin: 0 0 14px; }
.founder-info p.bio { font-size: 14.5px; color: var(--text); line-height: 1.75; margin: 0 0 12px; }

.email-menu { position: relative; display: inline-block; }
.email-menu .trigger {
  cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--ink);
  border-bottom: 1.5px solid var(--orange); background: none; border-top: 0; border-left: 0; border-right: 0;
  font-family: inherit; padding: 0;
}
.email-menu .dropdown {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 20;
  background: #FFF; border: 1.5px solid var(--ink); min-width: 190px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.email-menu.open .dropdown { display: block; }
.email-menu .copy-item {
  cursor: pointer; padding: 11px 14px; font-size: 12.5px; font-weight: 700;
  color: var(--ink); border-bottom: 1px solid var(--border-light);
  background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; font-family: inherit;
}
.email-menu .outlook-link { display: block; padding: 11px 14px; font-size: 12.5px; font-weight: 700; color: var(--ink); }

.behind-work h2 { font-size: clamp(20px, 3.5vw, 28px); font-weight: 800; margin: 0 0 16px; }

/* ---------- Forms (Contact/Pitch) ---------- */
.form-wrap { max-width: 520px; }
.form-wrap h2 { font-size: 20px; font-weight: 800; margin: 0 0 20px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.field input, .field textarea {
  background: #FFF; border: 1.5px solid var(--ink); color: var(--ink);
  font-family: 'JetBrains Mono', monospace; font-size: 14px; padding: 11px 14px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field textarea.short { min-height: 90px; }
.field textarea.shorter { min-height: 70px; }
.char-count { font-size: 11.5px; color: var(--muted); margin: 0; text-align: right; }
.form-error { font-size: 12px; color: var(--orange); min-height: 14px; margin: 0 0 12px; }
.form-success { border: 1.5px solid var(--ink); background: #FFF; padding: 28px; }
.form-success .headline { font-size: 15px; font-weight: 700; color: var(--orange); margin: 0 0 8px; }
.form-success .fallback { font-size: 12.5px; color: var(--text); margin: 0; }
.form-success .fallback a { color: var(--ink); text-decoration: underline; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1.5px solid var(--ink); padding: 22px 32px; }
.site-footer .container {
  padding: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.site-footer .tagline { font-size: 12px; color: var(--muted); }
.site-footer .tagline .accent { color: var(--orange); font-weight: 700; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--muted); }
.footer-email { font-size: 12px; color: var(--text); }

/* ---------- Print ---------- */
/* ---------- Mobile / small screens ---------- */
@media (max-width: 700px) {
  .site-nav .container { height: auto; padding: 12px 20px; row-gap: 10px; }
  .nav-links { gap: 16px; row-gap: 8px; }
  .container, .home, .page { padding-left: 20px; padding-right: 20px; }

  .hero-body { padding: 28px 24px 28px; }
  .hero-titlebar { padding: 10px 20px; }

  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1.5px solid var(--ink); }
  .step:last-child { border-bottom: none; }

  .form-row-2 { grid-template-columns: 1fr; }

  .teaser-strip, .bottom-cta { flex-direction: column; align-items: flex-start; }
  .teaser-strip .badge { position: static; display: inline-block; margin-bottom: 10px; transform: none; }

  .founder-row { flex-direction: column; }

  .site-footer .container { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media print {
  .site-nav, .btn-row, .footer-links, .email-menu .dropdown { display: none !important; }
  body { background: #fff; }
  .hero, .product-card, .step, .cta-banner .inner { break-inside: avoid; }
}
