:root {
  color-scheme: dark;
  --bg: #0a0d0c;
  --panel: rgba(20, 26, 23, .52);
  --panel-solid: #111714;
  --text: #edf5f0;
  --muted: #89958e;
  --line: rgba(191, 224, 205, .12);
  --mint: #71e6c1;
  --mint-bright: #9af2d5;
  --max-width: 1100px;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  margin: 0; min-width: 320px; background: var(--bg); color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .16;
  background-image: radial-gradient(rgba(210,255,235,.17) .55px, transparent .55px);
  background-size: 6px 6px; mask-image: linear-gradient(to bottom, black, transparent 78%);
}
.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .72;
}
main, .site-footer { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; border-radius: 6px; }
.ambient { position: fixed; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(100px); opacity: .12; }
.ambient-one { width: 380px; height: 380px; background: #3ccba1; top: 80px; left: -260px; }
.ambient-two { width: 330px; height: 330px; background: #4e9f82; top: 560px; right: -260px; opacity: .07; }
.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 48px), var(--max-width));
  height: 66px;
  margin: 0;
  padding: 0 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(191, 224, 205, .2);
  border-radius: 999px;
  background: rgba(16, 23, 19, .68);
  backdrop-filter: blur(24px) saturate(155%);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2), 0 0 20px rgba(113, 230, 193, .055), inset 0 1px 0 rgba(235, 255, 245, .09);
}

.wordmark, .footer-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 680; letter-spacing: -.035em; }
.wordmark-mark { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; background: var(--mint); color: #062018; font-size: 17px; font-weight: 850; }
.wordmark-dot, .mint { color: var(--mint); }
.arrow-icon { width: 15px; height: 15px; flex: 0 0 15px; display: inline-block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.arrow-down { width: 14px; height: 14px; }
.arrow-up { width: 13px; height: 13px; }
.desktop-nav { display: flex; gap: 32px; color: var(--muted); font-size: 13px; }
.desktop-nav a, .header-link, .text-link, .footer-meta a { transition: color .2s ease; }
.desktop-nav a:hover, .footer-meta a:hover, .text-link:hover { color: var(--mint); }
.header-link { color: var(--mint); font-size: 13px; display: inline-flex; align-items: center; gap: 5px; }
.section-shell { width: min(calc(100% - 48px), var(--max-width)); margin: 0 auto; }
.hero { min-height: 640px; padding-top: 164px; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: #b5c3bb; font-size: 11px; letter-spacing: .02em; background: rgba(255,255,255,.035); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.status-dot { width: 6px; height: 6px; flex: 0 0 6px; display: inline-block; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px rgba(113,230,193,.45); }
h1 { margin: 26px 0 0; font-size: clamp(52px, 8.6vw, 100px); line-height: 1.03; letter-spacing: -.075em; font-weight: 720; }
.hero-subtitle { margin: 14px 0 0; font-size: clamp(20px, 3vw, 28px); letter-spacing: -.045em; color: #bdc8c1; }
.hero-copy { color: var(--muted); font-size: 15px; margin: 22px 0 0; max-width: 470px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 30px; }
.button { min-height: 45px; display: inline-flex; justify-content: center; align-items: center; gap: 13px; padding: 0 17px; border-radius: 11px; font-size: 13px; font-weight: 650; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--mint); color: #062018; box-shadow: 0 5px 24px rgba(63, 204, 158, .08); }
.button-primary:hover { background: var(--mint-bright); box-shadow: 0 7px 28px rgba(63, 204, 158, .16); }
.text-link { font-size: 13px; color: #b3beb7; }
.text-link span { margin-left: 6px; color: var(--mint); }
.hero-note { display: flex; align-items: center; gap: 11px; margin-top: 77px; color: #66736b; font-size: 11px; }
.note-line { height: 1px; width: 30px; background: #426b5a; }
.intro-section { padding-top: 72px; padding-bottom: 130px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.section-index { color: var(--mint); font-size: 10px; font-weight: 700; letter-spacing: .15em; margin: 0 0 24px; }
.section-heading h2, .contact-card h2 { font-size: clamp(34px, 5vw, 54px); line-height: 1.12; letter-spacing: -.06em; margin: 0; font-weight: 650; }
.muted { color: #77837c; }
.intro-copy { align-self: center; max-width: 410px; padding-top: 12px; }
.intro-copy p { color: #d1dad4; font-size: 16px; margin: 0 0 16px; }
.intro-copy p.muted { color: var(--muted); font-size: 13px; }
.projects-section { padding: 0 0 130px; }
.projects-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 36px; }
.project-count { font-size: 11px; color: var(--muted); padding-bottom: 5px; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.project-card {
  min-height: 295px;
  padding: 23px;
  border: 1px solid rgba(191, 224, 205, .15);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(31, 43, 36, .55), rgba(14, 20, 17, .48));
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  backdrop-filter: blur(22px) saturate(135%);
  box-shadow: inset 0 1px 0 rgba(235, 255, 245, .045), 0 16px 44px rgba(0, 0, 0, .12);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.project-card::before { content: ""; position: absolute; width: 240px; height: 180px; right: -100px; top: -110px; background: rgba(113,230,193,.07); filter: blur(50px); pointer-events: none; }
.project-card:hover { transform: translateY(-3px); border-color: rgba(113,230,193,.34); box-shadow: inset 0 1px 0 rgba(235,255,245,.07), 0 18px 46px rgba(0,0,0,.19), 0 0 26px rgba(113,230,193,.035); }
.project-featured { border-color: rgba(113,230,193,.22); }
.card-topline, .card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.project-symbol { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid rgba(113,230,193,.2); border-radius: 13px; color: var(--mint); background: rgba(113,230,193,.06); font-weight: 750; overflow: hidden; }
.chrome-symbol { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.11); }
.chrome-art { display: block; width: 30px; height: 30px; }
.tower-art { display: block; width: 35px; height: 35px; color: var(--mint); }

.project-state { display: inline-flex; align-items: center; gap: 7px; color: #a7c9b9; font-size: 10px; }
.state-muted { color: #8c958f; }
.project-content { margin-top: 34px; max-width: 390px; }
.project-type { color: #75837a; font-size: 9px; letter-spacing: .15em; font-weight: 700; margin: 0 0 7px; }
.project-content h3 { font-size: 23px; letter-spacing: -.04em; margin: 0 0 8px; }
.project-content p:last-child { margin: 0; color: var(--muted); font-size: 12px; max-width: 330px; }
.card-bottom { border-top: 1px solid var(--line); margin-top: auto; padding-top: 16px; color: #738078; font-size: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-bottom a { color: #b7dfce; text-decoration: underline; text-decoration-color: rgba(113,230,193,.38); text-underline-offset: 3px; }
.card-bottom a:hover { color: var(--mint-bright); }
.arrow-mark { font-size: 15px; color: var(--mint); }
.projects-footnote { margin: 20px 0 0; font-size: 11px; color: #66736b; }
.contact-section { padding-bottom: 110px; }
.contact-card { border: 1px solid rgba(113,230,193,.17); border-radius: 28px; padding: 54px; position: relative; overflow: hidden; background: radial-gradient(ellipse at 100% 0%, rgba(59,154,118,.14), transparent 42%), linear-gradient(145deg, rgba(25, 37, 30, .68), rgba(12, 18, 15, .58)); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); box-shadow: inset 0 1px 0 rgba(235,255,245,.05), 0 20px 60px rgba(0,0,0,.16); }
.contact-card .section-index { margin-bottom: 20px; }
.contact-card h2 { font-size: clamp(36px, 5vw, 58px); }
.contact-card > p:not(.section-index) { color: var(--muted); font-size: 13px; margin: 18px 0 24px; }
.contact-orb { position: absolute; width: 230px; height: 230px; border-radius: 50%; right: 7%; top: 14%; border: 1px solid rgba(113,230,193,.08); box-shadow: 0 0 0 28px rgba(113,230,193,.018), 0 0 0 58px rgba(113,230,193,.012); pointer-events: none; }
.contact-orb span { position: absolute; inset: 25%; border-radius: 50%; background: rgba(113,230,193,.07); filter: blur(32px); }
.site-footer { width: min(calc(100% - 48px), var(--max-width)); margin: 0 auto; border-top: 1px solid var(--line); padding: 27px 0 22px; }
.footer-brand { font-size: 14px; }
.site-footer > p { color: #758078; font-size: 11px; margin: 9px 0 24px; }
.footer-meta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; color: #67736b; font-size: 10px; }
.footer-meta a { margin-left: auto; }
.visitor-count { color: #829087; }
@keyframes scroll { 0%, 100% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(8px); opacity: .25; } }
@media (max-width: 700px) {
  .site-header, .section-shell, .site-footer { width: min(calc(100% - 36px), var(--max-width)); }
  .site-header { height: 60px; top: 10px; padding: 0 17px; }
  .desktop-nav { gap: 15px; font-size: 11px; }
  .wordmark { gap: 6px; font-size: 13px; }
  .wordmark-mark { width: 24px; height: 24px; }
  .header-link { font-size: 11px; }
  .hero { padding-top: 145px; }
  .hero { min-height: 570px; padding-top: 110px; }
  h1 { font-size: clamp(46px, 12vw, 72px); }
  .hero-copy { font-size: 14px; }
  .hero-note { margin-top: 65px; font-size: 10px; }
  .intro-section { grid-template-columns: 1fr; gap: 26px; padding-top: 58px; padding-bottom: 90px; }
  .intro-copy { padding-top: 0; }
  .projects-section { padding-bottom: 90px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 275px; }
  .projects-heading { align-items: start; gap: 12px; }
  .project-count { white-space: nowrap; padding-top: 5px; }
  .contact-section { padding-bottom: 75px; }
  .contact-card { padding: 34px 25px; border-radius: 22px; }
  .contact-orb { width: 150px; height: 150px; right: -55px; top: 5%; opacity: .6; }
  .footer-meta { gap: 13px; }
}
@media (max-width: 420px) {
  .desktop-nav { gap: 10px; }
  .desktop-nav a { font-size: 10px; }
  .header-link { display: none; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-note { max-width: 260px; }
  .projects-heading { display: block; }
  .project-count { display: inline-block; margin-top: 12px; }
  .footer-meta a { margin-left: 0; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .project-card { background: rgba(17, 23, 20, .94); }
  .contact-card { background: rgba(17, 24, 21, .96); }
  .eyebrow { background: rgba(17, 23, 20, .92); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Floating liquid-glass navigation */
.site-header::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,.055), transparent 32%, rgba(113,230,193,.025) 70%, rgba(255,255,255,.025));
  pointer-events: none;
}
.site-header > * { position: relative; }
.site-header:hover {
  border-color: rgba(113,230,193,.3);
  box-shadow: 0 9px 34px rgba(0,0,0,.24), 0 0 25px rgba(113,230,193,.075), inset 0 1px 0 rgba(235,255,245,.12);
}
.wordmark-mark {
  box-shadow: 0 0 16px rgba(113,230,193,.13);
}
.section-index { text-transform: none; }
@media (max-width: 420px) {
  .site-header { padding: 0 13px; }
  .wordmark { gap: 5px; }
  .desktop-nav { gap: 8px; }
  .desktop-nav a { font-size: 9px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(12, 18, 15, .97); }
}


/* 404 page */
.not-found-page { min-height: 100vh; }
.not-found-main {
  min-height: 100svh;
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 130px 0 70px;
}
.not-found-card {
  width: min(100%, 760px);
  padding: clamp(30px, 7vw, 74px);
  border-radius: 28px;
  border: 1px solid rgba(191,224,205,.16);
  background: linear-gradient(145deg, rgba(31,43,36,.56), rgba(14,20,17,.52));
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 22px 65px rgba(0,0,0,.2), inset 0 1px 0 rgba(235,255,245,.06);
}
.not-found-code {
  margin: 0 0 21px;
  color: var(--mint);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: lowercase;
}
.not-found-card h1 {
  margin: 0;
  font-size: clamp(48px, 9.5vw, 94px);
  letter-spacing: -.075em;
  line-height: .99;
}
.not-found-card h1 span { color: #87948b; }
.not-found-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(113,230,193,.35);
  border-radius: 10px;
  color: var(--mint);
  background: rgba(113,230,193,.055);
  font-size: 17px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.not-found-home:hover {
  background: rgba(113,230,193,.1);
  border-color: rgba(113,230,193,.6);
  transform: translateY(-2px);
}
.arrow-home { width: 14px; height: 14px; }
@media (max-width: 600px) {
  .not-found-main { width: calc(100% - 36px); padding-top: 100px; }
  .not-found-card { border-radius: 22px; }
}


/* Short, transparent analytics disclosure */
.privacy-note {
  color: #6f7c73;
  font-size: 10px;
  line-height: 1.6;
  max-width: 680px;
  margin: -12px 0 22px;
}

/* Vanilla AnimatedContent: scroll reveals, stagger, blur, tilt and wipe. */
.ac-motion-target {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.ac-motion-target.ac-motion-hidden {
  visibility: hidden;
  opacity: var(--ac-start-opacity, 0);
  transform:
    translate3d(var(--ac-start-x, 0px), var(--ac-start-y, 0px), 0)
    scale(var(--ac-start-scale, 1))
    rotate(var(--ac-start-rotation, 0deg))
    rotateX(var(--ac-start-tilt-x, 0deg))
    rotateY(var(--ac-start-tilt-y, 0deg));
  filter: blur(var(--ac-start-blur, 0px));
  clip-path: var(--ac-start-clip, none);
  -webkit-clip-path: var(--ac-start-clip, none);
}

@media (prefers-reduced-motion: reduce) {
  .ac-motion-target,
  .ac-motion-target.ac-motion-hidden {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
  }
}



/* Lightfall background integration */
.lightfall-background.lightfall-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .94;
}

body {
  position: relative;
  isolation: isolate;
}

/* Keep page content above the animated background without changing header positioning. */
body > main,
body > .site-footer {
  position: relative;
  z-index: 1;
}

/* 404 layout: bring the card close to the navigation instead of centring it far down. */
.not-found-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.not-found-main {
  flex: 1 0 auto;
  min-height: 0;
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 104px 0 42px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.not-found-card {
  width: min(100%, 680px);
  padding: clamp(28px, 6vw, 60px);
  border: 1px solid rgba(191,224,205,.15);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(20,29,24,.78), rgba(10,15,12,.76));
  box-shadow: 0 24px 80px rgba(0,0,0,.18), inset 0 1px 0 rgba(235,255,245,.035);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.not-found-code {
  margin: 0 0 18px;
  color: var(--mint);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.not-found-card h1 {
  margin: 0;
  font-size: clamp(48px, 9vw, 88px);
  line-height: .99;
  letter-spacing: -.075em;
}

.not-found-card h1 span { color: #77837c; }
.not-found-card .hero-copy {
  margin: 20px 0 0;
  font-size: 13px;
}

.not-found-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  margin-top: 27px;
  padding: 0 18px;
  border: 1px solid var(--mint);
  border-radius: 10px;
  background: var(--mint);
  color: #062018;
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.not-found-home:hover {
  transform: translateY(-2px);
  background: var(--mint-bright);
}

.not-found-page .site-footer {
  margin-top: auto;
}

@media (max-width: 700px) {
  .not-found-main {
    width: min(calc(100% - 36px), var(--max-width));
    padding-top: 94px;
    padding-bottom: 28px;
  }
  .not-found-card { border-radius: 21px; }
}
