@charset "UTF-8";

/* The portal alone gets this expressive dashboard skin. Its project sites keep
   their own styles and routes. */
:root {
  --page: #f7f1f6;
  --paper: #fff9fd;
  --ink: #352b39;
  --muted: #786d7b;
  --rose: #925075;
  --rose-deep: #713957;
  --rose-soft: #f4dce9;
  --line: #ead9e4;
  --accent: #d9a8c3;
  --wash: #f2e4ee;
  --wash-2: #e9ddf5;
  --wash-3: #f9dfda;
  --glass: rgba(255, 250, 253, .72);
  --glass-strong: rgba(255, 250, 253, .86);
  --shadow: 0 14px 42px rgba(95, 59, 88, .08), 0 3px 11px rgba(95, 59, 88, .04);
}
:root[data-palette="lilac"] {
  --page: #f4f1fb; --paper: #fbf9ff; --ink: #332d43; --muted: #746e83;
  --rose: #735ba2; --rose-deep: #53417e; --rose-soft: #e7def7;
  --line: #e1d9ee; --accent: #b7a3d9; --wash: #ece3f8;
  --wash-2: #e0e9f8; --wash-3: #f2e3f2;
  --glass: rgba(251, 249, 255, .72); --glass-strong: rgba(251, 249, 255, .88);
}
:root[data-palette="mint"] {
  --page: #f0f7f4; --paper: #fafffc; --ink: #2b3b39; --muted: #697d78;
  --rose: #417f75; --rose-deep: #2d655e; --rose-soft: #dcefe9;
  --line: #d8e9e3; --accent: #9fcfc0; --wash: #dff1e9;
  --wash-2: #dfeaf4; --wash-3: #f6eadc;
  --glass: rgba(250, 255, 252, .72); --glass-strong: rgba(250, 255, 252, .88);
}
html { scroll-padding-top: 112px; }
body {
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  transition: background-color .55s ease, color .35s ease;
}
button { font-family: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
#main:focus { outline: none; }
.ambient-wallpaper {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #208bd0 url('/portal/wallpaper-20261022-desktop.jpg') center / cover no-repeat;
}
.ambient-wallpaper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--page) 8%, transparent);
}
html[data-theme="night"] .ambient-wallpaper::before {
  background: rgba(9, 12, 29, .46);
}
.ambient-wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .25;
  background-image: radial-gradient(color-mix(in srgb, var(--rose) 25%, transparent) .7px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(150deg, #0009, transparent 78%);
}
.ambient-wallpaper span {
  position: absolute;
  width: min(48vw, 680px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(65px);
  opacity: .12;
  background: var(--accent);
  will-change: transform;
  animation: wallpaper-drift 24s ease-in-out infinite alternate;
}
.ambient-wallpaper span:nth-child(1) { top: -20%; left: -12%; }
.ambient-wallpaper span:nth-child(2) { top: 14%; right: -15%; width: min(39vw, 540px); background: var(--wash-2); animation-delay: -8s; animation-duration: 29s; }
.ambient-wallpaper span:nth-child(3) { bottom: -28%; left: 27%; width: min(46vw, 620px); background: var(--wash-3); animation-delay: -16s; animation-duration: 31s; }
@keyframes wallpaper-drift { to { transform: translate3d(8vw, 10vh, 0) scale(1.16); } }

.site-shell { position: relative; z-index: 1; width: min(1480px, calc(100% - 40px)); margin: 0 auto; overflow: visible; }
.site-header {
  position: sticky;
  top: 15px;
  z-index: 40;
  min-height: 78px;
  margin: 16px 0 18px;
  padding: 9px 12px 9px 13px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, white);
  border-radius: 28px;
  background: var(--glass-strong);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  box-shadow: var(--shadow);
}
.brand { gap: 11px; padding-left: 3px; font-size: 16px; }
.brand img { display: block; width: 48px; height: 48px; border-radius: 17px; object-fit: cover; box-shadow: 0 5px 15px color-mix(in srgb, var(--rose) 17%, transparent); }
.brand small { margin-top: 2px; font-size: 9px; letter-spacing: .14em; }
.site-nav {
  position: fixed;
  z-index: 45;
  top: 29px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--wash) 50%, white);
  box-shadow: inset 0 1px 3px #fff8;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.site-nav a span { font-size: 17px; font-weight: 500; line-height: 1; }
.site-nav a:hover, .site-nav a[aria-current="location"] { background: var(--glass-strong); color: var(--rose-deep); box-shadow: 0 3px 11px color-mix(in srgb, var(--rose) 12%, transparent); transform: translateY(-1px); }
.palette-picker { position: relative; flex: none; }
.palette-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--glass);
  color: var(--rose-deep);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  transition: transform .25s ease, background .25s ease;
}
.palette-toggle:hover { transform: translateY(-2px); background: var(--paper); }
.palette-toggle span:first-child { font-size: 19px; }
.palette-options {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: flex;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--glass-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.palette-options[hidden] { display: none; }
.palette-options button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 2px solid transparent; border-radius: 13px; background: transparent; cursor: pointer; }
.palette-options button:hover, .palette-options button[aria-pressed="true"] { border-color: var(--rose); background: var(--paper); }
.palette-options button span { width: 23px; height: 23px; border-radius: 50%; background: #c16e96; }
.palette-options button[data-palette="lilac"] span { background: #9d83c7; }
.palette-options button[data-palette="mint"] span { background: #6cb29e; }

#main { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-areas: "hero hero hero hero hero hero hero hero hero hero hero hero" "projects projects projects projects projects projects projects projects updates updates updates updates"; align-items: stretch; gap: 18px; }
#main > section { min-width: 0; scroll-margin-top: 112px; }
.hero, .projects, .updates {
  border: 1px solid color-mix(in srgb, var(--line) 83%, white);
  border-radius: 36px;
  background: var(--glass);
  backdrop-filter: blur(25px) saturate(1.25);
  -webkit-backdrop-filter: blur(25px) saturate(1.25);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero { grid-area: hero; grid-template-columns: minmax(0, 1fr); min-height: 460px; padding: 56px clamp(34px, 4.1vw, 64px); background: linear-gradient(135deg, color-mix(in srgb, var(--wash) 68%, white) 0%, var(--glass) 66%), var(--glass); }
.hero::before, .hero-index { display: none; }
.hero-rays { opacity: .8; mask-image: linear-gradient(90deg, transparent 12%, #0008 55%, #000 100%); }
.hero-copy { z-index: 2; max-width: 1100px; }
.eyebrow, .section-number { font-size: 10px; letter-spacing: .14em; }
.eyebrow-dot { width: 8px; height: 8px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--rose) 14%, transparent); }
.hero h1 { margin: 21px 0 17px; font-size: clamp(45px, 5vw, 74px); line-height: 1.15; letter-spacing: -.075em; }
.hero h1 em { display: inline-block; }
.hero-lede { max-width: 530px; font-size: 15px; line-height: 1.85; }
.hero-actions { gap: 17px; margin-top: 30px; }
.button-primary { background: var(--rose); box-shadow: 0 10px 23px color-mix(in srgb, var(--rose) 24%, transparent); }
.button-primary:hover { background: var(--rose-deep); box-shadow: 0 14px 27px color-mix(in srgb, var(--rose) 31%, transparent); }
.hero-side-note { color: var(--muted); font-size: 11px; }

.section-wrap { padding: 32px; }
.section-heading { align-items: start; gap: 12px; margin-bottom: 20px; }
.section-heading h2, .about h2 { margin-top: 5px; font-size: clamp(30px, 2.8vw, 42px); line-height: 1.3; }
.section-heading > p { max-width: 205px; font-size: 12px; line-height: 1.6; text-align: right; }
.projects { grid-area: projects; background: var(--glass-strong); }
.project-carousel { border-color: var(--line); border-radius: 28px; background: radial-gradient(circle at 50% 40%, var(--paper), var(--wash)); box-shadow: 0 7px 24px color-mix(in srgb, var(--rose) 9%, transparent); }
.project-carousel__viewport { height: 430px; }
.project-carousel__viewport::before { box-shadow: 0 0 0 36px color-mix(in srgb, var(--wash) 50%, transparent), 0 0 0 75px color-mix(in srgb, var(--wash) 30%, transparent); }
.project-carousel__card { width: 258px; height: 340px; margin: -170px 0 0 -129px; border-color: var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 17px 38px color-mix(in srgb, var(--rose) 17%, transparent); }
.project-carousel__card-top { height: 44px; padding: 0 15px; }
.project-carousel__visual, .project-carousel__reserved-art { border-radius: 16px; }
.project-carousel__card-bottom { padding: 11px 16px 14px; }
.project-carousel__card-bottom strong { font-size: 22px; }

.updates { grid-area: updates; padding: 31px 28px; background: var(--glass-strong); }
.updates .section-heading { display: block; margin-bottom: 18px; }
.updates .section-heading > p { max-width: none; margin: 8px 0 0; text-align: left; }
.updates-list { border-top: 0; }
.updates-list li { display: grid; grid-template-columns: 1fr; gap: 4px; margin-bottom: 9px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 19px; background: color-mix(in srgb, var(--paper) 72%, transparent); transition: transform .25s ease, box-shadow .25s ease; }
.updates-list li:hover { transform: translateY(-2px); box-shadow: 0 8px 18px color-mix(in srgb, var(--rose) 10%, transparent); }
.updates-list time { padding: 0; font-size: 10px; }
.updates-list h3 { font-size: 14px; line-height: 1.45; }
.updates-list p { font-size: 11px; line-height: 1.55; }
.updates-list li[hidden] { display: none; }
.updates-toggle { width: 100%; min-height: 40px; margin: 12px 0 0; border-color: var(--line); border-radius: 15px; background: var(--wash); font-size: 11px; }

.site-footer { min-height: 80px; margin: 18px 0 24px; padding: 17px 29px; border: 1px solid var(--line); border-radius: 25px; background: var(--glass-strong); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--muted); box-shadow: var(--shadow); }
.site-footer a { border-color: var(--rose); color: var(--rose-deep); }
.portal-footer { display: block; padding: 0; overflow: hidden; }
.portal-footer__top { display: grid; grid-template-columns: minmax(220px,1.5fr) repeat(3,minmax(135px,1fr)); gap: clamp(22px,4vw,64px); padding: 43px clamp(28px,5vw,70px) 52px; }
.portal-footer__identity { display: flex; flex-direction: column; align-items: flex-start; }
.portal-footer__brand { display: inline-flex; align-items: center; gap: 12px; border: 0!important; color: var(--ink)!important; font-size: 20px; font-weight: 800; }
.portal-footer__brand img { width: 42px; height: 42px; border-radius: 13px; object-fit: cover; }
.portal-footer__identity p { max-width: 220px; margin: 19px 0 8px; font-size: 13px; line-height: 1.8; }
.portal-footer__identity small { color: var(--rose); font: 700 10px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: .15em; }
.portal-footer__group { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.portal-footer__group strong { margin: 7px 0 10px; color: var(--ink); font-size: 14px; }
.portal-footer__group a { border: 0; padding: 0; color: var(--muted); font-size: 13px; line-height: 1.5; transition: color .2s, transform .2s; }
.portal-footer__group a:hover,.portal-footer__group a:focus-visible { color: var(--rose-deep); transform: translateX(3px); }
.portal-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px clamp(28px,5vw,70px); border-top: 1px solid var(--line); font-size: 11px; }
.portal-footer__bottom a { margin-left: auto; }
@media (max-width: 1000px) and (min-width: 761px) { .portal-footer__top { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; } }

[data-enter="pending"] { opacity: 0; transform: translateY(22px) scale(.986); }
[data-enter="ready"] { opacity: 1; transform: translateY(0) scale(1); transition: opacity .65s cubic-bezier(.2,.8,.2,1), transform .65s cubic-bezier(.2,.8,.2,1); }
@media (max-width: 1160px) {
  #main { grid-template-columns: 1fr 1fr; grid-template-areas: "hero hero" "projects projects" "updates updates"; }
  .hero { min-height: 470px; }
  .updates-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .updates-list li { margin-bottom: 0; }
  .updates-list li:not([hidden]) { display: flex; flex-direction: column; }
}
@media (max-width: 760px) {
  .ambient-wallpaper { background: #208bd0 url('/portal/wallpaper-20261022-desktop.jpg') 52% center / cover no-repeat; }
  .site-shell { width: min(100% - 24px, 640px); }
  .site-header { position: sticky; top: max(8px, env(safe-area-inset-top)); flex-direction: row; align-items: center; justify-content: space-between; min-height: 64px; margin: 12px 0; padding: 8px; border-radius: 22px; }
  .brand { font-size: 14px; }
  .brand img { width: 42px; height: 42px; border-radius: 14px; }
  .brand small { font-size: 8px; }
  .site-nav { position: fixed; z-index: 70; top: auto; right: max(12px, env(safe-area-inset-right)); bottom: calc(10px + env(safe-area-inset-bottom)); left: max(12px, env(safe-area-inset-left)); transform: none; justify-content: space-around; padding: 6px; border-color: var(--line); background: var(--glass-strong); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); box-shadow: 0 10px 34px color-mix(in srgb, var(--rose) 19%, transparent); }
  .site-nav a { flex-direction: column; justify-content: center; gap: 0; min-width: 0; min-height: 49px; padding: 3px 11px; font-size: 10px; }
  .site-nav a span { font-size: 18px; }
  .palette-toggle { width: 42px; min-height: 42px; padding: 0; }
  .palette-toggle span:last-child { display: none; }
  #main { display: flex; flex-direction: column; gap: 12px; }
  #main > section { scroll-margin-top: 18px; }
  .hero, .projects, .updates { border-radius: 27px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 32px 28px 22px; }
  .hero h1 { font-size: clamp(39px, 9vw, 62px); }
  .hero-lede { font-size: 14px; }
  .hero-side-note { font-size: 10px; }
  .section-wrap { padding: 27px 23px; }
  .section-heading h2 { font-size: clamp(31px, 7vw, 42px); }
  .section-heading > p { max-width: none; text-align: left; }
  .updates-list { display: block; }
  .updates-list li { margin-bottom: 8px; }
  .updates .section-heading { margin-bottom: 12px; }
  .updates-list li { margin-bottom: 7px; padding: 11px 14px; }
  .updates-toggle { margin-top: 10px; }
  .site-footer { margin-bottom: calc(87px + env(safe-area-inset-bottom)); }
  .portal-footer__top { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 27px 18px; padding: 31px 24px 37px; }
  .portal-footer__identity { grid-column: 1 / -1; }
  .portal-footer__identity p { max-width: none; margin: 12px 0 4px; }
  .portal-footer__bottom { padding: 18px 24px; }
}
@media (max-width: 480px) {
  .hero { padding: 28px 23px 18px; }
  .hero h1 { font-size: clamp(36px, 10vw, 49px); }
  .hero-actions { align-items: flex-start; flex-direction: row; }
  .section-heading { margin-bottom: 17px; }
  .project-carousel__viewport { height: 320px; }
  .project-carousel__card { width: 208px; height: 278px; margin: -139px 0 0 -104px; border-radius: 17px; }
  .project-carousel__card-bottom strong { font-size: 19px; }
  .updates { padding: 20px 18px; }
  .site-footer { gap: 6px; padding: 17px 20px; }
  .portal-footer { padding: 0; }
  .portal-footer__top { padding: 27px 20px 32px; }
  .portal-footer__bottom { padding: 17px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-wallpaper span { animation: none; transform: none; }
  [data-enter="pending"], [data-enter="ready"] { opacity: 1; transform: none; transition: none; }
}
