/* ============================================================
   PsyAI — styles
   ============================================================ */

:root {
  /* surfaces */
  --ink: #0b0b10;
  --ink-soft: #14141b;
  --cream: #faf8f4;
  --cream-2: #f1ede5;
  /* text */
  --text: #16151b;
  --text-dim: #66636f;
  --on-dark: #ecebe8;
  --on-dark-dim: rgba(236, 235, 232, 0.62);
  /* spectrum */
  --violet: #6c5ce7;
  --iris: #7b6ff0;
  --magenta: #b06ae0;
  --rose: #ff7a8a;
  --coral: #ff8a6b;
  --amber: #ffb05c;
  --spectrum: linear-gradient(120deg, #6c5ce7 0%, #b06ae0 42%, #ff7a8a 76%, #ff9b6b 100%);
  /* lines */
  --line: rgba(16, 15, 27, 0.1);
  --line-light: rgba(255, 255, 255, 0.12);
  /* shape */
  --r: 22px;
  --r-sm: 14px;
  --r-pill: 999px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: "Inter", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--violet); color: #fff; }

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

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 28px; }

/* grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ TYPOGRAPHY HELPERS ============ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 28px;
}
.eyebrow--light { color: var(--on-dark-dim); }
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--spectrum);
  box-shadow: 0 0 14px rgba(176, 106, 224, 0.7);
}

.display {
  font-family: "Instrument Serif", "Noto Serif SC", Georgia, serif;
  font-weight: 400; font-size: clamp(2.4rem, 5.4vw, 4.3rem);
  line-height: 1.04; letter-spacing: -0.015em; color: var(--text);
  max-width: 16ch;
}
.display em { font-style: italic; color: var(--magenta); }
.display--light { color: var(--on-dark); max-width: 20ch; }
.display--light em { color: var(--rose); }
.display--mission { max-width: 22ch; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--text-dim); line-height: 1.7; }
.lead strong { color: var(--text); font-weight: 600; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; padding: 13px 26px; border-radius: var(--r-pill);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn--primary { background: var(--text); color: var(--cream); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28); }
.btn--light { background: rgba(255, 255, 255, 0.08); color: var(--on-dark); border-color: var(--line-light); backdrop-filter: blur(8px); }
.btn--light:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); padding: 9px 18px; font-size: 14px; }
.btn--ghost:hover { background: var(--text); color: var(--cream); }
.btn--lg { padding: 17px 38px; font-size: 17px; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0; transition: padding 0.4s var(--ease), background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 11px 0; background: rgba(250, 248, 244, 0.72);
  backdrop-filter: saturate(180%) blur(20px); border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.brand__mark { width: 40px; height: 40px; object-fit: contain; display: block; }

.nav__links { display: flex; gap: 26px; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--text-dim); transition: color 0.25s; position: relative; }
.nav__links a:hover { color: var(--text); }

.nav__right { display: flex; align-items: center; gap: 14px; }

.nav__burger { display: none; width: 40px; height: 40px; background: none; border: none; flex-direction: column; gap: 6px; align-items: center; justify-content: center; cursor: pointer; }
.nav__burger span { width: 22px; height: 1.6px; background: var(--text); transition: transform 0.35s var(--ease), opacity 0.3s; }
.nav__burger.open span:nth-child(1) { transform: translateY(3.8px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { transform: translateY(-3.8px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a { font-family: "Instrument Serif", serif; font-size: 2rem; color: var(--text); }
.mobile-menu__cta { margin-top: 16px; font-family: "Inter", sans-serif !important; font-size: 1rem !important; padding: 13px 30px; border-radius: var(--r-pill); background: var(--text); color: var(--cream) !important; }

/* ============ LANGUAGE SWITCHER ============ */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1;
  color: var(--text-dim); cursor: pointer;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 9px 13px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.lang__btn:hover { color: var(--text); border-color: var(--text); }
.lang__globe { opacity: 0.9; }
.lang__cur { min-width: 1.6em; text-align: center; letter-spacing: 0.01em; }
.lang__chev { opacity: 0.65; transition: transform 0.3s var(--ease); }
.lang.open .lang__chev { transform: rotate(180deg); }
.lang__menu {
  list-style: none; position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 158px; margin: 0; padding: 6px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 56px -26px rgba(0, 0, 0, 0.45);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 130;
}
.lang.open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu button {
  width: 100%; text-align: left; font-family: inherit; font-size: 14.5px; font-weight: 500;
  color: var(--text); background: transparent; border: 0; cursor: pointer;
  padding: 10px 12px; border-radius: 9px;
  transition: background 0.2s, color 0.2s;
}
.lang__menu button:hover { background: rgba(108, 92, 231, 0.09); color: var(--violet); }
.lang__menu button.active { color: var(--violet); font-weight: 700; }

/* nav sits over the dark hero before scroll → use light text there */
.nav:not(.scrolled) .brand { color: var(--on-dark); }
.nav:not(.scrolled) .nav__links a { color: var(--on-dark-dim); }
.nav:not(.scrolled) .nav__links a:hover { color: var(--on-dark); }
.nav:not(.scrolled) .lang__btn { color: var(--on-dark); border-color: var(--line-light); }
.nav:not(.scrolled) .lang__btn:hover { color: #fff; border-color: var(--on-dark); }
.nav:not(.scrolled) .btn--ghost { color: var(--on-dark); border-color: var(--line-light); }
.nav:not(.scrolled) .btn--ghost:hover { background: var(--on-dark); color: var(--ink); }
.nav:not(.scrolled) .nav__burger span { background: var(--on-dark); }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--ink); color: var(--on-dark); overflow: hidden;
  padding: 140px 0 90px;
}
.hero__inner { position: relative; z-index: 2; }
.hero__title {
  font-family: "Instrument Serif", "Noto Serif SC", Georgia, serif; font-weight: 400;
  font-size: clamp(3rem, 9vw, 7rem); line-height: 0.98; letter-spacing: -0.02em; color: var(--on-dark);
  margin-bottom: 30px;
}
.hero__title em { font-style: italic; background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { max-width: 56ch; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--on-dark-dim); line-height: 1.65; margin-bottom: 40px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* aurora blobs */
.aurora { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; will-change: transform; }
.blob--violet { width: 620px; height: 620px; background: radial-gradient(circle, #6c5ce7, transparent 68%); top: -180px; left: -120px; animation: drift1 22s ease-in-out infinite; }
.blob--rose { width: 560px; height: 560px; background: radial-gradient(circle, #ff7a8a, transparent 66%); bottom: -200px; right: -80px; animation: drift2 26s ease-in-out infinite; }
.blob--amber { width: 420px; height: 420px; background: radial-gradient(circle, #ffb05c, transparent 70%); top: 40%; left: 44%; opacity: 0.38; animation: drift3 30s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(80px, 60px) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-70px, -50px) scale(1.08); } }
@keyframes drift3 { 0%,100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-60px, 40px) scale(1.2); } }

.hero__scroll { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 1.5px solid var(--on-dark-dim); border-radius: 14px; display: flex; justify-content: center; padding-top: 8px; }
.hero__scroll span { width: 3px; height: 8px; border-radius: 2px; background: var(--on-dark); animation: scrolldot 1.8s ease-in-out infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(11px); } 100% { opacity: 0; } }

/* ============ SECTIONS ============ */
.section { position: relative; padding-block: clamp(84px, 11vw, 168px); }
.section--cream { background: var(--cream); }
.section--ink { background: var(--ink); color: var(--on-dark); overflow: hidden; }

/* mission */
.mission__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; }

/* approach pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 70px; }
.pillar { position: relative; padding: 36px 32px 38px; border: 1px solid var(--line-light); border-radius: var(--r); background: rgba(255, 255, 255, 0.02); transition: transform 0.5s var(--ease), border-color 0.4s, background 0.4s; }
.pillar:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.04); }
.pillar__icon { width: 52px; height: 52px; color: var(--rose); margin-bottom: 26px; }
.pillar__icon svg { width: 100%; height: 100%; }
.pillar__num { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; color: var(--on-dark-dim); }
.pillar h3 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: 1.85rem; margin: 6px 0 14px; color: var(--on-dark); }
.pillar p { font-size: 0.98rem; color: var(--on-dark-dim); line-height: 1.66; }

/* ============ PRODUCTS ============ */
.showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  margin-top: 72px; padding: 56px; border-radius: 30px; border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.showcase__body, .showcase__media { min-width: 0; }
.showcase--reverse .showcase__body { order: 2; }
.showcase--psycho { background: linear-gradient(180deg, #fff, var(--cream)); box-shadow: 0 40px 90px -50px rgba(108, 92, 231, 0.5); }
.showcase--dopa { background: linear-gradient(165deg, #18141f, #0c0a12); border-color: rgba(255, 255, 255, 0.08); box-shadow: 0 50px 100px -56px rgba(255, 122, 138, 0.6); color: var(--on-dark); }

/* showcase copy */
.showcase__index { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 20px; }
.showcase--dopa .showcase__index { color: var(--on-dark-dim); }
.showcase__name { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1; margin-bottom: 20px; }
.showcase__name--psycho { background: linear-gradient(120deg, #6c5ce7, #9b6fe8); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.18; padding-bottom: 0.08em; }
.showcase__name--dopa { background: linear-gradient(120deg, #ff7a8a, #ff9b6b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.showcase__wordmark { display: block; height: 46px; width: auto; }
.showcase__line { font-family: "Instrument Serif", serif; font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.22; margin-bottom: 16px; }
.showcase--psycho .showcase__line { color: var(--text); }
.showcase--dopa .showcase__line { color: var(--on-dark); }
.showcase__desc { font-size: 1.04rem; line-height: 1.7; margin-bottom: 30px; max-width: 42ch; }
.showcase--psycho .showcase__desc { color: var(--text-dim); }
.showcase--dopa .showcase__desc { color: var(--on-dark-dim); }

.showcase__cta { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; padding: 14px 28px; border-radius: var(--r-pill); color: #fff; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.showcase__cta svg { transition: transform 0.4s var(--ease); }
.showcase__cta:hover { transform: translateY(-2px); }
.showcase__cta:hover svg { transform: translateX(4px); }
.showcase__cta--psycho { background: linear-gradient(120deg, #6c5ce7, #9b6fe8); box-shadow: 0 16px 34px -10px rgba(108, 92, 231, 0.6); }
.showcase__cta--dopa { background: linear-gradient(120deg, #ff7a8a, #ff9b6b); box-shadow: 0 16px 34px -10px rgba(255, 122, 138, 0.6); }

/* showcase media */
.showcase__media { position: relative; display: flex; align-items: center; justify-content: center; }
.showcase__glow { position: absolute; border-radius: 50%; filter: blur(60px); z-index: 0; pointer-events: none; }
.showcase__glow--psycho { width: 72%; aspect-ratio: 1; background: radial-gradient(circle, rgba(155, 111, 232, 0.32), rgba(255, 176, 92, 0.14) 55%, transparent 72%); }
.showcase__glow--dopa { width: 80%; aspect-ratio: 1; background: radial-gradient(circle, rgba(255, 122, 138, 0.34), rgba(255, 155, 107, 0.12) 55%, transparent 72%); }

.showcase__media--psycho { min-height: 360px; }
.showcase__logo-img { position: relative; z-index: 1; width: min(300px, 74%); height: auto; filter: drop-shadow(0 30px 60px rgba(108, 92, 231, 0.28)); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.showcase__media--dopa { min-height: 460px; }
.dopa-polaroids { position: relative; z-index: 1; width: min(84%, 380px); height: auto; border-radius: 16px; transform: rotate(-3deg); box-shadow: 0 34px 64px -22px rgba(0, 0, 0, 0.65); border: 1px solid rgba(255, 255, 255, 0.12); }
.dopa-phone { position: absolute; z-index: 2; width: min(42%, 178px); height: auto; right: 4%; bottom: 5%; transform: rotate(3deg); border-radius: 20px; box-shadow: 0 28px 52px -16px rgba(0, 0, 0, 0.72); }

/* efficiency comparison */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; margin-top: 34px; padding: 38px 44px; border-radius: 30px; background: var(--cream-2); border: 1px solid var(--line); }
.compare__side { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.compare__imgwrap { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 116px; padding: 22px 28px; background: #fff; border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 14px 36px -20px rgba(0, 0, 0, 0.3); }
.compare__imgwrap img { max-width: 100%; max-height: 76px; width: auto; height: auto; object-fit: contain; }
.compare__imgwrap--dopa img { max-height: 70px; }
.compare__copy { display: flex; flex-direction: column; gap: 5px; }
.compare__label { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.compare__side--dopa .compare__label { background: linear-gradient(120deg, #ff7a8a, #ff9b6b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.compare__sub { font-size: 0.9rem; color: var(--text-dim); }
.compare__vs { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.3); }
.compare__vs span { font-family: "Instrument Serif", serif; font-style: italic; font-size: 1.1rem; color: var(--text-dim); }

/* ============ TEAM ============ */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 64px; }
.member { padding: 32px 26px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.member:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.3); }
.member__avatar { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; font-weight: 700; font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--a), var(--b)); margin-bottom: 22px; letter-spacing: 0.02em; }
.member h3 { font-size: 1.18rem; font-weight: 600; margin-bottom: 4px; }
.member__role { font-size: 13px; font-weight: 600; color: var(--magenta); margin-bottom: 14px; }
.member__bio { font-size: 0.92rem; color: var(--text-dim); line-height: 1.6; }

/* team — credentials wall */
.team__lead { max-width: 64ch; margin-top: 26px; }
.creds { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 60px; }
.creds__label { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 22px; }
.creds__wall { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; }
.creds__wall li {
  font-family: "Instrument Serif", "Noto Serif SC", Georgia, serif;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem); line-height: 1;
  padding: 14px 24px 17px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: #fff; color: var(--text);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s, color 0.3s;
}
.creds__wall li:hover { transform: translateY(-3px); border-color: rgba(108, 92, 231, 0.45); box-shadow: 0 18px 38px -22px rgba(108, 92, 231, 0.45); color: var(--violet); }

/* ============ CONTACT ============ */
.section--contact { position: relative; text-align: center; }
.aurora--contact .blob { opacity: 0.4; }
.contact__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.contact__title { text-align: center; max-width: 18ch; }
.contact__sub { font-size: 1.15rem; color: var(--on-dark-dim); margin: 24px 0 36px; max-width: 48ch; }

/* ============ FOOTER ============ */
.footer { background: var(--ink); color: var(--on-dark-dim); padding: 72px 0 34px; border-top: 1px solid var(--line-light); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px; padding-bottom: 52px; }
.footer__brand .brand { color: var(--on-dark); margin-bottom: 16px; }
.footer__brand p { font-family: "Instrument Serif", serif; font-size: 1.3rem; color: var(--on-dark-dim); max-width: 22ch; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer__col h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 16px; }
.footer__col a, .footer__col span { display: block; font-size: 15px; color: var(--on-dark-dim); margin-bottom: 10px; transition: color 0.25s; }
.footer__col a:hover { color: var(--rose); }
.footer__base { display: flex; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--line-light); font-size: 13px; color: rgba(236, 235, 232, 0.4); }

/* ============ REVEAL ============ */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__right .btn--ghost { display: none; }
  .mission__grid { grid-template-columns: 1fr; gap: 22px; }
  .pillars { grid-template-columns: 1fr; gap: 18px; }
  .showcase { grid-template-columns: 1fr; gap: 36px; padding: 36px 24px; }
  .showcase--reverse .showcase__body { order: 0; }
  .showcase__media { order: -1; }
  .showcase__media--psycho { min-height: 280px; }
  .showcase__media--dopa { min-height: 400px; }
  .compare { grid-template-columns: 1fr; gap: 18px; padding: 30px 24px; }
  .compare__vs { width: 42px; height: 42px; transform: rotate(90deg); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .container { padding-inline: 20px; }
  .hero { padding: 120px 0 80px; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1; }
  .team { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; gap: 26px; }
  .footer__base { flex-direction: column; gap: 8px; }
}

/* ============ MOTION PREFERENCE ============ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============ LIGHT-ON-DARK HELPERS ============ */
.lead--light { color: var(--on-dark-dim); }
.lead--light strong { color: var(--on-dark); }
.btn--ghost-light { color: var(--on-dark); border-color: var(--line-light); }
.btn--ghost-light:hover { background: var(--on-dark); color: var(--ink); }

/* ============ PARTNER ============ */
.partner__lead { max-width: 62ch; margin-top: 26px; }
.services { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.service-chip {
  padding: 11px 20px; border-radius: var(--r-pill); border: 1px solid var(--line-light);
  color: var(--on-dark); font-size: 14.5px; font-weight: 500;
  background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(6px);
}
.partner__values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.value {
  padding: 28px 28px 30px; border-radius: var(--r);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-light);
}
.value__num { display: block; font-family: "Instrument Serif", Georgia, serif; font-size: 1.95rem; line-height: 1.05; color: var(--on-dark); }
.value__label { display: block; margin-top: 10px; font-size: 0.95rem; color: var(--on-dark-dim); line-height: 1.55; }

.portfolio { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 8px; align-items: stretch; }
.work-card {
  display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-light);
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.work-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.22); }
.work-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: #0e0e14; border-bottom: 1px solid var(--line-light); }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.work-card__body { padding: 22px 24px 24px; }
.work-card__name { font-size: 1.15rem; font-weight: 600; color: var(--on-dark); }
.work-card__desc { margin-top: 8px; font-size: 0.95rem; color: var(--on-dark-dim); line-height: 1.55; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: var(--r-pill); background: #efeafe; color: #6c5ce7; }

.partner__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }

/* featured project cards — wider 2:1 media so deck screenshots render near native size (sharper) */
.work-card--feature .work-card__media { aspect-ratio: 2 / 1; }
.work-card--feature .work-card__media img { object-fit: contain; object-position: center; }
.work-card--feature .work-card__body { display: flex; flex-direction: column; flex: 1; }
.work-card__demos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.work-demo {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 600; color: var(--on-dark);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-light);
  transition: background 0.25s, border-color 0.25s, transform 0.3s var(--ease);
}
.work-demo svg { color: var(--rose); }
.work-demo:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.28); transform: translateY(-1px); }

/* "Selected Work" header with a simple view-more link */
.portfolio-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 66px; margin-bottom: 26px; }
.portfolio-head .eyebrow { margin-bottom: 0; }
.more-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--on-dark); transition: color 0.25s; }
.more-link svg { transition: transform 0.4s var(--ease); }
.more-link:hover { color: var(--rose); }
.more-link:hover svg { transform: translateX(4px); }

/* careers half of the Collaboration & Careers section */
.careers-block { margin-top: clamp(58px, 8vw, 104px); padding-top: clamp(58px, 8vw, 104px); border-top: 1px solid var(--line-light); }

/* ============ MILESTONES ============ */
.ms-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
  margin-top: 50px; padding-bottom: 40px; border-bottom: 1px solid var(--line);
}
.ms-stat__num {
  display: block; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1;
  background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content;
}
.ms-stat__label { display: block; margin-top: 12px; font-size: 0.9rem; color: var(--text-dim); line-height: 1.45; }

.timeline { list-style: none; margin-top: 50px; max-width: 720px; }
.tl-item { position: relative; display: grid; grid-template-columns: 84px 30px 1fr; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 99px; top: 8px; height: 100%; width: 1.5px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-date { grid-column: 1; text-align: right; padding-top: 2px; font-size: 13.5px; font-weight: 600; color: var(--text-dim); white-space: nowrap; }
.tl-dot {
  grid-column: 2; justify-self: center; margin-top: 4px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--spectrum); box-shadow: 0 0 0 4px var(--cream), 0 0 12px rgba(176, 106, 224, 0.5);
  position: relative; z-index: 1;
}
.tl-body { grid-column: 3; padding-left: 18px; }
.tl-title { font-size: 1.1rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.tl-meta { margin-top: 6px; font-size: 0.94rem; color: var(--text-dim); line-height: 1.55; max-width: 52ch; }
.milestones__cta { margin-top: 46px; }

/* ============ CAREERS ============ */
.careers__lead { max-width: 56ch; margin-top: 26px; }
.jobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; margin-top: 44px; }
.job {
  background: rgba(255, 255, 255, 0.035); border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line-light);
  transition: transform 0.45s var(--ease), border-color 0.4s, background 0.4s;
}
.job.open { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.05); }
.job:hover { border-color: rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.055); }
.job:not(.open):hover { transform: translateY(-4px); }
.job__head {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: start;
}
.job__icon {
  width: 48px; height: 48px; border-radius: 14px; flex: none; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6c5ce7, #b06ae0);
}
.job__headmain { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.job__title { font-size: 1.16rem; font-weight: 700; color: var(--on-dark); line-height: 1.25; }
.job__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.job__more { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; color: #a99bff; white-space: nowrap; padding-top: 3px; }
.job__chev { transition: transform 0.35s var(--ease); }
.job.open .job__chev { transform: rotate(180deg); }
.job__details { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.5s var(--ease), opacity 0.4s; }
.job.open .job__details { max-height: 720px; opacity: 1; }
.job__detailsinner {
  padding: 24px 28px 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
  border-top: 1px solid var(--line-light);
}
.job__colhead { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--on-dark-dim); margin-bottom: 13px; }
.job__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.job__col li { position: relative; padding-left: 20px; font-size: 0.92rem; color: var(--on-dark-dim); line-height: 1.5; }
.job__col li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--spectrum); }
.careers__cta { margin-top: 42px; }

/* ============ PHASE-4 RESPONSIVE ============ */
@media (max-width: 920px) {
  .partner__values { grid-template-columns: 1fr; gap: 16px; }
  .ms-stats { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .portfolio { grid-template-columns: 1fr; }
  .jobs { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ms-stats { gap: 18px 20px; }
  .service-chip { font-size: 13.5px; padding: 10px 16px; }
  .tl-item { grid-template-columns: 64px 26px 1fr; }
  .tl-item::before { left: 77px; }
  .tl-body { padding-left: 12px; }
  .job__head { grid-template-columns: auto 1fr; padding: 22px 20px; }
  .job__more { grid-column: 2; padding-top: 2px; }
  .job__detailsinner { grid-template-columns: 1fr; gap: 22px; padding: 22px 20px 26px; }
  .partner__cta .btn, .careers__cta .btn { width: 100%; }
}
