/* Nick Bluth portfolio — shared styles.
   Values copied from the Framer site (nickbluth.com) in November 2026. */

@font-face {
  font-family: "Clash Display";
  src: url("/fonts/clash-display-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("/fonts/clash-display-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Merriweather";
  src: url("/fonts/merriweather-700-italic-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #141414;
  --muted: #5d5d5d;
  --subtle: #737373;
  --page: #fcfcfc;
  --purple: #702d9f;
  --blue: #1735fa;
  --blue-tint: #f2f7ff;
  --line: #e2e2e2;
  --footer-link: #bdbdbd;
  --display: "Clash Display", "Arial", sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --quote: "Merriweather", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 50;
  height: 92px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(252, 252, 252, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  animation: header-in 0.6s ease-out both;
}
@keyframes header-in { from { transform: translateY(-140px); } to { transform: none; } }

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 64px; height: 70px; object-fit: contain; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a.nav-link {
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  color: var(--muted);
  transition: color 0.2s;
}
.nav a.nav-link:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 24px;
  border-radius: 100px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  white-space: nowrap;
  transition: transform 0.2s, opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-purple { background: var(--purple); color: #fff; }
.btn-plain { color: var(--ink); }

.menu-toggle { display: none; }

/* ---------- Layout ---------- */
main { padding-top: 180px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 80px; box-sizing: content-box; }
.wrap-home { max-width: 1232px; margin: 0 auto; padding: 0 104px; box-sizing: content-box; }
.prose { max-width: 800px; margin: 0 auto; }
.wide { max-width: 1000px; margin: 0 auto; }

/* ---------- Home ---------- */
.hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 110px;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-top: 30px;
}
.hero-title .line { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.25em; }
.pill {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  border-radius: 100px;
  padding: 0.12em 0.35em 0.2em;
  transform: rotate(-5deg);
}
.hero-title .line + .line { margin-top: 11px; }
.hero-intro { max-width: 700px; margin-top: 20px; color: var(--muted); }

.eyebrow { font-size: 16px; color: var(--subtle); }
.featured { margin-top: 130px; }

.card { display: block; }
.card-title {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 20px;
}
.card-img { overflow: hidden; border-radius: 16px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img img { transform: scale(1.03); }

.card-lead { margin-top: 40px; }
.card-lead .card-img { aspect-ratio: 1232 / 739; }
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 40px;
  margin-top: 64px;
}
.card-grid .card-img { aspect-ratio: 596 / 358; }

.see-all { display: flex; justify-content: center; margin: 67px 0 70px; }
.see-all a { font-family: var(--display); font-weight: 500; font-size: 18px; }
.see-all a:hover { text-decoration: underline; }

/* ---------- Page heading (about, contact, case studies) ---------- */
.page-title { font-size: 110px; line-height: 1; letter-spacing: -0.04em; }
.split { display: grid; grid-template-columns: 1fr 650px; gap: 0; }
.split > :last-child { grid-column: 2; }
.rule { border-top: 1px solid var(--line); padding-top: 24px; }
.lede { color: var(--muted); }

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
  font-size: 16px;
  color: var(--muted);
}
.back svg { width: 24px; height: 24px; }
.back:hover { color: var(--ink); }

/* ---------- Case studies ---------- */
.case-head { padding-top: 15px; }
.case-head .page-title { margin-top: 14px; }
.case-head .split { margin-top: 65px; }
.case-cover { margin-top: 59px; border-radius: 16px; overflow: hidden; }
.case-cover img { width: 100%; aspect-ratio: 1280 / 777; object-fit: cover; }
.crop { object-fit: cover; width: 100%; }

.notice {
  margin-top: 64px;
  background: #94dbf2;
  padding: 64px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.notice img { width: 71px; flex: none; }
.notice h3 { font-size: 22px; line-height: 1.2; }

.facts {
  display: grid;
  grid-template-columns: 278px 223px 1fr;
  max-width: 720px;
  margin: 155px auto 0;
  font-size: 16px;
}
.facts h4 { margin: 0 0 24px; font-size: 16px; font-weight: 400; color: var(--ink); }
.facts ul { list-style: none; margin: 0; padding: 0; color: var(--muted); }
.facts li { line-height: 1.9; }

.case-body { padding-top: 70px; }
.case-body h2 { font-size: 48px; line-height: 1.2; margin-bottom: 40px; }
.case-body h3 { font-size: 22px; line-height: 1.2; }
.case-body p { color: var(--muted); }
.case-body p + p { margin-top: 24px; }
.case-body strong { font-weight: 700; }
.section { margin-top: 80px; }
.section:first-child { margin-top: 0; }
.figure { margin: 40px auto; }

.media-right { display: grid; grid-template-columns: 1fr 257px; gap: 32px; align-items: start; }

.quote {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 32px;
  max-width: 1000px;
  margin: 50px auto;
}
.quote p {
  font-family: var(--quote);
  font-style: italic;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.6;
  color: var(--muted);
}
.stat img { height: 164px; }
.stat {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 32px;
  align-items: center;
  max-width: 1000px;
  margin: 40px auto;
}
.stat p {
  font-family: var(--quote);
  font-style: italic;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.6;
  color: var(--muted);
}

.callout {
  max-width: 900px;
  margin: 24px auto 0;
  padding: 32px 50px;
  background: var(--blue-tint);
  border-radius: 16px;
}
.callout + .callout { margin-top: 10px; }
.callout-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.callout-label {
  font-family: var(--quote);
  font-style: italic;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.6;
  color: var(--blue);
}

.feature { display: grid; gap: 60px; align-items: center; max-width: 1000px; margin: 80px auto; }
.feature h3 { margin-bottom: 16px; }
.feature-img-left { grid-template-columns: 438px 1fr; }
.feature-img-right { grid-template-columns: 1fr 398px; }

.case-body .big-stat { font-family: var(--display); font-size: 110px; line-height: 1; color: var(--blue); }
.big-stats { display: grid; gap: 40px; margin-top: 40px; }
.big-stats .row { display: flex; align-items: center; gap: 32px; }
.big-stats .row.reverse { justify-content: space-between; }

.award { display: grid; grid-template-columns: 1fr 218px; gap: 40px; align-items: center; margin-top: 60px; }

.store-row { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 60px; }
.store-row .canopy-logo { width: 333px; margin-right: 24px; }
.store-row a img { width: 193px; }

.more { padding-top: 60px; }
.more .eyebrow { margin-left: 80px; margin-bottom: 40px; }
.more .card-grid { margin-top: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 406px; gap: 80px; margin-top: 80px; padding-left: 86px; }
.about-grid p { color: var(--muted); }
.about-grid p + p { margin-top: 20px; }
.about-grid a { color: var(--purple); }
.about-grid a:hover { text-decoration: underline; }
.about-photo { border-radius: 16px; overflow: hidden; }
.about-photo img { width: 100%; aspect-ratio: 406 / 505; object-fit: cover; }

/* ---------- Contact ---------- */
.contact .split { margin-top: 80px; }
.contact .email { margin-top: 20px; color: var(--purple); }
.contact .actions { display: flex; gap: 16px; margin-top: 40px; }
.socials { display: flex; gap: 16px; margin-top: 32px; }
.socials img { width: 32px; height: 32px; }

/* ---------- Projects index ---------- */
.projects { margin-top: 0; padding-bottom: 100px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 100px;
  background: var(--ink);
  color: #fff;
  border-radius: 40px 40px 0 0;
  padding: 60px 80px 50px;
}
.footer-top { display: flex; justify-content: space-between; gap: 40px; }
.footer-title { font-family: var(--display); font-weight: 500; font-size: 48px; line-height: 1.2; }
.footer-links { display: flex; gap: 120px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  color: var(--footer-link);
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-links svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.copyright { font-size: 16px; color: var(--subtle); }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 60px 0 40px; }
.not-found p { color: var(--muted); margin: 24px 0 40px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .site-header { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card-img img, .btn { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1199px) {
  .wrap, .wrap-home { padding: 0 40px; }
  .hero-title, .page-title, .case-body .big-stat { font-size: 80px; }
  .split { grid-template-columns: 1fr minmax(0, 560px); }
  .about-grid { padding-left: 0; gap: 48px; grid-template-columns: 1fr 320px; }
  .prose, .wide, .quote, .stat, .feature { padding-left: 40px; padding-right: 40px; }
  .callout { margin-left: 40px; margin-right: 40px; }
  .feature-img-left { grid-template-columns: 340px 1fr; }
  .feature-img-right { grid-template-columns: 1fr 320px; }
  .more .eyebrow { margin-left: 0; }
}

/* ---------- Phone ---------- */
@media (max-width: 809px) {
  body { font-size: 16px; }
  .site-header { top: 16px; left: 16px; right: 16px; height: auto; min-height: 92px; padding: 12px; flex-wrap: wrap; }
  .brand span { font-size: 18px; }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-right: 0;
    padding: 0;
    background: none;
    border: 0;
    color: var(--ink);
    cursor: pointer;
  }
  .menu-toggle svg { width: 24px; height: 24px; }
  .menu-toggle .icon-close { display: none; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 24px; padding: 16px 0 12px; }
  .nav a.nav-link { font-size: 16px; }
  .site-header.is-open { background: #fff; }
  .site-header.is-open .nav { display: flex; }
  .site-header.is-open .icon-open { display: none; }
  .site-header.is-open .icon-close { display: block; }
  .menu-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(4px); }

  main { padding-top: 150px; }
  .wrap { padding: 0 24px; }
  .wrap-home { padding: 0 16px; }
  .hero-title { padding: 0 8px; }
  .hero-title, .page-title, .case-body .big-stat { font-size: 56px; }
  .page-title { font-size: min(56px, 13vw); }
  .hero-title .line + .line { margin-top: 10px; }
  .pill { margin: 8px 0; }
  .hero-intro { padding: 0 8px; margin-top: 30px; }
  .featured { margin-top: 70px; }
  .eyebrow { font-size: 15px; }
  .card-title { font-size: 14px; margin-bottom: 12px; }
  .card-grid { gap: 24px 16px; margin-top: 24px; }
  .card-lead { margin-top: 24px; }

  .split, .about-grid, .media-right, .feature-img-left, .feature-img-right, .award { grid-template-columns: 1fr !important; }
  .split > :last-child { grid-column: 1; }
  .case-head .split { margin-top: 32px; }
  .case-cover { margin-top: 40px; }
  .notice { padding: 32px 24px; gap: 20px; flex-direction: column; align-items: flex-start; }
  .notice h3 { font-size: 18px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 32px 0; padding: 0 24px; margin-top: 56px; }
  .facts > div:first-child { grid-row: span 2; }
  .facts h4 { font-size: 15px; margin-bottom: 12px; }

  .case-body { padding-top: 64px; }
  .case-body h2 { font-size: 30px; margin-bottom: 24px; }
  .case-body h3 { font-size: 18px; }
  .prose, .wide, .quote, .stat, .feature { padding-left: 24px; padding-right: 24px; }
  .section { margin-top: 64px; }
  .quote { grid-template-columns: 1fr; gap: 16px; }
  .quote img { width: 48px; }
  .quote p, .stat p, .callout-label { font-size: 24px; }
  .stat { gap: 20px; }
  .callout { margin-left: 16px; margin-right: 16px; padding: 24px; }
  .feature { gap: 32px; margin: 56px auto; }
  .feature-img-right > img { order: -1; }
  .media-right img { max-width: 260px; margin: 0 auto; }
  .big-stats .row, .big-stats .row.reverse { flex-direction: column; align-items: flex-start; gap: 12px; }
  .award img { max-width: 120px; }
  .store-row .canopy-logo { margin-right: 0; width: 290px; }
  .more { padding-top: 64px; }

  .about-grid { margin-top: 48px; }
  .contact .split { margin-top: 48px; }
  .contact .actions { flex-wrap: wrap; }

  .site-footer { padding: 48px 24px 40px; border-radius: 32px 32px 0 0; }
  .footer-top { flex-direction: column; }
  .footer-title { font-size: 40px; }
  .footer-links { gap: 64px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 32px; }
}
