/* ---------- Tokens ---------- */
:root {
  --ink: #11161C;
  --slate: #5C6B7A;
  --mist: #DDE3E7;
  --paper: #F5F7F8;
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

section {
  padding: 96px 24px;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.bg-ink {
  background: var(--ink);
}

.bg-paper {
  background: var(--paper);
}

/* ---------- Eyebrow labels ---------- */
.eyebrow {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  text-align: center;
  display: block;
}

.bg-ink .eyebrow {
  color: var(--mist);
  opacity: 0.72;
}

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
  padding-left: 32px;
  padding-right: 32px;
}

.wordmark {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.header-link {
  font-weight: 400;
  font-size: 15px;
  color: var(--mist);
  opacity: 0.72;
  transition: opacity 0.15s ease;
}

.header-link:hover {
  opacity: 1;
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 24px 84px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-headline {
  font-weight: 700;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--paper);
  max-width: 1000px;
}

.hero-subhead {
  margin-top: 24px;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--mist);
  opacity: 0.72;
  max-width: 520px;
}

.hero-cta {
  margin-top: 40px;
}

/* ---------- Buttons ---------- */
.btn-pill {
  display: inline-block;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 30px;
  transition: opacity 0.15s ease;
}

.btn-pill:hover {
  opacity: 0.85;
}

.btn-pill-block {
  display: block;
  width: 100%;
  text-align: center;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  padding: 16px 0;
  transition: opacity 0.15s ease;
}

.btn-pill-block:hover {
  opacity: 0.85;
}

/* ---------- Logo strip (scaffold, hidden) ---------- */
.logo-strip {
  padding: 48px 24px;
  background: var(--ink);
}

.logo-strip-row {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.logo-strip-row img {
  filter: grayscale(100%);
  opacity: 0.6;
  max-height: 28px;
  width: auto;
}

/* ---------- Segmented rule ---------- */
.segmented-rule {
  display: flex;
  gap: 6px;
  max-width: 280px;
  margin: 0 auto 56px;
}

.segmented-rule span {
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: var(--mist);
}

.bg-ink .segmented-rule span {
  background: var(--slate);
  opacity: 0.4;
}

.segmented-rule span.active {
  background: var(--ink);
  opacity: 1;
}

.bg-ink .segmented-rule span.active {
  background: var(--paper);
  opacity: 1;
}

/* ---------- Portfolio ---------- */
.portfolio-intro {
  text-align: center;
  margin-bottom: 48px;
}

.portfolio-intro p {
  margin-top: 16px;
  font-weight: 400;
  font-size: 15px;
  color: var(--slate);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 28px;
  row-gap: 56px;
}

.portfolio-card .thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--mist);
  border-bottom: 3px solid var(--client, var(--slate));
  transition: border-color 0.15s ease;
}

.portfolio-card:hover .thumb {
  border-color: var(--slate);
  border-bottom-color: var(--client, var(--slate));
}

.portfolio-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.portfolio-card .label {
  margin-top: 14px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

.portfolio-card .desc {
  margin-top: 4px;
  font-weight: 400;
  font-size: 14px;
  color: var(--slate);
}

.samples-disclaimer {
  margin-top: 40px;
  text-align: center;
  font-weight: 400;
  font-size: 13px;
  color: var(--slate);
}

/* ---------- How it works ---------- */
.how-it-works {
  padding-bottom: 48px;
}

.statement {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
}

/* ---------- Packages ---------- */
#packages {
  padding-top: 48px;
}

.packages-eyebrow {
  margin-bottom: 48px;
}

.packages-grid {
  display: flex;
  gap: 28px;
}

.package-card {
  flex: 1;
  border-radius: 8px;
  border: 1px solid var(--mist);
  background: var(--paper);
  padding: 40px 32px;
  text-align: center;
}

.package-card .eyebrow {
  margin-bottom: 16px;
}

.package-price {
  font-weight: 700;
  font-size: 32px;
  color: var(--ink);
}

.package-price .per {
  font-weight: 400;
  font-size: 16px;
  color: var(--slate);
}

.package-card .desc {
  margin-top: 12px;
  font-weight: 400;
  font-size: 15px;
  color: var(--slate);
}

.packages-note {
  margin-top: 48px;
  text-align: center;
  font-weight: 400;
  font-size: 15px;
  color: var(--slate);
}

/* ---------- Contact ---------- */
.contact-section {
  padding-top: 140px;
  padding-bottom: 96px;
}

.contact-heading {
  text-align: center;
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.contact-subline {
  margin-top: 20px;
  text-align: center;
  font-weight: 400;
  font-size: 17px;
  color: var(--mist);
  opacity: 0.72;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  max-width: 560px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--slate);
  border-radius: 8px;
  color: var(--paper);
  font-family: inherit;
  font-weight: 400;
  font-size: 16px;
  padding: 14px;
  transition: border-color 0.15s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 8em;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--mist);
  opacity: 0.45;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--paper);
}

.contact-form button {
  margin-top: 6px;
}

.direct-email {
  margin-top: 24px;
  text-align: center;
  font-weight: 400;
  font-size: 15px;
  color: var(--mist);
  opacity: 0.72;
}

.direct-email a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-message {
  max-width: 560px;
  margin: 48px auto 0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  font-weight: 400;
  font-size: 16px;
}

.form-message.success {
  background: rgba(245, 247, 248, 0.08);
  color: var(--paper);
  border: 1px solid var(--slate);
}

.form-message.success .send-another {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--mist);
  opacity: 0.72;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-message.success .send-another:hover {
  opacity: 1;
}

.form-error {
  margin-top: 16px;
  text-align: center;
  font-weight: 400;
  font-size: 14px;
  color: var(--paper);
  background: rgba(245, 247, 248, 0.08);
  border: 1px solid var(--slate);
  border-radius: 8px;
  padding: 12px 16px;
}

/* ---------- Legal pages ---------- */
.legal-header {
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
}

.legal-main {
  max-width: 700px;
  margin: 0 auto;
  padding: 120px 24px 96px;
}

.legal-h1 {
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.legal-updated {
  margin-top: 12px;
  font-weight: 400;
  font-size: 14px;
  color: var(--slate);
}

.legal-rule {
  max-width: 48px;
  margin: 40px auto 48px;
}

.legal-body h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
}

.legal-body p + p {
  margin-top: 16px;
}

.legal-body ul {
  margin-top: 12px;
  padding-left: 20px;
}

.legal-body h2 + ul {
  margin-top: 0;
}

.legal-body li {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
}

.legal-body li + li {
  margin-top: 8px;
}

.legal-body ul + p {
  margin-top: 16px;
}

.legal-body strong {
  font-weight: 600;
}

.legal-body a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 24px 32px;
  text-align: center;
}

.footer-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-row a,
.footer-row span {
  font-weight: 400;
  font-size: 14px;
  color: var(--mist);
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.footer-row a:hover {
  opacity: 1;
}

.footer-copyright {
  font-weight: 400;
  font-size: 14px;
  color: var(--mist);
  opacity: 0.55;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  section {
    padding: 72px 24px;
  }

  .contact-section {
    padding-top: 96px;
    padding-bottom: 72px;
  }

  .packages-grid {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 96px 20px 60px;
  }

  br.desktop-only {
    display: none;
  }

  .site-header {
    padding: 22px 20px;
  }

  .legal-header {
    padding: 22px 20px;
  }

  .legal-main {
    padding: 96px 20px 72px;
  }

  .legal-h1 {
    font-size: 32px;
  }
}
