:root {
  --ink: #151218;
  --ink-soft: #5f5862;
  --paper: #fffdfa;
  --cream: #f7f2f6;
  --purple: #7d3c98;
  --purple-dark: #54245f;
  --lavender: #d99bfa;
  --peach: #ef8d76;
  --gold: #e2b734;
  --line: rgba(21, 18, 24, 0.13);
  --radius: 28px;
  --shadow: 0 24px 70px rgba(37, 18, 45, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
}
img { width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; top: -50px; left: 18px; z-index: 1000; background: white; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 18px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 250, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(21,18,24,0.08);
}
.nav-wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: white; background: linear-gradient(135deg, var(--purple), var(--peach)); border-radius: 12px; font-size: 0.78rem; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.nav-links a:hover { color: var(--purple); }
.nav-back { padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; }
.menu-button { display: none; border: 0; background: transparent; padding: 8px; }
.menu-button span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }
.mobile-menu { display: none; }

.hero { position: relative; min-height: 88vh; display: grid; align-items: center; padding: 92px 0 84px; background: radial-gradient(circle at 70% 20%, rgba(217,155,250,.24), transparent 32%), linear-gradient(180deg,#fffdfa 0%,#f8f0f8 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 66px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 16px; color: var(--purple); text-transform: uppercase; letter-spacing: .16em; font-size: .77rem; font-weight: 800; }
h1,h2,h3,p { margin-top: 0; }
h1 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(3.15rem, 7vw, 6.8rem); line-height: .94; letter-spacing: -.055em; margin-bottom: 28px; max-width: 760px; }
h2 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(2.35rem, 4.5vw, 4.6rem); line-height: 1.03; letter-spacing: -.045em; margin-bottom: 24px; }
h3 { font-size: 1.08rem; line-height: 1.3; margin-bottom: 10px; }
.hero-lede { max-width: 650px; font-size: 1.13rem; color: var(--ink-soft); margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 42px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 14px 21px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: .93rem; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--ink); box-shadow: 0 14px 34px rgba(21,18,24,.18); }
.button-primary:hover { background: var(--purple); box-shadow: 0 18px 40px rgba(125,60,152,.28); }
.button-secondary { background: rgba(255,255,255,.72); border: 1px solid var(--line); }
.button-large { padding: 18px 28px; min-width: 215px; }
.meta-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.meta-grid div { border-top: 1px solid var(--line); padding-top: 15px; }
.meta-grid span,.team-card span,.design-tokens span { display: block; color: var(--ink-soft); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.meta-grid strong { display: block; margin-top: 5px; font-size: .84rem; }
.hero-visual { position: relative; z-index: 1; margin: 0; border-radius: 34px; overflow: hidden; box-shadow: var(--shadow); transform: rotate(1.2deg); border: 1px solid rgba(255,255,255,.85); }
.hero-visual img { aspect-ratio: 4/3; object-fit: cover; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(4px); opacity: .55; }
.orb-one { width: 420px; height: 420px; background: rgba(239,141,118,.18); right: -120px; top: 80px; }
.orb-two { width: 280px; height: 280px; background: rgba(226,183,52,.16); left: -130px; bottom: -100px; }

.section { padding: 118px 0; }
.section-light { background: var(--paper); }
.section-dark { color: white; background: var(--ink); }
.section-peach { background: #f8e4df; }
.split-layout { display: grid; grid-template-columns: .86fr 1.14fr; gap: 100px; align-items: start; }
.section-heading { max-width: 820px; }
.centered { text-align: center; margin: 0 auto 50px; }
.section-intro { max-width: 760px; color: var(--ink-soft); font-size: 1.05rem; }
.body-copy { font-size: 1.05rem; color: var(--ink-soft); }
.team-card { margin-top: 30px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.team-card p { color: var(--ink); font-weight: 700; margin: 6px 0 0; }
.contribution-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.contribution-card { min-height: 260px; padding: 28px; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: linear-gradient(160deg,rgba(255,255,255,.08),rgba(255,255,255,.03)); }
.contribution-card span,.process-step span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(217,155,250,.16); color: var(--lavender); font-size: .78rem; font-weight: 800; margin-bottom: 44px; }
.contribution-card p { color: rgba(255,255,255,.68); font-size: .92rem; }
.image-frame { margin: 44px 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: white; }
.image-frame img { aspect-ratio: 2 / 1; object-fit: cover; }
.process-steps { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; margin-top: 34px; }
.process-step { padding: 24px 20px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.process-step span { margin-bottom: 30px; color: var(--purple); background: rgba(125,60,152,.1); }
.process-step p { margin-bottom: 0; color: var(--ink-soft); font-size: .88rem; }
.visual-grid { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 70px; }
.visual-copy > p:not(.eyebrow) { color: #574b50; }
.visual-image { margin: 0; }
.design-tokens { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 30px; }
.design-tokens div { padding: 16px; border-radius: 16px; background: rgba(255,255,255,.56); border: 1px solid rgba(21,18,24,.08); }
.design-tokens strong { display: block; margin-top: 5px; font-size: .88rem; }
.prototype-section { padding-top: 90px; padding-bottom: 90px; background: linear-gradient(135deg,#6d2e7a,#2d162f); }
.prototype-card { display: flex; align-items: center; justify-content: space-between; gap: 42px; color: white; }
.prototype-card .eyebrow { color: #e9b7ff; }
.prototype-card h2 { margin-bottom: 14px; }
.prototype-card p { max-width: 690px; color: rgba(255,255,255,.72); margin-bottom: 0; }
.prototype-card .button-primary { background: white; color: var(--ink); }
.site-footer { padding: 34px 0; background: #100d11; color: white; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-inner p { margin: 3px 0 0; color: rgba(255,255,255,.52); font-size: .84rem; }
.footer-inner a { color: white; text-decoration: none; font-weight: 700; font-size: .9rem; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero-grid,.split-layout,.visual-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-copy { max-width: 790px; }
  .hero-visual { max-width: 820px; }
  .contribution-grid { grid-template-columns: repeat(2,1fr); }
  .process-steps { grid-template-columns: repeat(2,1fr); }
  .process-step:last-child { grid-column: 1 / -1; }
  .prototype-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1180px); }
  .nav-links { display: none; }
  .menu-button { display: block; }
  .mobile-menu { padding: 0 20px 18px; background: rgba(255,253,250,.98); }
  .mobile-menu.open { display: grid; }
  .mobile-menu a { padding: 14px 0; text-decoration: none; border-top: 1px solid var(--line); font-weight: 700; }
  .hero { padding: 68px 0 64px; }
  h1 { font-size: clamp(3.05rem, 16vw, 5rem); }
  h2 { font-size: clamp(2.35rem, 12vw, 3.6rem); }
  .meta-grid { grid-template-columns: 1fr; }
  .section { padding: 84px 0; }
  .contribution-grid,.process-steps,.design-tokens { grid-template-columns: 1fr; }
  .process-step:last-child { grid-column: auto; }
  .contribution-card { min-height: 220px; }
  .image-frame { border-radius: 18px; }
  .image-frame img { aspect-ratio: auto; }
  .hero-visual img { aspect-ratio: auto; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}

/* Focus Flow logo and touch-friendly responsive improvements */
html, body { max-width: 100%; overflow-x: hidden; }
body { -webkit-overflow-scrolling: touch; overscroll-behavior-y: auto; }
img { max-width: 100%; height: auto; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; background: white; box-shadow: 0 6px 18px rgba(21,18,24,.12); }
.hero-brand { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
.hero-brand img { width: 0px; height: 0px; object-fit: contain; border-radius: 14px; background: white; box-shadow: 0 12px 28px rgba(21,18,24,.13); }
.hero-brand .eyebrow { margin: 0; }
.zoomable { cursor: zoom-in; }
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border: 0; border-radius: 50%; color: white; background: var(--purple); box-shadow: 0 12px 28px rgba(84,36,95,.3); font-size: 1.3rem; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: .25s ease; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; padding: 24px; background: rgba(12,8,14,.92); }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1200px, 94vw); max-height: 88vh; object-fit: contain; border-radius: 18px; box-shadow: 0 24px 90px rgba(0,0,0,.5); }
.lightbox-close { position: fixed; top: 18px; right: 22px; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: white; background: rgba(255,255,255,.1); font-size: 2rem; line-height: 1; cursor: pointer; }

@media (max-width: 980px) {
  body { touch-action: pan-y; }
  .site-header { position: sticky; }
  .hero-grid, .split-layout, .visual-grid { min-width: 0; }
  .hero-copy, .hero-visual, .visual-copy, .visual-image { min-width: 0; }
}

@media (max-width: 760px) {
  .nav-wrap { min-height: 66px; }
  .brand-logo { width: 36px; height: 36px; }
  .hero-brand { align-items: flex-start; }
  .hero-brand img { width: 58px; height: 58px; flex: 0 0 auto; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .image-frame { overflow: hidden; }
  .image-frame img { width: 100%; display: block; }
  .back-to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}
