:root {
  color-scheme: dark;
  --blue: #008bb4;
  --blue-bright: #12c7f6;
  --green: #a0ce4e;
  --ink: #061017;
  --deep: #0a1218;
  --surface: rgba(15, 26, 34, 0.82);
  --surface-solid: #0f1a22;
  --glass: rgba(255, 255, 255, 0.055);
  --line: rgba(120, 205, 232, 0.18);
  --line-strong: rgba(120, 205, 232, 0.32);
  --heading: #f7fbfc;
  --body: #dbe7ec;
  --muted: #8fa6b2;
  --shadow: 0 40px 100px rgba(0, 0, 0, 0.42);
  --radius: 30px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --ink: #d9edf2;
  --deep: #eaf5f7;
  --surface: rgba(247, 251, 252, 0.86);
  --surface-solid: #f7fbfc;
  --glass: rgba(255, 255, 255, 0.6);
  --line: rgba(15, 83, 102, 0.14);
  --line-strong: rgba(15, 83, 102, 0.25);
  --heading: #10242e;
  --body: #344e59;
  --muted: #647e89;
  --shadow: 0 40px 100px rgba(27, 71, 85, 0.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; background: var(--deep); scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--body);
  background: var(--deep);
  overflow-x: hidden;
  transition: color .35s ease, background .35s ease;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { display: block; width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.intro {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background: #050b0f;
  animation: intro-away .8s var(--ease) 1.7s forwards;
  pointer-events: none;
}
.intro__lockup { display: grid; justify-items: center; animation: intro-rise 1.6s var(--ease) both; }
.intro__lockup img { width: 72px; filter: drop-shadow(0 0 28px rgba(18, 199, 246, .28)); }
.intro__wordmark { margin-top: 18px; color: #f7fbfc; font-size: 1.65rem; font-weight: 300; letter-spacing: .02em; text-transform: lowercase; }
.intro__wordmark span { color: var(--blue-bright); font-weight: 700; }
.intro p { margin: 8px 0 0; color: #71848d; font: 600 .58rem/1 ui-monospace, monospace; letter-spacing: .25em; text-transform: uppercase; }

.ambient { position: fixed; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.ambient__orb { position: absolute; display: block; border-radius: 50%; filter: blur(4px); opacity: .58; }
.ambient__orb--one { width: 36rem; height: 36rem; top: -18rem; right: -10rem; background: radial-gradient(circle, rgba(0, 139, 180, .34), transparent 68%); animation: drift-one 16s ease-in-out infinite alternate; }
.ambient__orb--two { width: 30rem; height: 30rem; bottom: -14rem; left: -12rem; background: radial-gradient(circle, rgba(160, 206, 78, .14), transparent 70%); animation: drift-two 19s ease-in-out infinite alternate; }
.ambient__orb--three { width: 24rem; height: 24rem; top: 42%; left: 44%; background: radial-gradient(circle, rgba(110, 77, 255, .11), transparent 70%); animation: drift-one 22s ease-in-out infinite alternate-reverse; }
.ambient__beam { position: absolute; top: -30%; left: 44%; width: 1px; height: 160%; background: linear-gradient(transparent, rgba(18, 199, 246, .26), transparent); transform: rotate(28deg); box-shadow: 0 0 40px 8px rgba(18, 199, 246, .08); }
.ambient__grain { position: absolute; inset: 0; opacity: .03; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E"); }

.site-header, .site-footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 0 8px; animation: fade-down .8s var(--ease) 2.05s both; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--heading); text-decoration: none; font-size: 1.14rem; font-weight: 300; }
.brand img { width: 34px; height: 34px; }
.brand strong { color: var(--blue-bright); }
.site-header__meta { display: flex; align-items: center; gap: 16px; }
.signal { display: flex; align-items: center; gap: 8px; color: var(--muted); font: 600 .68rem/1 ui-monospace, monospace; letter-spacing: .11em; text-transform: uppercase; }
.signal i, .availability i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(160, 206, 78, .1), 0 0 14px rgba(160, 206, 78, .42); animation: signal 2.4s ease-in-out infinite; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--muted); border: 1px solid var(--line); border-radius: 50%; background: var(--glass); cursor: pointer; transition: .2s ease; }
.icon-button:hover { color: var(--heading); border-color: var(--line-strong); transform: translateY(-2px); }

.page-shell { display: grid; grid-template-columns: minmax(0, 680px) minmax(270px, 380px); gap: clamp(28px, 5vw, 72px); align-items: center; width: min(1120px, calc(100% - 40px)); min-height: calc(100vh - 150px); margin: 18px auto 36px; perspective: 1400px; }
.contact-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(28px) saturate(125%); transform-style: preserve-3d; animation: card-in 1s var(--ease) 1.92s both; transition: transform .18s ease-out, background .35s ease; }
.contact-card::before { content: ""; position: absolute; z-index: 0; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.07), transparent 32%, transparent 68%, rgba(0,139,180,.08)); pointer-events: none; }
.contact-card__edge { position: absolute; z-index: 2; top: 0; right: 30px; left: 30px; height: 1px; background: linear-gradient(90deg, transparent, var(--blue-bright), var(--green), transparent); box-shadow: 0 0 18px rgba(18, 199, 246, .45); }
.contact-card__hero { position: relative; z-index: 1; padding: 48px 44px 34px; text-align: center; border-bottom: 1px solid var(--line); }
.profile-mark { position: relative; width: 106px; height: 106px; margin: 0 auto 22px; display: grid; place-items: center; }
.profile-mark img { position: relative; z-index: 1; width: 82px; filter: drop-shadow(0 12px 24px rgba(0,0,0,.28)); animation: mark-float 5s ease-in-out infinite; }
.profile-mark__orbit { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 42% 58% 63% 37% / 45% 35% 65% 55%; animation: orbit 14s linear infinite; }
.profile-mark__orbit::after { content: ""; position: absolute; top: 8px; left: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 18px var(--blue-bright); }
.eyebrow { margin: 0 0 11px; color: var(--blue-bright); font: 700 .66rem/1.3 ui-monospace, "SFMono-Regular", monospace; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 7px; color: var(--heading); font-size: clamp(2.2rem, 5vw, 3.25rem); line-height: 1; letter-spacing: -.045em; }
.role { margin-bottom: 12px; color: var(--body); font-size: 1rem; font-weight: 650; }
.descriptor { max-width: 490px; margin: 0 auto; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.descriptor span { margin: 0 4px; color: var(--green); }
.availability { display: inline-flex; align-items: center; gap: 9px; margin-top: 21px; padding: 8px 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; background: var(--glass); font-size: .7rem; }
.availability i { flex: 0 0 auto; width: 5px; height: 5px; }

.action-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.action { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; min-width: 0; padding: 21px 24px; text-decoration: none; transition: .24s var(--ease); }
.action + .action { border-left: 1px solid var(--line); }
.action:hover { background: rgba(0, 139, 180, .1); }
.action__icon { display: grid; place-items: center; width: 38px; height: 38px; color: var(--blue-bright); border: 1px solid var(--line-strong); border-radius: 11px; background: rgba(0,139,180,.08); }
.action strong, .action small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action strong { color: var(--heading); font-size: .84rem; }
.action small { margin-top: 4px; color: var(--muted); font-size: .68rem; }
.action__arrow, .detail__arrow { color: var(--muted); transition: transform .2s ease; }
.action:hover .action__arrow, .detail:hover .detail__arrow { transform: translateX(4px); }

.contact-card__body { position: relative; z-index: 1; padding: 30px 44px 38px; }
.intro-copy { padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.intro-copy > p:first-child { margin-bottom: 13px; color: var(--body); font-size: .92rem; line-height: 1.7; }
.intro-copy__proof { margin: 0; color: var(--green); font: 650 .67rem/1.4 ui-monospace, monospace; letter-spacing: .05em; }
.details { display: grid; }
.detail { display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.detail__icon { color: var(--blue-bright); }
.detail small, .detail strong { display: block; }
.detail small { margin-bottom: 3px; color: var(--muted); font: 600 .62rem/1.2 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.detail strong { color: var(--heading); font-size: .82rem; font-weight: 600; }
.social-row { display: flex; gap: 10px; padding: 19px 0 24px; }
.social-row a { display: grid; place-items: center; width: 35px; height: 35px; color: var(--heading); border: 1px solid var(--line); border-radius: 10px; background: var(--glass); font: 700 .74rem/1 ui-monospace, monospace; text-decoration: none; transition: .2s ease; }
.social-row a:hover { color: #fff; border-color: var(--blue); background: var(--blue); transform: translateY(-3px); }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 20px; color: var(--heading); border: 1px solid transparent; border-radius: 13px; font-size: .78rem; font-weight: 750; text-decoration: none; cursor: pointer; transition: .22s var(--ease); }
.button:hover { transform: translateY(-2px); }
.button--primary { color: #fff; background: linear-gradient(135deg, #007fa6, #00a7d1); box-shadow: 0 12px 28px rgba(0,139,180,.24); }
.button--primary:hover { box-shadow: 0 16px 34px rgba(0,139,180,.36); }
.button--secondary { border-color: var(--line); background: var(--glass); }
.button--secondary:hover { border-color: var(--line-strong); background: rgba(0,139,180,.08); }

.story-panel { min-height: 500px; display: flex; flex-direction: column; justify-content: space-between; padding: 12px 0; animation: story-in .9s var(--ease) 2.16s both; }
.story-panel__index { color: var(--muted); font: 600 .65rem/1 ui-monospace, monospace; letter-spacing: .15em; }
.story-panel h2 { margin: 0 0 22px; color: var(--heading); font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.02; letter-spacing: -.05em; }
.story-panel h2 em { color: transparent; background: linear-gradient(90deg, var(--blue-bright), var(--green)); background-clip: text; font-style: normal; }
.story-panel > div > p:last-child { max-width: 30rem; margin-bottom: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.capabilities { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--line); }
.capabilities span { padding: 14px 12px; color: var(--body); background: var(--surface-solid); font: 600 .62rem/1.3 ui-monospace, monospace; letter-spacing: .05em; }
.text-link { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: var(--heading); font-size: .78rem; font-weight: 700; text-decoration: none; }
.text-link svg { color: var(--green); transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(5px); }
.story-links { display: grid; gap: 14px; }
.text-link--signal { color: var(--blue-bright); }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 0 0 max(26px, env(safe-area-inset-bottom)); color: var(--muted); font: 600 .59rem/1.4 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; animation: fade-up .8s var(--ease) 2.3s both; }

.share-dialog { width: min(460px, calc(100% - 32px)); padding: 28px; color: var(--body); border: 1px solid var(--line-strong); border-radius: 22px; background: var(--surface-solid); box-shadow: 0 35px 100px rgba(0,0,0,.55); }
.share-dialog::backdrop { background: rgba(1, 8, 12, .72); backdrop-filter: blur(8px); }
.share-dialog[open] { animation: dialog-in .28s var(--ease) both; }
.share-dialog__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.share-dialog h2 { margin: 0; color: var(--heading); font-size: 1.55rem; letter-spacing: -.03em; }
.share-dialog > p { margin: 18px 0 22px; color: var(--muted); font-size: .86rem; }
.share-dialog__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toast { position: fixed; z-index: 120; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; padding: 11px 18px; color: #071016; border-radius: 999px; background: var(--green); box-shadow: 0 12px 34px rgba(0,0,0,.3); font-size: .75rem; font-weight: 800; opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: .3s var(--ease); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.error-page { display: grid; place-items: center; padding: 24px; }
.error-card { max-width: 640px; padding: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.error-card h1 { margin-bottom: 30px; line-height: 1.1; }

@keyframes intro-rise { 0% { opacity: 0; transform: translateY(18px) scale(.92); filter: blur(8px); } 35%, 78% { opacity: 1; transform: none; filter: none; } 100% { opacity: 0; transform: translateY(-8px) scale(1.03); } }
@keyframes intro-away { to { opacity: 0; visibility: hidden; } }
@keyframes card-in { from { opacity: 0; transform: translateY(28px) rotateX(3deg) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes story-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes mark-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes signal { 0%,100% { opacity: .75; } 50% { opacity: 1; box-shadow: 0 0 0 7px rgba(160,206,78,.06), 0 0 18px rgba(160,206,78,.55); } }
@keyframes drift-one { to { transform: translate(-8vw, 8vh) scale(1.14); } }
@keyframes drift-two { to { transform: translate(10vw, -9vh) scale(.88); } }

@media (max-width: 900px) {
  .page-shell { grid-template-columns: 1fr; max-width: 680px; min-height: auto; margin-top: 30px; }
  .story-panel { min-height: auto; gap: 30px; padding: 16px 8px 20px; }
  .story-panel__index { display: none; }
  .story-panel h2 { font-size: clamp(2.2rem, 10vw, 3.6rem); }
  .site-footer { max-width: 680px; flex-wrap: wrap; }
}

@media (max-width: 560px) {
  :root { --radius: 24px; }
  .site-header, .site-footer, .page-shell { width: min(100% - 24px, 680px); }
  .site-header { padding-top: max(16px, env(safe-area-inset-top)); }
  .signal { display: none; }
  .page-shell { margin-top: 14px; }
  .contact-card__hero { padding: 34px 22px 26px; }
  .profile-mark { width: 88px; height: 88px; margin-bottom: 18px; }
  .profile-mark img { width: 68px; }
  .descriptor { font-size: .74rem; }
  .availability { max-width: 100%; text-align: left; }
  .action-grid { grid-template-columns: 1fr; }
  .action + .action { border-top: 1px solid var(--line); border-left: 0; }
  .action { padding: 17px 20px; }
  .contact-card__body { padding: 25px 22px 26px; }
  .card-actions { grid-template-columns: 1fr; }
  .button { min-height: 52px; }
  .share-dialog__actions { grid-template-columns: 1fr; }
  .site-footer { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .intro { display: none; }
}
