/* ============================================================
   Vivian Reidler — Product Design Portfolio
   Shared stylesheet. Rebuilt from the Webflow source to run as
   a static site (no Webflow runtime).
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* brand */
  --navy: #013048;
  --navy-deep: #01202f;
  --navy-line: rgba(255,255,255,0.14);
  /* The site's one accent color — logo, footer, dividers, the homepage
     circle graphic. home-v2.css's --v2-accent aliases this rather than
     redefining it, so there's a single source of truth. */
  --accent: #4abbbb;
  --accent-zen: #e08a3c;

  /* neutrals */
  --black: #111110;
  --gray-dark: #3a3a38;
  --gray-mid: #6b6b68;
  --gray-light: #a1a1a1;
  --gray-band: #e5e5e5;
  --gray-band-2: #d8dde0;
  --gray-faint: #f4f3f0;
  --white: #fafaf8;

  --radius: 6px;
}

/* Mood system: picking Zen re-points the one accent variable at the zen
   color, so everything built on var(--accent) — logo, footer, dividers,
   nav — follows automatically. Homepage-only today (data-mood is only
   ever set on body.home-v2), so every other page stays teal. */
body[data-mood="zen"] { --accent: var(--accent-zen); }

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

body {
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
}

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

.wrap { max-width: 780px; margin: 0 auto; padding: 0 48px; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 0 48px; }

/* ---------------- NAV ---------------- */
nav.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 48px;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
nav.site-nav.scrolled { border-bottom-color: #e8e8e4; }

/* Logo is an inline SVG (fill="currentColor" on its paths) so it always
   tracks the one accent color via this element's own `color`, instead of
   a separately-recolored raster asset going out of sync with it. */
.nav-logo { display: inline-flex; text-decoration: none; color: var(--accent); }
.nav-logo svg { height: 18px; width: auto; display: block; }
.nav-logo.text-fallback {
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
}

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--black); }

/* ---------------- FOOTER ---------------- */
footer.site-footer {
  border-top: 1px solid #e8e8e4;
  padding: 0;
}
/* "Let's chat" band — the one accent color as a bold fill, same pattern
   as the homepage work-sample cards. White text/icons, since the accent
   here reads as dark enough for it. */
.footer-chat {
  background: var(--accent); color: #fff; text-align: center;
  padding: 56px 24px;
}
.footer-chat-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.footer-chat-sub { font-size: 15px; color: rgba(255,255,255,0.85); margin-bottom: 4px; }
.footer-chat-cta { font-size: 15px; color: #fff; margin-bottom: 20px; }
.footer-icons { display: flex; justify-content: center; gap: 16px; }
.footer-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.18); color: #fff;
  transition: background 0.15s ease, transform 0.15s ease;
}
.footer-icons a:hover { background: rgba(255,255,255,0.3); transform: translateY(-2px); }
.footer-icons svg { width: 17px; height: 17px; display: block; }
.footer-bottom-row {
  display: flex; align-items: center; justify-content: center;
  padding: 16px 48px;
}
.footer-bottom-row span { font-size: 12px; color: var(--gray-light); }
.footer-links {
  display: flex; justify-content: center; gap: 28px;
  padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #eeeeea;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gray-mid); text-decoration: none;
}
.footer-links a:hover { color: var(--black); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom span { font-size: 12px; color: var(--gray-light); }
.footer-bottom a { font-size: 12px; color: var(--gray-mid); text-decoration: none; }
.footer-bottom a:hover { color: var(--black); }
.back-to-top {
  display: block; text-align: center; font-size: 12px; color: var(--gray-light);
  text-decoration: none; padding: 4px 0 24px;
}
.back-to-top:hover { color: var(--black); }

/* ============================================================
   HOMEPAGE
   ============================================================ */
.hero { padding: 64px 48px 52px; max-width: 760px; }
.hero h1 {
  font-size: clamp(36px, 5vw, 52px); line-height: 1.08; margin-bottom: 20px;
}
.hero-sub { font-size: 16px; line-height: 1.65; color: var(--gray-mid); max-width: 560px; margin-bottom: 10px; }
.hero-detail { font-size: 13px; color: var(--gray-light); }

.work-section { padding: 16px 48px 80px; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gray-light); margin-bottom: 24px;
}
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }

.card {
  position: relative; background: var(--gray-faint); overflow: hidden;
  min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; text-decoration: none; color: inherit;
}
.card.featured { grid-column: 1 / -1; min-height: 340px; }
.card:hover { filter: brightness(0.98); }
.card-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gray-light); margin-bottom: 8px; position: relative; z-index: 2;
}
.card h2 {
  font-size: 24px; line-height: 1.2; margin-bottom: 6px; position: relative; z-index: 2;
}
.card p { font-size: 13px; line-height: 1.5; color: var(--gray-mid); max-width: 440px; position: relative; z-index: 2; }
.card.on-dark .card-tag, .card.on-dark p { color: rgba(255,255,255,0.65); }
.card.on-dark h2 { color: #fff; }
.card-img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
}
.card-soon {
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-light); position: absolute; top: 22px; right: 26px; z-index: 2;
}
.card.on-dark .card-soon { color: rgba(255,255,255,0.55); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero, .card { animation: fadeUp 0.5s ease both; }
.card:nth-child(1){animation-delay:.05s} .card:nth-child(2){animation-delay:.1s}
.card:nth-child(3){animation-delay:.15s} .card:nth-child(4){animation-delay:.2s}
.card:nth-child(5){animation-delay:.25s}

/* ============================================================
   CASE STUDY PAGES
   ============================================================ */
.cs-hero {
  background: var(--navy); color: #fff; position: relative; overflow: hidden;
  padding: 90px 48px;
}
.cs-hero::before, .cs-hero::after {
  content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
}
.cs-hero::before { top: -200px; left: -100px; }
.cs-hero::after { bottom: -250px; left: 150px; }
.cs-hero-inner {
  max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 56px; position: relative; z-index: 2;
}
.cs-hero-art { flex: 0 0 260px; }
.cs-hero-art img { max-width: 100%; }
.cs-hero-text { flex: 1; min-width: 0; }
.cs-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 42px); margin-bottom: 16px; text-transform: lowercase; }
.cs-hero-sub { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.85); max-width: 560px; margin-bottom: 16px; }
.cs-hero-stats { font-size: 13px; color: rgba(255,255,255,0.6); }
.cs-hero-stats a { color: rgba(255,255,255,0.85); text-decoration: underline; }

.cs-section { padding: 64px 0; }
.cs-section.tight { padding: 40px 0; }
.cs-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gray-light); margin-bottom: 14px;
}
.cs-h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 16px; line-height: 1.25; }
.cs-body p { margin-bottom: 18px; color: var(--gray-dark); font-size: 16px; line-height: 1.7; }
.cs-body p:last-child { margin-bottom: 0; }
.cs-body strong { color: var(--black); }
.cs-subhead { font-size: 18px; font-weight: 700; color: var(--gray-mid); margin: 8px 0 14px; font-family: 'Karla', sans-serif; }

.cs-role-meta { font-size: 13px; color: var(--gray-light); margin-bottom: 16px; }

/* dark inset callout box (e.g. "what we are solving") */
.cs-callout {
  background: var(--navy); color: #fff; border-radius: 10px;
  padding: 48px; margin: 8px 0;
}
.cs-callout .cs-label { color: rgba(255,255,255,0.45); }
.cs-callout h3 { color: #fff; font-size: 22px; margin-bottom: 14px; line-height: 1.3; }
.cs-callout p { color: rgba(255,255,255,0.8); font-size: 15px; }

/* two-column text + image */
.cs-split { display: flex; gap: 48px; align-items: center; margin: 8px 0; }
.cs-split.reverse { flex-direction: row-reverse; }
.cs-split-text { flex: 1; min-width: 0; }
.cs-split-img { flex: 0 0 42%; }
.cs-split-img img { border-radius: var(--radius); }
@media (max-width: 800px) {
  .cs-split, .cs-split.reverse { flex-direction: column; }
  .cs-split-img { flex-basis: auto; width: 100%; }
}

/* single full-bleed (within column) image + caption */
figure.cs-figure { margin: 28px 0; }
figure.cs-figure img { border-radius: var(--radius); width: 100%; }
figure.cs-figure figcaption {
  font-size: 13px; color: var(--gray-light); margin-top: 10px; line-height: 1.5;
}

/* light-gray full-bleed band for grouped iteration screenshots */
.cs-band {
  background: var(--gray-band); width: 100vw; position: relative;
  left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
  padding: 56px 48px;
}
.cs-band-inner { max-width: 1080px; margin: 0 auto; }
.cs-band-title {
  background: #d3d3d3; border-radius: 10px; padding: 20px 32px; text-align: center;
  font-weight: 700; font-size: 16px; margin-bottom: 36px; color: var(--black);
}
.cs-band-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px;
  margin-bottom: 24px;
}
.cs-band-grid img { border-radius: 4px; border: 1px solid rgba(0,0,0,0.06); background: #fff; }
.cs-band-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cs-band-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cs-band p.cs-band-caption {
  font-size: 13px; color: var(--gray-mid); max-width: 780px; margin: 0 auto; line-height: 1.6;
}

/* full-width single image (not banded) */
.cs-fullimg { margin: 32px 0; }
.cs-fullimg img { width: 100%; border-radius: var(--radius); }
.cs-fullimg figcaption { font-size: 13px; color: var(--gray-light); margin-top: 10px; }

/* mini carousel */
.cs-carousel { border: 1px solid #e8e8e4; border-radius: 8px; overflow: hidden; margin: 28px 0 12px; }
.cs-carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.cs-carousel-track img { scroll-snap-align: start; flex: 0 0 100%; }
.cs-carousel-dots { display: flex; justify-content: center; gap: 8px; padding: 14px 0 26px; }
.cs-carousel-dots span { width: 7px; height: 7px; border-radius: 50%; background: #c9c9c5; }

/* quote */
blockquote.cs-quote {
  border-left: 3px solid var(--navy); padding: 4px 0 4px 24px; margin: 28px 0;
  font-size: 16px; font-style: italic; color: var(--gray-dark); line-height: 1.7;
}
blockquote.cs-quote cite {
  display: block; font-style: normal; font-size: 13px; color: var(--gray-light);
  margin-top: 10px; letter-spacing: 0.02em;
}

/* results stat grid */
.cs-results { background: var(--navy); color: #fff; padding: 72px 48px; margin-top: 32px; }
.cs-results-inner { max-width: 1080px; margin: 0 auto; }
.cs-results h3 { color: #fff; font-size: 24px; max-width: 640px; margin-bottom: 40px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px 24px; }
.stat-num { font-family: 'Karla', sans-serif; font-weight: 700; font-size: 34px; color: #fff; margin-bottom: 8px; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.5; }

/* bottom quick-nav to other case studies */
.more-work { padding: 56px 48px 0; }
.more-work-inner { max-width: 780px; margin: 0 auto; }
.more-work-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-light); margin-bottom: 16px; }
.more-work-links { display: flex; gap: 24px; flex-wrap: wrap; }
.more-work-links a {
  font-family: 'Karla', sans-serif; font-weight: 700; font-size: 18px; text-decoration: none; color: var(--black);
  border-bottom: 2px solid var(--gray-band); padding-bottom: 2px; transition: border-color 0.15s;
}
.more-work-links a:hover { border-color: var(--black); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero { padding: 64px 48px 8px; max-width: 780px; margin: 0 auto; }
.about-body { padding: 8px 48px 24px; max-width: 780px; margin: 0 auto; display: flex; gap: 48px; }
.about-text { flex: 1; min-width: 0; }
.about-text p { margin-bottom: 18px; color: var(--gray-dark); font-size: 16px; line-height: 1.75; }
.about-portrait { flex: 0 0 260px; }
.about-portrait img { border-radius: 10px; width: 100%; }
@media (max-width: 760px) {
  .about-body { flex-direction: column-reverse; }
  .about-portrait { flex-basis: auto; max-width: 260px; }
}

.about-meta { padding: 24px 48px 80px; max-width: 780px; margin: 0 auto; }
.about-meta-row {
  display: flex; gap: 56px; flex-wrap: wrap; padding: 28px 0; border-top: 1px solid #eeeeea;
}
.about-meta-row:last-child { border-bottom: 1px solid #eeeeea; }
.about-meta-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray-light); margin-bottom: 10px;
}
.about-meta-col a.email-link {
  font-family: 'Karla', sans-serif; font-size: 18px; font-weight: 700; text-decoration: none; color: var(--black);
}
.about-meta-col a.resume-link {
  display: inline-block; font-size: 14px; font-weight: 600; color: var(--black);
  text-decoration: none; border: 1px solid #ddd; border-radius: 20px; padding: 8px 18px; margin-top: 2px;
}
.about-meta-col a.resume-link:hover { border-color: var(--black); }
.lang-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lang-list li { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.lang-list img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  nav.site-nav, .hero, .work-section, .about-hero, .about-body, .about-meta,
  .cs-hero-inner, footer.site-footer, .more-work { padding-left: 24px; padding-right: 24px; }
  .grid { grid-template-columns: 1fr; }
  .cs-hero { padding: 56px 24px; }
  .cs-hero-inner { flex-direction: column; text-align: left; gap: 28px; }
  .cs-hero-art { flex-basis: auto; width: 160px; }
  .cs-band { padding: 40px 24px; }
  .cs-results { padding: 48px 24px; }
  .wrap, .wrap-wide { padding: 0 24px; }
}
