/* ============================================
   THE EVERYTHING STORY — design tokens
   ============================================ */
:root {
  --ink:        #0a0e1c;   /* very dark, near-black blue */
  --ink-soft:   rgba(10, 14, 28, 0.68);
  --ink-faint:  rgba(10, 14, 28, 0.42);
  --line:       rgba(10, 14, 28, 0.14);
  --line-soft:  rgba(10, 14, 28, 0.08);
  --paper:      #f6f3ec;   /* subtle off-white */
  --paper-raised: #efebe0;
  --fuchsia:    #c81c74;   /* accent */
  --fuchsia-deep: #9c1259;
  --fuchsia-tint: rgba(200, 28, 116, 0.10);

  --font-display: "Bodoni Moda", "Times New Roman", serif;
  --font-head: "Inter Tight", sans-serif;
  --font-body: "Inter Tight", sans-serif;

  --wrap: 1120px;
  --pad: clamp(24px, 5vw, 64px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

::selection {
  background: var(--fuchsia);
  color: var(--paper);
}

/* focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--fuchsia);
  outline-offset: 3px;
}

/* ============================================
   TYPE
   ============================================ */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fuchsia-deep);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ============================================
   LAYOUT
   ============================================ */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

section { padding: clamp(38px, 6vw, 72px) 0; }
section + section { border-top: 1px solid var(--line-soft); }

/* ============================================
   NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 236, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.28rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.wordmark span { color: var(--fuchsia); }

.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 34px);
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.92rem;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--fuchsia);
  transition: right 0.22s cubic-bezier(.4,0,.2,1);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after {
  right: 0;
}
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 65px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px var(--pad) 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a { display: block; padding: 12px 0; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding-top: clamp(44px, 8vw, 84px);
  padding-bottom: clamp(24px, 4vw, 48px);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 15ch;
}

.hero .lede { margin-top: 22px; }

.page-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
}

/* ============================================
   STORY CHAIN — signature element
   linked, connected narrative strip
   ============================================ */
.chain {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  padding: 18px 0;
}

.chain-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: chain-scroll 34s linear infinite;
}

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

.chain-item {
  display: flex;
  align-items: center;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  color: rgba(246, 243, 236, 0.88);
  white-space: nowrap;
  padding: 0 22px;
}

.chain-item b {
  font-weight: 600;
  color: var(--paper);
}

.chain-item::after {
  content: "is";
  font-family: var(--font-display);
  font-style: italic;
  color: var(--fuchsia);
  margin-left: 22px;
  font-size: 1.02rem;
}

@keyframes chain-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   BUTTONS / LINKS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn:hover, .btn:focus-visible { background: var(--fuchsia-deep); }
.btn:active { transform: translateY(1px); }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.ghost:hover, .btn.ghost:focus-visible {
  border-color: var(--fuchsia);
  color: var(--fuchsia-deep);
  background: var(--fuchsia-tint);
}

.text-link {
  border-bottom: 1px solid var(--fuchsia);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.text-link:hover, .text-link:focus-visible {
  color: var(--fuchsia-deep);
}

/* ============================================
   SECTION HEADS
   ============================================ */
.section-head {
  margin-bottom: clamp(20px, 3vw, 34px);
  max-width: 62ch;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin-top: 10px;
}

/* ============================================
   SERVICES
   ============================================ */
.service-list {
  display: flex;
  flex-direction: column;
}

.service {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1.4fr);
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(20px, 3vw, 32px) 0;
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }

.service-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--fuchsia);
}

.service h3 {
  font-size: 1.5rem;
  margin-top: 8px;
}

.service ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.service li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
}
.service li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 1px;
  background: var(--fuchsia);
}

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

/* ============================================
   PRICING
   ============================================ */
.model-toggle-note {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 4px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: var(--paper);
}

.tier {
  padding: 26px 20px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tier:first-child { border-left: none; }

.tier.featured {
  background: var(--ink);
  color: var(--paper);
}
.tier.featured .tier-label,
.tier.featured .tier-price { color: var(--paper); }
.tier.featured .tier-block-label { color: rgba(246,243,236,0.5); }
.tier.featured .tier-block p { color: rgba(246,243,236,0.82); }
.tier.featured .tier-price small { color: rgba(246,243,236,0.55); }

.tier-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fuchsia-deep);
}

.tier-price {
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.25;
}
.tier-price small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-top: 2px;
}

.tier-block-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.tier-block p {
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .tier:nth-child(3) { border-left: none; }
  .tier:nth-child(1), .tier:nth-child(3) { border-top: none; }
  .tier:nth-child(2), .tier:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .tier { border-left: none !important; border-top: 1px solid var(--line); }
  .tier:first-child { border-top: none; }
}

.project-card {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.3fr);
  gap: clamp(16px,3vw,40px);
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 3px;
}
@media (max-width: 760px) {
  .project-card { grid-template-columns: 1fr; }
}

/* ============================================
   ABOUT / BIO
   ============================================ */
.bio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.pull {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 44ch;
  border-left: 2px solid var(--fuchsia);
  padding-left: 22px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-hero {
  text-align: left;
}

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.1rem);
  display: inline-block;
  margin-top: 18px;
  border-bottom: 2px solid var(--fuchsia);
  transition: color 0.15s ease;
  word-break: break-word;
}
.contact-email:hover, .contact-email:focus-visible {
  color: var(--fuchsia-deep);
}

.copy-note {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 10px;
}

.copy-btn {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  background: none;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 2px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.copy-btn:hover { border-color: var(--fuchsia); color: var(--fuchsia-deep); background: var(--fuchsia-tint); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.86rem;
  color: var(--ink-faint);
}
.footer-row a { color: var(--ink-soft); }
.footer-row a:hover { color: var(--fuchsia-deep); }
