:root {
  color-scheme: light;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --background: #fffaf5;
  --text: #28221e;
  --muted: #81736a;
  --line: #eee3d9;
  --accent: #ec762c;
}


/* Desktop content defaults to the former 150% zoom size.
   Viewport-sized sections and browser zoom remain independent. */
@media (min-width: 48rem) {
  :root { font-size: 150%; }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  min-height: 100%;
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 75% 22%, rgb(255 191 139 / 20%), transparent 36rem),
    var(--background);
  color: var(--text);
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 0.3125rem 1.5rem rgb(75 48 28 / 5%);
  backdrop-filter: blur(1rem);
  transition: box-shadow 220ms ease;
}

.section-index-sidebar {
  position: fixed;
  z-index: 80;
  top: 50%;
  left: 0;
  display: flex;
  width: 14.875rem;
  max-height: calc(100svh - 6rem);
  transform: translate(-100%, -50%);
  border: 0.0625rem solid var(--line);
  border-left: 0;
  border-radius: 0 0.5rem 0.5rem 0;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 0.75rem 2rem rgb(75 48 28 / 12%);
  visibility: hidden;
  transition:
    width 240ms ease,
    transform 280ms ease,
    visibility 0s linear 280ms;
}

.section-index-sidebar.is-visible {
  transform: translate(0, -50%);
  visibility: visible;
  transition-delay: 0s;
}

.section-index-sidebar.is-collapsed {
  width: 2.625rem;
}

.section-index-nav {
  display: grid;
  flex: 1;
  gap: 0.25rem;
  align-content: center;
  min-width: 0;
  padding: 1rem 0.75rem;
  overflow: hidden;
  opacity: 1;
  transition:
    opacity 160ms ease,
    visibility 0s linear 160ms;
}

.section-index-nav a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  min-height: 2.625rem;
  padding: 0.7rem 0.65rem;
  border-radius: 0.3125rem;
  color: var(--text);
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
}

.section-index-nav a:hover,
.section-index-nav a:focus-visible {
  background: #fff1e7;
  color: #b94d0a;
}

.section-index-toggle {
  display: flex;
  flex: 0 0 2.375rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border: 0;
  border-left: 0.0625rem solid var(--line);
  border-radius: 0 0.4375rem 0.4375rem 0;
  background: #fffaf5;
  color: var(--muted);
  cursor: pointer;
}

.section-index-toggle:hover,
.section-index-toggle:focus-visible {
  background: #fff1e7;
  color: #b94d0a;
}

.section-index-toggle-label {
  writing-mode: vertical-rl;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.section-index-toggle svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 240ms ease;
}

.section-index-sidebar.is-collapsed .section-index-toggle svg {
  transform: rotate(180deg);
}

.section-index-sidebar.is-collapsed .section-index-nav {
  padding-inline: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.header-inner {
  display: grid;
  width: min(100% - 3rem, 70rem);
  height: 3.625rem;
  place-items: stretch;
  margin-inline: auto;
  transition: height 220ms ease;
}

.site-header.is-compact {
  box-shadow: 0 0.4375rem 1.5rem rgb(75 48 28 / 10%);
}

.site-header.is-compact .header-inner {
  height: 3rem;
}

.site-header.is-compact:hover .header-inner,
.site-header.is-compact:focus-within .header-inner {
  height: 3.625rem;
}

.site-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  height: 100%;
  padding-inline: 1.15rem;
  color: #000;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-wrap: nowrap;
  transition: color 160ms ease;
}

.nav-link::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--accent);
  content: "";
  transition: transform 280ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.nav-link:hover,
.nav-link:focus-visible {
  z-index: 3;
  color: var(--accent);
}

.nav-link[aria-current="page"] {
  color: #000;
}

.nav-link[aria-current="page"]::before {
  transform: scaleX(1);
  animation: selected-tab-fill 380ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.nav-description {
  position: absolute;
  z-index: 2;
  top: 100%;
  left: 50%;
  width: max-content;
  max-width: min(20rem, calc(100vw - 2rem));
  padding: 0.8rem 1rem;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top center;
  border: 0.0625rem solid #f0dfd2;
  background: #fff;
  box-shadow: 0 0.625rem 1.75rem rgb(75 48 28 / 14%);
  color: #28221e;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.5;
  text-align: center;
  text-wrap: wrap;
  white-space: normal;
  visibility: hidden;
  pointer-events: auto;
  transition:
    transform 220ms cubic-bezier(0.2, 0.75, 0.25, 1),
    visibility 0s linear 220ms;
}

@media (max-width: 71.25rem) {
  .nav-description {
    position: fixed;
    top: var(--description-top, 3.875rem);
    left: var(--description-left, 50vw);
  }
}

.nav-link:hover .nav-description,
.nav-link:focus-visible .nav-description {
  transform: translateX(-50%) scaleY(1);
  visibility: visible;
  transition-delay: 0s;
}

@keyframes selected-tab-fill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.about-transition-stage {
  position: relative;
  height: 200svh;
}

.about-transition-frame {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: transparent;
}

.hero {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 6rem max(1.5rem, calc((100% - 70rem) / 2));
  overflow: hidden;
  background: var(--accent);
  color: #fff;
  opacity: 1;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-intro {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  user-select: none;
  -webkit-user-select: none;
}

.hero .eyebrow,
.hero .hero-copy {
  color: rgb(255 255 255 / 90%);
}

.hero .accent {
  color: #fff;
}

.hero .status-dot {
  background: #fff;
  box-shadow: 0 0 0.875rem rgb(255 255 255 / 65%);
}

.hero-title-wrap {
  position: relative;
  width: fit-content;
}

.hero h1 {
  transform: translateX(clamp(-1rem, -1.25vw, -0.35rem));
  font-size: clamp(5rem, 19vw, 15rem);
  white-space: nowrap;
}

.desktop-notice {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0.75rem 1rem;
  border: 0;
  background: rgb(255 255 255 / 58%);
  color: var(--accent);
  box-shadow: 0 0.5rem 1.5rem rgb(75 48 28 / 18%);
  font: inherit;
  cursor: pointer;
  backdrop-filter: blur(0.125rem);
}

.desktop-notice span {
  color: rgb(236 118 44 / 55%);
  font: inherit;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 750;
  letter-spacing: 0.08em;
  mix-blend-mode: multiply;
}

.desktop-notice small {
  color: #5a3927;
  font-size: 0.68rem;
}

.desktop-notice:focus-visible {
  outline: 0.125rem solid #28221e;
  outline-offset: 0.1875rem;
}

.desktop-notice.is-dismissing {
  pointer-events: none;
  animation: desktop-notice-fall 1050ms linear forwards;
}

@keyframes desktop-notice-fall {
  0% {
    transform: translateY(0) rotate(0);
    animation-timing-function: cubic-bezier(0.12, 0.8, 0.2, 1);
  }
  12% {
    transform: translateY(-10rem) rotate(-20deg);
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }
  100% {
    transform: translateY(120vh) rotate(25deg);
  }
}

.hero .hero-copy {
  max-width: 100%;
  margin: 0.35rem 0 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.scroll-cue {
  display: flex;
  width: fit-content;
  flex-direction: column;
  align-items: center;
  margin: 1.6rem 0 0;
  color: rgb(255 255 255 / 90%);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
}

.scroll-cue:focus-visible {
  outline: 0.125rem solid #fff;
  outline-offset: 0.35rem;
}

.scroll-cue > span:first-child {
  padding-bottom: 0.3rem;
  border-bottom: 0.0625rem solid #fff;
}

.scroll-cue-arrow-track {
  display: block;
  width: 1.5rem;
  height: 1.25rem;
  margin-top: -0.05rem;
  overflow: hidden;
}

.scroll-cue-arrow {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  margin-inline: auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  animation: scroll-cue-slide 2s ease-in-out infinite;
}

@keyframes scroll-cue-slide {
  0%,
  15% {
    transform: translateY(-100%);
  }

  70%,
  80% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-100%);
  }
}

.about-section.transition-about {
  position: absolute;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  inset: 0;
  align-content: center;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 6rem max(1.5rem, calc((100% - 70rem) / 2));
  border-top: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}

.about-transition-frame > .transition-about {
  width: 100%;
  margin: 0;
}

/* Center the desktop portrait in the usable space below the fixed navigation. */
@media (min-width: 71.2501rem) and (prefers-reduced-motion: no-preference) {
  .about-section.transition-about {
    top: var(--about-header-height, 3.625rem);
    padding-block: 2rem;
  }

  .transition-about .about-portrait {
    width: min(100%, 24rem, calc((100svh - var(--about-header-height, 3.625rem) - 4rem) * 2 / 3));
  }
}

.about-content {
  display: grid;
  grid-template-columns: minmax(13.75rem, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  margin-left: clamp(3rem, 13vw, 10.5rem);
}

.about-text {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}

.about-text .section-heading {
  left: 0;
}

.about-content .section-copy {
  align-self: center;
}

.eyebrow,
.section-label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.16em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.6rem;
}

.status-dot {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0.875rem rgb(236 118 44 / 40%);
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 11vw, 8.5rem);
  font-weight: 600;
  letter-spacing: -0.085em;
  line-height: 0.98;
}

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

.hero-copy {
  max-width: 34rem;
  margin: 1.8rem 0 2rem;
  color: #71635b;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.7;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) 1.2fr;
  gap: clamp(2rem, 7vw, 6rem);
  width: min(100% - 3rem, 70rem);
  margin-inline: auto;
  padding-block: 5rem;
  border-top: 0.0625rem solid var(--line);
}

.section-heading {
  position: relative;
  left: clamp(3rem, 13vw, 10.5rem);
  align-self: start;
}

.section-index {
  display: block;
  margin-bottom: 1.3rem;
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.section-heading h2 {
  max-width: 22rem;
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 550;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.section-copy {
  align-self: center;
  color: #4a4541;
  font-size: 1rem;
  line-height: 1.8;
}

.section-copy p {
  margin: 0 0 1.2rem;
}

.section-copy p:last-child {
  margin-bottom: 0;
}

.work-experience-list {
  display: grid;
  gap: 0;
  color: #4a4541;
  font-size: 0.9rem;
  line-height: 1.7;
}

.work-experience-entry + .work-experience-entry {
  border-top: 0.0625rem solid var(--line);
}

.work-experience-header {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.work-experience-arrow {
  width: 0.65rem;
  height: 0.85rem;
  overflow: visible;
  color: var(--accent);
  transition: transform 160ms ease;
}

.work-experience-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.work-experience-entry.is-expanded .work-experience-arrow {
  transform: rotate(90deg);
}

.work-experience-role {
  display: grid;
  min-width: 0;
}

.work-experience-title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.work-experience-employer,
.work-experience-meta {
  display: block;
}

.work-experience-employer {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

.work-experience-meta {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: right;
}

.work-experience-meta span {
  display: block;
}

.work-experience-details {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  transition:
    grid-template-rows 320ms cubic-bezier(0.2, 0.75, 0.25, 1),
    opacity 220ms ease;
}

.work-experience-entry.is-expanded .work-experience-details {
  grid-template-rows: 1fr;
  opacity: 1;
}

.work-experience-details-inner {
  min-height: 0;
  overflow: hidden;
}

.work-experience-entry ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0 0 1.25rem 2rem;
}

.work-experience-header:focus-visible {
  outline: 0.125rem solid var(--accent);
  outline-offset: 0.25rem;
}

.section-copy a {
  color: var(--accent);
  text-decoration-thickness: 0.0625rem;
  text-underline-offset: 0.18em;
}

.inspiration-links a {
  color: #b94d0a;
}

.section-copy a:hover,
.section-copy a:focus-visible {
  color: var(--accent);
}

.ai-assistance-note {
  position: relative;
  white-space: nowrap;
}

.ai-assistance-trigger {
  padding: 0;
  border: 0;
  background: none;
  color: #b94d0a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ai-assistance-trigger:hover,
.ai-assistance-trigger:focus-visible {
  color: var(--accent);
}

.ai-assistance-trigger:focus-visible {
  outline: 0.125rem solid var(--accent);
  outline-offset: 0.1875rem;
}

.ai-assistance-popover {
  position: fixed;
  z-index: 120;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  width: min(34rem, calc(100vw - 2rem));
  max-height: min(65svh, 32rem);
  overflow-y: auto;
  padding: 1rem 2.5rem 1rem 1rem;
  border: 0.0625rem solid var(--line);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 0.75rem 2rem rgb(75 48 28 / 18%);
  color: var(--text);
  line-height: 1.4;
  isolation: isolate;
  white-space: normal;
}

.ai-assistance-popover::before {
  position: absolute;
  left: var(--popover-arrow-left, 1rem);
  width: 0;
  height: 0;
  border-right: 0.5rem solid transparent;
  border-left: 0.5rem solid transparent;
  content: "";
}

.ai-assistance-popover[data-placement="below"]::before {
  top: -0.5rem;
  border-bottom: 0.5625rem solid #fff;
}

.ai-assistance-popover[data-placement="above"]::before {
  bottom: -0.5rem;
  border-top: 0.5625rem solid #fff;
}

.ai-assistance-close {
  position: absolute;
  top: 0.25rem;
  right: 0.35rem;
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.ai-assistance-close:hover,
.ai-assistance-close:focus-visible {
  background: #fff1e7;
  color: var(--accent);
}

.ai-assistance-popover[hidden] {
  display: none;
}

.archive-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "heading preview"
    "copy preview";
  column-gap: clamp(2.5rem, 6vw, 5rem);
  row-gap: 1.5rem;
}

.archive-section .section-heading {
  grid-area: heading;
  width: fit-content;
}

.archive-section .section-copy {
  grid-area: copy;
  margin-left: clamp(3rem, 13vw, 10.5rem);
}

.archive-section .archive-preview {
  grid-area: preview;
  align-self: center;
}

.archive-preview {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 0.0625rem solid var(--line);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 0.625rem 1.75rem rgb(75 48 28 / 10%);
}

.archive-preview iframe {
  display: block;
  width: 200%;
  height: 200%;
  border: 0;
  transform: scale(0.5);
  transform-origin: top left;
  pointer-events: none;
}

.inspiration-links {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding-left: 1.2rem;
  overflow-wrap: anywhere;
}

.about-portrait {
  position: relative;
  width: min(100%, 24rem);
  max-height: 34rem;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 0.5rem;
}

.graduation-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.graduation-photo {
  margin: 0;
}

.about-eyes-overlay {
  pointer-events: none;
  transform: translate(var(--eye-x, 0), var(--eye-y, 0));
}

@media (hover: hover) and (pointer: fine) {
  .about-portrait {
    cursor: default;
  }
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.skill-group {
  padding: 1.5rem;
  border: 0.0625rem solid var(--line);
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 70%);
}

.skill-group h3 {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.skill-group ul {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  list-style: none;
}

.skill-group li span {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
}

.about-text .lab-equipment-trigger {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: help;
}

.lab-equipment-popover {
  position: fixed;
  z-index: 120;
  display: block;
  width: min(20rem, calc(100vw - 2rem));
  margin: 0;
  padding: 0.85rem 1rem;
  border: 0.0625rem solid var(--line);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 0.75rem 2rem rgb(75 48 28 / 18%);
  color: var(--text) !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  line-height: 1.6;
  pointer-events: none;
}

.lab-equipment-popover[hidden] {
  display: none;
}

main {
  min-height: 100vh;
}

.contact-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  min-height: 100vh;
  align-content: start;
  padding: clamp(6rem, 12vh, 9rem) 1.5rem 3rem;
}

.contact-water,
.contact-water-effects {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.contact-water-effects { z-index: 2; }

.contact-ice {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  border: 0.0625rem solid rgb(255 255 255 / 85%);
  border-radius: 0.6875rem 0.9375rem 0.75rem 0.5625rem;
  background:
    linear-gradient(130deg, rgb(255 255 255 / 85%), transparent 40%),
    linear-gradient(155deg, rgb(223 246 250 / 72%), rgb(246 251 248 / 42%) 55%, rgb(177 220 229 / 65%));
  box-shadow: inset 0.1875rem 0.1875rem 0.4375rem rgb(255 255 255 / 80%),
    inset -0.25rem -0.25rem 0.5rem rgb(124 181 195 / 35%), 0 0.3125rem 0.75rem rgb(134 80 28 / 12%);
  transform: translate(var(--float-x, 0), var(--float-y, 0));
}

.contact-ice::before,
.contact-ice::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.ice-cracks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgb(180 225 245 / 90%);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0.0625rem 0 0 rgb(255 255 255 / 95%));
}

.ice-crack-first,
.ice-crack-second { opacity: 0; }
.contact-ice[data-cracks="1"] .ice-crack-first,
.contact-ice[data-cracks="2"] .ice-crack-first,
.contact-ice[data-cracks="2"] .ice-crack-second { opacity: 1; }
.contact-ice[data-cracks="2"] .ice-cracks { stroke-width: 1.7; }

.contact-ice::before {
  inset: 0.5rem;
  border: 0.0625rem solid rgb(255 255 255 / 70%);
  border-radius: 0.375rem 0.5625rem 0.3125rem 0.4375rem;
  transform: rotate(var(--ice-angle));
  background: linear-gradient(140deg, rgb(255 255 255 / 35%), transparent 65%);
}

.contact-ice::after {
  top: 25%;
  left: 30%;
  width: 35%;
  height: 45%;
  border-left: 0.0625rem solid rgb(255 255 255 / 75%);
  border-bottom: 0.0625rem solid rgb(255 255 255 / 55%);
  transform: skew(-15deg) rotate(-20deg);
}

.contact-card:focus-visible {
  outline: 0.125rem solid var(--accent);
  outline-offset: 0.25rem;
}

.contact-card.is-dragging {
  cursor: grabbing;
}

.contact-card.is-dragging { user-select: none; }
.contact-card a { touch-action: auto; }

.contact-section {
  width: min(100%, 60rem);
  margin-inline: auto;
}

.contact-heading {
  margin-bottom: clamp(2rem, 8vh, 3rem);
}

.contact-eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.contact-heading h1 {
  margin: 0.65rem 0 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.055em;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.contact-card {
  position: relative;
  cursor: grab;
  touch-action: none;
  transform: translate(var(--float-x, 0), var(--float-y, 0));
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 0.0625rem solid var(--line);
  border-radius: 0.625rem;
  background: linear-gradient(175deg, #fffaf2, #f8e8d4);
  box-shadow: 0 0.75rem 2rem rgb(75 48 28 / 5%);
}

.contact-card h2 {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.contact-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-card-heading h2 { margin: 0; }

.contact-copy-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2rem;
  min-height: 2rem;
  padding: 0.3rem 0.4rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: rgb(236 118 44 / 62%);
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
  touch-action: manipulation;
}

.contact-copy-button svg { width: 1.2rem; height: 1.2rem; }
.contact-copy-button:hover { background: rgb(236 118 44 / 9%); color: rgb(236 118 44 / 90%); }
.contact-copy-button:focus-visible { outline: 0.125rem solid var(--accent); outline-offset: 0.1875rem; }
.contact-copy-button[data-copied="true"] { color: #cf611b; }

.contact-copy-status {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-details {
  display: grid;
  gap: 1.1rem;
  margin: 0;
}

.contact-details dt {
  margin-bottom: 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-details dd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.6rem;
  margin: 0;
  overflow-wrap: anywhere;
}

.contact-details a {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

.contact-details a:hover,
.contact-details a:focus-visible {
  color: #b94d0a;
}

.projects-page {
  width: min(100% - 12rem, 70rem);
  margin-left: auto;
  margin-right: max(10rem, calc((100% - 70rem) / 2));
  padding: 7rem 0 5rem;
}
.project-rope {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 1rem;
  width: 7.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.75rem, 4vh, 2.5rem);
  padding: calc(var(--project-header-height, 4rem) + 2rem) 0 2rem;
  transform-origin: top center;
  animation: project-rope-drop 1400ms cubic-bezier(0.22, 0.7, 0.25, 1) both;
}
.project-rope::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  width: 0.3rem;
  border-radius: 0 0 0.2rem 0.2rem;
  background: repeating-linear-gradient(135deg, #ab7444 0 0.12rem, #e5c190 0.12rem 0.24rem, #bf925e 0.24rem 0.32rem);
  box-shadow: 0.08rem 0 0.15rem rgb(82 49 23 / 20%);
}
.project-rope-box {
  position: relative;
  width: 100%;
  padding: 0.75rem 0.5rem;
  border: 2px solid #ef8a35;
  border-radius: 0.3rem;
  background-color: #ffe6cb;
  box-shadow: 0 0.18rem 0.4rem rgb(96 55 22 / 12%);
  color: #70421f;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease;
}
.project-rope-box::before {
  content: '';
  position: absolute;
  top: calc(-0.22rem - 2px);
  left: calc(50% - 0.22rem);
  width: 0.44rem;
  height: 0.44rem;
  border: 0.1rem solid #ae7c49;
  border-radius: 50%;
  background: #e6c293;
}
.project-rope-box:hover { transform: rotate(-2deg) translateY(-0.1rem); background-color: #ffd6ac; }
.project-rope-box:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.project-rope.has-physics { height: 90dvh; padding: 0; display: block; animation: none; pointer-events: none; }
.project-rope.has-physics::before { display: none; }
.has-physics .project-rope-box { position: absolute; z-index: 1; transform-origin: top center; transition: background-color 180ms ease; pointer-events: auto; }
.project-rope-strands { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.project-rope-strands path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rope-shadow { stroke: rgb(82 49 23 / 18%); stroke-width: 14; transform: translate(1px, 1px); }
.rope-core { stroke: #ae7c49; stroke-width: 11; }
.rope-twist { stroke: #efd0a2; stroke-width: 6; stroke-dasharray: 4 5; }
.project-rope-strands .rope-cap-shell { fill: #efb16f; stroke: #b87232; stroke-width: 2; }
.rope-cap-highlight { stroke: #ffe0b5; stroke-width: 2; }
.project-rope-strands .rope-hit { stroke: transparent; stroke-width: 28; pointer-events: stroke; cursor: grab; touch-action: none; }
.project-rope.is-dragging .rope-hit { cursor: grabbing; }
@keyframes project-rope-drop {
  0% { transform: translateY(-110%); }
  72% { transform: translateY(0.7rem) rotate(1deg); }
  88% { transform: translateY(-0.25rem) rotate(-0.5deg); }
  100% { transform: translateY(0) rotate(0); }
}

.projects-heading { margin-bottom: 3rem; }
.projects-heading h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.055em;
}
.projects-heading p {
  max-width: 45rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.project-entry { border-top: 0.0625rem solid var(--line); scroll-margin-top: calc(var(--project-header-height, 4rem) + 1rem); }
.project-entry:last-child { border-bottom: 0.0625rem solid var(--line); }
.project-toggle { padding: 1.7rem 0; list-style: none; cursor: pointer; }
.project-heading { margin: 0; }
button.project-toggle { width: 100%; border: 0; background: none; color: inherit; font-family: inherit; text-align: left; font-weight: 700; }
.project-panel { display: grid; grid-template-rows: 0fr; overflow: hidden; opacity: 0; transition: grid-template-rows 320ms cubic-bezier(0.2, 0.75, 0.25, 1), opacity 220ms ease; }
.project-entry.is-expanded .project-panel { grid-template-rows: 1fr; opacity: 1; }
.project-panel-inner { min-height: 0; overflow: hidden; }
.project-toggle::-webkit-details-marker { display: none; }
.project-toggle h2, button.project-toggle {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  line-height: 1.35;
}
.project-toggle:focus-visible { outline: 0.125rem solid var(--accent); outline-offset: 0.25rem; }
.project-skills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem; }
.project-skill { display: inline-block; padding: 0.3rem 0.55rem; border: 1px solid #ec873a; border-radius: 0.4rem; background: #ffead4; color: #783f17; font-size: 0.65rem; font-weight: 500; line-height: 1.35; }
@media (max-width: 48rem) {
  .project-toggle h2, button.project-toggle { grid-template-columns: 1rem minmax(0, 1fr); }
  .project-skills { grid-column: 2; justify-content: flex-start; }
}
.project-arrow {
  width: 0.65rem;
  height: 0.85rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}
.project-entry[open] .project-arrow, .project-entry.is-expanded .project-arrow { transform: rotate(90deg); }
.project-body {
  max-width: 54rem;
  margin-inline: auto;
  padding: 0 2rem 3.5rem;
  color: #4a4541;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.project-body h3 {
  margin: 2.5rem 0 1rem;
  color: var(--text);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}
.project-body h3:first-child { margin-top: 0.5rem; }
.project-body p { margin: 0 0 1.5rem; }
.project-figure { margin: 1.5rem 0 2rem; }
.project-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 0.0625rem solid var(--line);
  border-radius: 0.5rem;
  background: #fff;
}
.project-figure--portrait { max-width: 22rem; margin-inline: auto; }
.project-figure figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}
.project-reveal {
  opacity: 0;
  transition: opacity 400ms ease var(--reveal-delay, 0ms);
}
.project-reveal-image { transition-duration: 500ms; }
.project-reveal.is-revealed { opacity: 1; }
@media (max-width: 71.25rem) {
  .projects-page { width: calc(100% - 9rem); margin-right: 8rem; padding-top: 9rem; }
  .project-rope { right: 0.5rem; width: 6.5rem; }
  .project-body { padding-inline: 0; }
  .project-toggle h2, button.project-toggle { gap: 0.75rem; }
}
@media (max-width: 35rem) {
  .projects-page { width: calc(100% - 6.5rem); margin-right: 5.75rem; }
  .project-rope { width: 4.75rem; right: 0.4rem; gap: 1.5rem; }
  .project-rope-box { font-size: 0.65rem; padding: 0.6rem 0.3rem; }
}
@media (max-height: 35rem) {
  .project-rope { gap: 0.5rem; padding-top: calc(var(--project-header-height, 4rem) + 0.5rem); }
  .project-rope-box { padding-block: 0.35rem; }
}
@media (prefers-reduced-motion: reduce), print {
  .project-rope { animation: none; }
  .project-rope-box { transition: none; }
  .project-reveal { opacity: 1; transform: none; transition: none; }
  .project-arrow { transition: none; }
  .project-panel { transition: none; }
}
@media print {
  .project-rope { display: none; }
  .projects-page { width: 100%; margin: 0; }
}

.interests-page { width: min(100% - 3rem, 64rem); margin: 0 auto; padding: 7rem 0 4rem; }
.interests-heading { max-width: 42rem; margin-bottom: 2rem; }
.interests-heading h1 { margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.05em; }
.interests-heading p, .activities-section > p { color: var(--muted); line-height: 1.65; }
.happiness-station { position: sticky; top: calc(var(--interests-header-height, 4rem) + 0.5rem); z-index: 10; padding: 1rem 1.25rem 0.75rem; border: 1px solid #edc6a2; border-radius: 1rem; background: #fffaf5; box-shadow: 0 0.4rem 1.2rem rgb(91 50 22 / 8%); }
.happiness-heading { position: relative; display: flex; justify-content: center; align-items: center; min-height: 1.8rem; padding-inline: 2rem; }
.happiness-heading h2 { font-size: 1.05rem; margin: 0; }
.happiness-hint-button { position: absolute; right: 0; width: 1.6rem; height: 1.6rem; padding: 0; border: 1px solid #e6a367; border-radius: 50%; background: #ffebd7; color: #713c19; font: inherit; font-size: 0.9rem; cursor: pointer; }
.happiness-hints { position: absolute; bottom: calc(100% + 0.75rem); left: 0; right: 0; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; pointer-events: none; }
.happiness-hints.hints-below { top: calc(100% + 0.75rem); bottom: auto; }
.happiness-hint-pointers { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.happiness-hint { position: relative; padding: 0.75rem; padding-right: 1.5rem; border: 1px solid rgb(221 139 67 / 55%); border-radius: 0.6rem; background: rgb(255 240 222 / 82%); box-shadow: 0 0.2rem 0.8rem rgb(91 50 22 / 10%); backdrop-filter: blur(3px); color: #663b1b; font-size: 0.65rem; line-height: 1.45; pointer-events: auto; }
.happiness-hint p { margin: 0.35rem 0 0; }
.hint-dismiss { position: absolute; top: 0.15rem; right: 0.2rem; width: 1.2rem; height: 1.2rem; padding: 0; background: transparent; border: 0; color: #713c19; font: inherit; font-size: 1rem; cursor: pointer; }
.happiness-hints[hidden] { display: none; }
.happiness-hint[hidden] { display: block; visibility: hidden; pointer-events: none; }
.happiness-target-hint { display: none; }
.show-drop-hint .happiness-target-hint { display: block; }
.happiness-scene { display: block; width: 100%; height: clamp(145px, 29vh, 330px); overflow: visible; }
.happiness-display { display: grid; grid-template-columns: minmax(11rem, 1.6fr) minmax(0, 3.4fr) minmax(7rem, 1fr); gap: 0.75rem; align-items: center; }
.hobby-detail-panel { min-width: 0; min-height: 6rem; padding: 0.5rem 0; opacity: 0; pointer-events: none; }
.hobby-detail-panel.is-visible { opacity: 1; }
.hobby-detail-panel h3 { margin: 0 0 0.65rem; font-size: 0.75rem; line-height: 1.35; }
.hobby-detail-panel p { margin: 0.4rem 0; font-size: 0.9rem; line-height: 1.5; color: #78553a; }
.hobby-detail-caption { margin: 1rem 0 0.3rem; font-size: 1rem; font-weight: 650; letter-spacing: 0.06em; line-height: 1.3; }
.hobby-notes { min-height: 3rem; }
@media (max-width: 55rem) {
  .happiness-display { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .happiness-display .happiness-scene { grid-column: 1 / -1; grid-row: 1; }
  .hobby-detail-panel { grid-row: 2; min-height: 4rem; padding: 0.55rem 0; }
  .hobby-notes { min-height: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .hobby-detail-panel { transition: none; } }
.happiness-ticks { fill: #70421f; font-size: 19px; }
.happiness-drop-zone.is-over rect { fill: #ffd1a0; stroke: #bc550b; stroke-dasharray: none; }
.happiness-result { min-height: 1.5em; margin: 0; text-align: center; font-size: 0.75rem; color: #75421f; }
.activities-section { margin-top: 2.5rem; }
.activities-section h2 { margin-bottom: 0.5rem; }
.activities-section > p { font-size: 0.8rem; max-width: 48rem; }
.activity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.activity-card { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; padding: 0.6rem 0.6rem 0.9rem; border: 1px solid #edb681; border-radius: 0.7rem; background: #fff0df; color: var(--text); text-align: left; font: inherit; cursor: grab; touch-action: none; user-select: none; transition: box-shadow 160ms ease, background-color 160ms ease; }
.activity-card:hover { background: #ffe5c9; box-shadow: 0 0.2rem 0.6rem rgb(113 61 24 / 12%); }
.activity-card-with-tip { position: relative; display: grid; min-width: 0; }
.activity-first-tip { padding-right: 1.8rem !important; }
.activity-tip-dismiss { position: absolute; top: 0.15rem; right: 0.2rem; width: 1.3rem; height: 1.3rem; padding: 0; border: 0; background: transparent; color: #713c19; font: inherit; font-size: 1rem; cursor: pointer; pointer-events: auto; }
.activity-tip-dismiss:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.activity-first-tip { position: absolute; top: -0.75rem; left: 0.5rem; right: 0.5rem; z-index: 2; padding: 0.45rem 0.6rem; border: 1px solid #e5a56e; border-radius: 0.5rem; background: rgb(255 240 222 / 92%); color: #713c19; font-size: 0.7rem; font-weight: 600; text-align: center; box-shadow: 0 0.2rem 0.6rem rgb(91 50 22 / 12%); pointer-events: none; }
.activity-first-tip::after { content: ''; position: absolute; top: 100%; left: calc(50% - 6px); border: 6px solid transparent; border-top-color: #e5a56e; }
.activity-first-tip[hidden] { display: none; }
.activity-card[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.activity-card img, .activity-water { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0.4rem; pointer-events: none; }
.activity-water { background: linear-gradient(160deg, #d8edeb, #a4d1d6); font-size: 4rem; text-align: center; color: #397b85; }
.activity-name { margin-top: 0.35rem; font-weight: 650; font-size: 0.95rem; }
.activity-rating, .activity-skill { font-size: 0.7rem; line-height: 1.45; color: #78553a; }
.activity-card:not(.is-discovered) .activity-rating,
.activity-card:not(.is-discovered) .activity-skill { display: none; }
.activity-card.is-dragging { opacity: 0.5; }
.activity-drag-ghost { position: fixed; z-index: 150; transform: translate(-50%, -60%); max-width: 12rem; padding: 0.7rem 1rem; border: 2px solid var(--accent); border-radius: 0.5rem; background: #ffe0bc; color: #713c19; box-shadow: 0 0.4rem 1rem rgb(80 40 10 / 20%); pointer-events: none; font-weight: 650; }
.activity-image-ghost { position: fixed; z-index: 150; transform: translate(-50%, -50%); border: 2px solid #d77526; border-radius: 4px; background: #ffe0bc; padding: 2px; box-shadow: 0 4px 12px rgb(80 40 10 / 20%); pointer-events: none; overflow: hidden; }
.activity-image-ghost img { width: 100%; height: 100%; display: block; object-fit: cover; }
.happiness-activity-box { cursor: grab; touch-action: none; }
.happiness-activity-box:active { cursor: grabbing; }
.happiness-activity-box:focus-visible { outline: none; }
.happiness-activity-box:focus-visible > rect { stroke: #28221e; stroke-width: 5; }
.activity-card:focus-visible, .happiness-hint-button:focus-visible, .hint-dismiss:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (max-width: 71.25rem) { .interests-page { padding-top: 9rem; } }
@media (max-width: 35rem) {
  .interests-page { width: calc(100% - 1.5rem); }
  .happiness-station { padding: 0.65rem; }
  .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .happiness-result { font-size: 0.7rem; }
  .happiness-hints { gap: 0.35rem; }
  .happiness-hint { font-size: 0.65rem; padding: 1.25rem 0.4rem 0.5rem; }
}
@media (max-height: 32rem) { .happiness-station { position: relative; top: auto; } }
@media (prefers-reduced-motion: reduce) { .activity-card { transition: none; } }
@media print { .happiness-station { position: static; } }

.resume-page {
  min-height: 0;
}

.resume-page .resume-pdf {
  position: fixed;
  z-index: 1;
  top: 3.625rem;
  left: 0;
  display: block;
  width: 100vw;
  height: calc(100vh - 3.625rem);
  height: calc(100dvh - 3.625rem);
  border: 0;
  background: #fff;
}

@media (max-width: 71.25rem) {
  .header-inner {
    width: min(100% - 2rem, 70rem);
  }

  .header-inner,
  .site-header.is-compact .header-inner,
  .site-header.is-compact:hover .header-inner,
  .site-header.is-compact:focus-within .header-inner {
    height: auto;
    min-height: 3.375rem;
  }

  .resume-page .resume-pdf {
    top: 6.75rem;
    height: calc(100vh - 6.75rem);
    height: calc(100dvh - 6.75rem);
  }

  .contact-page {
    min-height: 100svh;
    padding: 7.5rem 1rem 2rem;
  }

  .contact-heading {
    margin-bottom: 2rem;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .nav-link {
    justify-content: center;
    height: 3.375rem;
    min-height: 3.375rem;
    padding-inline: 0.25rem;
    font-size: 0.62rem;
    text-align: center;
    text-wrap: wrap;
  }

  .about-section {
    width: min(100% - 2rem, 70rem);
  }

  .hero {
    width: 100%;
    min-height: 36.25rem;
    padding-inline: 1rem;
  }

  .hero h1 {
    font-size: clamp(4rem, 18vw, 6.5rem);
  }

  .hero-title-wrap {
    margin-bottom: 4rem;
  }

  .desktop-notice span {
    font-size: clamp(0.9rem, 3.2vw, 1.15rem);
  }

  .desktop-notice {
    padding: 0.6rem 0.75rem;
  }

  .hero .hero-copy {
    max-width: 100%;
  }

  .transition-about {
    width: 100%;
    padding: 5.5rem 1rem 2rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-left: 0;
  }

  .about-portrait {
    width: min(100%, 24rem);
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-block: 3rem;
  }

  .work-experience-header {
    grid-template-columns: 1rem minmax(0, 1fr);
    gap: 0.25rem 0.75rem;
  }

  .work-experience-meta {
    grid-column: 2;
    text-align: left;
  }

  .section-heading {
    left: 1rem;
  }

  .archive-section .section-copy {
    margin-left: 0;
  }

  .archive-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "copy"
      "preview";
    row-gap: 1.25rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-group {
    padding: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-pattern {
    display: none;
  }

  .about-transition-stage {
    height: auto;
  }

  .about-transition-frame {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .hero,
  .transition-about {
    position: relative;
    inset: auto;
    min-height: 36.25rem;
    opacity: 1 !important;
  }

  .scroll-cue-arrow {
    animation: none;
  }

  .transition-about {
    min-height: 0;
    border-top: 0.0625rem solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .nav-link[aria-current="page"]::before {
    transform: scaleX(1);
    animation: none;
  }
}
