/* Independent architecture study. The source homepage and shared styles stay intact. */
:root { --study-copy: #b8bcc5; }
body.light { --study-copy: #50555c; }
html { scroll-padding-top:110px; }
.hero .portrait {
  top:88px;
  right:max(28px,calc((100vw - 1440px) / 2));
  width:min(32vw,384px);
  height:auto;
  aspect-ratio:.86;
  padding:8px 10px 0;
  overflow:hidden;
  isolation:isolate;
  border:1px solid rgba(255,255,255,.24);
  border-radius:18px;
  background:
    radial-gradient(100% 72% at 84% 8%,rgba(255,255,255,.32) 0%,rgba(255,255,255,0) 64%),
    radial-gradient(90% 70% at 8% 96%,rgba(91,154,211,.1) 0%,rgba(91,154,211,0) 70%),
    linear-gradient(145deg,rgba(137,155,174,.22),rgba(24,36,52,.25) 52%,rgba(15,51,57,.24));
  box-shadow:
    0 30px 90px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.2),
    inset 0 -1px 0 rgba(255,255,255,.07);
  -webkit-backdrop-filter:blur(26px) saturate(110%) brightness(.72);
  backdrop-filter:blur(26px) saturate(110%) brightness(.72);
}
.hero .portrait::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  border-radius:inherit;
  background:linear-gradient(120deg,rgba(255,255,255,.1),transparent 42%,rgba(110,201,196,.04));
  pointer-events:none;
}
.hero .portrait::after {
  content:"";
  position:absolute;
  z-index:2;
  right:0;
  bottom:0;
  left:0;
  height:19%;
  border-radius:inherit;
  background:linear-gradient(to bottom,transparent 0%,rgba(10,22,33,.46) 58%,rgba(10,27,35,.92) 100%);
  pointer-events:none;
}
.hero .portrait img {
  position:relative !important;
  z-index:1;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  object-fit:contain !important;
  object-position:center bottom !important;
  transform:scale(1.18) !important;
  transform-origin:center bottom !important;
  filter:drop-shadow(0 22px 30px rgba(0,0,0,.24));
  -webkit-mask-image:none;
  mask-image:none;
}
.hero .hero-intro {
  left:max(76px,calc((100vw - 1200px) / 2));
  width:min(58vw,820px);
  max-width:820px;
}
.hero .hero-intro .impeccable-hero-copy {
  max-width:44ch;
  font-weight:430;
  line-height:1.4;
  letter-spacing:-.025em;
}
.hero .hero-intro .impeccable-hero-copy span { color:var(--muted); font-weight:400; }
body.light .hero .portrait {
  border-color:rgba(32,46,68,.15);
  background:
    radial-gradient(100% 72% at 84% 8%,rgba(81,174,218,.18) 0%,rgba(81,174,218,0) 62%),
    radial-gradient(90% 70% at 8% 96%,rgba(78,113,214,.12) 0%,rgba(78,113,214,0) 68%),
    linear-gradient(145deg,rgba(255,255,255,.94),rgba(241,246,250,.76) 50%,rgba(226,241,239,.68));
  box-shadow:0 30px 80px rgba(49,62,78,.18),inset 0 1px 0 rgba(255,255,255,.86);
  -webkit-backdrop-filter:blur(24px) saturate(120%) brightness(1);
  backdrop-filter:blur(24px) saturate(120%) brightness(1);
}
body.light .hero .portrait::after {
  background:linear-gradient(to bottom,transparent 0%,rgba(232,239,243,.52) 58%,rgba(222,237,236,.94) 100%);
}
.study-skip { position:fixed; top:-60px; left:20px; z-index:100; padding:12px; background:var(--ink); color:var(--bg); }
.study-skip:focus { top:10px; }
.page > nav .nav-links { gap:22px; }
.page > nav .nav-links a { padding:12px 0; }
.nav-links a[aria-current] { color:#fff; box-shadow:0 1px #d9ff00; }
a:focus-visible,button:focus-visible { outline:2px solid var(--accent); outline-offset:6px; }
.study-context { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:30px 0; border-top:1px solid var(--line); }
.study-context p { margin:0; color:var(--study-copy); font-size:14px; line-height:1.7; }
.study-context strong { display:block; color:var(--ink); font-weight:500; }
.study-actions { display:flex; flex-wrap:wrap; gap:12px; }
.study-actions a { padding:13px 18px; border:1px solid var(--line); font-size:12px; white-space:nowrap; }
.study-actions a:first-child { color:var(--bg); background:var(--ink); border-color:var(--ink); }
.study-section { padding:88px 0; border-top:1px solid var(--line); }
.study-heading { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:end; margin-bottom:38px; }
.study-kicker { margin:0 0 18px; color:var(--muted); font-size:10px; line-height:1.5; letter-spacing:.15em; text-transform:uppercase; }
.study-heading h2,.study-contact h2 { margin:0; font-weight:500; font-size:clamp(36px,4.4vw,58px); line-height:1.03; letter-spacing:-.055em; }
.study-heading > p { max-width:44ch; margin:0 0 3px; color:var(--study-copy); font-size:15px; line-height:1.75; }
.study-pillars { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; }
.study-pillar { display:flex; flex-direction:column; align-items:start; border-top:1px solid var(--soft); padding:24px 0 0; }
.study-number { color:var(--accent); font-size:12px; letter-spacing:.08em; }
.study-pillar h3 { margin:24px 0 14px; font-size:clamp(23px,2.4vw,31px); font-weight:500; letter-spacing:-.035em; line-height:1.1; }
.study-pillar p { color:var(--study-copy); font-size:14px; line-height:1.8; margin:0 0 25px; }
.study-pillar a { margin-top:auto; padding:12px 0; border-bottom:1px solid var(--line); font-size:12px; }
#work.study-section { padding-top:88px; }
.projects { gap:44px 32px; }
.project { overflow:hidden; border-radius:12px; }
.project-media { border-radius:inherit; }
.project-copy {
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:stretch;
  padding:clamp(18px,2.2vw,28px);
  background:linear-gradient(180deg,rgba(4,7,18,0) 10%,rgba(4,7,18,.18) 42%,rgba(4,7,18,.9) 100%);
  border-radius:inherit;
}
.project-copy h3 { font-size:22px; line-height:1.2; letter-spacing:-.035em; }
.project-copy small { display:block; margin-top:7px; font-size:11px; letter-spacing:.04em; color:rgba(255,255,255,.72); }
.study-project-summary { margin:13px 0 0; max-width:46ch; font-size:13px; line-height:1.55; color:rgba(255,255,255,.86); }
.study-project-footer { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px; margin-top:17px; padding-top:12px; border-top:1px solid rgba(255,255,255,.26); font-size:10px; line-height:1.5; letter-spacing:.025em; color:rgba(255,255,255,.65); }
.study-project-footer b { color:#fff; font-weight:600; }
.study-project-footer b::after { content:""; display:inline-block; width:18px; height:1px; margin:0 0 3px 7px; background:currentColor; transition:width .25s ease; }
.project:hover .study-project-footer b::after,.project:focus-visible .study-project-footer b::after { width:28px; }
.study-timeline { display:grid; grid-template-columns:1fr 2fr; gap:60px; }
.study-bio { color:var(--study-copy); font-size:16px; line-height:1.8; margin:0; }
.study-career-row { display:grid; grid-template-columns:130px 1fr; gap:24px; padding:26px 0; border-top:1px solid var(--line); }
.study-career-row:first-child { padding-top:0; border-top:0; }
.study-career-row time { color:var(--muted); font-size:12px; line-height:1.8; }
.study-career-row h3,.study-school h3 { font-size:24px; line-height:1.2; font-weight:500; letter-spacing:-.035em; margin:0 0 8px; }
.study-career-row .study-company { display:flex; align-items:center; min-height:32px; margin:0 0 10px; }
.study-company-logo { display:block; max-width:100%; object-fit:contain; object-position:left center; filter:invert(1); }
.study-company-logo--bosch { width:142px; height:32px; }
.study-company-logo--asus { width:108px; height:28px; }
.study-company-logo--phoenix { width:130px; height:27px; }
body.light .study-company-logo { filter:none; }
.study-role { font-size:13px; color:var(--ink); line-height:1.7; }
.study-career-row p,.study-school p { font-size:14px; line-height:1.75; color:var(--study-copy); margin:12px 0 0; }
.study-cv { display:inline-block; font-size:13px; border-bottom:1px solid var(--soft); margin-top:25px; padding-bottom:8px; }
.study-schools { display:grid; grid-template-columns:1fr 1fr; gap:40px; }
.study-school { padding-top:25px; border-top:1px solid var(--line); }
.study-school .study-kicker { margin-bottom:22px; }
.study-tools { display:flex; align-items:baseline; gap:30px; margin-top:42px; padding-top:24px; border-top:1px solid var(--line); }
.study-tools p { margin:0; font-size:12px; color:var(--study-copy); line-height:1.8; }
.study-tools .study-kicker { white-space:nowrap; }
.study-contact { display:flex; align-items:end; justify-content:space-between; gap:35px; }
.study-contact p:not(.study-kicker) { margin:20px 0 0; color:var(--study-copy); font-size:15px; line-height:1.7; }
footer { margin-top:0; }
@media(min-width:721px) and (max-width:1100px) {
 .hero .portrait { top:104px; right:18px; width:304px; height:auto; aspect-ratio:.86; padding:7px 9px 0; border-radius:16px; }
 .hero .hero-intro { left:68px; max-width:560px; width:62vw; }
 .study-timeline { gap:30px; grid-template-columns:1fr 1.7fr; }
 .study-career-row { grid-template-columns:105px 1fr; gap:15px; }
}
@media(max-width:900px) {
 body { padding-top:104px; }
 .page > nav { height:104px; grid-template-columns:1fr auto; grid-template-rows:58px 46px; }
 .page > nav .nav-links { display:flex; grid-row:2; grid-column:1 / -1; gap:24px; overflow-x:auto; scrollbar-width:none; width:100%; white-space:nowrap; align-self:stretch; align-items:center; }
 .page > nav .nav-actions { grid-row:1; grid-column:2; }
 .study-pillars { gap:22px; }
 .study-pillar h3 { font-size:25px; }
}
@media(max-width:720px) {
 :root { --page-gutter:22px; }
 .hero { min-height:700px; }
 .hero .portrait { top:50px; right:16px; width:216px; height:auto; aspect-ratio:.86; padding:6px 7px 0; border-radius:14px; }
 .hero .portrait img { width:100% !important; transform:scale(1.18) !important; }
 .hero .hero-intro { left:28px; right:22px; width:auto; max-width:430px; }
 .hero-intro .impeccable-hero-copy { max-width:31ch; font-size:20px; }
 .study-context { align-items:start; flex-direction:column; padding:26px 0; }
 .study-section,#work.study-section { padding:60px 0; }
 .study-heading { grid-template-columns:1fr; gap:22px; margin-bottom:30px; }
 .study-heading > p { font-size:14px; }
 .study-pillars,.study-timeline,.study-schools { grid-template-columns:1fr; gap:30px; }
 .study-pillar { padding-top:18px; }
 .study-pillar h3 { margin:16px 0 12px; }
 .study-pillar p { margin-bottom:12px; }
 .study-career-row { grid-template-columns:1fr; gap:12px; }
 .study-tools,.study-contact { align-items:start; flex-direction:column; gap:20px; }
 .study-contact h2 { font-size:38px; }
 .project { overflow:hidden; border-radius:10px; }
 .project-copy { position:absolute; inset:0; margin:0; padding:18px; color:#fff; opacity:1; transform:none; pointer-events:none; }
 .project-copy h3 { font-size:21px; }
 .project-copy small { color:rgba(255,255,255,.72); }
 .project-media { aspect-ratio:16 / 10; }
 .study-project-summary { font-size:13px; }
 .study-project-footer { font-size:10px; }
 .study-bio { font-size:15px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation:none !important; transition:none !important; } }
