:root {
  --paper: #f5f2eb;
  --ink: #20211f;
  --muted: #77776f;
  --line: #dcd8ce;
  --accent: #e66c42;
  --white: #fffdf8;
  --serif: Georgia,'Times New Roman',serif;
  --sans: 'DM Sans',sans-serif;
  --display: Manrope,sans-serif;
  --mono: 'DM Mono',monospace;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171815;
  --ink: #f1eee6;
  --muted: #aaa99f;
  --line: #3d3e38;
  --accent: #f08a61;
  --white: #23241f;
}

body {
  margin: 0px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

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

button, a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(var(--max),calc(100% - 64px));
  margin-inline: auto;
}

.eyebrow {
  font: 11px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.section {
  padding: 112px 0px;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 46px;
}

.section-title {
  font: 500 clamp(36px,5vw,64px)/1.03 var(--display);
  letter-spacing: -0.065em;
  margin: 12px 0px 0px;
}

.section-note {
  max-width: 270px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0px;
}

.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0px;
  z-index: 20;
  background: rgba(245, 242, 235, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  font: 800 20px var(--display);
  letter-spacing: -0.06em;
  transition: transform 0.2s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand span {
  color: var(--accent);
  transition: color 0.2s ease;
}

.brand:hover span {
  color: #c44f2f;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 27px;
  font-size: 12px;
  color: rgb(85, 86, 79);
}

.theme-toggle {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--paper));
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle-moon {
  display: block;
}

.theme-toggle-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle-moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle-sun {
  display: block;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:not(.nav-cta) {
  position: relative;
  padding: 8px 0;
}

.nav-links a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.22s ease;
}

.nav-links a:not(.nav-cta):hover,
.nav-links a:not(.nav-cta):focus-visible {
  color: var(--accent);
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a:focus-visible,
.brand:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.nav-cta {
  border: 1px solid var(--ink);
  padding: 10px 15px;
  border-radius: 30px;
  color: var(--ink) !important;
}

.menu-toggle {
  display: none;
  border: 0px;
  background: none;
  font-size: 24px;
  color: var(--ink);
}

.hero {
  padding: 72px 0px 80px;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 48px;
}

.availability {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: rgb(85, 86, 79);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(112, 155, 108);
  box-shadow: rgba(112, 155, 108, 0.114) 0px 0px 0px 4px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font: 500 clamp(58px,9.4vw,128px)/.91 var(--display);
  letter-spacing: -0.09em;
  margin: 0px 0px 30px;
}

.hero h1 .second {
  font: italic 500 .92em var(--serif);
  letter-spacing: -0.085em;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-intro {
  max-width: 490px;
  font-size: 17px;
  line-height: 1.75;
  color: rgb(94, 94, 87);
  margin: 0px 0px 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 30px;
  padding: 14px 19px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--ink);
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}

.btn-dark:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-light:hover {
  background: var(--white);
}

.arrow {
  font-size: 16px;
}

.hero-visual {
  position: relative;
  max-width: 410px;
  justify-self: end;
  width: 100%;
  padding: 14px 14px 50px 0px;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: rgb(231, 227, 218);
  border-radius: 48% 48% 5px 5px;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 31%;
  mix-blend-mode: multiply;
}

.portrait-caption {
  position: absolute;
  right: 0px;
  bottom: 14px;
  background: var(--accent);
  color: rgb(36, 31, 27);
  padding: 14px 17px;
  font: 11px var(--mono);
  transform: rotate(3deg);
}

.hero-index {
  position: absolute;
  top: 16px;
  left: -18px;
  width: 74px;
  height: 74px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  font: 10px/1.5 var(--mono);
  text-align: center;
  transform: rotate(-10deg);
}

.hero-bottom {
  margin-top: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scroll-mark span {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 90px;
}

.about-copy {
  font-size: clamp(20px, 2.3vw, 29px);
  line-height: 1.55;
  letter-spacing: -0.035em;
  max-width: 720px;
}

.about-copy p {
  margin: 0px 0px 24px;
}

.about-copy strong {
  font-weight: 600;
}

.about-small {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 570px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.project-card {
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgb(170, 165, 154);
}

.project-art {
  height: 290px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.art-connect {
  background: rgb(233, 223, 208);
}

.art-dinaftale {
  background: rgb(223, 230, 223);
}

.mini-window {
  width: 88%;
  height: 88%;
  background: rgb(250, 249, 245);
  border: 1px solid rgb(212, 209, 201);
  box-shadow: rgba(52, 53, 43, 0.086) 0px 15px 35px;
  border-radius: 8px;
  padding: 14px;
  transform: rotate(-3deg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.window-top {
  display: flex;
  gap: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgb(232, 229, 222);
}

.window-top i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgb(201, 198, 189);
}

.mock-heading {
  font: 700 21px var(--display);
  letter-spacing: -0.06em;
}

.mock-sub {
  font-size: 8px;
  color: rgb(135, 135, 127);
}

.mock-chips {
  display: flex;
  gap: 6px;
  margin-top: 5px;
}

.mock-chips span {
  font-size: 7px;
  background: rgb(239, 236, 228);
  border-radius: 20px;
  padding: 5px 8px;
}

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 4px;
  flex: 1 1 0%;
}

.mock-cards span {
  background: linear-gradient(145deg, rgb(214, 180, 154), rgb(241, 216, 191));
  border-radius: 4px;
}

.mock-cards span:nth-child(2) {
  background: linear-gradient(145deg, rgb(140, 154, 131), rgb(210, 217, 201));
}

.mock-cards span:nth-child(3) {
  background: linear-gradient(145deg, rgb(209, 183, 185), rgb(240, 218, 221));
}

.doc-window {
  width: 76%;
  height: 92%;
  background: rgb(255, 255, 255);
  border: 1px solid rgb(208, 214, 206);
  box-shadow: rgba(52, 53, 43, 0.086) 0px 15px 35px;
  border-radius: 6px;
  padding: 18px;
  transform: rotate(3deg);
}

.doc-label {
  font: 9px var(--mono);
  color: rgb(115, 128, 111);
}

.doc-title {
  font: 700 20px var(--display);
  letter-spacing: -0.06em;
  margin: 12px 0px;
}

.doc-line {
  height: 4px;
  background: rgb(231, 233, 228);
  border-radius: 4px;
  margin: 8px 0px;
  width: 100%;
}

.doc-line.short {
  width: 62%;
}

.doc-sign {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  color: rgb(117, 129, 111);
}

.project-info {
  padding: 24px 25px 26px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 10px var(--mono);
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.project-info h3 {
  font: 600 29px var(--display);
  letter-spacing: -0.06em;
  margin: 17px 0px 9px;
}

.project-info p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 490px;
  margin: 0px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 19px;
}

.project-tags span {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 10px;
  color: rgb(89, 90, 84);
}

.marquee-shell {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 24px 0px;
}

.marquee {
  display: flex;
  width: max-content;
  animation: 35s linear 0s infinite normal none running marquee;
}

.marquee-shell:hover .marquee {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
}

.tool {
  position: relative;
  isolation: isolate;
  font: 500 16px var(--display);
  letter-spacing: -0.03em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 13px;
  box-shadow: 0 5px 12px rgba(42, 39, 32, 0.12);
  transform: rotate(var(--sticker-tilt, 0deg));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tool::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255, 255, 255, 0.96), transparent 58%),
    linear-gradient(145deg, var(--white), rgb(235, 231, 220));
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9);
  opacity: 0.58;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.tool:hover {
  box-shadow: 0 10px 22px rgba(42, 39, 32, 0.2);
  transform: rotate(0deg) translateY(-4px) scale(1.03);
}

.tool:hover::before {
  opacity: 1;
}

.tool:nth-child(3n + 1) {
  --sticker-tilt: -2deg;
}

.tool:nth-child(3n) {
  --sticker-tilt: 1.5deg;
}

.tool-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
}

@keyframes marquee {
  100% {
    transform: translateX(-50%);
  }
}

.skills-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 52px;
}

.skill-card {
  --skill-accent: #d96d49;
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(116, 111, 98, 0.18);
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.84);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--skill-accent) 9%, transparent), transparent 42%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.92), rgba(255, 253, 248, 0.64));
  box-shadow: 0 12px 32px rgba(47, 43, 34, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.skill-card::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--skill-accent);
  content: "";
}

.skill-card-product {
  --skill-accent: #dd7049;
}

.skill-card-ux {
  --skill-accent: #708a70;
}

.skill-card-craft {
  --skill-accent: #7065b4;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--skill-accent) 40%, var(--line));
  box-shadow: 0 18px 36px rgba(47, 43, 34, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.skill-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--skill-accent);
  font: 10px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skill-card-top .cta-arrow {
  border-color: color-mix(in srgb, var(--skill-accent) 26%, transparent);
  transition: transform 0.25s ease, background 0.25s ease;
}

.skill-card:hover .skill-card-top .cta-arrow {
  transform: translate(1px, -1px);
  border-color: color-mix(in srgb, var(--skill-accent) 48%, transparent);
  background: color-mix(in srgb, var(--skill-accent) 10%, transparent);
}

.skill-card h3 {
  margin: 22px 0 20px;
  font: 600 clamp(19px, 1.7vw, 24px)/1.2 var(--display);
  letter-spacing: -0.055em;
}

.skill-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-card li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid rgba(116, 111, 98, 0.12);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.54);
  color: #55564f;
  font-size: 12px;
  line-height: 1.4;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.skill-card li:hover {
  transform: translateX(3px);
  border-color: color-mix(in srgb, var(--skill-accent) 30%, transparent);
  background: rgba(255, 255, 255, 0.92);
}

.skill-card li span {
  color: var(--skill-accent);
  font: 9px var(--mono);
}

.writing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.writing-card {
  border-top: 1px solid var(--line);
  padding: 24px 0px;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.writing-card .eyebrow {
  margin-bottom: 24px;
}

.writing-card h3 {
  font: 500 27px/1.25 var(--display);
  letter-spacing: -0.05em;
  margin: 0px 0px 20px;
  max-width: 440px;
}

.writing-card a {
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  padding-top: 18px;
}

.writing-card a span {
  color: var(--accent);
  font-size: 20px;
}

.writing-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
}

.photo-carousel {
  position: relative;
  display: flex;
  height: 470px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1300px;
  perspective-origin: center;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.photo-carousel.is-dragging {
  cursor: grabbing;
}

.photo-carousel .photo {
  position: absolute;
  top: calc(50% - var(--photo-card-height, 340px) / 2);
  left: calc(50% - var(--photo-card-width, 500px) / 2);
  width: var(--photo-card-width, 500px);
  height: var(--photo-card-height, 340px);
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: rgb(226, 222, 212);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform, filter, opacity;
}

.photo-carousel .photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #eae5dd;
  pointer-events: none;
  filter: saturate(0.82);
}

.photo-carousel .photo figcaption {
  display: none;
}

.photo-carousel-controls {
  position: absolute;
  right: 10px;
  bottom: 5px;
  left: 10px;
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: 0.08em;
}

.photo-counter {
  color: var(--ink);
  font-size: 12px;
}

.photo-counter span {
  color: var(--muted);
}

.photo-nav {
  display: flex;
  gap: 8px;
}

.photo-nav button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(245, 242, 235, 0.62);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.photo-nav button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.photo-nav button:focus-visible,
.photo-carousel:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.photo-hint {
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  padding: 8px 10px;
  background: rgba(245, 242, 235, 0.72);
  color: var(--ink);
  text-align: right;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.photo-disclaimer {
  color: var(--muted);
  font-size: 11px;
  margin-top: 14px;
  line-height: 1.6;
}

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

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr 170px;
  gap: 30px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.timeline-item:first-child {
  border-left: 3px solid var(--accent);
  padding-left: 22px;
  background: linear-gradient(110deg, rgba(240, 138, 97, 0.08), rgba(255, 255, 255, 0.3) 40%);
}

.timeline-item:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  background-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 28px rgba(47, 43, 34, 0.05);
}

.timeline-date {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font: 10px var(--mono);
  color: var(--muted);
  padding-top: 7px;
}

.timeline-date::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--line);
}

.timeline-item:first-child .timeline-date::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(240, 138, 97, 0.12);
}

.timeline-main h3 {
  font: 600 22px var(--display);
  letter-spacing: -0.05em;
  margin: 0px 0px 5px;
}

.timeline-main .company {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 13px;
}

.timeline-main p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0px;
  max-width: 760px;
}

.timeline-type {
  justify-self: end;
  align-self: start;
  text-align: right;
  font: 10px var(--mono);
  color: var(--muted);
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.45);
}

.timeline-item:first-child .timeline-type {
  color: #b95435;
  border-color: rgba(240, 138, 97, 0.32);
  background: rgba(240, 138, 97, 0.09);
}

.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 52px;
}

@media (min-width: 561px) and (max-width: 800px) {
  .skills-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .skill-card:last-child {
    grid-column: 1 / -1;
    width: calc((100% - 18px) / 2);
    justify-self: center;
  }
}

.edu-card {
  padding: 23px;
  border: 1px solid var(--line);
}

.edu-card h3 {
  font: 600 18px var(--display);
  letter-spacing: -0.04em;
  margin: 12px 0px 7px;
}

.edu-card p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0px;
}

.edu-year {
  font: 10px var(--mono);
  color: var(--accent);
}

.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.cert-row span {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 10px 13px;
  font-size: 11px;
  color: rgb(85, 86, 79);
}

.contact {
  background: rgb(34, 35, 31);
  color: var(--paper);
  padding: 92px 0px 28px;
}

.contact .eyebrow {
  color: rgb(170, 169, 159);
}

.contact h2 {
  font: 500 clamp(48px,9vw,110px)/.95 var(--display);
  letter-spacing: -0.085em;
  margin: 24px 0px 32px;
  max-width: 900px;
}

.contact h2 em {
  font-family: var(--serif);
  font-weight: 400;
  color: rgb(240, 138, 97);
}

.contact-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.contact-desc {
  font-size: 14px;
  line-height: 1.8;
  color: rgb(183, 182, 172);
  max-width: 330px;
}

.contact-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  margin-top: 54px;
}

.contact-email-group,
.contact-social-group {
  min-width: 0;
}

.contact-label {
  display: block;
  color: rgb(170, 169, 159);
  font: 10px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.contact-links a {
  border: 1px solid rgb(88, 89, 81);
  border-radius: 30px;
  padding: 12px 15px;
  font-size: 11px;
  transition: background 0.2s, border 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.social-icon {
  display: block;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: currentColor;
}

.social-icon--linkedin {
  color: #0a66c2;
}

.social-icon--behance {
  color: #1769ff;
}

.social-icon--instagram {
  fill: none;
  color: #e4405f;
  stroke: currentColor;
  stroke-width: 1.7;
}

.social-icon--medium {
  color: #00ab6c;
}

.contact-email {
  font: 500 clamp(17px,3vw,28px) var(--display);
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding: 12px 16px 12px 20px;
  border-radius: 40px;
}

.footer {
  border-top: 1px solid rgb(75, 76, 69);
  margin-top: 64px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font: 10px var(--mono);
  color: rgb(170, 169, 159);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s, transform 0.7s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0px);
}

@media (max-width: 800px) {
  .wrap {
    width: min(var(--max),calc(100% - 38px));
  }
  .section {
    padding: 78px 0px;
  }
  .nav {
    height: 68px;
  }
  .nav-links {
    gap: 15px;
  }
  .nav-links a:not(.nav-cta) {
    display: none;
  }
  .hero {
    padding-top: 48px;
  }
  .hero-grid {
    grid-template-columns: 1fr 0.72fr;
    gap: 24px;
  }
  .hero h1 {
    font-size: clamp(55px, 10vw, 86px);
  }
  .hero-intro {
    font-size: 15px;
  }
  .hero-visual {
    max-width: 300px;
  }
  .about-grid {
    gap: 35px;
  }
  .project-art {
    height: 235px;
  }
  .timeline-item {
    grid-template-columns: 125px 1fr;
    gap: 20px;
  }
  .timeline-type {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }
  .photo-carousel {
    height: 400px;
  }
  .contact-top {
    display: block;
  }
  .contact-desc {
    margin-top: 0px;
  }
  .contact-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
    margin-top: 38px;
  }
}

@media (min-width: 801px) and (max-width: 1100px) {
  .contact-actions {
    flex-direction: row;
  }

  .contact-email {
    font-size: clamp(16px, 1.75vw, 18px);
    gap: 12px;
    padding: 10px 12px 10px 16px;
  }
}

@media (min-width: 801px) and (max-width: 915px) {
  .contact-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: calc(100% - 34px);
  }
  .nav-links {
    gap: 0px;
  }
  .theme-toggle {
    margin-left: 8px;
  }
  .nav-cta {
    padding: 9px 12px;
    font-size: 11px;
  }
  .menu-toggle {
    display: block;
  }
  .nav-links.open {
    position: absolute;
    top: 67px;
    left: 0px;
    right: 0px;
    padding: 20px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 17px;
  }
  .nav-links.open a:not(.nav-cta) {
    display: block;
  }
  .nav-links.open .nav-cta {
    text-align: center;
  }
  .hero-top {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 28px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .hero h1 {
    font-size: clamp(64px, 16vw, 92px);
  }
  .hero-visual {
    width: 80%;
    justify-self: center;
    max-width: 330px;
  }
  .hero-bottom {
    margin-top: 35px;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 32px;
  }
  .section-note {
    max-width: 400px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about-copy {
    font-size: 21px;
  }
  .project-grid, .writing-grid, .edu-grid {
    grid-template-columns: 1fr;
  }
  .project-art {
    height: 260px;
  }
  .skills-bottom {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .photo-carousel {
    height: 370px;
  }
  .photo-carousel-controls {
    right: 0;
    left: 0;
    grid-template-columns: 1fr auto;
  }
  .photo-hint {
    display: none;
  }
  .photo-nav button {
    width: 35px;
    height: 35px;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 17px;
  }
  .timeline-item:first-child {
    padding-left: 15px;
  }
  .timeline-type {
    grid-column: auto;
  }
  .timeline-date {
    padding-top: 0px;
  }
  .contact {
    padding: 68px 0px 24px;
  }
  .contact h2 {
    font-size: clamp(52px, 14vw, 78px);
  }
  .contact-actions {
    gap: 26px;
  }
  .contact-links {
    gap: 8px;
  }
  .contact-links a.glass-cta {
    padding: 9px 10px;
    gap: 7px;
  }
  .contact-links .cta-arrow {
    width: 28px;
    height: 28px;
  }
  .contact-links .cta-arrow svg {
    width: 15px;
    height: 15px;
  }
  .footer {
    flex-direction: column;
    gap: 10px;
    margin-top: 42px;
  }
  .hero-index {
    left: -12px;
    width: 62px;
    height: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

.hero-visual {
  perspective: 1100px;
  isolation: isolate;
}

.portrait-frame {
  background: radial-gradient(circle at 50% 42%, rgb(245, 210, 172) 0px, rgb(245, 210, 172) 12%, transparent 12.5%), radial-gradient(at 50% 100%, rgb(89, 99, 86) 0px, rgb(89, 99, 86) 38%, transparent 38.5%), linear-gradient(145deg, rgb(233, 197, 165), rgb(184, 177, 160) 56%, rgb(124, 137, 120));
  transform: rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  box-shadow: rgba(48, 39, 28, 0.086) 0px 28px 65px;
}

.portrait-frame::after {
  content: "PS";
  position: absolute;
  inset: 0px;
  display: grid;
  place-items: center;
  font: 800 120px var(--display);
  letter-spacing: -0.12em;
  color: rgba(32, 33, 31, 0.14);
  pointer-events: none;
}

.portrait-frame img {
  position: relative;
  z-index: 1;
}

.portrait-frame img[hidden] {
  display: none;
}

.orbit-scene {
  position: absolute;
  z-index: 2;
  top: 5%;
  right: -9%;
  width: 180px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  perspective: 700px;
  pointer-events: none;
  animation: 6s ease-in-out 0s infinite normal none running orbit-float;
}

.orbit-core {
  width: 74px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 32% 27%, rgb(255, 248, 223) 0px, rgb(255, 248, 223) 5%, rgb(249, 194, 141) 18%, rgb(230, 108, 66) 50%, rgb(166, 66, 58) 78%, rgb(104, 47, 58) 100%);
  box-shadow: rgba(98, 43, 54, 0.3) -12px -10px 22px inset, rgba(185, 87, 56, 0.25) 0px 14px 35px;
  transform: translateZ(32px);
  animation: 9s linear 0s infinite normal none running core-turn;
}

.orbit-core span {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  box-shadow: rgba(255, 255, 255, 0.467) 0px 0px 18px;
}

.orbit-ring {
  position: absolute;
  width: 100%;
  height: 42%;
  border: 1px solid rgba(230, 108, 66, 0.48);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.orbit-ring-one {
  transform: rotateX(65deg) rotateZ(-25deg);
  animation: 12s linear 0s infinite normal none running ring-turn;
}

.orbit-ring-two {
  width: 77%;
  height: 77%;
  border-color: rgba(130, 124, 107, 0.55);
  transform: rotateY(68deg) rotateX(18deg);
  animation: 16s linear 0s infinite reverse none running ring-turn;
}

.orbit-label {
  position: absolute;
  right: -11px;
  bottom: 1px;
  padding: 8px 10px;
  background: var(--white);
  border: 1px solid var(--line);
  font: 8px/1.5 var(--mono);
  letter-spacing: 0.08em;
  color: var(--muted);
  transform: rotate(5deg);
  box-shadow: rgba(48, 39, 28, 0.07) 0px 8px 22px;
}

.project-card {
  transform: perspective(900px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));
  transform-style: preserve-3d;
  will-change: transform;
}

.project-card:hover {
  transform: perspective(900px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) translateY(-5px);
}

.project-art > * {
  transform: translateZ(18px) rotate(var(--sheet-tilt,var(--art-rotate,-3deg)));
  transition: transform 0.35s;
}

.project-card:nth-child(2) .project-art > * {
  --art-rotate: 3deg;
}

.project-card:hover .project-art > * {
  transform: translateZ(34px) rotate(var(--sheet-tilt,var(--art-rotate,-3deg))) scale(1.015);
}

.project-card:nth-child(2):hover .project-art > * {
  transform: translateZ(34px) rotate(var(--sheet-tilt,var(--art-rotate,3deg))) scale(1.015);
}

.project-art.project-art-image {
  height: auto;
  aspect-ratio: 5760 / 4096;
  padding: 0;
}

.project-art.project-art-sheet {
  height: 340px;
  padding: 24px;
  background: #f4f2ec;
}

.project-sheet {
  width: 100%;
  height: 100%;
  padding: 24px 26px 18px;
  display: flex;
  flex-direction: column;
  background: #fffefa;
  border: 1px solid #d6ddd5;
  border-radius: 9px;
  box-shadow: 0 16px 34px rgba(37, 47, 38, 0.08);
}

.project-sheet-connect {
  --sheet-accent: #71836f;
  --sheet-tilt: -1deg;
}

.project-sheet-dinaftale {
  --sheet-accent: #5752b6;
  --sheet-tilt: 1deg;
}

.project-sheet-label {
  color: var(--sheet-accent);
  font: 10px var(--mono);
  letter-spacing: 0.06em;
}

.project-sheet h3 {
  font: 700 clamp(23px, 2.4vw, 34px)/1.12 var(--display);
  letter-spacing: -0.06em;
  margin: 21px 0 15px;
}

.project-sheet-body {
  min-height: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.project-sheet-preview {
  width: 112px;
  height: 86px;
  flex: 0 0 112px;
  object-fit: cover;
  object-position: top;
  border: 1px solid rgba(32, 33, 31, 0.1);
  border-radius: 4px;
  box-shadow: 0 5px 12px rgba(32, 33, 31, 0.1);
}

.project-sheet-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-sheet-lines span {
  height: 7px;
  border-radius: 10px;
  background: #e8eae5;
}

.project-sheet-lines span:nth-child(3) {
  width: 68%;
}

.project-sheet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--sheet-accent);
  font-size: 11px;
}

.project-sheet-footer span:last-child {
  font-size: 18px;
}

.project-art.project-art-image > .project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(18px);
}

.project-card:hover .project-art.project-art-image > .project-image {
  transform: translateZ(34px) scale(1.015);
}

@media (max-width: 800px) {
  .project-art.project-art-sheet {
    height: 310px;
  }
}

@media (max-width: 560px) {
  .project-art.project-art-sheet {
    height: 290px;
    padding: 16px;
  }
  .project-sheet {
    padding: 20px 18px 15px;
  }
  .project-sheet h3 {
    margin-block: 17px 12px;
  }
  .project-sheet-preview {
    width: 92px;
    height: 72px;
    flex-basis: 92px;
  }
  .project-sheet-body {
    gap: 12px;
  }
  .project-sheet-footer {
    font-size: 9px;
  }
}

@keyframes orbit-float {
  0%, 100% {
    translate: 0px;
  }
  50% {
    translate: 0px -12px;
  }
}

@keyframes core-turn {
  100% {
    transform: translateZ(32px) rotate(360deg);
  }
}

@keyframes ring-turn {
  100% {
    rotate: 360deg;
  }
}

@media (max-width: 800px) {
  .orbit-scene {
    right: -12%;
    width: 145px;
  }
}

@media (max-width: 560px) {
  .orbit-scene {
    right: -10%;
    top: 2%;
    width: 125px;
  }
  .orbit-core {
    width: 60px;
  }
  .orbit-label {
    font-size: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-scene, .orbit-core, .orbit-ring-one, .orbit-ring-two {
    animation: auto ease 0s 1 normal none running none;
  }
  .portrait-frame, .project-card, .project-art > * {
    transition: none;
  }
  .project-card, .project-card:hover {
    transform: none;
  }
}

.hero-actions .btn {
  min-height: 54px;
  padding: 7px 8px 7px 20px;
  gap: 16px;
  font-size: 13px;
  letter-spacing: -0.015em;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.22s, color 0.22s, border-color 0.22s, box-shadow 0.22s;
}

.hero-actions .arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
  transition: transform 0.22s, background 0.22s, color 0.22s;
}

.cta-arrow {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: currentColor;
  line-height: 0;
  border: 1px solid color-mix(in srgb, currentColor 24%, transparent);
  border-radius: 50%;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.cta-arrow svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-actions .cta-arrow svg {
  width: 18px;
  height: 18px;
}

.hero-actions .btn:hover .arrow {
  transform: translate(2px, -2px);
}

.glass-cta:hover .cta-arrow {
  transform: translate(1px, -1px);
  border-color: color-mix(in srgb, currentColor 48%, transparent);
}

@media (max-width: 560px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .hero-actions .btn {
    min-width: 0px;
    min-height: 48px;
    padding: 6px 7px 6px 12px;
    gap: 7px;
    font-size: 11px;
  }
  .hero-actions .arrow {
    width: 29px;
    height: 29px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-actions .btn, .hero-actions .arrow {
    transition: none;
  }
}

.glass-cta {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.36));
  color: var(--ink);
  box-shadow: 0 7px 20px rgba(48, 43, 32, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.nav-links .nav-cta.glass-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 9px 6px 14px;
  font-size: 11px;
  font-weight: 600;
}

.nav-links .nav-cta .cta-arrow {
  width: 28px;
  height: 28px;
}

.nav-links .nav-cta .cta-arrow svg {
  width: 15px;
  height: 15px;
}

.writing-card a.glass-cta {
  align-self: flex-start;
  gap: 20px;
  border-radius: 30px;
  padding: 12px 16px;
}

.writing-card a.glass-cta span {
  color: currentColor;
}

.contact .glass-cta {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
  color: var(--paper);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.contact-links a.glass-cta {
  border-radius: 30px;
  padding: 12px 15px;
}

.contact .contact-email.glass-cta {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer a.glass-cta {
  align-self: flex-start;
  border-radius: 24px;
  padding: 8px 12px;
}

.glass-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.96);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.52));
  box-shadow: 0 11px 26px rgba(48, 43, 32, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.contact .glass-cta:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.glass-cta:active {
  transform: scale(0.98);
}

.glass-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .glass-cta {
    transition: none;
  }
}

@media (min-width: 801px) {
  .hero-index {
    top: 0px;
    left: -18px;
  }

  .orbit-scene {
    top: 28%;
    right: -35px;
    width: 105px;
  }

  .orbit-label {
    right: 8px;
  }

  .portrait-caption {
    bottom: 15px;
  }

  .portrait-frame img {
    mix-blend-mode: normal;
  }

  .portrait-frame::after {
    content: none;
  }
}

@media (max-width: 800px) {
  .hero-index,
  .orbit-scene {
    display: none;
  }

  .portrait-caption {
    bottom: 15px;
  }

  .portrait-frame img {
    mix-blend-mode: normal;
  }

  .portrait-frame::after {
    content: none;
  }
}

.portrait-frame.portrait-fallback::after {
  content: "PS";
}

.comet-cursor {
  position: fixed;
  inset: 0;
  z-index: 25;
  overflow: hidden;
  pointer-events: none;
}

.comet-cursor canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.comet-cursor__glow {
  filter: blur(14px);
}

.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 30;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.26);
  outline: 2px solid var(--ink);
  outline-offset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #484944 0%, #282925 42%, #181916 100%);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.85);
  box-shadow: 0 8px 20px rgba(32, 33, 31, 0.24), inset 0 1px 1px rgba(255, 255, 255, 0.38), inset 0 -2px 4px rgba(0, 0, 0, 0.3);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08) 42%, transparent 58%);
  content: "";
  pointer-events: none;
}

.back-to-top svg {
  position: relative;
  z-index: 1;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top.is-visible:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(32, 33, 31, 0.24);
  background: linear-gradient(145deg, #fffdf8 0%, #f1eee6 58%, #e2ded4 100%);
  box-shadow: 0 11px 24px rgba(32, 33, 31, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.96), inset 0 -2px 4px rgba(32, 33, 31, 0.08);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-to-top:hover {
  color: var(--ink);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 560px) {
  .back-to-top {
    right: 20px;
    bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

html[data-theme="dark"] .nav {
  background: rgba(23, 24, 21, 0.92);
}

html[data-theme="dark"] .nav-links,
html[data-theme="dark"] .availability,
html[data-theme="dark"] .project-tags span,
html[data-theme="dark"] .cert-row span,
html[data-theme="dark"] .skill-card li {
  color: var(--muted);
}

html[data-theme="dark"] .brand:hover span {
  color: #ffad87;
}

html[data-theme="dark"] .portrait-frame {
  background-color: #292a25;
}

html[data-theme="dark"] .portrait-frame img {
  mix-blend-mode: normal;
}

html[data-theme="dark"] .project-card {
  background: var(--white);
}

html[data-theme="dark"] .project-card:hover {
  border-color: #67665d;
}

html[data-theme="dark"] .project-tags span,
html[data-theme="dark"] .cert-row span {
  border-color: var(--line);
}

html[data-theme="dark"] .tool::before {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255, 255, 255, 0.14), transparent 58%),
    linear-gradient(145deg, #30312b, #23241f);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .skill-card {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--skill-accent) 14%, transparent), transparent 42%),
    linear-gradient(145deg, #272823, #1e1f1b);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .skill-card li {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
}

html[data-theme="dark"] .skill-card li:hover {
  background: color-mix(in srgb, var(--skill-accent) 12%, #23241f);
}

html[data-theme="dark"] .photo-nav button {
  border-color: var(--line);
  background: rgba(35, 36, 31, 0.76);
  color: var(--ink);
}

html[data-theme="dark"] .photo-nav button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #171815;
}

html[data-theme="dark"] .photo-hint {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(23, 24, 21, 0.78);
}

html[data-theme="dark"] .timeline-item {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
}

html[data-theme="dark"] .timeline-item:first-child {
  background: linear-gradient(110deg, rgba(240, 138, 97, 0.12), rgba(255, 255, 255, 0.025) 40%);
}

html[data-theme="dark"] .timeline-item:hover {
  background-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] .timeline-type {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .timeline-item:first-child .timeline-type {
  color: #ffad87;
  border-color: rgba(240, 138, 97, 0.32);
  background: rgba(240, 138, 97, 0.12);
}

html[data-theme="dark"] .contact {
  background: #10110f;
  color: var(--ink);
}

html[data-theme="dark"] .contact .glass-cta {
  border-color: rgba(255, 255, 255, 0.17);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  color: var(--ink);
}

html[data-theme="dark"] .contact .glass-cta:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.07));
}

html[data-theme="dark"] .back-to-top {
  outline-color: var(--line);
  color: var(--ink);
}

html[data-theme="dark"] .back-to-top.is-visible:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, #3a3b35 0%, #292a25 58%, #20211d 100%);
  color: var(--ink);
}

html[data-theme="dark"] .glass-cta:not(.contact .glass-cta) {
  border-color: rgba(255, 255, 255, 0.17);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  color: var(--ink);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .glass-cta:not(.contact .glass-cta):hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
  box-shadow: 0 11px 26px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

@keyframes theme-wipe {
  from {
    clip-path: circle(0 at var(--theme-x) var(--theme-y));
  }
  to {
    clip-path: circle(150vmax at var(--theme-x) var(--theme-y));
  }
}

::view-transition-old(root) {
  animation: none;
  z-index: 1;
}

::view-transition-new(root) {
  animation: theme-wipe 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-new(root) {
    animation: none;
  }
}


