@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root{color-scheme:dark;--bg:#111019;--panel:#1c1a29;--rule:#3a374e;--text:#f7f5ff;--muted:#c5bfd5;--accent:#c8c9ff;--edge:clamp(1.2rem,5.5vw,6rem);font:16px "Space Grotesk",system-ui,sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text)}
a{color:inherit;text-underline-offset:.24em}
a:hover{color:var(--accent)}
button,input{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.4;cursor:default}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.skip{position:absolute;top:-5rem;left:1rem;z-index:5;background:var(--bg);padding:1rem}
.skip:focus{top:1rem}
.masthead{min-height:4.6rem;padding:1rem var(--edge);display:flex;justify-content:space-between;align-items:center;gap:1rem;border-bottom:1px solid var(--rule)}
.masthead a{text-decoration:none}
.wordmark{font-size:1.2rem;font-weight:700;letter-spacing:-.04em}
nav{display:flex;gap:clamp(.7rem,3vw,2.25rem);flex-wrap:wrap}
nav a,footer{font-size:.9rem;color:var(--muted)}
.hero{position:relative;min-height:clamp(31rem,72vh,55rem);display:grid;align-items:end;isolation:isolate;overflow:hidden;border-bottom:1px solid var(--rule)}
.hero-media{position:absolute;inset:0;z-index:-2;background:radial-gradient(ellipse at 80% 18%,#615283 0%,#29243d 38%,#14121d 72%)}
.hero-media::before,.hero-media::after{content:"";position:absolute;width:105%;height:65%;top:5%;left:23%;border:1px solid #b6b0f45c;border-radius:50%;transform:rotate(-22deg);pointer-events:none}
.hero-media::after{width:112%;height:75%;left:24%;top:10%;border-width:2px}
.hero-media.has-media::before,.hero-media.has-media::after{display:none}
.hero-media img,.hero-media video{width:100%;height:100%;object-fit:cover;display:block}
.hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(14deg,#080a0cf2 2%,#080a0c36 75%);pointer-events:none}
.hero-content{padding:3rem var(--edge) clamp(3rem,7vw,6rem)}
.label{margin:0 0 1rem;color:var(--accent);font:500 .875rem "IBM Plex Mono",monospace;letter-spacing:.09em;text-transform:uppercase}
h1,h2,h3,p{overflow-wrap:anywhere}
h1,h2,h3{margin:0;line-height:.97;letter-spacing:-.07em}
h1{font-size:clamp(4rem,12vw,12rem);margin-bottom:1.6rem}
h2{font-size:clamp(3rem,7vw,7rem);margin-bottom:1.8rem}
h3{font-size:clamp(1.6rem,3vw,2.4rem)}
.button,.video-control,.filter button,.gallery-nav button{display:inline-block;background:transparent;border:1px solid var(--rule);color:var(--text);text-decoration:none;padding:.63rem .95rem}
.button{background:var(--accent);color:#131510;font-weight:700;border-color:var(--accent)}
.button:hover{color:#131510;background:#f3ffa9}
.video-control{position:absolute;right:var(--edge);bottom:1rem;background:#101112}
.section{padding:clamp(3rem,8vw,7.5rem) var(--edge);border-bottom:1px solid var(--rule)}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr));gap:1.15rem}
.card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);background:var(--panel);border:1px solid var(--rule);min-height:13rem}
.card-thumb{width:100%;height:100%;min-height:10rem;object-fit:cover}
.card-copy{padding:clamp(1rem,3vw,2rem);grid-column:-2/-1}
.card:not(:has(.card-thumb)) .card-copy{grid-column:1/-1}
.card p,.software-copy p:not(.label),.about>p{line-height:1.6;color:var(--muted);max-width:55ch}
.software{display:grid;grid-template-columns:1fr 1.18fr;gap:clamp(1.5rem,4vw,4rem)}
.software-media:empty{display:none}
.software-media img,.software-media video{display:block;width:100%;border:1px solid var(--rule);margin-bottom:.8rem}
figure{margin:0 0 1.2rem}
figcaption{color:var(--muted)}
.workflow{grid-column:1/-1;border-top:1px solid var(--rule);padding-top:1.6rem}
.workflow ol{display:grid;grid-template-columns:repeat(3,1fr);padding:0;list-style:none;gap:1rem}
.workflow li{padding:1.15rem;background:var(--panel);border-top:2px solid var(--accent)}
.workflow li span{display:block;color:var(--muted);margin-top:.45rem;line-height:1.5}
.section-top,.gallery-nav{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.filter label{display:block;color:var(--muted);margin-bottom:.35rem}
.filter input{padding:.57rem;background:var(--panel);border:1px solid var(--rule);color:var(--text)}
.gallery-post{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);border:1px solid var(--rule);background:var(--panel)}
.gallery-post img,.gallery-post video,.gallery-post iframe{width:100%;height:min(65vh,36rem);object-fit:contain;background:#090a0b;border:0}
.gallery-copy{padding:1.25rem;line-height:1.55}
.gallery-nav{margin:1rem 0}
.archive #profile{margin-top:1rem}
.empty{color:var(--muted);padding:1.2rem 0;border-top:1px solid var(--rule)}
.about{display:grid;grid-template-columns:1fr 1fr;gap:1rem;align-items:center}
.about>p{font-size:clamp(1.1rem,2vw,1.7rem)}
@media(max-width:690px){.masthead{align-items:flex-start;flex-direction:column}.software,.about,.gallery-post,.workflow ol{grid-template-columns:1fr}.hero{min-height:32rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* A floating control layer, with a dimmed center and color along the bevel. */
:root {
  --glass-fill: #202326;
  --glass-edge: rgb(255 255 255 / .2);
  --glass-highlight: linear-gradient(119deg,
    rgb(255 255 255 / .72), rgb(185 238 255 / .61) 12%,
    rgb(166 154 255 / .54) 26%, transparent 43% 58%,
    rgb(241 170 225 / .46) 75%, rgb(245 237 164 / .55) 94%);
}

body > .masthead:first-of-type {
  position: sticky;
  z-index: 4;
  top: .75rem;
  min-height: 3.8rem;
  width: calc(100% - 2 * var(--edge));
  max-width: 76rem;
  margin: .75rem auto -4.55rem;
  padding: .55rem clamp(.9rem, 2.2vw, 1.5rem);
  border-radius: 2rem;
}

.hero-content { padding-top: 7rem; }
main > section[id] { scroll-margin-top: 6rem; }

body > .masthead:first-of-type,
.hero .button,
.video-control,
.gallery-nav button {
  isolation: isolate;
  background:
    radial-gradient(ellipse at 12% 0%, rgb(164 200 255 / .16), transparent 48%),
    radial-gradient(ellipse at 92% 100%, rgb(238 172 224 / .13), transparent 46%),
    var(--glass-fill);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 .45rem 1.6rem rgb(0 0 0 / .28),
    inset 0 1px 0 rgb(255 255 255 / .15),
    inset 0 -1px 0 rgb(255 255 255 / .07);
  color: var(--text);
}

.hero .button, .video-control, .gallery-nav button {
  position: relative;
  border-radius: 100vw;
}
.video-control { position: absolute; }

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  :root { --glass-fill: rgb(18 22 25 / .66); }

  body > .masthead:first-of-type,
  .hero .button,
  .video-control,
  .gallery-nav button {
    -webkit-backdrop-filter: blur(18px) saturate(155%);
    backdrop-filter: blur(18px) saturate(155%);
  }

  .hero .button { --glass-fill: rgb(24 30 33 / .58); }
}

body > .masthead:first-of-type::before,
.hero .button::before,
.video-control::before,
.gallery-nav button::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--glass-highlight);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

body > .masthead:first-of-type nav { gap: .2rem; }
body > .masthead:first-of-type nav a {
  color: var(--text);
  padding: .48rem .68rem;
  border-radius: 100vw;
}
body > .masthead:first-of-type nav a:hover,
.hero .button:hover,
.video-control:hover,
.gallery-nav button:not(:disabled):hover {
  background-color: #41474c;
  color: #fff;
}

@media (max-width: 690px) {
  body > .masthead:first-of-type {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .2rem .7rem;
    margin-bottom: -5.25rem;
  }
  body > .masthead:first-of-type nav a { padding-inline: .46rem; }
  main > section[id] { scroll-margin-top: 8rem; }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  body > .masthead:first-of-type,
  .hero .button,
  .video-control,
  .gallery-nav button {
    --glass-fill: #202326;
    --glass-edge: #aeb3b7;
    --glass-highlight: none;
    background: var(--glass-fill);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Cool neutrals support the glass surfaces and portfolio artwork. */
:root {
  --ice: #b9eeff;
  --violet: #c8c0ff;
  --rose: #f3bedf;
  --glass-fill: #242133;
  --glass-edge: rgb(216 208 255 / .26);
  --surface-light: linear-gradient(132deg, rgb(194 179 255 / .12),
    rgb(194 179 255 / .02) 50%, rgb(162 224 255 / .07));
}


.hero::after {
  background: linear-gradient(12deg, rgb(11 9 18 / .95) 2%,
    rgb(20 15 30 / .42) 66%, rgb(25 19 42 / .19));
}

.section:nth-of-type(even) {
  background: radial-gradient(ellipse at 90% 0%, rgb(120 93 185 / .11), transparent 50%);
}

.card, .workflow li, .gallery-post {
  background: var(--surface-light), var(--panel);
  border-color: var(--rule);
  border-radius: 1.2rem;
  box-shadow: inset 0 1px 0 rgb(231 219 255 / .12), 0 .6rem 1.8rem rgb(0 0 0 / .17);
  overflow: hidden;
}

.workflow li { border-top: 1px solid rgb(197 185 255 / .38); }
.card h3, .workflow li strong { color: #e7e1ff; }
.section a:not(.button) { color: var(--ice); }
.section a:not(.button):hover { color: var(--rose); }
.software-media img, .software-media video { border-radius: 1.2rem; }
.filter input, .filter button {
  background: var(--surface-light), var(--panel);
  border-color: var(--glass-edge);
  border-radius: .75rem;
}
.filter button:hover { background-color: #3b3453; }

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  :root { --glass-fill: rgb(27 23 42 / .68); }
  .hero .button { --glass-fill: rgb(33 26 50 / .63); }
}

body > .masthead:first-of-type nav a:hover,
.hero .button:hover,
.video-control:hover,
.gallery-nav button:not(:disabled):hover {
  background-color: #403652;
}
.video-control { background-color: var(--glass-fill); }
.button:not(.hero .button) {
  background: linear-gradient(115deg, var(--ice), var(--violet));
  border-color: var(--violet);
  border-radius: 100vw;
  color: #181426;
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  main h1, main h2, .wordmark {
    background: none;
    color: var(--text);
    -webkit-text-fill-color: currentColor;
    filter: none;
  }
}
@media (forced-colors: active) {
  main h1, main h2, .wordmark {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
    filter: none;
  }
}

/* The material sits behind the type and borrows color from the artwork. */
:root {
  --glass-highlight: linear-gradient(151deg,
    rgb(255 255 255 / .60) 0%, rgb(224 233 255 / .29) 21%,
    rgb(255 255 255 / .04) 46% 63%, rgb(188 190 227 / .24) 91%);
}

.hero-caption {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 1rem;
  padding: clamp(1.2rem, 3.1vw, 2.5rem);
  border: 1px solid rgb(211 215 243 / .16);
  border-radius: clamp(1.6rem, 4vw, 3rem);
  background: #242132;
  box-shadow: inset 0 1px 2px rgb(248 246 255 / .16),
    inset 0 -1px 3px rgb(190 196 232 / .10),
    0 14px 40px rgb(7 6 15 / .28);
}

.hero-caption::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--glass-highlight);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.hero-caption h1 {
  font-size: clamp(3rem, 9.7vw, 9rem);
  margin-bottom: 0;
}

.hero-caption .label { color: #e2dff1; }

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .hero-caption {
    background: linear-gradient(145deg, rgb(238 238 255 / .10), transparent 48%),
      rgb(17 16 29 / .56);
    -webkit-backdrop-filter: blur(8px) saturate(135%);
    backdrop-filter: blur(8px) saturate(135%);
  }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .hero-caption {
    background: #242132;
    border-color: #bab6ca;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .hero-caption::before { display: none; }
}
