/* Amish Ban portfolio: styles. Colours and light/dark themes are the variables at the top (:root). */
:root {
  --bg: linear-gradient(135deg, #f5f5ff, #ccf 55%, #dedeff);
  --o1: #a3a3cc;
  --o2: #5c5c99;
  --tx: #292966;
  --mu: #5c5c99;
  --gl: rgba(255, 255, 255, .45);
  --bd: rgba(255, 255, 255, .8);
  --sh: rgba(41, 41, 102, .18);
  --ac: #292966;
  --ab: #ccf;
  --tip: rgba(255, 255, 255, .9);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px)
}

@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    --bg: linear-gradient(135deg, #12123a, #292966 60%, #1a1a50);
    --o1: #5c5c99;
    --o2: #a3a3cc;
    --tx: #f1f1ff;
    --mu: #ccf;
    --gl: rgba(204, 204, 255, .08);
    --bd: rgba(204, 204, 255, .22);
    --sh: rgba(0, 0, 30, .45);
    --ac: #ccf;
    --ab: #292966;
    --tip: rgba(41, 41, 102, .92)
  }
}

:root[data-theme="dark"] {
  --bg: linear-gradient(135deg, #12123a, #292966 60%, #1a1a50);
  --o1: #5c5c99;
  --o2: #a3a3cc;
  --tx: #f1f1ff;
  --mu: #ccf;
  --gl: rgba(204, 204, 255, .08);
  --bd: rgba(204, 204, 255, .22);
  --sh: rgba(0, 0, 30, .45);
  --ac: #ccf;
  --ab: #292966;
  --tip: rgba(41, 41, 102, .92)
}

html {
  scroll-behavior: smooth
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--tx);
  background: var(--bg);
  line-height: 1.6
}

a {
  color: inherit;
  text-decoration: none
}

.o {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .75;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transform: translateZ(0)
}

.o1 {
  width: 400px;
  height: 400px;
  background: var(--o1);
  top: -100px;
  left: -100px
}

.o2 {
  width: 460px;
  height: 460px;
  background: var(--o2);
  bottom: -140px;
  right: -110px
}

.o3 {
  width: 250px;
  height: 250px;
  background: var(--o1);
  top: 45%;
  left: 55%;
  opacity: .5
}

.w {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px
}

.glass {
  background: var(--gl);
  border: 1px solid var(--bd);
  border-radius: 28px;
  box-shadow: 0 8px 32px var(--sh);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px)
}

.ic {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 36px;
  align-items: center;
  padding: 56px 0 8px
}

h1 {
  font-size: clamp(2.8rem, 7.5vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.04em;
  margin: .3em 0
}

h1 span {
  background: linear-gradient(100deg, var(--o2), var(--tx));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.sub {
  max-width: 480px;
  margin: 0 0 28px;
  color: var(--mu);
  font-size: 1.1rem
}

.b {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s
}

.b:hover {
  transform: translateY(-3px)
}

.p {
  background: var(--ac);
  color: var(--ab)
}

.g {
  background: var(--gl);
  border: 1px solid var(--bd)
}

.win {
  overflow: hidden
}

.tb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--bd)
}

.tb i {
  width: 12px;
  height: 12px;
  border-radius: 50%
}

.tb span {
  margin: 0 auto;
  font-size: .8rem;
  color: var(--mu);
  font-weight: 700
}

pre {
  margin: 0;
  padding: 22px;
  font: 500 .88rem/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-x: auto
}

.kw {
  color: var(--o2);
  font-weight: 700
}

.st {
  color: var(--ac)
}

/* sections */
section {
  padding: 72px 0 8px
}

h2 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 0 0 28px
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px
}

.s2 {
  grid-column: span 2
}

.r2 {
  grid-row: span 2
}

.t {
  position: relative;
  overflow: hidden;
  padding: 26px;
  transition: transform .25s
}

.t:hover {
  transform: translateY(-4px)
}

.t::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
  background: radial-gradient(260px circle at var(--x, 50%) var(--y, 0), rgba(255, 255, 255, .18), transparent 70%)
}

.t:hover::before {
  opacity: 1
}

.t small {
  display: block;
  margin-bottom: 8px;
  font-size: .72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mu)
}

.big {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1
}

.t h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  letter-spacing: -.02em
}

.t p {
  margin: 0;
  color: var(--mu)
}

.bio {
  font-size: 1.15rem;
  color: var(--tx) !important
}

.ct {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 36px;
  align-items: center
}

.ct h3 {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -.03em;
  margin: 0 0 10px
}

.ct p {
  margin: 0;
  color: var(--mu)
}

.lks {
  display: grid;
  gap: 12px
}

.lk {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--gl);
  border: 1px solid var(--bd);
  transition: transform .2s
}

.lk:hover {
  transform: translateX(6px)
}

.lk small {
  display: block;
  font-size: .7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mu);
  font-weight: 700
}

.lk b {
  word-break: break-word
}

.lk em {
  margin-left: auto;
  font-style: normal;
  color: var(--mu)
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 56px 20px 140px;
  color: var(--mu);
  font-size: .9rem
}

/* mac dock */
.dock {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  width: max-content;
  padding: 8px 10px 14px;
  border-radius: 24px;
  --s: 44px
}

.d {
  position: relative;
  display: block;
  flex: none;
  width: var(--s);
  height: var(--s);
  will-change: translate;
  outline: none
}

.ti {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 23%;
  color: #ccf;
  font-weight: 400;
  background: linear-gradient(145deg, #5c5c99, #292966);
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 6px 14px var(--sh), inset 0 1px 0 rgba(255, 255, 255, .4);
  transform-origin: 50% 100%;
  will-change: scale
}

.d .ic {
  width: 52%;
  height: 52%
}

.d.so .ti {
  background: linear-gradient(145deg, #ccf, #a3a3cc);
  color: #292966
}

.d:focus-visible .ti {
  outline: 2px solid var(--tx);
  outline-offset: 3px
}

.d:active .ti {
  filter: brightness(1.15)
}

.d.on::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--tx)
}

.sep {
  flex: none;
  align-self: stretch;
  width: 1px;
  margin: 4px 2px 0;
  background: var(--bd);
  will-change: translate
}

.tip {
  position: absolute;
  left: 50%;
  bottom: 100%;
  margin-bottom: 10px;
  padding: 4px 11px;
  border-radius: 9px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--tx);
  background: var(--tip);
  border: 1px solid var(--bd);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
  translate: -50% 0
}

.tip.on {
  opacity: 1
}

.bn {
  animation: bn .6s ease
}

@keyframes bn {
  40% {
    transform: translateY(-22px)
  }
}

@media (max-width:820px) {

  .hero,
  .ct {
    grid-template-columns: 1fr
  }

  .hero {
    min-height: 0;
    padding-top: 36px
  }
}

@media (max-width:560px) {
  .dock {
    --s: 42px;
    gap: 6px;
    padding: 7px 9px 13px;
    border-radius: 22px
  }

  .big {
    font-size: 2.6rem
  }

  .ct {
    padding: 24px
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important
  }
}

main.w {
  padding-top: 32px
}

.mb {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 15;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-radius: 0;
  border-width: 0 0 1px;
  box-shadow: none;
  font-size: .8rem;
  font-weight: 600
}

.mb span {
  margin-left: 10px;
  color: var(--mu);
  font-weight: 500
}

.ph {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin-left: auto
}

.ph::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid var(--bd);
  border-radius: 50% 50% 44px 44px/38% 38% 44px 44px;
  pointer-events: none
}

.pf {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 50% 50% 32px 32px/40% 40% 32px 32px;
  background: radial-gradient(circle at 50% 26%, rgba(204, 204, 255, .65), transparent 58%), linear-gradient(165deg, #a3a3cc, #5c5c99 55%, #292966);
  border: 1px solid var(--bd);
  box-shadow: 0 24px 60px var(--sh)
}

.pf img {
  position: absolute;
  bottom: -7%;
  left: -3%;
  width: 104%;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 12px 18px rgba(20, 20, 70, .35))
}

.ph .win {
  position: absolute;
  left: -22%;
  bottom: -6%;
  width: 62%;
  border-radius: 18px;
  background: var(--tip);
  -webkit-backdrop-filter: none;
  backdrop-filter: none
}

.ph .tb {
  padding: 10px 14px
}

.ph pre {
  padding: 12px 16px;
  font-size: .7rem;
  line-height: 1.7
}

.i {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  color: #ccf;
  background: linear-gradient(145deg, #5c5c99, #292966);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35)
}

.pj {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap
}

.pj .i {
  margin: 0
}

.pj>div:nth-child(2) {
  flex: 1;
  min-width: 200px
}

.pj .b {
  margin: 0
}

.t small,
.lk small {
  text-transform: none;
  letter-spacing: .2px;
  font-size: .8rem
}

.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease
}

.rv.in {
  opacity: 1;
  transform: none
}

button.d {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit
}

@media (max-width:820px) {
  .ph {
    margin: 0 auto
  }

  .ph .win {
    left: 0;
    bottom: -8%;
    width: 74%
  }
}

@media (max-width:560px) {
  .hm {
    display: none
  }
}

.role {
  margin: 0 0 14px;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 500;
  color: var(--mu)
}

.role b {
  color: var(--tx);
  font-weight: 800;
  transition: opacity .3s
}

.s4 {
  grid-column: span 4
}

.pl {
  display: flex;
  gap: 18px;
  margin-top: 14px !important
}

.pl a {
  color: var(--tx);
  font-weight: 700;
  border-bottom: 1px solid var(--bd)
}

.pl a:hover {
  color: var(--mu)
}

@media (max-width:820px) {
  .bento {
    grid-template-columns: 1fr 1fr
  }

  .s2,
  .s4 {
    grid-column: span 2
  }

  .r2 {
    grid-row: auto
  }
}

.sb {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 18px;
  border: 0;
  background: none;
  cursor: zoom-in
}

.sb:focus-visible {
  outline: 2px solid var(--tx);
  outline-offset: 3px;
  border-radius: 14px
}

.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--bd)
}

dialog {
  padding: 0;
  border: 0;
  background: none;
  max-width: 94vw;
  max-height: 94vh;
  overflow: visible
}

dialog::backdrop {
  background: rgba(10, 10, 40, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px)
}

dialog img {
  display: block;
  width: auto;
  height: auto;
  max-width: 94vw;
  max-height: 90vh;
  border-radius: 16px;
  cursor: zoom-out
}

.b[hidden],
.lk[hidden] {
  display: none
}

button.b,
button.lk {
  font: inherit;
  color: inherit;
  cursor: pointer
}

button.b {
  font-weight: 700
}

button.lk {
  width: 100%;
  text-align: left
}

.bio2 {
  margin-top: 14px !important
}

.ul {
  margin: 6px 0 0;
  padding-left: 1.1em;
  color: var(--mu)
}

.ul li {
  margin: 4px 0
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px !important
}

.chips span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gl);
  border: 1px solid var(--bd);
  font-size: .88rem;
  font-weight: 600;
  color: var(--tx)
}






.skip {
  position: fixed;
  left: 12px;
  top: -70px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ac);
  color: var(--ab);
  font-weight: 700;
  transition: top .15s
}

.skip:focus {
  top: calc(10px + env(safe-area-inset-top, 0px))
}

main:focus {
  outline: none
}

a:not(.d):focus-visible,
button:not(.d):focus-visible {
  outline: 3px solid var(--tx);
  outline-offset: 3px
}

.fm {
  margin-top: 18px;
  padding: 32px;
  display: grid;
  gap: 14px
}

.fm h3 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -.02em
}

.fg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.fm label {
  display: grid;
  gap: 6px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--mu)
}

.fm input,
.fm textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--bd);
  background: var(--gl);
  color: var(--tx);
  font: inherit;
  font-weight: 500;
  resize: vertical
}

.fm input:focus,
.fm textarea:focus {
  outline: 3px solid var(--tx);
  outline-offset: 2px
}

.fa {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap
}

.fa .b,
footer .b {
  margin: 0
}

.fs {
  margin: 0;
  color: var(--mu);
  font-size: .9rem
}

.fl {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px
}

.fl a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gl);
  border: 1px solid var(--bd);
  font-weight: 700;
  color: var(--tx);
  transition: transform .2s
}

.fl a:hover {
  transform: translateY(-2px)
}

.fl .ic {
  width: 18px;
  height: 18px
}

footer p {
  margin: 18px 0 0
}

@media (max-width:560px) {
  .fg {
    grid-template-columns: 1fr
  }

  .fm {
    padding: 24px
  }
}

button.b.p {
  color: var(--ab)
}

.lvl {
  display: inline-block;
  margin: 12px 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  background: var(--ac);
  color: var(--ab)
}

.lvl.l {
  background: var(--gl);
  color: var(--tx);
  border: 1px solid var(--bd)
}

.grp {
  grid-column: 1/-1;
  margin: 18px 0 0;
  font-size: 1.2rem;
  letter-spacing: -.01em
}

.grp:first-child {
  margin-top: 0
}

.intro {
  margin: -14px 0 24px;
  color: var(--mu)
}

.t .ul {
  margin: 12px 0 0
}
