:root{color-scheme:dark;--bg:#081321;--navy:#14243a;--gold:#d5b47e;--ivory:#eae5dc;--muted:#acbacd}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ivory);font-family:Arial,Helvetica,sans-serif;line-height:1.5}a{color:inherit;text-decoration:none}a:focus-visible{outline:2px solid var(--gold);outline-offset:5px}.skip{position:absolute;left:-9999px}.skip:focus{left:1rem;top:1rem;z-index:10}.header{height:72px;position:absolute;inset:0 0 auto;z-index:5;display:flex;align-items:center;justify-content:space-between;padding:0 max(5vw,24px)}.brand{font-family:Georgia,serif;color:var(--gold);font-size:30px;letter-spacing:-2px}.brand sup{font-size:13px;position:relative;top:-.5em}.header nav{display:flex;gap:clamp(14px,3vw,40px);font-size:11px;letter-spacing:2px;text-transform:uppercase}.header nav a:hover,.legal a:hover{color:var(--gold)}.section{position:relative;overflow:hidden;border-bottom:1px solid #334255}.section-shell{max-width:1380px;margin:auto;padding:clamp(60px,8vw,110px) 6vw}.hero{min-height:100vh;min-height:100dvh;display:grid;place-items:center;background:radial-gradient(ellipse at 88% 5%,#ae754e70 0%,#3b3c5370 19%,transparent 47%),radial-gradient(ellipse at 60% 24%,#172d4c 0%,transparent 52%),#050d19}.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 65%,#081321);pointer-events:none}.stars{position:absolute;inset:0;background-image:radial-gradient(1px 1px at 15% 23%,#fff 90%,transparent),radial-gradient(1px 1px at 75% 35%,#e6c48d 90%,transparent),radial-gradient(2px 2px at 91% 16%,#fff 70%,transparent),radial-gradient(1px 1px at 44% 57%,#fff 90%,transparent);background-size:241px 237px,311px 277px,421px 319px,173px 197px;opacity:.6;animation:twinkle 7s ease-in-out infinite alternate}.hero-inner{position:relative;z-index:1;text-align:center;width:min(100%,1040px);padding:100px 24px 35px}.eyebrow{font-size:11px;letter-spacing:3px;color:var(--gold);text-transform:uppercase}.hero h1,.motto p{font:italic clamp(42px,6.2vw,94px)/1.12 Georgia,serif;color:#efd1a1;font-weight:400;margin:20px 0 12px;text-shadow:0 0 35px #cc9b5a33}.hero-logo{width:min(64vw,490px);margin:0 auto 12px;aspect-ratio:1.12;overflow:hidden;mask-image:radial-gradient(ellipse,#000 40%,transparent 73%)}.hero-logo img{width:100%;height:100%;object-fit:cover;mix-blend-mode:screen}.explore{display:inline-flex;flex-direction:column;gap:4px;letter-spacing:3px;font-size:10px;color:var(--gold)}.explore span{font-size:22px}.lab{background:radial-gradient(ellipse at 2% 100%,#344c6460,transparent 60%),#081321}.lab-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:22px;align-items:stretch}.intro h2,.contact h2{font:normal clamp(34px,3.7vw,58px)/1.13 Georgia,serif;margin:15px 0 22px}.intro>p:not(.eyebrow),.contact p:not(.eyebrow){color:var(--muted);max-width:430px}.pillar{border:1px solid #506079;background:#101d2dce;border-radius:12px;padding:32px;min-height:285px;position:relative;transition:transform .25s,border-color .25s}.pillar:hover{transform:translateY(-6px);border-color:var(--gold)}.pillar-icon{font-size:58px;color:var(--gold)}.pillar h3{font:normal 26px Georgia,serif;margin:10px 0}.pillar p{color:var(--muted);font-size:14px}.arrow{position:absolute;right:26px;bottom:20px;color:var(--gold);font-size:22px}.motto{display:flex;align-items:center;gap:30px;padding:65px 5vw;background:radial-gradient(ellipse at 50% 100%,#1c3047,#081321 75%)}.motto span{height:1px;flex:1;background:linear-gradient(90deg,transparent,#ac8755,transparent)}.motto p{font-size:clamp(28px,4.4vw,62px);text-align:center;margin:0;white-space:nowrap}.work{background:radial-gradient(ellipse at 0 90%,#26384c66,transparent 65%),#081321}.work-grid{display:grid;grid-template-columns:.8fr 1.3fr 1.3fr;gap:20px;align-items:stretch}.project{position:relative;min-height:290px;border:1px solid #47576b;border-radius:11px;overflow:hidden;background:#101c2e;isolation:isolate}.project:after{content:"";position:absolute;inset:25% 0 0;background:linear-gradient(transparent,#030b16e8);pointer-events:none}.project img{width:100%;height:100%;position:absolute;object-fit:cover;object-position:42% 50%}.beauty{min-height:620px}.project-caption{position:absolute;bottom:0;left:0;right:0;padding:25px;z-index:2}.project h3{font:normal 28px Georgia,serif;margin:8px 0}.project p{font-size:14px;color:#d1d9e4;margin:0}.status{font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:#f1cb90}.project-stack{display:grid;grid-template-rows:1fr 1fr;gap:20px}.lead{background:radial-gradient(ellipse at 60% 0%,#304663,#101c2e 70%)}.flow-diagram{display:flex;align-items:center;justify-content:center;gap:10px;padding:50px 16px 120px}.flow-diagram>div{border:1px solid #c8a46a77;background:#16253a;border-radius:8px;padding:14px 10px;font-size:12px;min-width:0;text-align:center}.flow-diagram small{display:block;font-size:10px;color:#9aadc2;margin-top:5px}.flow-diagram b{color:var(--gold)}.rental{background:#18283a}.rental-ui{padding:20px 22px 130px}.searchbar{border-radius:8px;background:#dce5ec;color:#26384b;padding:10px 14px;font-size:12px;display:flex;justify-content:space-between;gap:8px}.flats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:12px}.flat{min-height:105px;position:relative;border-radius:6px;overflow:hidden;background:linear-gradient(135deg,#53697a,#d4b38c 48%,#28384a 49%,#1b2938 80%)}.flat2{background:linear-gradient(140deg,#9eaaae,#b1a187 40%,#3c5062 41%,#233345 75%)}.flat3{background:linear-gradient(125deg,#748ba1,#bda67d 45%,#253c4e 46%,#111d2e)}.flat span{position:absolute;bottom:0;left:0;right:0;padding:5px;background:#071322b8;color:white;font-size:9px}.motion{min-height:470px;display:grid;place-items:center;background:radial-gradient(ellipse at 75% 35%,#172e43,transparent 65%),#07111f}.motion-line{position:absolute;inset:4% 0 35%;pointer-events:none}.motion-line svg{width:100%;height:100%;overflow:visible}.track{fill:none;stroke:#ad8b5944;stroke-width:2}.runner{fill:none;stroke:#f1c783;stroke-width:4;stroke-linecap:round;filter:drop-shadow(0 0 7px #f1b762);stroke-dasharray:1700;stroke-dashoffset:1700}.motion.in-view .runner{animation:draw 5s cubic-bezier(.6,.15,.25,1) forwards}.motion blockquote{position:relative;text-align:center;margin:0;max-width:1020px;padding:150px 35px 45px}.motion blockquote p{font:italic clamp(21px,2.6vw,36px)/1.45 Georgia,serif;color:#f1e5d5}.motion blockquote em{color:var(--gold)}.motion blockquote footer{font-size:11px;letter-spacing:3px;color:var(--gold);margin-top:35px}.motion blockquote footer span{display:block;font:italic 13px Georgia,serif;letter-spacing:0;color:var(--muted);margin-top:7px}.contact{background:radial-gradient(ellipse at 85% 50%,#3a4455aa,transparent 55%),#081321}.contact .section-shell{padding-top:100px;padding-bottom:100px}.contact h2{max-width:900px}.contact-button{margin-top:25px;display:inline-flex;align-items:center;gap:24px;background:linear-gradient(120deg,#f6dfb1,#c99755);color:#111827;padding:15px 25px;border-radius:40px;font-weight:bold}.contact-button:hover{filter:brightness(1.1)}.contact-button span{font-size:20px}.contact .notice{font-size:11px;color:#d8a88d!important;margin-top:25px}.footer{border-top:1px solid #364357}.footer-inner{max-width:1380px;margin:auto;display:flex;align-items:center;gap:18px;padding:30px 6vw}.footer-inner>span{font-size:10px;letter-spacing:2px;color:var(--gold)}.legal{margin-left:auto;display:flex;gap:25px;align-items:center;font-size:12px;color:#c2cddd}.legal span{color:#8d9fb5}.legal-page{min-height:75vh;padding:120px 8vw 60px;max-width:900px}.legal-page h1{font:normal 50px Georgia,serif}.legal-page p{color:var(--muted)}@keyframes twinkle{to{opacity:.35}}@keyframes draw{to{stroke-dashoffset:0}}@media(max-width:1050px){.lab-grid{grid-template-columns:1fr 1fr}.lab-grid .intro{grid-column:1/-1}.work-grid{grid-template-columns:1fr 1fr}.work-grid .intro{grid-column:1/-1}.beauty{min-height:590px}}@media(max-width:680px){.header{height:60px;padding:0 18px}.header nav{gap:13px;font-size:9px;letter-spacing:.7px}.brand{font-size:24px}.hero h1{font-size:clamp(37px,10vw,65px)}.hero-logo{width:min(96vw,470px)}.section-shell{padding:65px 22px}.lab-grid,.work-grid{display:flex;flex-direction:column}.pillar{min-height:220px}.motto{padding:48px 15px;gap:10px}.motto p{font-size:clamp(21px,5.8vw,40px);white-space:normal}.beauty{min-height:480px}.project-stack{grid-template-rows:none}.project-stack .project{min-height:290px}.flow-diagram{gap:5px;padding:42px 8px 130px}.flow-diagram>div{padding:9px 5px;font-size:10px}.flow-diagram small{font-size:9px}.motion blockquote{padding:125px 22px 50px}.footer-inner{flex-wrap:wrap}.legal{margin-left:0;width:100%;flex-wrap:wrap;gap:16px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}.runner{stroke-dashoffset:0!important}}

/* v0.2 — persistent navigation and large-screen hero */
html{scroll-padding-top:84px}
.header{position:fixed;inset:0 0 auto;height:76px;z-index:100;background:rgba(5,13,25,.72);border-bottom:1px solid rgba(213,180,126,.16);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
.header .brand{display:inline-flex;align-items:center;gap:11px;white-space:nowrap}
.brand-symbol{width:41px;height:41px;object-fit:cover;border-radius:7px;mix-blend-mode:screen}
.hero-inner{width:min(100%,1320px);padding-top:120px}
.hero-logo{width:min(75vw,700px);aspect-ratio:1.12}
@media(min-width:1450px) and (min-height:850px){.hero-logo{width:min(65vw,790px)}.hero-inner{padding-top:105px}.hero h1{margin-bottom:2px}}
@media(max-width:680px){.header{height:64px}.brand-symbol{width:29px;height:29px}.header .brand{gap:5px}.hero-logo{width:min(96vw,510px)}html{scroll-padding-top:70px}}

/* v0.3: header brand spacing, transparent symbol and responsive larger hero */
.header .brand{gap:24px}
.brand-symbol{border-radius:0;object-fit:contain;mix-blend-mode:normal}
.hero-logo{width:min(84vw,840px);aspect-ratio:1.12}
@media(min-width:1450px) and (min-height:850px){.hero-logo{width:min(79vw,940px)}.hero-inner{padding-top:92px}}
@media(max-width:680px){.header .brand{gap:14px}.hero-logo{width:min(98vw,540px)}}

/* v0.4 — Hero logo edge blending */

.hero-logo {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
}

.hero-logo img {
    object-fit: contain;
    mix-blend-mode: normal;

    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 12%,
        black 88%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 12%,
        black 88%,
        transparent 100%
    );
}

/* v0.5: feathering is embedded in the image */
.hero-logo {
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}
.hero-logo img {
  object-fit: contain;
  mix-blend-mode: normal;
  -webkit-mask-image: none;
  mask-image: none;
}

/* ======================================
   A²DL Hero v0.6 — Entrance Animation
   ====================================== */

.hero-logo {
    position: relative;
    animation: heroLogoEntrance 3.6s ease-out both;
}

.hero-logo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background: linear-gradient(
        115deg,
        transparent 40%,
        rgba(255, 220, 150, 0.12) 49%,
        rgba(255, 245, 205, 0.30) 50%,
        rgba(255, 220, 150, 0.12) 51%,
        transparent 60%
    );

    transform: translateX(-130%);
    animation: heroGoldSweep 1.5s ease-in-out 2.5s both;
}

@keyframes heroLogoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.94);
        filter: brightness(0.45);
    }

    55% {
        opacity: 1;
        filter: brightness(0.85);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }
}

@keyframes heroGoldSweep {
    0% {
        transform: translateX(-130%);
        opacity: 0;
    }

    25% {
        opacity: 1;
    }

    75% {
        opacity: 1;
    }

    100% {
        transform: translateX(130%);
        opacity: 0;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-logo,
    .hero-logo::after {
        animation: none !important;
    }

    .hero-logo {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .hero-logo::after {
        display: none;
    }
}

/* A²DL Laboratory v1.1 — Intelligence Flow */

.intelligence-flow {
  margin-top: 34px;
  width: 100%;
  max-width: 420px;
}

.flow-label {
  color: #d6ad69;
  font-size: 10px;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
}

.intelligence-flow svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.flow-path {
  fill: none;
  stroke: url(#flow-gold);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
}

.flow-node rect {
  fill: #142134;
  stroke: #52627b;
  stroke-width: 1;
}

.flow-node circle {
  fill: none;
  stroke: #d6ad69;
  stroke-width: 1.5;
}



.flow-title,
.flow-subtitle {
  text-anchor: middle;
  font-family: Arial, sans-serif;
}

.flow-title {
  fill: #f2eee8;
  font-size: 12px;
  font-weight: 600;
}

.flow-subtitle {
  fill: #aebbd0;
  font-size: 9px;
}

.flow-pulse {
  fill: #f5d89d;
  filter: drop-shadow(0 0 5px #f2c678);
}

.flow-caption {
  text-align: center;
  color: #aebbd0;
  font-size: 12px;
  margin-top: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .flow-pulse {
    display: none;
  }
}

/* Laboratory v1.4 — SVG controls node highlights; no competing CSS animations. */
@media (prefers-reduced-motion: reduce) {
  .intelligence-flow svg animate,
  .intelligence-flow svg animateMotion {
    display: none;
  }
  .flow-pulse { display: none; }
}







/* Laboratory v2.6 — separate clean cosmos and independent irregular light ribbons */
.celestial-stage{position:relative;isolation:isolate;overflow:hidden;background:#05101f url("assets/lab-space-clean-v26.webp") center top / cover no-repeat}
.celestial-stage::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;background:linear-gradient(90deg,rgba(3,10,20,.35),rgba(3,10,20,.06) 55%,rgba(3,10,20,.13)),linear-gradient(to bottom,transparent 15%,rgba(3,10,20,.22) 70%,rgba(3,10,20,.35))}
.celestial-ribbons{position:absolute;z-index:3;left:0;right:0;top:53%;height:30%;pointer-events:none;background:url("assets/lab-light-ribbons-v26.svg") center center / 100% 100% no-repeat;opacity:.9;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 18%,#000 80%,transparent);mask-image:linear-gradient(to bottom,transparent,#000 18%,#000 80%,transparent)}
#laboratory.lab,.celestial-stage .motto{position:relative;z-index:1;background:transparent;isolation:isolate}
#laboratory.lab::before,#laboratory.lab::after,.celestial-stage .motto::before,.celestial-stage .motto::after{content:none!important}
#laboratory .section-shell{position:relative;z-index:2}
#laboratory .lab-grid{display:grid;grid-template-columns:minmax(0,1.45fr) repeat(2,minmax(0,1fr));gap:22px;align-items:stretch}
#laboratory .intro{padding-top:12px}
#laboratory .intro>p:not(.eyebrow){font-size:clamp(17px,1.35vw,20px);line-height:1.6;color:#dce9f7;text-shadow:0 2px 9px #06101d}
#laboratory .pillar{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;text-align:center;min-height:510px;padding:0 24px 85px;overflow:hidden;border:1px solid rgba(225,179,104,.85);border-radius:12px;background:linear-gradient(to bottom,rgba(4,13,25,.15),rgba(4,13,25,.40) 40%,rgba(4,13,25,.76) 80%);backdrop-filter:blur(1px)}
#laboratory .pillar::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(to bottom,transparent 12%,rgba(4,13,25,.3) 75%)}
#laboratory .pillar::after{content:none!important}
#laboratory .pillar-art{display:block;position:relative;z-index:1;width:calc(100% + 48px);height:clamp(195px,19vw,245px);margin:0 -24px 28px;flex:none;overflow:hidden}
#laboratory .pillar-art img{display:block;width:100%;height:100%;object-fit:cover;mix-blend-mode:screen;-webkit-mask-image:radial-gradient(ellipse 79% 82% at 50% 46%,#000 37%,rgba(0,0,0,.85) 60%,transparent 100%);mask-image:radial-gradient(ellipse 79% 82% at 50% 46%,#000 37%,rgba(0,0,0,.85) 60%,transparent 100%)}
#laboratory .pillar h3{position:relative;z-index:4;margin:0 0 20px;color:#fff3e7;font:normal clamp(24px,1.9vw,29px)/1.2 Georgia,serif}
#laboratory .pillar p{position:relative;z-index:4;margin:0;max-width:340px;color:#e2ebf7;font-size:clamp(17px,1.3vw,19px);line-height:1.6}
#laboratory .pillar .arrow{position:absolute;right:22px;bottom:20px;z-index:4;display:grid;place-items:center;width:42px;height:42px;border:1px solid #dfb778;border-radius:50%;font-size:23px;background:rgba(5,15,28,.65)}
#laboratory .pillar:hover{border-color:#ffe0a6;transform:translateY(-5px);box-shadow:0 12px 36px rgba(195,142,73,.16)}
.celestial-stage .motto{display:flex;align-items:center;justify-content:center;gap:20px;min-height:190px;padding:35px 3vw 55px;overflow:hidden}
.celestial-stage .motto .motto-line{flex:1;min-width:12px;height:1px;position:relative;background:linear-gradient(90deg,transparent,#d5a35f,transparent)}
.celestial-stage .motto .motto-line::after{content:"";position:absolute;top:50%;left:50%;width:8px;height:8px;transform:translate(-50%,-50%) rotate(45deg);background:#fff0be;box-shadow:0 0 18px 5px rgba(255,187,83,.45)}
.celestial-stage .motto p{margin:0;position:relative;z-index:4;font:italic clamp(35px,5vw,76px)/1.16 Georgia,serif;text-align:center;white-space:nowrap;text-shadow:0 2px 15px #030b17}
.celestial-stage .motto .motto-text{display:inline;flex:none;height:auto;background:linear-gradient(105deg,#d5a55f 0%,#f4d5a1 39%,#fffdf5 50%,#f4d5a1 61%,#d5a55f 100%);background-size:260% 100%;background-position:100% 50%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:mottoShimmer 8s ease-in-out infinite}
@keyframes mottoShimmer{0%,20%{background-position:100% 50%}60%,100%{background-position:0% 50%}}
@media(max-width:1050px){#laboratory .lab-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#laboratory .lab-grid .intro{grid-column:1/-1}#laboratory .pillar{min-height:450px}.celestial-ribbons{top:60%;height:23%}}
@media(max-width:680px){#laboratory .lab-grid{display:flex;flex-direction:column}#laboratory .pillar{min-height:430px}#laboratory .pillar-art{height:220px}.celestial-ribbons{top:72%;height:14%}.celestial-stage .motto{gap:7px;min-height:145px;padding:30px 12px}.celestial-stage .motto p{white-space:normal;font-size:clamp(28px,6.2vw,44px)}}
@media(prefers-reduced-motion:reduce){.celestial-stage .motto .motto-text{animation:none!important;background:none;-webkit-text-fill-color:#f2d09b}}


/* Laboratory v2.7 — controlled lower light and directional motto flash */
.celestial-stage {
  background-position:center top;
  background-size:100% auto;
  background-color:#061322;
}
/* Restore stellar detail in lower region without another nebula image. */
.celestial-stage::after{
  content:"";position:absolute;z-index:0;inset:38% 0 0;pointer-events:none;
  background:
    radial-gradient(circle at 9% 28%,#e7c17b 0 1px,transparent 2px),
    radial-gradient(circle at 26% 47%,#a2cbe8 0 1px,transparent 2px),
    radial-gradient(circle at 64% 26%,#e9b96c 0 1px,transparent 2px),
    radial-gradient(circle at 88% 63%,#9ab9d4 0 1px,transparent 2px),
    radial-gradient(ellipse at 52% 40%,rgba(27,62,91,.26),transparent 72%);
  background-size:197px 163px,263px 201px,311px 193px,239px 171px,100% 100%;
  opacity:.6;
}
.celestial-ribbons {
  z-index:3;
  top:44%;
  height:39%;
  opacity:.98;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 19%,#000 73%,transparent 100%);
  mask-image:linear-gradient(to bottom,transparent 0%,#000 19%,#000 73%,transparent 100%);
}
/* Golden light visible INSIDE the lower portion of both cards, behind readable text. */
#laboratory .pillar::after {
  content:""!important;
  position:absolute;inset:auto -12% 0;
  height:38%;z-index:0;pointer-events:none;
  background:
    radial-gradient(ellipse at 42% 72%,rgba(246,178,77,.18),transparent 65%),
    url("assets/lab-light-ribbons-v26.svg") center 58% / 240% 145% no-repeat;
  opacity:.78;
  -webkit-mask-image:linear-gradient(to bottom,transparent,#000 38%,#000 90%);
  mask-image:linear-gradient(to bottom,transparent,#000 38%,#000 90%);
}
#laboratory .pillar p{position:relative;z-index:4;text-shadow:0 1px 9px #06101e}
.celestial-stage .motto{
  z-index:4;
  min-height:182px;
  padding:28px 3vw 46px;
  background:linear-gradient(to bottom,rgba(4,13,25,.16),rgba(4,13,25,.78) 34%,rgba(4,13,25,.72));
}
.celestial-stage .motto .motto-line{
  position:relative;
  background:linear-gradient(90deg,transparent,rgba(226,172,93,.9),transparent);
}
.celestial-stage .motto .motto-line::after{
  opacity:.55;box-shadow:0 0 13px 3px rgba(255,187,83,.3);
}
.celestial-stage .motto .motto-line:first-child::after{
  animation:mottoStart 7s ease-in-out infinite;
}
.celestial-stage .motto .motto-line:last-child::after{
  animation:mottoEnd 7s ease-in-out infinite;
}
.celestial-stage .motto p{
  position:relative;
  text-shadow:0 2px 12px rgba(2,7,16,.95);
}
.celestial-stage .motto .motto-text{
  position:relative;display:inline-block;
  background:none!important;
  -webkit-text-fill-color:#e6ba78!important;
  color:#e6ba78;
  animation:none!important;
  white-space:nowrap;
}
.celestial-stage .motto .motto-text::after{
  content:attr(data-text);
  position:absolute;inset:0;
  color:#fff9e5;
  -webkit-text-fill-color:#fff9e5;
  text-shadow:0 0 5px #fff1bc,0 0 17px #ffce78,0 0 29px rgba(255,169,62,.65);
  pointer-events:none;
  clip-path:inset(0 100% 0 0);
  animation:mottoSweep 7s linear infinite;
}
@keyframes mottoStart{
  0%,3%{opacity:.4;transform:translate(-50%,-50%) rotate(45deg) scale(.65)}
  5%,9%{opacity:1;transform:translate(-50%,-50%) rotate(45deg) scale(1.9);box-shadow:0 0 22px 9px #ffd089}
  13%,100%{opacity:.4;transform:translate(-50%,-50%) rotate(45deg) scale(.65)}
}
@keyframes mottoSweep{
  0%,8%{clip-path:inset(0 100% 0 0);opacity:0}
  9%{clip-path:inset(0 97% 0 0);opacity:1}
  25%{clip-path:inset(0 0% 0 97%);opacity:1}
  27%,100%{clip-path:inset(0 0% 0 100%);opacity:0}
}
@keyframes mottoEnd{
  0%,24%{opacity:.35;transform:translate(-50%,-50%) rotate(45deg) scale(.65)}
  27%,32%{opacity:1;transform:translate(-50%,-50%) rotate(45deg) scale(1.9);box-shadow:0 0 22px 9px #ffd089}
  36%,100%{opacity:.4;transform:translate(-50%,-50%) rotate(45deg) scale(.65)}
}
@media(max-width:1050px){.celestial-ribbons{top:52%;height:30%}}
@media(max-width:680px){
  .celestial-ribbons{top:70%;height:19%}
  .celestial-stage .motto .motto-text{white-space:normal}
  .celestial-stage .motto .motto-text::after{white-space:normal}
}
@media(prefers-reduced-motion:reduce){
  .celestial-stage .motto .motto-text::after{animation:none;display:none}
  .celestial-stage .motto .motto-line::after{animation:none!important}
}

/* v2.7.1 — brighter, larger resting endpoint stars; original timing retained */
.celestial-stage .motto .motto-line::after{
  width:12px;height:12px;
  background:#fff5d8;
  box-shadow:0 0 8px 3px rgba(255,243,200,.9),0 0 24px 9px rgba(249,177,70,.55);
}
.celestial-stage .motto .motto-line::before{
  content:"";position:absolute;left:50%;top:50%;width:33px;height:33px;
  transform:translate(-50%,-50%);pointer-events:none;
  background:linear-gradient(to right,transparent 0%,rgba(255,215,145,.75) 48%,#fff5d8 50%,rgba(255,215,145,.75) 52%,transparent 100%) center / 100% 1px no-repeat,
  linear-gradient(to bottom,transparent 0%,rgba(255,215,145,.75) 48%,#fff5d8 50%,rgba(255,215,145,.75) 52%,transparent 100%) center / 1px 100% no-repeat;
  opacity:.88;
}
@keyframes mottoStart{
  0%,3%{opacity:.9;transform:translate(-50%,-50%) rotate(45deg) scale(1)}
  5%,9%{opacity:1;transform:translate(-50%,-50%) rotate(45deg) scale(2.1);box-shadow:0 0 28px 12px #ffd089}
  13%,100%{opacity:.9;transform:translate(-50%,-50%) rotate(45deg) scale(1)}
}
@keyframes mottoEnd{
  0%,24%{opacity:.9;transform:translate(-50%,-50%) rotate(45deg) scale(1)}
  27%,32%{opacity:1;transform:translate(-50%,-50%) rotate(45deg) scale(2.1);box-shadow:0 0 28px 12px #ffd089}
  36%,100%{opacity:.9;transform:translate(-50%,-50%) rotate(45deg) scale(1)}
}

/* Laboratory v3.1: replace image containing baked-in horizontal seam. */

/* v3.2: approved one-piece cosmic background; no seams or stretched stars */
.celestial-stage{
  background:#061322 url("assets/lab-approved-cosmos-v32.webp") center center / cover no-repeat!important;
}
.celestial-stage::after{content:none!important}
.celestial-stage::before{
  background:linear-gradient(90deg,rgba(3,10,22,.34),rgba(3,10,22,.12) 48%,rgba(3,10,22,.20)),
  linear-gradient(to bottom,rgba(3,10,22,.04),rgba(3,10,22,.11) 65%,rgba(3,10,22,.26))!important;
}
.celestial-ribbons{top:48%!important;height:30%!important;opacity:.78!important}
.celestial-stage .motto{background:linear-gradient(to bottom,rgba(3,10,22,.05),rgba(3,10,22,.32))!important}
@media(max-width:700px){
 .celestial-stage{background-position:57% center!important;background-size:cover!important}
 .celestial-ribbons{top:72%!important;height:16%!important}
}


/* SELECTED WORK v1 — independent subdued cosmic backdrop, Laboratory design language */
#work.work {
  position:relative;isolation:isolate;overflow:hidden;
  background:#061322 url("assets/lab-approved-cosmos-v32.webp") center 48% / cover no-repeat;
}
#work.work::before {
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(90deg,rgba(3,11,24,.42),rgba(3,11,24,.18) 52%,rgba(3,11,24,.35)),
    linear-gradient(180deg,rgba(4,12,26,.36),rgba(4,12,26,.16) 55%,rgba(4,12,26,.55));
}
#work .work-grid {grid-template-columns:minmax(220px,.85fr) minmax(0,1.22fr) minmax(0,1.22fr);gap:18px;align-items:stretch}
#work .intro .eyebrow {color:#e9b970}
#work .intro h2 {font-family:Georgia,serif;font-weight:400;line-height:1.08;letter-spacing:-.018em}
#work .intro>p:last-child {font-size:clamp(15px,1.1vw,17px);line-height:1.65;color:#c7d3e2;max-width:34ch}
#work .project {
  border:1px solid rgba(219,164,87,.78);border-radius:11px;
  background:rgba(5,16,31,.82);
  box-shadow:0 8px 28px rgba(0,0,0,.17);
  transition:transform .35s ease,border-color .35s ease,box-shadow .35s ease;
}
#work .project:hover,#work .project:focus-within {
  transform:translateY(-7px);border-color:#f4ce91;
  box-shadow:0 15px 40px rgba(0,0,0,.29),0 0 19px rgba(227,171,91,.13);
}
#work .project h3 {font:400 clamp(23px,1.9vw,29px)/1.15 Georgia,serif;color:#f6f0e7}
#work .project p {font-size:clamp(14px,1vw,16px);line-height:1.5;color:#c7d3e2}
#work .status {color:#e7b66e;letter-spacing:.18em}
#work .beauty {min-height:620px;background:radial-gradient(ellipse at 50% 24%,#334050 0%,#0a1727 68%)}
#work .beauty img {
  display:block;position:absolute;left:0;top:0;width:100%;height:73%;
  object-fit:contain;object-position:center center;
}
#work .beauty::after {inset:38% 0 0;background:linear-gradient(to bottom,transparent 0%,rgba(4,12,25,.75) 48%,#040d1b 83%)}
#work .project-caption {padding:clamp(18px,2vw,28px)}
#work .lead,#work .rental {background:linear-gradient(150deg,rgba(22,41,65,.92),rgba(5,16,31,.97))}
#work .flow-diagram {position:relative;z-index:2}
#work .flow-diagram>div {border-color:rgba(228,177,98,.65)}
#work .rental-ui {position:relative;z-index:2}
@media(max-width:1050px){#work .work-grid{grid-template-columns:1fr 1fr}#work .work-grid .intro{grid-column:1/-1}}
@media(max-width:680px){#work .work-grid{display:flex;flex-direction:column}#work .beauty{min-height:550px}#work .beauty img{height:70%}}
@media(prefers-reduced-motion:reduce){#work .project{transition:none}}


/* SELECTED WORK v2 — implement approved 3-card composition, scoped to #work */
#work.work{background-color:#071422;background-position:center top}
#work.work::before{
  background:linear-gradient(180deg,rgba(5,14,29,.22),rgba(5,14,29,.25) 40%,rgba(5,14,29,.53) 100%);
}
#work .section-shell{padding-top:clamp(60px,6vw,90px);padding-bottom:clamp(65px,6vw,95px)}
#work .work-grid{grid-template-columns:minmax(190px,.78fr) minmax(0,1.23fr) minmax(0,1.23fr);gap:18px}
#work .work-intro{align-self:center}
#work .work-intro h2{font:400 clamp(34px,3.7vw,56px)/1.12 Georgia,serif;margin:22px 0 25px}
#work .work-intro h2 span{color:#e4b97b}
#work .work-intro>p:not(.eyebrow){font-size:clamp(15px,1.1vw,17px);line-height:1.6;color:#d0d9e6}
#work .work-explore{display:inline-flex;align-items:center;gap:12px;color:#e6b979;font-size:11px;letter-spacing:2.2px;margin-top:26px}
#work .work-explore:hover{color:#fff0d0}
#work .project{min-height:0;border:1px solid rgba(228,177,98,.85);background:rgba(6,16,31,.69);border-radius:12px}
#work .beauty{min-height:570px}
#work .beauty>img{top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:45% center;filter:brightness(.83) saturate(.75) sepia(.11)}
#work .beauty::after{inset:0;background:linear-gradient(to bottom,rgba(4,11,24,.02) 0%,rgba(4,11,24,.05) 42%,rgba(4,11,24,.83) 78%,rgba(4,11,24,.98) 100%);z-index:1}
#work .project-caption{padding:clamp(18px,2vw,28px);z-index:3}
#work .project h3{font:400 clamp(24px,2.15vw,33px)/1.12 Georgia,serif;margin:10px 0 12px}
#work .project p{font-size:clamp(14px,1.05vw,16px);line-height:1.48;max-width:34ch}
#work .project-status-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#work .try-link{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(226,176,100,.7);border-radius:20px;color:#f3ce94;padding:3px 10px;font-size:12px;line-height:1.2;letter-spacing:.03em}
#work .try-link>span{font-size:17px;text-shadow:0 0 10px #ffc66d}
#work .project-arrow{position:absolute;right:24px;bottom:24px;border:1px solid #e4b57b;color:#f3c98b;width:39px;height:39px;display:grid;place-items:center;border-radius:50%;font-size:23px}
#work .project-stack{grid-template-rows:1fr 1fr;gap:18px;min-height:570px}
#work .lead,#work .rental{background:rgba(6,16,31,.58)}
#work .project-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 30%;filter:brightness(.82) saturate(.88);z-index:0}
#work .lead::after,#work .rental::after{inset:0;background:linear-gradient(to bottom,rgba(4,11,24,.04) 0%,rgba(4,11,24,.25) 39%,rgba(4,11,24,.89) 75%,rgba(4,11,24,.96) 100%);z-index:1}
#work .lead .project-caption,#work .rental .project-caption{padding-right:72px}
#work .lead .project-art{object-position:center top}
#work .rental .project-art{object-position:center top}
@media(max-width:1050px){#work .work-grid{grid-template-columns:1fr 1fr}#work .work-intro{grid-column:1/-1}#work .work-intro h2 br{display:none}#work .work-intro h2 span{display:inline}}
@media(max-width:680px){#work .work-grid{display:flex;flex-direction:column}#work .beauty{min-height:540px}#work .project-stack{min-height:0;grid-template-rows:none}#work .project-stack .project{min-height:300px}#work .work-intro h2{font-size:38px}}
@media(prefers-reduced-motion:reduce){#work .project{transition:none}}


/* SELECTED WORK v3 — coherent background, image-first cards, legibility */
#work.work {
  background:#071523 url("assets/lab-approved-cosmos-v32.webp") center 33% / cover no-repeat;
}
#work.work::before {
  background:linear-gradient(180deg,rgba(4,12,25,.48) 0%,rgba(4,12,25,.62) 28%,rgba(4,12,25,.73) 68%,rgba(4,12,25,.88) 100%);
}
#work .section-shell{padding-top:66px;padding-bottom:70px}
#work .work-grid{grid-template-columns:minmax(190px,.8fr) minmax(0,1.13fr) minmax(0,1.13fr);gap:16px;align-items:stretch}
#work .beauty,#work .project-stack{min-height:530px}
#work .beauty>img{height:100%;width:100%;object-fit:cover;object-position:47% 36%;filter:brightness(.72) saturate(.70) sepia(.09)}
#work .beauty::after{inset:0;background:linear-gradient(180deg,rgba(3,10,22,.04) 0%,rgba(3,10,22,.06) 42%,rgba(3,10,22,.48) 66%,rgba(3,10,22,.95) 100%)}
#work .project{background:rgba(6,17,32,.46);border-color:rgba(231,179,102,.88);backdrop-filter:blur(1px)}
#work .lead,#work .rental{background:rgba(6,17,32,.34)}
#work .lead::after,#work .rental::after{inset:0;background:linear-gradient(180deg,rgba(4,11,24,.05) 0%,rgba(4,11,24,.04) 30%,rgba(4,11,24,.36) 57%,rgba(4,11,24,.91) 100%)}
#work .project-art{filter:brightness(1.12) contrast(1.12) saturate(1.1);object-position:center center;image-rendering:auto}
#work .lead .project-art,#work .rental .project-art{object-position:center center}
#work .project-stack{gap:16px}
#work .project-caption{bottom:0}
#work .lead .project-caption,#work .rental .project-caption{padding:20px 70px 21px 22px}
#work .lead h3,#work .rental h3{font-size:clamp(23px,2vw,29px)}
#work .project h3,#work .project p{position:relative;text-shadow:0 2px 9px rgba(0,0,0,.9)}
#work .beauty .project-caption{padding-bottom:26px}
#work .project-arrow{width:35px;height:35px;right:17px;bottom:17px}
#work .work-intro h2{font-size:clamp(35px,3.55vw,51px)}
@media(max-width:1050px){#work .work-grid{grid-template-columns:1fr 1fr}#work .work-intro{grid-column:1/-1}}
@media(max-width:680px){#work .work-grid{display:flex;flex-direction:column}#work .beauty{min-height:510px}#work .project-stack{min-height:0}#work .project-stack .project{min-height:260px}}


/* SELECTED WORK v4 — approved portrait and independent, sparse starfield */
#work.work{background:#071523 url("assets/work-starry-field-v4.webp") center top / cover no-repeat}
#work.work::before{background:linear-gradient(180deg,rgba(4,12,25,.04),rgba(4,12,25,.08) 40%,rgba(4,12,25,.16) 100%)}
#work .beauty{background:#081627;isolation:isolate}
#work .beauty>img{inset:0;width:100%;height:100%;object-fit:cover;object-position:45% 39%;filter:none}
#work .beauty::after{inset:0;z-index:1;background:linear-gradient(180deg,rgba(3,10,22,.00) 0%,rgba(3,10,22,.02) 43%,rgba(3,10,22,.32) 63%,rgba(3,10,22,.91) 100%)}
#work .beauty .project-caption{z-index:3;padding-bottom:25px}
#work .project{transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease}
#work .project:hover{transform:translateY(-7px);box-shadow:0 12px 36px rgba(0,0,0,.35),0 0 22px rgba(214,158,79,.11)}
@media(prefers-reduced-motion:reduce){#work .project{transition:none}#work .project:hover{transform:none}}


/* SELECTED WORK v5 — user-selected galaxy and uncropped beauty artwork */
#work.work {
  background-image:url("assets/work-galaxy-v5.webp");
  background-position:center top;
  background-size:cover;
  background-repeat:no-repeat;
}
/* Light atmospheric fade; do not erase the stars. */
#work.work::before {
  background:linear-gradient(180deg,rgba(5,14,29,.24) 0%,rgba(5,14,29,.10) 22%,rgba(5,14,29,.12) 65%,rgba(5,14,29,.40) 100%);
}
/* The portrait is a square source. Preserve the whole square, including the script at lower right. */
#work .beauty,#work .project-stack {min-height:490px}
#work .beauty {background:rgba(4,12,25,.75);overflow:hidden}
#work .beauty>img {
  position:absolute;inset:auto;top:0;left:0;
  width:100%;height:auto;aspect-ratio:1 / 1;
  object-fit:contain;object-position:center top;
  filter:none;
}
#work .beauty::after {
  background:linear-gradient(180deg,transparent 0%,transparent 61%,rgba(4,12,25,.18) 69%,rgba(4,12,25,.94) 82%,rgba(4,12,25,.99) 100%);
}
#work .beauty .project-caption {padding-bottom:22px}
@media(max-width:680px){#work .beauty{min-height:490px}#work .project-stack{min-height:0}}
