:root {
  color-scheme: light;
  --paper: #f5f3ec;
  --paper-strong: #ebe8de;
  --ink: #15251e;
  --ink-soft: #4d5b54;
  --forest: #153f35;
  --forest-deep: #0d2e27;
  --mint: #bde8d3;
  --lime: #d5f25a;
  --coral: #b94731;
  --coral-bright: #ff775f;
  --blue: #8cbbff;
  --lavender: #c8bcff;
  --line: rgba(21, 37, 30, 0.16);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 40px;
  --max-width: 1220px;
  --shadow: 0 24px 70px rgba(11, 39, 31, 0.11);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #101815;
  --paper-strong: #19241f;
  --ink: #f3f4ef;
  --ink-soft: #b3c0b9;
  --forest: #68c9ac;
  --forest-deep: #08271f;
  --mint: #173c32;
  --coral: #ff8b74;
  --line: rgba(235, 244, 239, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: color 220ms ease, background 220ms ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.34;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

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

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

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

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

::selection {
  color: var(--forest-deep);
  background: var(--lime);
}

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--forest);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
}

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

.section-pad {
  padding-block: clamp(96px, 12vw, 168px);
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), 1280px);
  min-height: 64px;
  padding: 8px 10px 8px 14px;
  background: rgba(245, 243, 236, 0.76);
  border: 1px solid transparent;
  border-radius: 999px;
  transform: translateX(-50%);
  transition: background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  background: rgba(245, 243, 236, 0.94);
  border-color: var(--line);
  box-shadow: 0 12px 40px rgba(21, 37, 30, 0.08);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  object-fit: cover;
  border-radius: 50%;
}

.main-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.main-nav a {
  padding: 9px 14px;
  color: var(--ink-soft);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--ink);
  background: rgba(21, 63, 53, 0.08);
}

.main-nav .nav-contact {
  margin-left: 6px;
  padding-inline: 18px;
  color: white;
  background: var(--forest);
}

.main-nav .nav-contact:hover,
.main-nav .nav-contact.is-active {
  color: white;
  background: var(--forest-deep);
}

.site-controls,
.language-switcher {
  display: flex;
  align-items: center;
}

.site-controls {
  gap: 6px;
  margin-left: 4px;
}

.language-switcher {
  padding: 3px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-switcher button,
.theme-toggle {
  display: grid;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  place-items: center;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher button {
  width: 30px;
  height: 28px;
  border-radius: 999px;
}

.language-switcher button[aria-pressed="true"] {
  color: white;
  background: var(--forest);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.theme-toggle:hover {
  color: var(--ink);
  background: var(--paper-strong);
  transform: rotate(8deg);
}

.theme-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

.menu-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(48px, 7vh, 80px);
  align-content: center;
  min-height: 100svh;
  padding-top: 132px;
  padding-bottom: 48px;
}

.hero-copy {
  width: 100%;
}

.eyebrow,
.section-kicker {
  margin: 0 0 24px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--forest);
}

.eyebrow > span:first-child {
  width: 26px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--coral);
  border-radius: 999px 2px 999px 2px;
  transform: rotate(-8deg);
}

.hero h1,
.section-intro h2,
.lab-heading h2,
.contact-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.93;
}

.hero h1 {
  max-width: 1100px;
  font-size: clamp(4.6rem, 11.5vw, 10.5rem);
}

.hero h1 em {
  position: relative;
  z-index: 0;
  font-weight: 400;
}

.hero h1 em::after {
  position: absolute;
  right: -0.02em;
  bottom: 0.03em;
  left: -0.02em;
  z-index: -1;
  height: 0.15em;
  content: "";
  background: var(--lime);
  border-radius: 50%;
  transform: rotate(-2deg);
}

.hero-lede {
  max-width: 880px;
  margin: 36px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.6;
}

.hero-lede strong {
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  font-size: 0.9rem;
  font-weight: 800;
}

.button-primary {
  padding: 0 22px;
  color: white;
  background: var(--forest);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(21, 63, 53, 0.18);
  transition: transform 180ms ease, background 180ms ease;
}

.button-primary svg {
  width: 19px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.button-primary:hover {
  background: var(--forest-deep);
  transform: translateY(-2px);
}

.button-text {
  border-bottom: 1px solid var(--ink);
}

.button-text span,
.contact-email span,
.social-links span {
  display: inline-block;
  transition: transform 180ms ease;
}

.button-text:hover span,
.contact-email:hover span,
.social-links a:hover span {
  transform: translate(3px, -3px);
}

.hero-stats {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, 1fr);
  margin: 38px 0 0;
  padding: 30px 0 0;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding-inline: 32px;
  border-right: 1px solid var(--line);
}

.hero-stats div:first-child {
  padding-left: 0;
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats dt {
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.1rem;
  line-height: 1;
}

.hero-stats dd {
  max-width: 150px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.profile {
  border-top: 1px solid var(--line);
}

.section-intro {
  max-width: 870px;
}

.section-kicker {
  color: var(--coral);
}

.section-intro h2,
.lab-heading h2,
.contact-card h2 {
  font-size: clamp(3.4rem, 7vw, 7rem);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(56px, 10vw, 150px);
  align-items: start;
  margin-top: clamp(56px, 8vw, 104px);
}

.profile-statement {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.profile-statement span {
  box-shadow: inset 0 -0.28em var(--mint);
}

.profile-detail {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.profile-detail p {
  margin: 0 0 20px;
}

.skill-list,
.tag-list,
.personal-notes ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.skill-list li,
.tag-list li {
  padding: 7px 11px;
  color: var(--forest);
  background: rgba(189, 232, 211, 0.52);
  border: 1px solid rgba(21, 63, 53, 0.1);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.journey {
  overflow: hidden;
  color: #f6f4ed;
  background: var(--forest-deep);
  border-radius: 42px 42px 0 0;
}

.section-intro-light .section-kicker {
  color: var(--lime);
}

.journey-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(60px, 10vw, 150px);
  align-items: start;
  margin-top: clamp(64px, 9vw, 118px);
}

.journey-copy {
  color: rgba(246, 244, 237, 0.67);
}

.journey-lede {
  margin-top: 0;
  color: #f6f4ed;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.45;
}

.journey-copy strong {
  color: var(--lime);
  font-weight: 600;
}

.timeline {
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  padding: 0 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.timeline-year {
  padding-top: 26px;
  color: var(--lime);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.timeline h3 {
  margin: 21px 0 8px;
  font-size: 1.2rem;
}

.timeline p {
  margin: 0;
  color: rgba(246, 244, 237, 0.62);
  font-size: 0.91rem;
}

.cad-strip {
  margin-top: 72px;
  padding: 26px;
  color: var(--ink);
  background: var(--paper);
  border-radius: var(--radius-md);
}

.cad-strip > p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cad-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.cad-logos figure {
  display: grid;
  min-height: 110px;
  padding: 18px;
  margin: 0;
  overflow: hidden;
  place-items: center;
  background: white;
  border: 1px solid rgba(21, 37, 30, 0.09);
  border-radius: var(--radius-sm);
}

.cad-logos img {
  max-width: 150px;
  max-height: 70px;
  mix-blend-mode: multiply;
}

.process-heading,
.lab-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(50px, 9vw, 132px);
  align-items: end;
}

.process-heading > p,
.lab-intro p {
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.tool-list {
  display: grid;
  gap: 120px;
  margin-top: clamp(72px, 10vw, 132px);
}

.tool-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
}

.tool-card-reverse {
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
}

.tool-card-reverse .tool-visual {
  order: 2;
}

.tool-card-reverse .tool-copy {
  order: 1;
}

.tool-visual {
  position: relative;
  padding: 12px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
  transition: transform 600ms var(--ease);
}

.tool-card-reverse .tool-visual {
  transform: rotate(1deg);
}

.tool-card:hover .tool-visual {
  transform: rotate(0deg) translateY(-5px);
}

.tool-visual video {
  display: block;
  width: 100%;
  aspect-ratio: 1.62;
  object-fit: cover;
  object-position: top center;
  border-radius: 15px;
  background: #d9ddd8;
}

.tool-index {
  position: absolute;
  right: -20px;
  bottom: -20px;
  display: grid;
  width: 70px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--forest-deep);
  background: var(--lime);
  border: 7px solid var(--paper);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.tool-meta {
  display: flex;
  justify-content: space-between;
  padding-bottom: 15px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-copy h3 {
  margin: 24px 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}

.tool-copy > p {
  margin: 0;
  color: var(--ink-soft);
}

.codex-note {
  position: relative;
  z-index: 1;
  max-width: 480px;
  padding-inline-start: 15px;
  border-inline-start: 2px solid currentcolor;
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.5;
  opacity: 0.68;
}

.tool-copy > .codex-note {
  margin-top: 22px;
  color: var(--ink);
}

.tool-copy > .codex-note + .tag-list {
  margin-top: 22px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
}

.lab {
  color: var(--ink);
  background: var(--mint);
  border-radius: 42px 42px 0 0;
}

.lab .section-kicker {
  color: var(--forest);
}

.lab-intro a {
  display: inline-block;
  margin-top: 26px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(72px, 10vw, 128px);
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 490px;
  padding: clamp(28px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(13, 46, 39, 0.14);
  border-radius: var(--radius-lg);
  transition: color 300ms ease, background 300ms ease, transform 350ms var(--ease), box-shadow 350ms ease;
}

.app-card::after {
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 280px;
  aspect-ratio: 1;
  content: "";
  background: var(--card-accent);
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.66;
  transition: transform 500ms var(--ease);
}

.app-card:hover {
  color: white;
  background: var(--forest-deep);
  box-shadow: 0 24px 60px rgba(13, 46, 39, 0.2);
  transform: translateY(-7px);
}

.app-card:hover::after {
  transform: scale(1.25) translate(-12px, -6px);
}

.app-contami {
  --card-accent: var(--lime);
  background: #f5f4df;
}

.app-novelist {
  --card-accent: var(--coral-bright);
  background: #f6ddd7;
}

.app-drawing {
  --card-accent: var(--blue);
  background: #ddeaff;
}

.app-skill {
  --card-accent: var(--lavender);
  background: #e7e1ff;
}

.app-preview,
.app-card-body,
.app-cta {
  position: relative;
  z-index: 1;
}

.app-title {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.app-monogram,
.app-icon {
  display: grid;
  flex: 0 0 auto;
  width: 56px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 16px;
}

.app-icon {
  overflow: hidden;
  background: white;
  box-shadow: 0 8px 24px rgba(13, 46, 39, 0.12);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-monogram {
  color: white;
  background: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-style: italic;
}

.app-arrow {
  position: absolute;
  top: clamp(28px, 4vw, 46px);
  right: clamp(28px, 4vw, 46px);
  z-index: 2;
  font-size: 1.75rem;
  transition: transform 300ms var(--ease);
}

.app-card:hover .app-arrow {
  transform: translate(5px, -5px);
}

.app-preview {
  align-self: flex-start;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1.62;
  margin-top: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(13, 46, 39, 0.12);
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(13, 46, 39, 0.12);
  transform: rotate(-1deg);
  transition: transform 600ms var(--ease);
}

.app-card:nth-child(even) .app-preview {
  transform: rotate(1deg);
}

.app-card:hover .app-preview {
  transform: rotate(0deg) translateY(-3px);
}

.app-preview img,
.app-preview video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.82);
  opacity: 0.84;
  transform: scale(1.025);
}

.app-card-body {
  margin-top: 0;
  padding-top: 0;
}

.app-type {
  margin: 0 0 14px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.68;
}

.app-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1;
}

.app-card-body > p:last-child {
  max-width: 480px;
  margin: 0;
  line-height: 1.55;
  opacity: 0.74;
}

.app-card > .codex-note {
  margin: 24px 0 0;
}

.app-cta {
  align-self: flex-start;
  margin-top: 32px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentcolor;
  font-size: 0.8rem;
  font-weight: 800;
}

.personal-notes {
  display: grid;
  grid-template-columns: 0.45fr 1.55fr;
  gap: 50px;
  align-items: start;
  margin-top: 96px;
  padding-top: 32px;
  border-top: 1px solid rgba(13, 46, 39, 0.22);
}

.personal-label {
  margin: 4px 0 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.personal-notes ul {
  display: grid;
  gap: 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  line-height: 1.25;
}

.personal-notes li {
  color: rgba(13, 46, 39, 0.62);
}

.personal-notes span {
  color: var(--forest-deep);
  font-style: italic;
}

.personal-note-3d {
  white-space: nowrap;
}

.contact {
  padding-bottom: 64px;
}

.contact-card {
  position: relative;
  padding: clamp(42px, 7vw, 90px);
  overflow: hidden;
  color: white;
  background: var(--forest-deep);
  border-radius: var(--radius-lg);
}

.contact-card::after {
  position: absolute;
  top: -140px;
  right: -80px;
  width: 440px;
  aspect-ratio: 1;
  content: "";
  background: var(--coral-bright);
  border-radius: 50%;
  opacity: 0.95;
}

.contact-card::before {
  position: absolute;
  top: 35px;
  right: 90px;
  z-index: 1;
  width: 88px;
  height: 35px;
  content: "";
  border-top: 5px solid var(--forest-deep);
  border-bottom: 5px solid var(--forest-deep);
  transform: rotate(-28deg);
}

.contact-card > * {
  position: relative;
  z-index: 2;
}

.contact-card .section-kicker {
  color: var(--lime);
}

.contact-card h2 {
  max-width: 940px;
  font-size: clamp(3rem, 6.6vw, 6.6rem);
}

.contact-email {
  display: inline-block;
  margin-top: clamp(44px, 7vw, 80px);
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 54px;
}

.social-links a {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}

.social-links a:hover {
  color: var(--forest-deep);
  background: white;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
}

.site-footer a {
  color: var(--ink);
  font-weight: 800;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
}

[data-reveal][data-reveal-delay="1"] {
  transition-delay: 110ms;
}

[data-reveal][data-reveal-delay="2"] {
  transition-delay: 220ms;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

html[data-theme="dark"] .site-header {
  background: rgba(16, 24, 21, 0.78);
}

html[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(16, 24, 21, 0.95);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .main-nav a:hover,
html[data-theme="dark"] .main-nav a.is-active {
  background: rgba(104, 201, 172, 0.12);
}

html[data-theme="dark"] .main-nav .nav-contact,
html[data-theme="dark"] .language-switcher button[aria-pressed="true"] {
  color: var(--forest-deep);
  background: var(--lime);
}

html[data-theme="dark"] .main-nav .nav-contact:hover,
html[data-theme="dark"] .main-nav .nav-contact.is-active {
  color: var(--forest-deep);
  background: #e4fa7d;
}

html[data-theme="dark"] .button-primary {
  color: var(--forest-deep);
  background: var(--lime);
}

html[data-theme="dark"] .button-primary:hover {
  background: #e4fa7d;
}

html[data-theme="dark"] .skip-link {
  color: var(--forest-deep);
  background: var(--lime);
}

html[data-theme="dark"] .skill-list li,
html[data-theme="dark"] .tag-list li {
  color: #bcebdc;
  background: rgba(104, 201, 172, 0.12);
  border-color: rgba(104, 201, 172, 0.22);
}

html[data-theme="dark"] .app-contami {
  background: #292d1c;
}

html[data-theme="dark"] .app-novelist {
  background: #35231f;
}

html[data-theme="dark"] .app-drawing {
  background: #192c3b;
}

html[data-theme="dark"] .app-skill {
  background: #29243c;
}

html[data-theme="dark"] .app-card {
  border-color: rgba(235, 244, 239, 0.14);
}

html[data-theme="dark"] .app-card:hover {
  color: white;
  background: var(--forest-deep);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .app-monogram {
  color: var(--forest-deep);
  background: var(--lime);
}

html[data-theme="dark"] .app-preview {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .personal-notes {
  border-top-color: rgba(235, 244, 239, 0.2);
}

html[data-theme="dark"] .personal-notes li {
  color: rgba(243, 244, 239, 0.66);
}

html[data-theme="dark"] .personal-notes span {
  color: #bcebdc;
}

html[data-theme="dark"] .menu-toggle {
  background: var(--lime);
}

html[data-theme="dark"] .menu-toggle span:not(.sr-only) {
  background: var(--forest-deep);
}

@media (max-width: 980px) {
  .personal-note-3d {
    white-space: normal;
  }

  .hero-stats div {
    grid-template-columns: 1fr;
    gap: 7px;
    padding-inline: 18px;
  }

  .cad-logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    gap: 56px;
  }

  .hero h1 {
    max-width: 900px;
    font-size: clamp(4.1rem, 12vw, 7.4rem);
  }

  .journey-layout,
  .process-heading,
  .lab-heading {
    gap: 60px;
  }

  .tool-card {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 50px;
  }

  .tool-card-reverse {
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  }

  .main-nav a {
    padding-inline: 10px;
  }
}

@media (max-width: 780px) {
  .section-shell {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .section-pad {
    padding-block: 92px;
  }

  .brand-name {
    display: none;
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 6px;
    width: 46px;
    height: 46px;
    padding: 0;
    place-content: center;
    background: var(--forest);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    background: white;
    transition: transform 220ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-last-child(2) {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(82vw, 340px);
    padding: 72px 14px 16px;
    visibility: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top right;
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  }

  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .main-nav a {
    padding: 12px 16px;
  }

  .main-nav .nav-contact {
    margin: 8px 0 0;
    text-align: center;
  }

  .site-controls {
    justify-content: space-between;
    margin: 8px 0 0;
    padding: 10px 12px 0;
    border-top: 1px solid var(--line);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 150px;
    padding-bottom: 72px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-stats {
    order: 2;
  }

  .hero-stats div {
    grid-template-columns: 1fr;
    gap: 7px;
    padding-inline: 18px;
  }

  .profile-grid,
  .journey-layout,
  .process-heading,
  .lab-heading,
  .personal-notes {
    grid-template-columns: 1fr;
  }

  .cad-logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .tool-list {
    gap: 96px;
  }

  .tool-card {
    grid-template-columns: 1fr;
  }

  .tool-card-reverse {
    grid-template-columns: 1fr;
  }

  .tool-card-reverse .tool-visual,
  .tool-card-reverse .tool-copy {
    order: initial;
  }

  .tool-copy {
    max-width: 620px;
  }

  .app-card {
    min-height: 430px;
  }

  .personal-notes {
    gap: 28px;
  }
}

@media (max-width: 580px) {
  .section-pad {
    padding-block: 78px;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .hero {
    padding-top: 124px;
  }

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

  .hero-lede {
    margin-top: 28px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-stats div,
  .hero-stats div:first-child {
    grid-template-columns: 64px 1fr;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-stats div:last-child {
    border-bottom: 0;
  }

  .hero-stats dt {
    font-size: 2.6rem;
  }

  .section-intro h2,
  .lab-heading h2,
  .contact-card h2 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .profile-grid {
    gap: 42px;
  }

  .journey,
  .lab {
    border-radius: 28px 28px 0 0;
  }

  .timeline li {
    grid-template-columns: 92px 1fr;
    gap: 15px;
  }

  .cad-strip {
    padding: 18px;
  }

  .cad-logos figure {
    min-height: 86px;
    padding: 12px;
  }

  .tool-list {
    margin-top: 72px;
  }

  .tool-visual {
    padding: 7px;
    border-radius: 18px;
  }

  .tool-index {
    right: -8px;
    bottom: -18px;
    width: 58px;
    border-width: 5px;
  }

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

  .app-card {
    min-height: 410px;
    border-radius: 28px;
  }

  .contact-card {
    border-radius: 28px;
  }

  .contact-card::after {
    top: -150px;
    right: -180px;
  }

  .contact-card::before {
    display: none;
  }

  .contact-email {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    padding-block: 24px;
    text-align: center;
  }

  .site-footer p {
    margin: 0;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
