:root {
  --bg: #ffffff;
  --surface: #f5f5f5;
  --text: #111111;
  --accent: #e05409;
  --rank: #00b300;
  --ink-soft: #19191b;
  --page: 1440px;
  --theme-progress: 0;
  --grid-margin: 120px;
  --grid-gap: 16px;
  --header-offset: 88px;
  --grid-col: calc((100vw - (var(--grid-margin) * 2) - (var(--grid-gap) * 11)) / 12);
  --grid-line: color-mix(in srgb, var(--text) 10%, transparent);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overscroll-behavior-y: none;
  transition: background-color 0.16s linear, color 0.16s linear;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Figtree", sans-serif;
  transition: background-color 0.16s linear, color 0.16s linear;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--grid-margin) 36px;
  background: transparent;
  isolation: isolate;
}

.site-header > :not(.header-frost) {
  position: relative;
  z-index: 1;
}

.header-frost {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 15vh;
  min-height: var(--header-offset);
  max-height: calc(var(--header-offset) + 56px);
  pointer-events: none;
  z-index: 0;
}

.header-frost span {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  pointer-events: none;
}

.header-frost span:nth-child(1) {
  height: 100%;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
}

.header-frost span:nth-child(2) {
  height: 82%;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
}

.header-frost span:nth-child(3) {
  height: 62%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  mask-image: linear-gradient(to bottom, #000 10%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent 100%);
}

.header-frost span:nth-child(4) {
  height: 42%;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  mask-image: linear-gradient(to bottom, #000 20%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 100%);
}

.header-frost span:nth-child(5) {
  height: 26%;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 62%, transparent), transparent);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
}

.brand {
  font-family: "Fenix", serif;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.header-end {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
}

.nav-links a:hover,
.brand:hover {
  opacity: 0.7;
}

.resume-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: auto;
  min-width: 0;
  height: 40px;
  padding: 0 18px;
  background: var(--text);
  border: 0;
  border-radius: 980px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--bg);
}

.resume-btn:hover {
  opacity: 0.86;
}

.snap {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 128px var(--grid-margin) 48px;
}

.hero {
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  justify-content: center;
  align-items: center;
  padding: 108px 24px 72px;
  overflow: hidden;
  background-color: var(--bg);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--text);
  opacity: 0.5;
  transform: translateX(-50%);
}

.scroll-hint svg {
  display: block;
  animation: scroll-hint 1.7s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes scroll-hint {
  0% {
    transform: translateY(-4px);
    opacity: 0.15;
  }
  35% {
    transform: translateY(6px);
    opacity: 0.85;
  }
  100% {
    transform: translateY(14px);
    opacity: 0;
  }
}

.hero-dot-canvas {
  display: none;
}

.venn {
  --venn-type: 12.2px;
  width: min(92vw, 610.55px);
  max-height: min(78dvh, 559px);
  aspect-ratio: 469.65 / 430;
  max-width: none;
  position: relative;
  z-index: 1;
  user-select: none;
  flex: none;
  touch-action: none;
}

.venn-stage {
  position: relative;
  width: 100%;
  height: auto;
  touch-action: none;
}

.venn-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: "Kedebideri", serif;
  touch-action: none;
}

.venn-ring {
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.venn-base {
  fill: var(--bg);
  fill-opacity: 0;
}

.venn-intersect {
  pointer-events: none;
  opacity: 0;
}

.venn-intersect-fill {
  fill: var(--text);
  fill-opacity: 0.1;
}

.venn.is-landing .venn-intersect {
  animation: venn-fade-in 0.45s 1.05s ease forwards;
}

.venn.is-landed .venn-intersect {
  opacity: 1;
}

.venn-labels {
  pointer-events: none;
}

.venn-outlines {
  pointer-events: none;
}

.venn-outline {
  fill: none;
  stroke: var(--text);
  stroke-width: 0.441;
  opacity: 1;
  transition: stroke 0.35s ease, stroke-width 0.35s ease;
}

.venn-design-stroke {
  pointer-events: none;
  opacity: 1;
}

.venn-design-seg {
  stroke: var(--text);
  stroke-width: 0.441;
  fill: none;
  stroke-linecap: butt;
}

.venn.is-landing .venn-design-rest,
.venn.is-landing .venn-outline {
  stroke-dasharray: 922;
  stroke-dashoffset: 922;
}

.venn.is-landing .venn-design-rest {
  animation: venn-draw 0.95s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.venn.is-landing .venn-outline-experience {
  animation: venn-draw 0.95s 0.2s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.venn.is-landing .venn-outline-outcome {
  animation: venn-draw 0.95s 0.4s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.venn.is-landed .venn-design-rest,
.venn.is-landed .venn-outline {
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  animation: none;
  opacity: 1;
}

.venn-ring[data-ring="experience"] .venn-base {
  transition: fill 0.45s ease, fill-opacity 0.45s ease, filter 0.45s ease;
}

.venn.is-experience-hover .venn-ring[data-ring="experience"] .venn-base {
  fill: var(--text);
  fill-opacity: 0.12;
  filter: drop-shadow(0 6px 18px color-mix(in srgb, var(--text) 28%, transparent));
}

.venn-labels .venn-label {
  fill: var(--text);
  font-family: "Kedebideri", serif;
  font-size: var(--venn-type);
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: fill 0.35s ease;
}

.venn-label textPath {
  font-family: "Kedebideri", serif;
}

.venn.is-landing .venn-labels .venn-label:nth-child(1) {
  animation: venn-fade-in 0.4s 0.85s ease forwards;
}

.venn.is-landing .venn-labels .venn-label:nth-child(2) {
  animation: venn-fade-in 0.4s 1s ease forwards;
}

.venn.is-landing .venn-labels .venn-label:nth-child(3) {
  animation: venn-fade-in 0.4s 1.15s ease forwards;
}

.venn-annotation {
  opacity: 0;
  pointer-events: none;
}

.venn.is-landing .venn-annotation {
  animation: venn-fade-in 0.45s 1.2s ease forwards;
}

.anno-text {
  fill: var(--text);
  font-family: "Kedebideri", serif;
  font-size: var(--venn-type);
  font-weight: 400;
  text-anchor: middle;
  letter-spacing: 0.1em;
  line-height: 15px;
}

.venn.is-landed .venn-labels .venn-label,
.venn.is-landed .venn-annotation {
  opacity: 1;
}

.venn.is-hot .venn-ring:not(.is-on) {
  opacity: 0.42;
}

.venn.is-hot .venn-ring.is-on {
  opacity: 1;
}

.venn-stage.is-cursor-experience {
  cursor: pointer;
}

.venn.is-experience-hover .venn-outline-experience {
  stroke: var(--text);
  stroke-width: 0.7;
}

.venn.is-experience-hover .venn-label-experience,
.venn.is-experience-hover .venn-label-experience textPath {
  fill: var(--text);
}

.venn-outcome-icons {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.venn.is-outcome-hover .venn-outcome-icons {
  opacity: 1;
}

.venn-outcome-icon {
  opacity: 0;
  transform: scale(0.94);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.venn.is-outcome-hover .venn-outcome-icon {
  opacity: 1;
  transform: scale(1);
}

.venn-outcome-disc {
  fill: var(--bg);
  stroke: var(--text);
  stroke-width: 0.9;
  stroke-opacity: 0.42;
}

.venn-outcome-glyph {
  fill: var(--text);
  fill-opacity: 0.55;
  font-family: "Figtree", sans-serif;
  font-size: 11px;
  font-weight: 500;
}

.venn-outcome-mark {
  fill: var(--text);
  fill-opacity: 0.55;
}

.venn-outcome-graph {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.15;
  stroke-opacity: 0.55;
}

.venn.is-hot .venn-intersect,
.venn.is-hot .venn-annotation {
  opacity: 1;
}

@keyframes venn-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes venn-fade-in {
  to {
    opacity: 1;
  }
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 46px;
  width: 401px;
}

.intro-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  gap: 24px;
  width: min(100%, 384px);
}

.avatar {
  width: 99px;
  height: 99px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.intro-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 8px;
}

.intro-card h1 {
  margin: 0;
  font-family: "Figtree", sans-serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.4;
  color: var(--text);
}

h1 {
  margin: 0;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -0.022em;
}

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

.role {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: 0.1em;
  color: var(--text);
}

.about {
  position: relative;
  text-align: center;
  overflow: visible;
  height: auto;
  min-height: 260vh;
  justify-content: flex-start;
  padding: 0 var(--grid-margin);
}

.about-inner {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: min(100%, 980px);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 96px 0 48px;
}

.intro-heading {
  --about-progress: 0;
}

.about-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.about-education {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.about-education.is-in {
  opacity: 1;
  transform: none;
}

.about-education span {
  font-size: 17px;
  font-weight: 500;
  color: var(--rank);
}

.about-copy {
  margin: 0;
  width: 100%;
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.022em;
  text-align: center;
}

.about-copy .word {
  color: var(--text);
  opacity: 0.18;
  transition: opacity 0.18s ease-out;
}

.about-copy .word.is-read {
  opacity: 1;
}

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

.about-copy strong .word.is-read {
  font-weight: 500;
}

.about-cta {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  min-width: 184px;
  min-height: 57px;
  background: var(--text);
  border-radius: 64px;
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.2;
  color: var(--bg);
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.about-cta:hover {
  opacity: 0.82;
}

.about h2,
.certs h2,
.hobbies h2,
.works h2 {
  margin: 0;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.022em;
  text-align: center;
}

.about h2 {
  font-size: 56px;
  line-height: 1.1;
}

.i-section {
  align-items: center;
  gap: 40px;
}

.intro-card,
.i-block {
  --shift: 0px;
}

.avatar,
.intro-copy,
.i-block {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.i-section.is-in .avatar {
  opacity: 1;
  transform: translateY(var(--shift));
  transition-delay: 0.04s;
}

.i-section.is-in .intro-copy {
  opacity: 1;
  transform: translateY(var(--shift));
  transition-delay: 0.14s;
}

.i-section.is-in .i-block {
  opacity: 1;
  transform: translateY(calc(var(--shift) * 0.45));
  transition-delay: 0.26s;
}

.i-block {
  display: flex;
  align-items: center;
  gap: 46px;
}

.i-mark {
  margin: 0;
  font-family: "Frank Ruhl Libre", serif;
  font-weight: 300;
  font-size: 160px;
  line-height: 1;
}

.i-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.i-block li {
  font-size: 21px;
  line-height: 1.3;
}

.snap.certs {
  width: 100%;
  max-width: none;
  align-items: center;
  gap: 32px;
  padding-left: var(--grid-margin);
  padding-right: var(--grid-margin);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
  width: 100%;
}

.cert-grid article {
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-column: span 4;
}

.cert-meta {
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.cert-meta p {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.cert-rank {
  font-weight: 500;
  color: var(--rank);
}

.cert-frame {
  height: auto;
  min-height: 420px;
  aspect-ratio: 385 / 430;
  background: var(--surface);
  display: grid;
  place-items: center;
  padding: 20px;
}

.cert-frame img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hobbies {
  align-items: center;
  gap: 44px;
}

.interests {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.interests figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 183px;
}

.interest-art {
  width: 180px;
  height: 214px;
  display: grid;
  place-items: center;
}

.interest-art svg {
  width: 180px;
  height: 180px;
}

.interests figcaption {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.works {
  position: relative;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  height: auto;
  min-height: 100vh;
  padding-top: 0;
  padding-bottom: 120px;
  overflow-x: clip;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 35;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 1.5px solid color-mix(in srgb, var(--text) 28%, transparent);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.back-top.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.back-top:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.work-veil {
  position: sticky;
  top: 0;
  z-index: 19;
  width: 100vw;
  height: var(--header-offset);
  margin-left: calc(50% - 50vw);
  margin-bottom: calc(var(--header-offset) * -1);
  background: var(--bg);
  pointer-events: none;
}

.work-tabs {
  position: sticky;
  top: var(--header-offset);
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--bg);
}

.work-tab {
  appearance: none;
  margin: 0;
  width: 100%;
  min-height: 48px;
  padding: 10px var(--grid-margin);
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.28;
  cursor: pointer;
  position: relative;
  z-index: 1;
  text-align: center;
}

.work-tab:first-child {
  text-align: left;
}

.work-tab:last-child {
  text-align: right;
}

.work-tab::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 6px;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.work-tab:first-child::after {
  left: var(--grid-margin);
  right: 18%;
  transform-origin: left;
}

.work-tab:last-child::after {
  right: var(--grid-margin);
  left: 18%;
  transform-origin: right;
}

.work-tab.is-on {
  opacity: 1;
}

.work-tab.is-on::after {
  transform: scaleX(1);
}

.work-panel {
  display: none;
  width: 100%;
}

.work-panel.is-on {
  display: block;
  scroll-margin-top: calc(var(--header-offset) + 56px);
}

.excerpt-scroller {
  width: 100%;
}

.excerpt-slide {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 0 56px;
}

.work-frame {
  width: 100%;
  background: var(--surface);
  padding: 32px;
  box-sizing: border-box;
}

.excerpt-slide .ui-frame {
  width: min(100%, 825px);
  margin-inline: auto;
  padding: 32px;
  background: var(--surface);
  box-sizing: border-box;
  border-radius: 8px;
}

.ui-frame-inner {
  width: 100%;
}

.excerpt-slide img,
.ui-frame-inner img {
  display: block;
  width: 100%;
  height: auto;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px 16px;
  width: min(100%, 880px);
  margin-inline: auto;
  padding-top: 40px;
  padding-bottom: 48px;
}

.case-grid a {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-grid a:hover p {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.case-grid .work-frame {
  padding: 12px;
}

.case-grid img {
  display: block;
  width: 100%;
  height: auto;
}

.case-grid p {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  .scroll-hint svg {
    animation: none;
  }

  .avatar,
  .intro-copy,
  .i-block,
  .i-section.is-in .avatar,
  .i-section.is-in .intro-copy,
  .i-section.is-in .i-block {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .venn-outline,
  .venn-design-seg,
  .venn-label,
  .venn-annotation,
  .venn-intersect,
  .anno-line,
  .anno-dot {
    animation: none !important;
    transition: none;
  }

  .venn-outline,
  .venn-design-seg,
  .anno-line {
    opacity: 1;
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }

  .venn-labels .venn-label,
  .venn-annotation,
  .venn-intersect,
  .anno-dot {
    opacity: 1;
  }

  .about-copy .word.is-read {
    opacity: 1;
  }

  .about-education {
    opacity: 1;
    transform: none;
  }

  .venn-ring[data-ring="experience"] .venn-base {
    filter: none !important;
    fill-opacity: 0 !important;
  }

  .venn-outcome-icons,
  .venn-outcome-icon-wrap,
  .venn-outcome-icon {
    opacity: 0 !important;
  }
}

@media (min-width: 1101px) and (max-width: 1440px) {
  .excerpt-slide .ui-frame {
    width: min(100%, 862px);
  }
}

@media (min-width: 1441px) {
  .excerpt-slide .ui-frame {
    width: min(100%, 938px);
  }
}

@media (min-width: 1600px) {
  .venn {
    width: min(92vw, 610.55px);
    max-height: min(78dvh, 559px);
  }
}

@media (max-width: 1200px) {
  :root {
    --grid-margin: 32px;
    --grid-gap: 24px;
    --header-offset: 80px;
  }
  .site-header {
    padding: 20px 32px;
  }

  .snap {
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero {
    flex-direction: column;
    padding: 96px 20px 56px;
  }

  .venn {
    width: min(92vw, 520px);
    max-height: min(70dvh, 480px);
  }

  .snap.certs {
    padding-left: 32px;
    padding-right: 32px;
  }

  .cert-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }

  .cert-grid article {
    grid-column: auto;
  }

  .cert-frame {
    min-height: 0;
  }

  .excerpt-slide .ui-frame {
    width: min(100%, 720px);
    padding: 20px;
  }

  .work-tab {
    font-size: 15px;
    min-height: 44px;
    padding: 10px 20px;
  }
}

@media (max-height: 800px) {
  .hero {
    padding-top: 84px;
    padding-bottom: 56px;
  }

  .scroll-hint {
    bottom: 16px;
  }

  .venn {
    width: min(92vw, 610.55px);
    max-height: min(78dvh, 559px);
  }
}

@media (max-width: 700px) {
  :root {
    --grid-margin: 20px;
    --header-offset: 64px;
  }

  .site-header {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
  }

  .header-frost {
    min-height: 72px;
    height: 12vh;
  }

  .header-end {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    margin-left: auto;
  }

  .nav-links {
    gap: 16px;
  }

  .resume-btn {
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
    gap: 4px;
  }

  .resume-btn svg {
    width: 18px;
    height: 18px;
  }

  .brand {
    font-size: 20px;
  }

  .snap {
    padding: 88px 16px 40px;
  }

  .hero {
    padding: 72px 12px 56px;
  }

  .scroll-hint {
    bottom: 18px;
    width: 32px;
    height: 32px;
  }

  .venn {
    --venn-type: 11px;
    width: min(96vw, 420px);
    max-height: min(58dvh, 380px);
  }

  h1 {
    font-size: 32px;
  }

  .intro-card {
    gap: 12px;
    width: min(100%, 320px);
  }

  .avatar {
    width: 76px;
    height: 76px;
  }

  .intro-card h1 {
    font-size: 32px;
    line-height: 1.25;
  }

  .role {
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0.08em;
  }

  .i-section {
    gap: 20px;
    min-height: 100dvh;
    height: auto;
    padding: 80px 16px 36px;
  }

  .certs h2,
  .hobbies h2,
  .works h2 {
    font-size: 32px;
  }

  .i-mark {
    font-size: 72px;
    line-height: 1;
  }

  .i-block {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    max-width: 100%;
  }

  .i-block li {
    font-size: 14px;
    line-height: 1.25;
  }

  .about {
    min-height: 260vh;
    height: auto;
    padding: 0 16px;
  }

  .about-copy {
    font-size: clamp(17px, 5vw, 24px);
  }

  .about-ico {
    width: 0.72em;
    height: 0.72em;
  }

  .about-inner {
    position: sticky;
    top: 0;
    min-height: 100dvh;
    max-height: 100dvh;
    gap: 14px;
    padding: 72px 0 24px;
    justify-content: center;
    overflow: hidden;
  }

  .edu-medal {
    width: 18px;
    height: 18px;
  }

  .about-education {
    font-size: 15px;
  }

  .about-education span {
    font-size: 13px;
  }

  .about-headline {
    gap: 14px;
  }

  .about-cta {
    min-width: auto;
    width: 100%;
    max-width: 280px;
    min-height: 48px;
    padding: 12px 20px;
    font-size: 15px;
  }

  .case-grid {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 20px;
    padding-top: 16px;
  }

  .case-grid a {
    grid-column: auto;
  }

  .case-grid .work-frame,
  .work-frame {
    padding: 10px;
  }

  .excerpt-slide {
    padding: 20px 0 32px;
  }

  .excerpt-slide .ui-frame {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
  }

  .work-tab {
    min-height: 42px;
    padding: 8px 16px;
    font-size: 14px;
  }

  .site-footer {
    padding: 56px 20px 100px;
    gap: 24px;
  }

  .footer-social {
    gap: 16px 20px;
  }

  .footer-mail {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 14px;
  }

  .theme-dock {
    right: 22px;
    bottom: 16px;
  }

  .back-top {
    right: 22px;
    bottom: 68px;
    width: 44px;
    height: 44px;
  }

  .theme-track {
    height: 200px;
    width: 44px;
  }
}

.interest-art svg [fill="#ffffff"] {
  fill: var(--bg);
}

.interest-art svg [stroke="#000000"] {
  stroke: var(--text);
}

.interest-art svg [fill="#000000"] {
  fill: var(--text);
}

.interest-art svg [fill="#E05409"] {
  fill: var(--accent);
}

.site-footer {
  width: 100%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding: 96px var(--grid-margin) 88px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: color-mix(in srgb, var(--text) 62%, var(--bg));
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.footer-social a svg {
  width: 11px;
  height: 11px;
}

.footer-social a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-message {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  max-width: 880px;
}

.footer-message p {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: clamp(22px, 3.4vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.6px;
  color: var(--text);
  font-weight: 500;
}

.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: color-mix(in srgb, var(--text) 62%, var(--bg));
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  position: relative;
}

.footer-mail a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
}

.footer-mail svg {
  display: block;
  flex-shrink: 0;
}

.footer-mail a:hover {
  color: var(--text);
}

.footer-copy {
  appearance: none;
  position: relative;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.footer-copy svg {
  width: 16px;
  height: 16px;
}

.footer-copy:hover {
  color: var(--text);
}

.footer-copy.is-copied::after {
  content: "Copied";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
}

.theme-dock {
  position: fixed;
  right: 22px;
  bottom: 28px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  touch-action: none;
  opacity: 0;
  transform: translate3d(18px, 0, 0);
}

.theme-dock.is-open {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-dock.is-touring {
  pointer-events: none;
}

.theme-track {
  position: relative;
  width: 44px;
  height: 274px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 12%, var(--bg));
  cursor: grab;
  outline: none;
  overflow: hidden;
  transform-origin: bottom center;
  transition: height 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.2s ease;
}

.theme-dock.is-ready:not(:hover):not(:focus-within):not(.is-dragging) .theme-track {
  height: 44px;
  cursor: pointer;
}

.theme-dock.is-dragging .theme-track {
  cursor: grabbing;
}

.theme-dots {
  position: absolute;
  inset: 22px 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.theme-dock.is-ready:not(:hover):not(:focus-within):not(.is-dragging) .theme-dots {
  opacity: 0;
}

.theme-dots span {
  position: absolute;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 38%, transparent);
  transform: translate(-50%, -50%);
}

.theme-knob {
  position: absolute;
  left: 50%;
  top: calc(
    22px + (var(--theme-stop, 0) / var(--theme-last, 14)) * (100% - 44px)
  );
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transform: translate(-50%, -50%);
  pointer-events: none;
  line-height: 0;
  transition: top 0.16s cubic-bezier(0.33, 1, 0.68, 1);
}

.theme-dock.is-dragging .theme-knob {
  transition: none;
}

.theme-knob svg {
  display: block;
  width: 26px;
  height: 26px;
  overflow: visible;
  fill: currentColor;
}

@media (max-width: 700px) {
  html {
    overscroll-behavior-y: auto;
  }

  .venn,
  .venn-stage,
  .venn-svg {
    touch-action: pan-y;
  }

  .theme-dock,
  .back-top {
    right: 22px;
  }

  .theme-dock {
    bottom: 16px;
  }

  .back-top {
    bottom: 68px;
    width: 44px;
    height: 44px;
  }

  .theme-track {
    width: 44px;
    height: 200px;
  }
}
