/* ============================================================
   bolding.io — editorial one-pager
   ============================================================ */

:root {
  /* palette */
  --paper: #FAF8F4;
  --paper-2: #F2EFE8;
  --ink: #16140F;
  --ink-soft: #4A463E;
  --hair: #DAD5CB;
  --accent: #B5543A; /* terracotta */

  /* type */
  --display: "Archivo", sans-serif;
  --display-stretch: 125%;
  --display-weight: 900;
  --body: "Hanken Grotesk", sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--paper); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ---------- display + label primitives ---------- */
.display {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  line-height: 0.84;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.mono-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- signature fade paragraph ---------- */
.fade-para {
  background: linear-gradient(168deg, var(--ink) 22%, color-mix(in oklab, var(--ink) 10%, transparent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- slot (image placeholder) ---------- */
.slot {
  position: relative;
  background:
    repeating-linear-gradient(135deg, var(--paper-2) 0 9px, transparent 9px 18px),
    var(--paper);
  outline: 1px solid var(--hair);
  overflow: hidden;
}
.slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* warm desaturation only on the About portrait, not on case-study screenshots */
.about-photo .slot img {
  filter: saturate(0.92) contrast(1.02);
}
.slot-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* ---------- wordmark (SVG, full-bleed) ---------- */
.wordmark {
  display: block;
  width: 100%;
  overflow: visible;
}
.wordmark text {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  font-size: 164px;
  fill: var(--ink);
}

/* ---------- boot splash ---------- */
#boot {
  position: fixed; inset: 0; background: var(--paper);
  display: grid; place-items: center; z-index: 100;
  transition: opacity .5s ease;
}
#boot.gone { opacity: 0; pointer-events: none; }
#boot .bm {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

/* ---------- reveal helper ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   NAV
   ============================================================ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
#nav.is-solid {
  background: color-mix(in oklab, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.nav-wordmark {
  font-size: 20px;
  font-stretch: 125%;
  letter-spacing: 0.01em;
}
.nav-links {
  display: flex;
  gap: 40px;
}
.nav-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nav-link {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.5;
}
.nav-link:hover { color: var(--accent); }
.nav-cta {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.nav-cta-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

/* ---------- mobile hamburger + slide-down panel ---------- */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  width: 44px;
  height: 44px;
  position: relative;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s ease, top .3s ease;
  border-radius: 1px;
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.nav-panel {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 49;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
}
.nav-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}
.nav-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
  width: 100%;
  max-width: 480px;
}
.nav-panel-link {
  font-size: clamp(44px, 13vw, 80px);
  color: var(--ink);
  line-height: 0.95;
  transition: color .2s ease;
}
.nav-panel-link:hover,
.nav-panel-link:active { color: var(--accent); }
.nav-panel-cta {
  margin-top: 22px;
  align-self: center;
  font-size: 13px;
  padding: 14px 26px;
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta:not(.nav-panel-cta) { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- hero spacing on narrow viewports ---------- */
@media (max-width: 520px) {
  .hero {
    padding-top: 88px;
    padding-bottom: 28px;
    min-height: 92svh;
  }
  .hero-top .mono-label,
  .hero-bot .mono-label {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
  .hero-lede-wrap { margin-top: 14px; }
}

/* ============================================================
   HERO — monolith
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 112px clamp(20px, 4vw, 56px) 40px;
}
.hero-top,
.hero-bot {
  display: flex;
  justify-content: space-between;
}
.hero-bot { align-items: flex-end; }
.hero-top-right,
.hero-bot-right { text-align: right; }

.wordmark-wrap { margin: 0.04em 0; }

.hero-lede-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}
.hero-lede {
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.45;
  max-width: 540px;
  color: var(--ink);
}
.hero-lede .soft { color: var(--ink-soft); }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.scroll-tick {
  display: inline-block;
  width: 1px;
  height: 26px;
  background: var(--ink-soft);
  animation: tickfall 2.6s ease-in-out infinite;
  transform-origin: top center;
}
@keyframes tickfall {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* ============================================================
   SECTION shell
   ============================================================ */
.section {
  position: relative;
  padding: clamp(72px, 9vw, 150px) clamp(20px, 4vw, 56px);
}
.section-tinted { background: var(--paper-2); }
.section-dark {
  background: var(--ink);
  color: var(--paper);
}
.section-dark .mono-label { color: rgba(255,255,255,0.55); }
.section-index {
  display: block;
  margin-bottom: clamp(36px, 5vw, 64px);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.about-photo .photo-caption {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}
.about-para {
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  font-weight: 500;
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 80px);
}
.service {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
}
.service-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 18px;
}
.service-letter {
  font-size: 34px;
  color: var(--accent);
}
.service-title {
  font-size: clamp(30px, 3.4vw, 46px);
}
.service-body {
  font-size: 19px;
  line-height: 1.55;
  max-width: 480px;
}
.service-example {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 22px;
  color: var(--ink-soft);
  max-width: 460px;
}

/* ============================================================
   WORK
   ============================================================ */
.work-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.work-title {
  font-size: clamp(36px, 6vw, 92px);
  max-width: 900px;
}
.work-blurb {
  max-width: 320px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 4vw, 48px);
}
.case {
  display: flex;
  flex-direction: column;
}
.case-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  border-top: 1px solid var(--ink);
  padding-top: 14px;
}
.case-name {
  font-size: clamp(26px, 2.6vw, 34px);
}
.case-desc {
  font-size: 16px;
  line-height: 1.5;
  margin-top: 12px;
}
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--hair);
  padding: 4px 9px;
  border-radius: 999px;
}

/* ============================================================
   PROCESS (dark)
   ============================================================ */
.process-title {
  font-size: clamp(38px, 6vw, 96px);
  margin-bottom: clamp(44px, 6vw, 80px);
  color: var(--paper);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.step {
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 22px;
}
.step-num {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 16px;
}
.step-title {
  font-size: clamp(28px, 3vw, 40px);
  color: var(--paper);
  margin-bottom: 14px;
}
.step-desc {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
}

/* ============================================================
   CONTACT
   ============================================================ */
.section-contact { padding-bottom: clamp(100px, 11vw, 180px); }
.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(28px, 4vw, 48px);
  padding: clamp(20px, 4vw, 60px) 0;
}
.contact-pitch {
  font-size: clamp(20px, 2vw, 28px);
  max-width: 620px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.contact-mail {
  font-size: clamp(40px, 8.5vw, 150px);
  line-height: 0.9;
  display: inline-block;
  transition: color .3s ease;
}
.contact-mail:hover { color: var(--accent); }
.copy-btn {
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 11px 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background .25s ease, color .25s ease;
}
.copy-btn:hover {
  background: var(--ink);
  color: var(--paper);
}
.copy-btn.is-copied {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: 64px;
  overflow: hidden;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px) 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-pitch { max-width: 360px; }
.footer-label { color: rgba(255,255,255,0.5); }
.footer-tagline {
  margin-top: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  line-height: 1.5;
}
.footer-cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a {
  font-size: 15px;
}
.footer-col a.muted { color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--paper); }

.footer-baseline {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px clamp(20px, 4vw, 56px) 30px;
}
.footer-baseline .mono-label {
  color: rgba(255, 255, 255, 0.4);
}
