.folio-entry {
  min-height: 100svh;
  overflow: hidden;
  color: #f7fbff;
  background:
    radial-gradient(ellipse at 79% 29%, #253d60 0, transparent 43%),
    linear-gradient(140deg, #101b2b, #101827 66%, #172941);
}
.folio-entry[hidden] { display: none; }
:root[data-layout="direct"] [data-return-welcome] { display: none; }
.folio-entry-inner { min-height: 100svh; display: flex; flex-direction: column; }
.folio-entry-bar {
  padding: 30px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #c3dbff29;
}
.folio-entry-bar .welcome-identity { color: #e3edfc; }
.folio-entry-bar .monogram { background: #e5f0ff; color: #173559; }
.folio-entry-bar .entry-motion { position: static; inset: auto; }
.folio-entry-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding: clamp(48px, 8vw, 108px) 0 clamp(55px, 8vw, 112px);
}
.folio-entry-copy { overflow-wrap: anywhere; }
.entry-role {
  display: inline-block;
  margin: 0 0 21px;
  color: #aad1ff;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 700;
  letter-spacing: -.025em;
}
.folio-entry-copy h1 {
  margin: 0;
  color: #e6eef9;
  font-size: clamp(2.4rem, 5vw, 4.35rem);
  font-weight: 730;
  letter-spacing: -.085em;
  line-height: 1.16;
}
.folio-entry-copy h1 strong { color: #fff; font-weight: 850; }
.entry-greeting {
  margin: 28px 0;
  color: #bdcce1;
  font-size: 1.07rem;
  line-height: 1.65;
  white-space: pre-wrap;
}
.folio-entry-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.folio-entry-actions .button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 19px;
  border: 1px solid #a6cafa55;
  border-radius: 9px;
  color: #e4eefb;
  background: #c9dcff0c;
  text-decoration: none;
}
.folio-entry-actions .enter-resume { color: #142b4a; background: #e1efff; font-weight: 800; }
.folio-entry-actions a:focus-visible, .folio-case-links a:focus-visible { outline: 2px solid #c1e0ff; outline-offset: 4px; }
.folio-entry-actions a:hover { filter: brightness(1.13); }
.folio-entry-visual { position: relative; display: grid; place-items: center; min-width: 0; }
.folio-portrait {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 1.04;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.folio-orbit {
  position: absolute;
  z-index: -1;
  width: 87%;
  aspect-ratio: 1;
  border: 1px solid #9ec8ff48;
  border-radius: 50%;
  box-shadow: 0 0 0 25px #9ec8ff0d, 0 0 0 53px #9ec8ff08;
  background: radial-gradient(circle, #a5c9ff30, transparent 72%);
}
.folio-portrait img {
  width: 117%;
  height: auto;
  filter: drop-shadow(0 23px 20px #070e22a0);
  transform: translate(var(--scene-x, 0), var(--scene-y, 0));
}
:root[data-motion="on"] .folio-portrait img { animation: folio-float 5s ease-in-out infinite; }
@keyframes folio-float {
  0%, 100% { transform: translate(var(--scene-x, 0), var(--scene-y, 0)); }
  50% { transform: translate(var(--scene-x, 0), calc(var(--scene-y, 0) - 9px)); }
}
.folio-case-links { display: none; }
:root[data-layout="work"] .folio-portrait { display: none; }
:root[data-layout="work"] .entry-motion { display: none; }
:root[data-layout="work"] .folio-entry {
  background:
    radial-gradient(ellipse at 83% 45%, #244f61, transparent 52%),
    linear-gradient(135deg, #102032, #122a35);
}
:root[data-layout="work"] .folio-case-links {
  display: grid;
  gap: 13px;
  width: min(100%, 370px);
}
.folio-case-links a {
  padding: 20px;
  min-height: 77px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  border: 1px solid #b8e5f052;
  border-radius: 13px;
  color: #f3fdff;
  background: #d5f5ff12;
  text-decoration: none;
}
.folio-case-links a:hover { background: #d5f5ff26; }
.folio-case-links strong, .folio-case-links small { display: block; }
.folio-case-links strong { font-size: 1.08rem; }
.folio-case-links small { margin-top: 4px; color: #c2dbe6; font-size: .875rem; }
.folio-case-symbol {
  width: 30px;
  aspect-ratio: 1;
  position: relative;
  border: 2px solid #b7e7fd;
  border-radius: 5px;
}
.folio-case-symbol::after { content: ""; position: absolute; inset: 5px; }
.folio-case-symbol.measure::after { background: repeating-linear-gradient(90deg, #b7e7fd 0 2px, transparent 2px 5px) top / 100% 9px no-repeat; }
.folio-case-symbol.stock::after { background: repeating-linear-gradient(0deg, #b7e7fd 0 2px, transparent 2px 6px); }
.folio-case-symbol.parcel::after { border: 1.5px solid #b7e7fd; transform: rotate(45deg) scale(.77); }
.list-introduction .essay-verbatim { white-space: pre-wrap; overflow-wrap: anywhere; }
:root[data-brand="mark"] .company-heading {
  display: inline-flex;
  width: fit-content;
  border: 1px solid #4880b670;
  border-radius: 6px;
  padding: 5px 9px;
}
:root[data-brand="panel"] .company-heading {
  display: inline-block;
  width: fit-content;
  border-radius: 6px;
  padding: 5px 9px;
  color: #143a60;
  background: #d9efff;
}
:root[data-brand="mark"] .entry-company {
  color: #d7eeff;
  outline: 1px solid #83bdec;
  outline-offset: .07em;
  border-radius: .06em;
}
:root[data-brand="panel"] .entry-company {
  background: #ceebff;
  color: #142a45;
  border-radius: .11em;
  padding: .01em .09em;
  box-decoration-break: clone;
}
@media (max-width: 665px) {
  .folio-entry-bar { padding-top: 19px; }
  .folio-entry-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 42px; }
  .folio-entry-visual { padding-top: 8px; justify-items: start; }
  .folio-portrait { width: min(82%, 260px); margin-inline: auto; }
  .folio-portrait img { width: 115%; }
  .folio-case-links a { padding: 12px 15px; min-height: 64px; }
}
@media (prefers-reduced-motion: reduce) { .folio-portrait img { animation: none !important; } }
@media print { .folio-entry { display: none !important; } }

.portfolio-circuit {
  --study-muted: #435d78;
  --study-accent: #287ab3;
  min-width: 0;
  padding: clamp(.95rem, 2.5vw, 1.5rem);
  background: #fff;
  border: 1px solid #cfdeec;
  border-radius: .9rem;
  scroll-margin-top: 7.5rem;
}
.portfolio-circuit .study-card-heading p {
  color: var(--study-muted);
  font-size: 1rem;
  line-height: 1.65;
}
.study-card-heading h4 { margin: 0 0 .38rem; font-size: 1.22rem; }
.study-card-heading p { margin: 0 0 .9rem; }

.ohm-diagram {
  --current-glow: .28;
  display: flex;
  align-items: center;
  margin-block: .2rem 1rem;
  padding: .9rem .95rem;
  border: 1px solid #283f55;
  border-radius: .65rem;
  background: #15293e;
  color: #e1effb;
}

[data-ohm-lab] .ohm-diagram { --current-glow: inherit; }
.ohm-source, .ohm-resistor, .ohm-current {
  display: grid;
  place-items: center;
  width: 2rem;
  min-height: 2rem;
  border: 1px solid #97b1c6;
  border-radius: 50%;
  font-weight: 760;
}
.ohm-resistor { width: 2.55rem; border-color: #9dc7e9; border-radius: .34rem; }
.ohm-wire {
  flex: 1;
  height: 2px;
  background: #7bb6e7;
  box-shadow: 0 0 calc((1px + 15px * var(--current-glow, .28))) #7ecafe;
}

.ohm-control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .2rem .65rem;
  margin-bottom: .75rem;
  align-items: center;
}
.ohm-control label { font-weight: 725; }
.ohm-control output { font-variant-numeric: tabular-nums; color: var(--study-muted); }
.ohm-control input {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 1.55rem;
  accent-color: var(--study-accent);
}

.ohm-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .85rem;
  border-radius: .58rem;
  background: #e9f3fb;
  font-weight: 720;
}
.ohm-result output { font-size: 1.42rem; font-variant-numeric: tabular-nums; }
.ohm-formula { margin: .65rem 0 0; color: var(--study-muted); }

