:root {
  color-scheme: light;
  --paper: #f7f8fa;
  --yellow: #f6bb42;
  --pale: #fff5d9;
  --ink: #22282d;
  --dark: #1e262c;
  --green: #258a69;
  --muted: #596168;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; min-width: 280px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid var(--green); outline-offset: 6px; }
::selection { background: var(--yellow); color: var(--dark); }
.shell { width: min(1240px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; transform: translateY(-180%); padding: 12px 20px; background: var(--dark); color: white; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

/* Always present: this is also the complete no-WebGL / no-JavaScript fallback. */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 94% 16%, #fff5d9 0, transparent 40%), radial-gradient(ellipse at 78% 40%, #f6bb42c9 0, #fff5d9 29%, transparent 61%), radial-gradient(ellipse at 95% 68%, #258a6938 0, transparent 36%), #f7f8fa; }
#gradient-canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 600ms ease; }
.webgl-ready #gradient-canvas { opacity: 1; }
.ambient-wash { position: absolute; inset: 0; background: linear-gradient(90deg, #f7f8fa 0%, #f7f8faf2 21%, #f7f8fa88 41%, transparent 67%), linear-gradient(0deg, #f7f8fa 0%, #f7f8fae0 5%, transparent 35%); }

.site-header { height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid #22282d16; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 35px; height: 39px; color: var(--yellow); }
.wordmark > span { font-size: 22px; font-weight: 760; letter-spacing: 2px; line-height: 1.25; }
.wordmark-light { font-weight: 450; }
.wordmark small { display: block; margin-top: 5px; font-size: 8px; font-weight: 600; letter-spacing: 1.35px; }
nav { display: flex; align-items: center; gap: 36px; font-size: 13px; font-weight: 550; }
.nav-link { padding-block: 12px; }
.nav-link:hover { text-decoration: underline; text-underline-offset: 6px; }
.header-link { display: flex; align-items: center; gap: 24px; padding: 12px 18px; border: 1px solid #22282d33; border-radius: 24px; background: #ffffff45; }
.header-link:hover { background: #fff5d9; }

.hero { min-height: 580px; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; padding-block: 62px 76px; position: relative; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 650; letter-spacing: 1.5px; }
.status-dot { display: inline-block; flex-shrink: 0; width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.eyebrow-divider { width: 1px; height: 10px; background: #22282d40; margin-inline: 5px; }
h1 { margin: 30px 0 17px -5px; font-size: clamp(66px, 7.3vw, 100px); font-weight: 780; letter-spacing: -6px; line-height: 1.15; }
.title-period { color: #bb7904; margin-left: 4px; }
.hero-subtitle { margin: 0; font-size: 21px; letter-spacing: 1px; font-weight: 500; }
.hero-description { color: var(--muted); margin: 24px 0 30px; font-size: 14px; line-height: 1.95; }
.hero-actions { display: flex; gap: 13px; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 27px; min-height: 50px; padding: 13px 23px; border-radius: 8px; font-size: 13px; font-weight: 650; transition: transform 180ms, background 180ms, box-shadow 180ms; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--yellow); box-shadow: 0 5px 18px #bf8b1720; }
.button-primary:hover { background: #f9c85f; box-shadow: 0 8px 24px #bf8b1730; }
.button-primary > span { font-size: 21px; font-weight: 400; }
.button-secondary { background: #ffffff68; border: 1px solid #22282d30; gap: 22px; }
.button-secondary:hover { background: #fff; }
.button-arrow { font-size: 19px; font-weight: 400; }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 29px; font-size: 10px; letter-spacing: 1px; color: var(--muted); }
.note-line { width: 25px; height: 1px; background: #8d9598; }
.hero-art { position: relative; align-self: stretch; }
.art-coordinate { position: absolute; top: 27px; right: 4px; font-size: 9px; color: #454c4f; letter-spacing: 1.5px; writing-mode: vertical-rl; }
.art-caption { position: absolute; bottom: 5px; right: 35px; display: flex; align-items: center; gap: 15px; font-size: 13px; font-weight: 550; letter-spacing: 2px; }
.art-caption small { display: block; margin-top: 8px; font-size: 8px; font-weight: 500; letter-spacing: 2px; }
.art-cross { font-size: 34px; font-weight: 200; }

.team-section { position: relative; padding-bottom: 76px; scroll-margin-top: 26px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-kicker { display: block; font-size: 9px; font-weight: 650; letter-spacing: 2px; color: var(--muted); }
.section-heading h2 { margin: 11px 0 0; font-size: 25px; letter-spacing: -.7px; font-weight: 650; }
.section-heading h2 > span { display: inline-block; font-size: 25px; margin-left: 19px; font-weight: 400; }
.section-heading > p { color: var(--muted); margin: 0 0 3px; font-size: 12px; letter-spacing: .5px; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.team-card { min-width: 0; height: 256px; border-radius: 15px; }
.static-card, .card-face { padding: 24px 26px 20px; border: 1px solid #ffffffed; background: linear-gradient(120deg, #ffffffb8, #ffffff75); box-shadow: 0 8px 32px #22282d05, inset 0 0 0 1px #22282d07; -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.static-card { transition: transform 240ms, box-shadow 240ms; }
.static-card:hover, .static-card:focus-within { transform: translateY(-5px); box-shadow: 0 12px 30px #22282d0b; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; height: 42px; width: 42px; border-radius: 11px; font-size: 20px; font-weight: 600; letter-spacing: -2px; }
.code-icon { background: var(--pale); color: #795008; }
.web-icon { background: #edf0f1; color: #46545d; }
.server-icon { background: #e5f0e8; color: #216c53; }
.card-icon svg { width: 24px; height: 24px; }
.card-index { font-size: 8px; letter-spacing: 1.2px; color: var(--muted); }
.team-card h3 { margin: 22px 0 9px; font-size: 21px; font-weight: 650; letter-spacing: -.3px; }
.team-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; min-height: 46px; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 15px; }
.card-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: #505a5f; }
.card-detail { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: -6px -5px -5px 0; border: 1px solid #22282d20; border-radius: 50%; font-size: 19px; transition: background 180ms; }
.card-detail:hover { background: var(--pale); }
.flip-card { position: relative; perspective: 1100px; }
.tilt-plane { width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform 180ms ease-out; }
.flip-inner { position: relative; height: 100%; transform-style: preserve-3d; transition: transform 700ms cubic-bezier(.2,.7,.2,1); }
.flip-card.is-flipped .flip-inner { transform: rotateY(180deg); }
.card-face { position: absolute; inset: 0; border-radius: 15px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card-back { transform: rotateY(180deg); background: linear-gradient(130deg, #fff5d9f5, #fffdf5ed); }
.card-back h3 { font-size: 19px; margin-top: 20px; }
.card-back p { min-height: 46px; }
.flip-toggle { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; padding: 0; border-radius: 15px; background: transparent; cursor: pointer; touch-action: manipulation; }
.flip-toggle:focus-visible { outline-offset: 5px; }
.flip-hint { color: #505a5f; font-size: 10px; display: inline-flex; align-items: center; gap: 8px; }
.flip-hint > span { font-size: 17px; }

.vision { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding: 60px 0; border-top: 1px solid #22282d18; }
.vision-intro h2 { font-size: 30px; font-weight: 600; line-height: 1.6; letter-spacing: -.5px; margin: 15px 0; }
.vision p { color: var(--muted); font-size: 12px; line-height: 1.9; margin: 0; max-width: 380px; }
.vision-details { display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.vision-details > div { display: flex; gap: 20px; scroll-margin-top: 50px; border-radius: 4px; }
.vision-details > div > span { padding-top: 3px; font-size: 10px; color: #687179; }
.vision-details h3 { font-size: 15px; margin: 0 0 9px; font-weight: 600; }
.site-footer { padding-block: 23px; border-top: 1px solid #22282d18; display: flex; justify-content: space-between; gap: 25px; font-size: 10px; color: var(--muted); letter-spacing: .5px; }
.footer-separator { margin-inline: 12px; color: #92999c; }
.footer-label { display: inline-flex; align-items: center; gap: 8px; font-size: 9px; letter-spacing: 1px; }

@media (min-width: 1550px) {
  .hero { min-height: 660px; }
}
@media (max-width: 1050px) {
  .shell { width: calc(100% - 64px); }
  .hero { min-height: 540px; grid-template-columns: 1.5fr 1fr; }
  .hero-subtitle { font-size: 18px; }
  .team-grid { gap: 14px; }
  .static-card, .card-face { padding: 22px 19px 19px; }
  .card-index { font-size: 7px; letter-spacing: .7px; }
  .team-card { height: 270px; }
  .team-card p { min-height: 66px; }
  .card-back h3 { font-size: 17px; }
  .vision { gap: 55px; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 40px); }
  .site-header { height: 88px; gap: 16px; }
  .brand-mark { width: 29px; height: 33px; }
  .wordmark { gap: 8px; }
  .wordmark > span { font-size: 18px; letter-spacing: 1.5px; }
  .wordmark small { font-size: 6px; letter-spacing: 1px; margin-top: 4px; }
  nav { gap: 16px; font-size: 11px; }
  .header-link { padding: 10px 13px; gap: 9px; }
  .nav-link { display: none; }
  .ambient-wash { background: linear-gradient(90deg, #f7f8fae8, #f7f8fa8c 65%, #f7f8fa22), linear-gradient(0deg, #f7f8fa 0%, transparent 60%); }
  .hero { display: block; min-height: 560px; padding: 68px 0 80px; }
  .eyebrow { font-size: 9px; gap: 7px; letter-spacing: 1px; }
  h1 { margin: 29px 0 19px -3px; font-size: clamp(52px, 13.5vw, 86px); letter-spacing: -4px; }
  .hero-subtitle { font-size: 17px; letter-spacing: .25px; }
  .hero-description { font-size: 12px; margin-top: 24px; line-height: 2; }
  .hero-actions { gap: 10px; }
  .button { min-height: 49px; padding-inline: 18px; font-size: 12px; gap: 16px; }
  .hero-note { font-size: 9px; }
  .hero-art { position: absolute; inset: 0; pointer-events: none; }
  .art-coordinate { top: 42px; right: 0; font-size: 7px; opacity: .75; }
  .art-caption { right: 0; bottom: 31px; font-size: 10px; gap: 10px; }
  .art-caption small { font-size: 6px; margin-top: 5px; }
  .art-cross { font-size: 25px; }
  .section-heading { align-items: flex-start; margin-bottom: 22px; }
  .section-heading h2 { font-size: 22px; }
  .section-heading h2 > span { margin-left: 13px; }
  .section-heading > p { display: none; }
  .team-grid { grid-template-columns: 1fr; gap: 16px; }
  .team-card { height: 252px; }
  .static-card, .card-face { padding: 25px 26px 22px; }
  .team-card p { font-size: 12px; min-height: 45px; }
  .card-index { font-size: 8px; letter-spacing: 1.2px; }
  .team-card h3 { margin-top: 20px; }
  .card-back h3 { font-size: 20px; }
  .team-section { padding-bottom: 48px; }
  .vision { grid-template-columns: 1fr; gap: 34px; padding-block: 40px; }
  .vision-intro h2 { font-size: 27px; }
  .vision-details { gap: 25px; }
  .site-footer { flex-direction: column; gap: 15px; padding-block: 23px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tilt-plane { transform: none !important; }
  .button:hover, .static-card:hover, .static-card:focus-within { transform: none; }
}
