/* Korbelious: shared styles for index.html, flamingo-flyer.html, idea-validator.html and personal-website.html.
   Starfield tile lives in images/starfield.svg. Colors: cream #f8f4a9 = links and buttons only; light blue #a9d5f8 = subheadings and bullet lead-ins. */

/* ===== Base, header, hero, home-page saucers, footer ===== */
/* Layout: white header strip (logo left, nav) over a black hero tiled with stars; headline top-left in two lines, three saucers staggered across the left two-thirds as in the artboard, small lit saucer in the bottom-right corner. */
:root{
  --paper:#ffffff; --ink:#231f20; --space:#000000; --cream:#f8f4a9; --saucer:#ffffff;
  --lit-w:clamp(76px,7.2vw,139px);--lit-m:clamp(1.25rem,2.8vw,3.4rem);--lit-r:3.8vw;--pad-b:clamp(6rem,7vw,9rem);
  --logo-m:clamp(1rem,1.45vw,1.75rem);
  --edge-x:max(0px,calc(4.8vw - 16px));
  --display:"Blackcurrant","Rammetto One","Arial Black",sans-serif;
  --body:"Space Grotesk","Helvetica Neue",Arial,sans-serif;
  color-scheme:light;
}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--space) url(images/starfield.svg) 50% 0 / 1600px auto repeat;color:var(--saucer);font-family:var(--body);font-weight:500}
.gutter{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
header{background:var(--paper);color:var(--ink)}
header .in{max-width:1920px;margin:0 auto;display:flex;align-items:flex-end;flex-wrap:wrap;padding:var(--logo-m) 0 calc(var(--logo-m) - 2px) 30px}
.logo{display:block;width:clamp(84px,8.7vw,166px);height:auto}
header .logo-link{display:block;line-height:0;border-radius:10px}
header a:focus-visible{outline:3px solid var(--ink);outline-offset:4px;border-radius:10px}
nav{margin-left:clamp(2rem,19.8vw,25rem)}
nav ul{display:flex;gap:clamp(1.5rem,9vw,11rem);list-style:none;margin:0;padding:0}
nav a{font-family:var(--display);font-size:clamp(.85rem,1.05vw,1.25rem);color:var(--ink);text-decoration:none;padding-block:.3rem;border-bottom:2px solid transparent}
nav a:hover{border-color:var(--ink)}
nav>ul>li>a[aria-current="page"],.menu-btn[aria-current="true"]{border-color:var(--ink)}
/* star tile repeats in both directions, so the field runs the full length of the page at any height */
.hero{position:relative;overflow-x:clip;flex:1 0 auto;display:flex;flex-direction:column}
.hero .in{width:100%;flex:1;display:flex;flex-direction:column;max-width:1920px;margin:0 auto;position:relative;padding:clamp(2rem,3.65vw,4.5rem) 0 var(--pad-b) var(--edge-x)}
h1{font-family:var(--display);font-weight:400;font-size:1em;line-height:1.2;margin:0;white-space:nowrap}
.sub{font-size:.6em;line-height:2;margin:0;font-weight:500;color:#a9d5f8;white-space:nowrap}
.fleet{list-style:none;padding:0;margin:clamp(2.5rem,9.06vw,11rem) 0 0 calc(7.45vw - 4.8vw);width:61.3%;position:relative;aspect-ratio:1177/300;flex:none;margin-bottom:max(0px,calc(var(--pad-b) - var(--lit-m) - var(--lit-w)*.387))}
.fleet li{position:absolute;width:26.85%}
.fleet .flamingo{left:-.68%;top:24%}
.fleet .validator{left:39.25%;top:-2.8%}
.fleet .website{left:73.8%;top:27.6%}
.fleet a{display:flex;flex-direction:column;align-items:center;gap:clamp(.6rem,1.3vw,1.5rem);color:var(--cream);text-decoration:none;font-size:clamp(.95rem,1.1vw,1.3rem)}
.fleet svg{width:100%;height:auto;overflow:visible;transition:transform .35s ease}
.ghost{fill:#a9d5f8;stroke:#a9d5f8;stroke-width:4;opacity:.3;transition:opacity .3s}
.rim{fill:none;stroke:var(--cream);stroke-width:4;opacity:0;transition:opacity .3s}
.shot{opacity:0;transition:opacity .3s}
.fleet a:hover .ghost,.fleet a:focus-visible .ghost{opacity:0}
.fleet a:hover .shot,.fleet a:focus-visible .shot{opacity:1}
.fleet a:hover .rim,.fleet a:focus-visible .rim{opacity:.8}
.fleet a:hover svg,.fleet a:focus-visible svg{transform:translateY(-6px) scale(1.03)}
.fleet a:focus-visible{outline:2px solid var(--cream);outline-offset:8px;border-radius:6px}
.fleet a span{white-space:nowrap;border-bottom:1px solid transparent}.fleet a:hover span{border-color:var(--cream)}
.lit-wrap{position:sticky;bottom:var(--lit-m);z-index:2;pointer-events:none;display:flex;justify-content:flex-end;margin:auto var(--lit-r) calc(var(--lit-m) - var(--pad-b)) 0}
.lit{flex:none;width:var(--lit-w);height:auto;overflow:visible}
footer{flex:none;display:flex;align-items:center;justify-content:center;min-height:clamp(3.25rem,4.2vw,5rem);font-size:clamp(.8rem,.85vw,1rem);letter-spacing:.02em;padding-block:.75rem}
footer.light{background:var(--paper);color:var(--ink)}
footer.dark{color:rgba(255,255,255,.72)}
footer.black{position:relative;border-top:1px solid rgba(248,244,169,.16);background:#000;color:rgba(255,255,255,.8);gap:8px}
footer.light,footer.dark{gap:.75rem}
.saturn{width:clamp(40px,3.1vw,60px);height:auto;flex:none}
@media (max-width:760px){
  :root{--edge-x:0px}
  .headline{font-size:min(5.5vw,2.4rem)}
  header .in{align-items:center;justify-content:space-between;padding:var(--logo-m) 0 calc(var(--logo-m) - 2px)}
  nav{margin-left:0}
  nav ul{gap:1.25rem}
  body{background-size:1100px auto}
  .hero .in{padding-block:2rem var(--pad-b)}
  .fleet{width:100%;margin:2.5rem 0 max(0px,calc(var(--pad-b) - var(--lit-m) - var(--lit-w)*.387));aspect-ratio:auto;display:grid;gap:2.25rem}
  .fleet li{position:static;width:min(78%,340px);margin-inline:auto}
  :root{--lit-w:84px;--lit-m:1.5rem;--lit-r:1rem;--pad-b:7.5rem}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
.headline{font-size:clamp(1.9rem,2.5vw,3rem);width:fit-content;max-width:100%;padding:.4em .65em;margin:-.4em 0 -.4em -.65em;position:relative}
.headline{background:rgba(0,0,0,.62);border-radius:.6em;box-shadow:0 0 .5em .45em rgba(0,0,0,.62)}
@media (max-width:760px){.headline{font-size:min(5.5vw,2.4rem)}}

/* ===== Project pages (flamingo-flyer, idea-validator, personal-website) ===== */
.copy strong{color:#a9d5f8;font-weight:700}
:root{padding-block:env(safe-area-inset-top,0px) env(safe-area-inset-bottom,0px)}
.sub{white-space:normal;max-width:36ch}
.headline h1{white-space:normal}
.back{position:relative;z-index:1;align-self:flex-start;color:var(--cream);text-decoration:none;font-size:clamp(.9rem,1vw,1.05rem);margin-bottom:1.6rem;padding:.2rem 0;border-bottom:1px solid transparent}
.back:hover,.back:focus-visible{border-color:var(--cream);outline:none}
.project{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(1.5rem,4vw,5rem);align-items:center;margin:clamp(2rem,5vw,5rem) var(--edge-x) max(0px,calc(var(--pad-b) - var(--lit-m) - var(--lit-w)*.387)) clamp(0rem,2vw,3rem);flex:none}
.emblem{width:100%;max-width:640px;height:auto;overflow:visible;justify-self:center;animation:drift 7s ease-in-out infinite}
.emblem .rim{opacity:.8;fill:none;stroke:var(--cream);stroke-width:4}
.emblem .shot{opacity:.85}
@keyframes drift{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
.copy{background:rgba(0,0,0,.62);border-radius:1rem;box-shadow:0 0 .8rem .6rem rgba(0,0,0,.62);padding:clamp(1rem,2vw,1.75rem);max-width:60ch}
.copy p{margin:0;font-weight:500;line-height:1.6;font-size:clamp(1rem,1.15vw,1.25rem);color:rgba(255,255,255,.9)}
.copy ul{margin:1.25rem 0 0;padding:0;list-style:none;display:grid;gap:.6rem}
.copy li{position:relative;padding-left:1.4rem;color:rgba(255,255,255,.85);line-height:1.45;font-size:clamp(.95rem,1.05vw,1.15rem)}
.copy li::before{content:"";position:absolute;left:0;top:.55em;width:.55em;height:.55em;background:var(--cream);clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%)}
.copy .note{margin-top:1.25rem;font-size:.9rem;color:rgba(255,255,255,.65)}
.btn{display:inline-block;margin-top:1.5rem;background:var(--cream);color:#000;font-weight:700;text-decoration:none;border-radius:999px;padding:.8em 1.5em;font-size:1rem;transition:background .2s,transform .2s}
.btn:hover,.btn:focus-visible{background:#fff;transform:translateY(-2px);outline:none}
.btn:focus-visible{box-shadow:0 0 0 3px #000,0 0 0 5px var(--cream)}
.ico{width:1.3em;height:1.3em;fill:currentColor;vertical-align:-.32em;flex:none}.back .ico{margin-right:.4em}.btn .ico{margin-left:.4em}.btn.soon{background:transparent;color:var(--cream);border:1.5px dashed rgba(248,244,169,.7);cursor:default}
.btn.soon:hover{transform:none;background:transparent}
@media (max-width:760px){.project{grid-template-columns:1fr;margin-left:0;margin-right:0}.emblem{max-width:420px}}
@media (prefers-reduced-motion:reduce){.emblem{animation:none}}

/* ===== Saucer and Saturn artwork (Illustrator export class names) ===== */
.cls-1, .cls-2, .cls-3, .cls-4, .cls-5, .cls-6, .cls-7, .cls-8, .cls-9 { fill: none; }
.cls-10 { fill: #f4eb91; }
.cls-11 { font-family: Blackcurrant-Black, Blackcurrant; font-size: 20px; font-weight: 800; }
.cls-2 { stroke: #ededcf; }
.cls-2, .cls-3, .cls-4, .cls-12, .cls-5, .cls-6, .cls-7, .cls-8, .cls-9, .cls-13, .cls-14, .cls-15, .cls-16, .cls-17 { stroke-miterlimit: 10; }
.cls-2, .cls-9 { stroke-width: .44px; }
.cls-18 { fill: #231f20; }
.cls-3 { stroke-width: 3.68px; }
.cls-3, .cls-4, .cls-12, .cls-5, .cls-13, .cls-15, .cls-16 { stroke: #333; }
.cls-4 { stroke-width: 3.72px; }
.cls-12 { fill: url(#linear-gradient); }
.cls-12, .cls-15 { stroke-width: 1.13px; }
.cls-5, .cls-13, .cls-16 { stroke-width: 1.12px; }
.cls-19 { fill: #f0ec9d; }
.cls-20 { font-family: SpaceGrotesk-Bold, 'Space Grotesk'; font-size: 48px; font-variation-settings: 'wght' 700; font-weight: 700; }
.cls-20, .cls-21, .cls-17 { fill: #fff; }
.cls-6 { stroke: #f8f4a9; stroke-width: 4px; }
.cls-22 { clip-path: url(#clippath-1); }
.cls-23 { clip-path: url(#clippath-3); }
.cls-24 { clip-path: url(#clippath-2); }
.cls-7 { stroke-width: .6px; }
.cls-7, .cls-8 { stroke: #efebce; }
.cls-8 { stroke-width: .52px; }
.cls-9 { stroke: #fff; }
.cls-25, .cls-14, .cls-16, .cls-26 { fill: #f8f4a9; }
.cls-27 { opacity: .8; }
.cls-28 { opacity: .82; }
.cls-13 { fill: #6d6d6d; }
.cls-14, .cls-17 { stroke: #63abe5; stroke-width: .5px; }
.cls-29 { letter-spacing: -.02em; }
.cls-30 { letter-spacing: -.02em; }
.cls-31 { letter-spacing: -.02em; }
.cls-32 { letter-spacing: -.01em; }
.cls-33 { letter-spacing: -.01em; }
.cls-34 { letter-spacing: -.04em; }
.cls-35 { letter-spacing: -.03em; }
.cls-36 { letter-spacing: -.03em; }
.cls-37 { letter-spacing: -.03em; }
.cls-15 { fill: #9e9e9e; }
.cls-38 { letter-spacing: 0em; }
.cls-39 { letter-spacing: -.01em; }
.cls-40 { letter-spacing: 0em; }
.cls-41 { letter-spacing: 0em; }
.cls-42 { letter-spacing: 0em; }
.cls-43 { clip-path: url(#clippath); }
.cls-26 { font-family: SpaceGrotesk-Medium, 'Space Grotesk'; font-size: 21px; font-variation-settings: 'wght' 500; font-weight: 500; }

/* ===== Easter egg: the footer saucer says "Whee!" while the window is resized or moved (see script.js) ===== */
.whee{position:absolute;right:calc(var(--lit-w)*.5 - 1rem - 6px);bottom:calc(100% + 2px);padding:.45em .8em;background:#fff;color:var(--ink);font:700 clamp(.8rem,.95vw,1.05rem)/1 var(--body);white-space:nowrap;border-radius:1em;opacity:0;transform:scale(.5) translateY(6px);transform-origin:calc(100% - 1rem) 100%;transition:opacity .15s ease,transform .22s cubic-bezier(.34,1.56,.64,1);pointer-events:none}
.whee::after{content:"";position:absolute;top:100%;right:1rem;border:6px solid transparent;border-top:8px solid #fff;border-bottom:0}
.whee.on{opacity:1;transform:none}

/* ===== Projects drop-down in the main nav ===== */
header{position:relative;z-index:5}
.has-menu{position:relative}
.menu-btn{display:inline-flex;align-items:center;gap:.45em;font-family:var(--display);font-size:clamp(.85rem,1.05vw,1.25rem);line-height:inherit;color:var(--ink);background:none;border:0;border-bottom:2px solid transparent;padding:.3rem 0;margin:-.3rem 0 calc(-.3rem - 2px);cursor:pointer}
.menu-btn::after{content:"";border:.3em solid transparent;border-top:.38em solid currentColor;border-bottom:0;transition:transform .2s}
.menu-btn:hover,.menu-btn[aria-expanded="true"]{border-color:var(--ink)}
.menu-btn[aria-expanded="true"]::after{transform:rotate(180deg)}
.menu-btn:focus-visible{outline:3px solid var(--ink);outline-offset:4px;border-radius:10px}
.menu{display:none;position:absolute;top:calc(100% + .5rem);left:-.9rem;z-index:10;min-width:max-content;margin:0;padding:.4rem;list-style:none;flex-direction:column;gap:0;background:var(--paper);border:1px solid rgba(35,31,32,.14);border-radius:10px;box-shadow:0 10px 28px rgba(0,0,0,.28)}
.menu::before{content:"";position:absolute;left:0;right:0;top:-.6rem;height:.6rem}
.menu a{display:block;white-space:nowrap;padding:.5rem .9rem;border-bottom:0;border-radius:6px;font-family:var(--body);font-weight:500;font-size:clamp(.9rem,1vw,1.1rem)}
.menu a:hover{background:rgba(35,31,32,.08)}
.menu a[aria-current="page"]{background:rgba(35,31,32,.08)}
.menu-btn[aria-expanded="true"]+.menu{display:flex}
@media (hover:hover){.has-menu:hover>.menu{display:flex}.has-menu:hover>.menu-btn{border-color:var(--ink)}.has-menu:hover>.menu-btn::after{transform:rotate(180deg)}}
@media (max-width:760px){nav ul{gap:1rem}.menu{left:-.5rem}}

/* ===== Contact page (orion on the left, form on the right) ===== */
.emblem.orion{max-width:520px}
.project.contact{align-items:start} /* keeps Orion in place when the form grows (e.g. the "message sent" note) */
.contact-form-wrap{width:100%}
.contact-form{margin-top:1.25rem;display:grid;gap:1rem}
.contact-form .field{display:grid;gap:.4rem}
.contact-form label{font-weight:700;color:#a9d5f8;font-size:clamp(.9rem,1vw,1.05rem)}
.contact-form input,.contact-form textarea{width:100%;font:inherit;font-size:1rem;color:#fff;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.35);border-radius:.6rem;padding:.7em .9em}
.contact-form textarea{resize:vertical;min-height:8rem}
.contact-form input:focus-visible,.contact-form textarea:focus-visible{outline:2px solid var(--cream);outline-offset:2px;border-color:transparent}
.contact-form .btn{justify-self:start;margin-top:.25rem;border:0;cursor:pointer;font-family:inherit}
.contact-form .btn:disabled{opacity:.6;cursor:default;transform:none}
.contact-form .hint{font-size:.8rem;font-weight:400;color:rgba(255,255,255,.65)}
.contact-status{margin:0;font-size:1rem;color:#fff}
.contact-status.is-success strong{color:#a9d5f8}
.contact-status.is-error{color:#ffb3a7}
.contact-honeypot{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* ===== About page ===== */
.project.about{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);margin-bottom:0}
/* Lift-off scene: the figure stands on the footer line (image bottom sits flush on the footer) */
.project.about picture{display:contents}
.project.about picture source{display:none}
.emblem.lift{max-width:520px;animation:none;align-self:end;margin-bottom:calc(-1*(var(--lit-m) + var(--lit-w)*.387))}
@media (max-width:760px){.project.about{grid-template-columns:1fr}.emblem.lift{justify-self:center;max-width:100%;margin-top:2rem}}
.about-copy{max-width:68ch}
.textlink{color:var(--cream);text-decoration:underline;text-underline-offset:.15em}
.textlink:hover,.textlink:focus-visible{color:#fff;text-decoration-thickness:2px;outline:none}
.about-copy h2{margin:1.5rem 0 .35rem;font-family:var(--body);font-weight:700;font-size:clamp(1.05rem,1.3vw,1.4rem);color:#a9d5f8}
.about-copy h2:first-child{margin-top:0}
.about-copy p+h2{margin-top:1.5rem}

/* ===== Multi-paragraph project copy ===== */
.copy p+p{margin-top:1.4rem}
.copy p.lead-in{margin-top:1.6rem}
.copy p.lead-in+ul{margin-top:.6rem}
.copy .note{margin-top:1.25rem}

/* ===== Project pages: pin the saucer to the same top on every page; text stays centered beside it ===== */
.project:not(.contact):not(.about)>.emblem{align-self:start}
