:root {
  color-scheme: light;
  --bg: #f8fbff;
  --surface: #ffffff;
  --surface-2: #eef6ff;
  --text: #0d1b3d;
  --muted: #66738c;
  --line: #dce7f5;
  --blue: #1684ff;
  --blue-2: #02cfd4;
  --green: #00bf9a;
  --shadow: 0 18px 55px rgba(33, 99, 175, .12);
  --shadow-sm: 0 8px 24px rgba(31, 79, 138, .10);
  --radius: 24px;
  --container: 1220px;
  --header-bg: rgba(255,255,255,.82);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07111f;
  --surface: #0d1a2c;
  --surface-2: #12243a;
  --text: #f5f9ff;
  --muted: #aab8cd;
  --line: #203754;
  --blue: #4ca4ff;
  --blue-2: #31dde2;
  --green: #26d4ad;
  --shadow: 0 22px 60px rgba(0,0,0,.28);
  --shadow-sm: 0 8px 24px rgba(0,0,0,.24);
  --header-bg: rgba(7,17,31,.82);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background .35s ease, color .35s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.section-pad { padding: 92px 0; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 9999; background: var(--text); color: var(--surface); padding: .7rem 1rem; border-radius: 10px; }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(16px); background: var(--header-bg); border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent); }
.nav-shell { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 780; font-size: 1.2rem; letter-spacing: -.02em; }
.brand img { width: 38px; height: 38px; object-fit: contain; border-radius: 10px; }
.brand strong { color: var(--blue); }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: .95rem; }
.main-nav a { color: var(--muted); transition: color .2s ease; }
.main-nav a:hover { color: var(--text); }
.theme-toggle { border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 9px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; box-shadow: var(--shadow-sm); }
.theme-icon { width: 1.15rem; text-align: center; font-size: 1rem; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--text); }
.hero { padding-top: 52px; overflow: hidden; position: relative; }
.hero-grid { min-height: 650px; display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: 34px; }
.eyebrow { color: var(--blue); text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 800; margin: 0 0 14px; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.045em; }
h1 { font-size: clamp(3.25rem, 6vw, 6rem); max-width: 10ch; }
h1 span { color: var(--blue); }
h2 { font-size: clamp(2.45rem, 4vw, 4.2rem); }
h3 { font-size: 1.35rem; }
.hero-lede { font-size: 1.14rem; color: var(--muted); max-width: 590px; margin: 24px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 50px; padding: 0 20px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: white; background: linear-gradient(135deg, var(--blue), #2879f7 55%, var(--blue-2)); box-shadow: 0 12px 28px rgba(22,132,255,.25); }
.button.ghost { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.hero-stats { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hero-stats div { display: grid; gap: 2px; }
.hero-stats strong { font-size: 1rem; }
.hero-stats span { color: var(--muted); font-size: .82rem; }
.hero-visual { position: relative; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.hero-visual img { width: 100%; height: min(65vw, 650px); object-fit: cover; object-position: 61% center; }
.scan-orb { position: absolute; width: 18px; height: 18px; border: 4px solid var(--blue-2); border-radius: 50%; box-shadow: 0 0 0 8px rgba(2,207,212,.10), 0 0 30px rgba(2,207,212,.6); animation: pulse 2.4s ease-in-out infinite; }
.orb-one { right: 14%; top: 26%; }
.orb-two { left: 47%; bottom: 15%; animation-delay: -1.2s; }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .5; } }
.ticker { margin-top: 50px; border-block: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.ticker-track { width: max-content; display: flex; align-items: center; gap: 20px; padding: 13px 0; font-size: .75rem; letter-spacing: .18em; font-weight: 750; color: var(--muted); animation: ticker 32s linear infinite; }
.ticker-track i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-2); }
@keyframes ticker { to { transform: translateX(-50%); } }
.section-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end; margin-bottom: 34px; }
.section-heading p:last-child { color: var(--muted); font-size: 1.05rem; max-width: 570px; justify-self: end; }
.project-toolbar { display: grid; gap: 16px; margin-bottom: 30px; }
.search-wrap { max-width: 700px; position: relative; }
.search-wrap svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; position: absolute; left: 17px; top: 50%; transform: translateY(-50%); }
.search-wrap input { width: 100%; height: 54px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 15px; padding: 0 18px 0 48px; outline: 0; box-shadow: var(--shadow-sm); }
.search-wrap input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 15%, transparent); }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; border: 1px solid var(--line); color: var(--muted); background: var(--surface); border-radius: 999px; padding: 9px 13px; cursor: pointer; }
.filter-chip.active { background: var(--text); color: var(--surface); border-color: var(--text); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.project-image { aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.project-card:hover .project-image img { transform: scale(1.045); }
.project-body { padding: 21px; display: flex; flex-direction: column; flex: 1; }
.project-category { color: var(--blue); text-transform: uppercase; letter-spacing: .13em; font-size: .68rem; font-weight: 800; }
.project-title { margin-top: 9px; font-size: 1.32rem; letter-spacing: -.025em; }
.project-description { color: var(--muted); margin: 12px 0 22px; font-size: .94rem; }
.project-link { margin-top: auto; display: inline-flex; justify-content: space-between; align-items: center; font-weight: 750; color: var(--text); }
.project-link span:last-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--blue); transition: transform .2s ease; }
.project-card:hover .project-link span:last-child { transform: translateX(3px); }
.empty-state { text-align: center; padding: 50px 10px; color: var(--muted); }
.approach { background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 78%, transparent), transparent); border-block: 1px solid var(--line); }
.approach-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; }
.approach-copy p:last-child { color: var(--muted); max-width: 500px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.principle { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.principle p { color: var(--muted); font-size: .92rem; }
.principle-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 30px; background: var(--surface-2); color: var(--blue); font-weight: 900; font-size: 1.3rem; }
.showcase-grid { display: grid; grid-template-columns: 1fr .86fr; gap: 70px; align-items: center; }
.showcase-image { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.showcase-image img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.showcase-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.mini-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.mini-list span { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .86rem; }
.cta-card { border-radius: 30px; padding: 46px; display: flex; align-items: end; justify-content: space-between; gap: 30px; background: linear-gradient(130deg, var(--surface), color-mix(in srgb, var(--surface-2) 72%, transparent)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cta-card p:not(.eyebrow) { color: var(--muted); max-width: 650px; }
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.footer-grid p { margin: 0; color: var(--muted); text-align: center; }
.back-top { color: var(--blue); font-weight: 700; }
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.js .reveal.visible { opacity: 1; transform: none; }
html[data-theme="dark"] .hero-visual img,
html[data-theme="dark"] .project-image img,
html[data-theme="dark"] .showcase-image img { filter: brightness(.72) saturate(.88) contrast(1.06); }
html[data-theme="dark"] .brand img { background: white; padding: 2px; }
@media (max-width: 1000px) {
  .hero-grid, .section-heading, .approach-grid, .showcase-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; }
  .hero-copy { max-width: 760px; }
  h1 { max-width: 12ch; }
  .hero-visual img { height: auto; aspect-ratio: 16/9; object-position: 58% center; }
  .section-heading { gap: 18px; }
  .section-heading p:last-child { justify-self: start; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-grid { gap: 36px; }
  .principles { grid-template-columns: repeat(3, 1fr); }
  .showcase-grid { gap: 36px; }
  .showcase-image { max-width: 620px; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section-pad { padding: 66px 0; }
  .nav-shell { min-height: 66px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; left: 14px; right: 14px; top: 68px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 16px; flex-direction: column; align-items: stretch; gap: 8px; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: .2s ease; }
  .main-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .main-nav a, .theme-toggle { padding: 12px; border-radius: 12px; }
  .theme-toggle { justify-content: center; }
  .hero { padding-top: 28px; }
  .hero-grid { gap: 30px; }
  h1 { font-size: clamp(2.8rem, 13vw, 4.2rem); }
  h2 { font-size: clamp(2.2rem, 9vw, 3.4rem); }
  .hero-lede { font-size: 1.02rem; }
  .hero-actions .button { flex: 1 1 160px; }
  .hero-stats { grid-template-columns: 1fr; gap: 12px; }
  .hero-stats div { grid-template-columns: 115px 1fr; align-items: center; }
  .hero-visual { border-radius: 22px; }
  .hero-visual img { aspect-ratio: 4/3; object-position: 66% center; }
  .ticker { margin-top: 28px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-image { aspect-ratio: 16/9; }
  .principles { grid-template-columns: 1fr; }
  .cta-card { padding: 28px; align-items: stretch; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .footer-grid p { text-align: left; }
}
@media (max-width: 440px) {
  .brand span { font-size: 1.02rem; }
  .brand img { width: 34px; height: 34px; }
  .hero-visual img { aspect-ratio: 1/1; object-position: 71% center; }
  .project-body { padding: 18px; }
  .project-card { border-radius: 20px; }
  .filter-chip { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Subtle interactive tech movement. The glow follows the pointer through GSAP
   and never intercepts clicks. Hidden automatically on touch devices. */
.pointer-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 280px;
  z-index: 2;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(14,165,233,.16) 0%, rgba(34,211,238,.08) 36%, rgba(37,99,235,0) 72%);
  filter: blur(3px);
  transform: translate3d(-400px,-400px,0);
  will-change: transform, opacity;
}
.pointer-effects .pointer-glow { opacity: .62; }
html[data-theme="dark"] .pointer-glow {
  background: radial-gradient(circle, rgba(34,211,238,.19) 0%, rgba(37,99,235,.11) 38%, rgba(37,99,235,0) 72%);
}
.site-header, main, .site-footer { position: relative; z-index: 3; }
.hero-visual, .hero-visual img { will-change: transform; }
.back-top { cursor: pointer; }
.back-top:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (hover: none), (pointer: coarse) { .pointer-glow { display: none; } }
