/* Original standalone portfolio styling — no external CSS, scripts, or font downloads. */
:root{color-scheme:dark;--bg:#080a0e;--surface:#121620;--surface2:#171c27;--line:#303745;--text:#f0f4fa;--muted:#afbccc;--accent:#67d8c6;--accent2:#a4b5ff;--max:1120px;--radius:18px}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.65;font-size:16px}::selection{background:#48cbb8;color:#051625}a{color:#86e9db;text-underline-offset:3px}a:hover{color:#cafdf5}a:focus-visible,button:focus-visible{outline:3px solid #a4b5ff;outline-offset:4px;border-radius:6px}.skip{position:absolute;left:12px;top:-70px;background:#fff;color:#112033;padding:10px 14px;z-index:100}.skip:focus{top:10px}.container{width:min(var(--max),calc(100% - 48px));margin:0 auto}.site-header{position:sticky;top:0;z-index:10;border-bottom:1px solid rgba(135,193,225,.17);background:rgba(9,22,37,.94);backdrop-filter:blur(12px)}.nav{min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:inline-flex;align-items:center;gap:11px;text-decoration:none;color:white;font-weight:800;letter-spacing:-.025em}.logo{width:38px;height:38px;border:1px solid #407b87;background:#11344b;border-radius:11px;display:grid;place-items:center;color:#87f3db;font-size:13px;letter-spacing:-.08em}.nav-links{display:flex;align-items:center;gap:25px;flex-wrap:wrap}.nav-links a{color:#bdd0dc;font-size:.89rem;font-weight:600;text-decoration:none}.nav-links a:hover,.nav-links a[aria-current=page]{color:var(--accent)}.nav-pill{padding:8px 14px;border:1px solid #3a7384;border-radius:9px}.hero{background:radial-gradient(ellipse 65% 60% at 80% 30%,rgba(30,99,132,.25),transparent 70%);padding:100px 0 83px}.hero-grid{display:grid;grid-template-columns:1.18fr .82fr;gap:68px;align-items:center}.eyebrow{text-transform:uppercase;color:var(--accent);font-size:.74rem;font-weight:800;letter-spacing:.15em;margin:0 0 18px}.hero h1{font-size:clamp(2.5rem,5vw,4.65rem);line-height:1.1;letter-spacing:-.065em;margin:0 0 20px;max-width:770px}.accent{color:var(--accent)}.lead{font-size:1.16rem;line-height:1.78;color:#bad0df;max-width:640px;margin:0}.actions{display:flex;gap:13px;flex-wrap:wrap;margin-top:29px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;font-weight:750;font-size:.92rem;padding:11px 17px;border:1px solid #477083;border-radius:10px;min-height:45px;color:#eaf7fc;background:rgba(65,104,129,.13)}.button:hover{background:#293646;color:#fff}.button.primary{background:var(--accent);border-color:var(--accent);color:#062336}.button.primary:hover{background:#a0ffef}.button.small{font-size:.86rem;padding:8px 12px;min-height:39px}.button.disabled{opacity:.7;cursor:not-allowed;border-style:dashed}.terminal{background:linear-gradient(135deg,#131b28,#0d131c);border:1px solid #35546a;box-shadow:0 22px 65px #010a1566;border-radius:18px;overflow:hidden;transform:rotate(1deg)}.terminal-top{display:flex;align-items:center;gap:7px;padding:15px 17px;border-bottom:1px solid #264458;color:#a9c5d0;font-size:.76rem}.dot{width:9px;height:9px;border-radius:50%;background:#6387a4}.terminal-top span:last-child{margin-left:auto;letter-spacing:.08em}.terminal-body{padding:28px 27px 31px;font-family:ui-monospace,Consolas,monospace;min-height:290px}.term-label{font-family:inherit;color:#86dbcc;font-size:.78rem;margin:0 0 22px}.line-code{margin:7px 0;color:#cbdeed;font-size:.91rem}.line-code strong{color:#7ce0c7;font-weight:500}.line-code em{color:#92b6ff;font-style:normal}.thin-rule{height:1px;background:#294c62;margin:24px 0 19px}.term-result{font-size:.83rem;color:#b8d5e3}.term-result span{color:var(--accent)}.metrics{display:flex;gap:32px;flex-wrap:wrap;padding-top:29px;margin-top:35px;border-top:1px solid #284258}.metric{display:flex;gap:12px;align-items:center}.metric strong{font-size:1.6rem;letter-spacing:-.04em}.metric span{font-size:.79rem;line-height:1.35;color:#b0c5d5}.section{padding:73px 0;scroll-margin-top:75px}.section.alt{background:#0b0e14}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:29px}.section-head .intro{max-width:700px}.section-head h2,.about-intro h1{font-size:clamp(1.9rem,3.2vw,2.75rem);line-height:1.2;letter-spacing:-.045em;margin:0 0 10px}.section-head p,.section-intro{color:var(--muted);margin:0;max-width:780px}.text-link{font-size:.91rem;font-weight:750;text-decoration:none;white-space:nowrap}.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}.card-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.project-card{display:flex;flex-direction:column;border:1px solid #333d4c;border-radius:var(--radius);background:linear-gradient(160deg,#141923,#11151d);overflow:hidden;min-width:0;transition:transform .2s,border-color .2s}.project-card:hover{transform:translateY(-3px);border-color:#44859a}.project-visual{height:177px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(145deg,#171f2b,#1e2a37);border-bottom:1px solid #313e50}.project-visual img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}.project-visual img.contain{object-fit:contain;padding:10px;background:#fff}.project-visual .visual-label{position:absolute;left:14px;bottom:12px;padding:4px 10px;background:#0c121ce8;border:1px solid #427b8c;border-radius:6px;color:#bcf5ec;font-size:.69rem;letter-spacing:.04em;text-transform:uppercase;font-weight:800}.card-body{padding:23px;display:flex;flex-direction:column;flex:1;gap:8px}.card-meta{font-size:.71rem;letter-spacing:.1em;text-transform:uppercase;font-weight:800;color:#72decf}.card-meta.ai{color:#a1b6ff}.card-body h3{font-size:1.16rem;line-height:1.4;margin:0;letter-spacing:-.02em}.card-body h3 a{color:#f0f8fc;text-decoration:none}.card-body h3 a:hover{color:var(--accent)}.card-body p{color:#b9ccda;font-size:.9rem;line-height:1.65;margin:0;flex:1}.tags{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0 4px}.tag{font-size:.7rem;line-height:1.3;border:1px solid #35566b;background:#1b2735;border-radius:6px;padding:5px 8px;color:#c1dbe8}.card-actions{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin-top:10px}.card-actions a{font-size:.86rem;font-weight:750;text-decoration:none}.card-actions .muted-link{color:#c4d4df}.callout{padding:24px 28px;border:1px solid #345a69;background:#171e29;border-radius:14px;color:#bed8e4}.callout strong{color:#e9f9ff}.about-panel{display:grid;grid-template-columns:1fr 1fr;gap:35px;padding:35px;border:1px solid #334056;border-radius:18px;background:linear-gradient(140deg,#171e2a,#11151d)}.about-panel h3{font-size:1.4rem;letter-spacing:-.03em;margin:0 0 12px}.about-panel p{color:#bfd1df;margin:0 0 16px}.clean-list{padding:0;margin:0;list-style:none}.clean-list li{padding:8px 0;border-bottom:1px solid #2c4c61;color:#c7dce8}.footer{padding:33px 0 39px;border-top:1px solid #2b3545;color:#a7bdc9;font-size:.84rem}.footer-inner{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}.footer a{color:#c9e7ee}.page-hero{padding:72px 0 42px;background:radial-gradient(ellipse at 82% 0%,#173951 0,transparent 65%)}.breadcrumbs{font-size:.81rem;color:#9bb9ca;display:flex;gap:9px;flex-wrap:wrap;margin-bottom:26px}.breadcrumbs a{color:#a9c7d8;text-decoration:none}.page-hero h1{font-size:clamp(2.15rem,4vw,3.6rem);letter-spacing:-.055em;line-height:1.1;max-width:900px;margin:10px 0 19px}.page-hero .lead{max-width:840px}.smallprint{font-size:.83rem;color:#a9c2d0}.stack{display:flex;gap:8px;flex-wrap:wrap}.reference-link{font-size:.86rem;overflow-wrap:anywhere}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:.9rem}th,td{text-align:left;padding:12px;border-bottom:1px solid #344052;vertical-align:top}th{color:#9eeadd}td{color:#c2d7e3}.wide-cta{margin-top:49px;padding:27px;background:#1b2838;border:1px solid #35617a;border-radius:17px}.wide-cta h2{margin:0 0 9px}.wide-cta p{margin:0 0 17px}.placeholder-link{color:#aebdd1;font-size:.82rem;display:block;margin-top:9px;overflow-wrap:anywhere}
@media(max-width:920px){.hero-grid{grid-template-columns:1fr;gap:36px}.terminal{max-width:630px;transform:none}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nav-links{gap:13px}}@media(max-width:650px){.container{width:min(var(--max),calc(100% - 32px))}.nav{align-items:start;flex-direction:column;justify-content:center;padding:14px 0}.nav-links{width:100%;gap:13px}.nav-links a{font-size:.8rem}.nav-pill{padding:5px 10px}.hero{padding:67px 0 60px}.section{padding:56px 0}.metrics{gap:19px}.card-grid,.card-grid.two,.about-panel{grid-template-columns:1fr}.section-head{align-items:start;flex-direction:column}.project-visual{height:190px}.about-panel{padding:22px}.page-hero{padding:50px 0 30px}.footer-inner{align-items:flex-start}.terminal-body{min-height:0}.line-code{font-size:.78rem}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.project-card{transition:none}}


/* v2 review: darker charcoal theme + original presentation pictures. */
:root{ color-scheme:dark; --bg:#080a0e; --surface:#121620; --surface2:#171c27;
  --line:#303745; --text:#f0f4fa; --muted:#afbccc; --accent:#67d8c6; --accent2:#a4b5ff; }
body{ background:#080a0e; }
.site-header{ background:rgba(9,12,18,.94);border-bottom-color:#303745; }
.hero{ background: radial-gradient(ellipse 85% 70% at 81% 9%,rgba(43,58,89,.25),transparent 75%), #080a0e; }
.section.alt{ background:#0d1016; }
.project-card{ background:linear-gradient(165deg,#161b24,#10141c);border-color:#303846; }
.project-card:hover{ border-color:#5fa4a0; }
.terminal{ background:linear-gradient(145deg,#151d2b,#0b0f17); }
.project-visual{background:#10151c;}
.project-visual.original-visual{height:204px;background:linear-gradient(150deg,#151b24,#10141a);}
.project-visual .image-link{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:17px;}
.project-visual .image-link:focus-visible{outline:3px solid var(--accent);outline-offset:-4px;}
.project-visual img.original-thumb{width:100%;height:100%;object-fit:contain;object-position:center;
  display:block;background:transparent;padding:0;}
.project-visual.original-visual .visual-label{pointer-events:none;background:rgba(9,13,19,.92);}



 


.mobile-menu summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px;}



.mobile-menu{display:none;}
:where(a,summary,button):focus-visible{ outline:3px solid var(--accent);outline-offset:3px; }
a{overflow-wrap:break-word;}
/* Tablet: 2 cards per row; vertical hero and no clipping. */
@media (max-width:920px) {
  .hero-grid{grid-template-columns:minmax(0,1fr);}
  .hero h1{max-width:740px;}
  .project-visual.original-visual{height:190px;}
}
/* Mobile: native disclosure navigation, large targets and a single card column. */
@media (max-width:720px) {
  html{scroll-padding-top:18px;}
  .site-header{position:relative;}
  .nav{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;
     padding:12px 0;flex-wrap:nowrap;}
  .brand{font-size:.91rem;white-space:nowrap;}
  .nav-links{display:none;}
  .mobile-menu{display:block;position:relative;flex:0 0 auto;z-index:50;}
  .mobile-menu summary{list-style:none;cursor:pointer;border:1px solid #435064;background:#181f2b;
    color:#e8f1fa;border-radius:9px;min-height:44px;padding:10px 13px;display:flex;
    align-items:center;justify-content:center;font-weight:750;font-size:.88rem;}
  .mobile-menu summary::-webkit-details-marker{display:none;}
  .mobile-menu[open] summary{border-color:#67d8c6;}
  .mobile-links{position:absolute;right:0;top:calc(100% + 9px);width:min(280px,calc(100vw - 32px));
    display:flex;flex-direction:column;padding:8px;border:1px solid #3a475b;border-radius:12px;
    background:#161c27;box-shadow:0 18px 45px #000a;}
  .mobile-links a{display:block;color:#e9f2fa;text-decoration:none;padding:11px 12px;
    min-height:44px;border-radius:7px;font-size:.92rem;}
  .mobile-links a:hover,.mobile-links a:focus-visible{background:#293447;}
  .hero{padding:52px 0 54px;}
  .hero h1{font-size:clamp(2rem,10vw,3.15rem);letter-spacing:-.055em;}
  .hero-grid{gap:27px;}
  .section{padding:50px 0;}
  .card-grid,.card-grid.two{grid-template-columns:minmax(0,1fr);}
  .project-visual.original-visual{height:215px;}
  .project-card{max-width:none;}
  .card-body{padding:20px;}
  .metrics{gap:18px;}
  
  .terminal{width:100%;}
  .about-panel{grid-template-columns:1fr;}
}
@media (max-width:380px) {
  .container{width:calc(100% - 26px);}
  .brand{font-size:.82rem;}
  .logo{font-size:.85rem;}
  .hero h1{font-size:clamp(1.88rem,10vw,2.4rem);}
  .lead{font-size:1rem;}
  .button{width:100%;}
  .actions{gap:9px;}
  .project-visual.original-visual{height:183px;}
  .terminal-body{padding:18px 16px;}
  .term-label,.line-code{font-size:.76rem;}
}


/* Portfolio artwork update: background illustration on every page, no structural layout changes.
   The supplied observatory image is mirrored so the large dish faces in from the left. */
body{
  background-color: #080b13;
  background-image:
    linear-gradient(100deg, rgba(6,10,18,.13) 0%, rgba(6,10,18,.17) 48%, rgba(6,10,18,.25) 100%),
    url("../images/observatory-background-left.webp");
  background-repeat: no-repeat, no-repeat;
  background-position: center center, left center;
  background-size: cover, cover;
  background-attachment: fixed, fixed;
}
/* Keep the photograph recognizable while retaining contrast for the content. */
.hero{
  background: linear-gradient(100deg, rgba(6,10,18,.26), rgba(6,10,18,.10));
}
.page-hero{
  background: linear-gradient(100deg, rgba(7,12,22,.35), rgba(7,12,22,.19));
}
.section.alt{
  background: rgba(9,13,21,.71);
}
.footer{
  background: rgba(7,11,19,.65);
}
@media(max-width:720px) {
  body{
    /* Position on the dish side, not the sky side, at portrait phone widths. */
    background-position: center center, 21% center;
  }
  .hero{
    background: linear-gradient(100deg, rgba(6,10,18,.44), rgba(6,10,18,.31));
  }
}


/* Refined sunset palette — restrained copper highlights over midnight blue.
   Shared across Home/About; existing structure and breakpoints are unchanged. */
:root {
  --bg: #0a101b;
  --surface: #141b28;
  --surface2: #1c2533;
  --line: #514654;
  --text: #f4f1ed;
  --muted: #bfc5cf;
  --accent: #deb798;
  --accent2: #e5a48c;
}
::selection { background: #a95b3f; color: #fff7ed; }
a { color: #fac999; }
a:hover { color: #ffdfbb; }
a:focus-visible, button:focus-visible, :where(a,summary,button):focus-visible {
  outline-color: #ffc894;
}
.site-header {
  background: rgba(11,17,29,.93);
  border-bottom-color: rgba(239,183,129,.24);
}
.brand { color: #fff5e9; }
.logo {
  border-color: #9a705d;
  background: #302639;
  color: #ffd1a3;
}
.nav-links a { color: #d3ccd0; }
.nav-links a:hover, .nav-links a[aria-current=page] { color: var(--accent); }
.nav-pill { border-color: #735848; }
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(105deg,rgba(9,14,25,.22) 0%,rgba(13,14,23,.13) 46%,rgba(8,12,22,.27) 100%),
    url("../images/observatory-background-left.webp");
}
.hero {
  background: linear-gradient(105deg,rgba(8,14,24,.55),rgba(11,16,27,.30) 54%,rgba(10,14,23,.22));
}
.page-hero {
  background: linear-gradient(105deg,rgba(10,15,25,.62),rgba(12,18,30,.35));
}
.eyebrow, .accent { color: var(--accent); }
.lead { color: #d0d3da; }
.button {
  border-color: #97715e;
  background: rgba(55,42,46,.50);
  color: #ffe5cb;
}
.button:hover { background: #40303a; color: #fff6ec; }
.button.primary {
  background: #d6ab8c;
  border-color: #d6ab8c;
  color: #211720;
}
.button.primary:hover { background: #e4bda0; color: #20151c; }
.terminal {
  background: linear-gradient(145deg,rgba(26,30,44,.97),rgba(14,22,35,.98));
  border-color: #655263;
  box-shadow: 0 22px 65px #050b17a3;
}
.terminal-top { border-bottom-color: #604d58; color: #cbbdbd; }
.dot { background: #ae7a6b; }
.term-label { color: #e9b595; }
.line-code { color: #d9d9e0; }
.line-code strong { color: #f1bb8c; }
.line-code em { color: #b1c4de; }
.thin-rule { background: #5d4853; }
.term-result { color: #d2c9ce; }
.term-result span { color: #ffd09e; }
.section.alt { background: rgba(11,17,28,.80); }
.section-head p, .section-intro { color: #c6c4ca; }
.project-card {
  background: linear-gradient(160deg,rgba(26,33,47,.96),rgba(17,23,35,.96));
  border-color: #5d5057;
}
.project-card:hover { border-color: #d6a078; }
.project-visual, .project-visual.original-visual {
  background: linear-gradient(145deg,#202938,#141d2b);
  border-bottom-color: #53434d;
}
.project-visual.original-visual .visual-label, .project-visual .visual-label {
  background: rgba(23,20,28,.94);
  border-color: #91705e;
  color: #ffcd9d;
}
.card-meta { color: #efba8d; }
.card-body h3 a { color: #f7f2ec; }
.card-body h3 a:hover { color: #ffca95; }
.card-body p { color: #c6c8d1; }
.tag {
  border-color: #665665;
  background: #292735;
  color: #f0d4c0;
}
.card-actions a, .text-link { color: #fac999; }
.card-actions a:hover, .text-link:hover { color: #ffe0bb; }
.about-panel {
  background: linear-gradient(140deg,rgba(30,35,49,.94),rgba(18,25,38,.95));
  border-color: #65525a;
}
.about-panel p, .clean-list li { color: #cbd0d9; }
.clean-list li { border-bottom-color: #5a4752; }
.footer {
  background: rgba(9,15,26,.83);
  border-top-color: #5c4854;
  color: #c5c5cd;
}
.footer a { color: #f1d1b6; }
.breadcrumbs, .smallprint { color: #c6c4ca; }
.breadcrumbs a { color: #ffd0a5; }
.mobile-menu summary {
  border-color: #806354;
  background: #292333;
  color: #ffead9;
}
.mobile-menu[open] summary { border-color: #deb798; }
.mobile-links {
  border-color: #6c5560;
  background: #1c2030;
}
.mobile-links a { color: #f3e6df; }
.mobile-links a:hover,.mobile-links a:focus-visible { background: #40303e; }
@media(max-width:720px) {
  .hero { background: linear-gradient(100deg,rgba(8,14,24,.64),rgba(8,14,24,.47)); }
}

/* Mobile observatory visibility: reserve a decorative image band above the hero
   text. On narrow viewports a cover-sized BODY background would be scaled to
   the entire scroll height, cropping the radio dish out of the visible screen. */
@media (max-width:720px) {
  body {
    /* The hero owns the mobile artwork; avoid a second, oversized body image. */
    background-color:#0a101b;
    background-image:none;
    background-attachment:scroll;
  }
  .hero,
  .page-hero {
    position:relative;
    isolation:isolate;
    padding-top:255px;
    background:transparent;
  }
  .hero::before,
  .page-hero::before {
    content:"";
    position:absolute;
    z-index:0;
    pointer-events:none;
    inset:0 0 auto;
    height:238px;
    background-image:
      linear-gradient(180deg, rgba(9,14,24,.05) 0%, rgba(9,14,24,.02) 65%, #070a12 100%),
      url("../images/observatory-background-left.webp");
    background-repeat:no-repeat;
    background-size:cover,auto 490px;
    background-position:center center, left -4px top -91px;
    filter: brightness(1.55);
  }
  .hero > .container,
  .page-hero > .container {
    position:relative;
    z-index:1;
  }
}
@media (max-width:380px) {
  .hero,.page-hero { padding-top:226px; }
  .hero::before,.page-hero::before {
    height:210px;
    background-size:cover,auto 455px;
    background-position:center center,left -5px top -84px;
  }
}
