@font-face {
  font-family: 'Rethink Sans';
  src: url('/offline/fonts/65fd5856b14a0392c0683402_RethinkSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rethink Sans';
  src: url('/offline/fonts/6601283f29527a4a210db5e5_RethinkSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rethink Sans';
  src: url('/offline/fonts/65fd5856231d3f12347a1718_RethinkSans-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #10241d;
  --forest: #16382d;
  --forest-dark: #091d16;
  --paper: #f3f1e6;
  --paper-bright: #fbfaf4;
  --lime: #dbe781;
  --signal: #ceff68;
  --muted: #4d5f57;
  --line: rgba(16, 36, 29, 0.2);
  --line-light: rgba(251, 250, 244, 0.2);
  --page-x: clamp(1.25rem, 4.5vw, 5rem);
  --header-h: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --hex-pattern: url("data:image/svg+xml,%3Csvg width='120' height='104' viewBox='0 0 120 104' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2310241d' stroke-opacity='.16' stroke-width='1'%3E%3Cpath d='M30 1 59 17.5v33L30 67 1 50.5v-33Z'/%3E%3Cpath d='m90 36 29 16.5v33L90 102 61 85.5v-33Z'/%3E%3Cpath d='M59 17.5 90 36M59 50.5l31-14.5M30 67l31 18.5'/%3E%3C/g%3E%3Cg fill='%2310241d' fill-opacity='.24'%3E%3Ccircle cx='30' cy='1' r='2'/%3E%3Ccircle cx='119' cy='52.5' r='2'/%3E%3Ccircle cx='61' cy='85.5' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--paper);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Rethink Sans', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--ink);
  background: var(--signal);
}

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

button {
  color: inherit;
  font: inherit;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px var(--signal);
}

#aktuell,
#projekte,
#ueber-mich,
#kontakt {
  scroll-margin-top: var(--header-h);
}

.skip-link {
  position: fixed;
  z-index: 1100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--paper-bright);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.progress {
  position: fixed;
  z-index: 1100;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  pointer-events: none;
}

.progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--signal);
  box-shadow: 0 0 14px rgba(206, 255, 104, 0.54);
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: var(--header-h);
  padding: 0 var(--page-x);
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 241, 230, 0.78);
  backdrop-filter: blur(18px);
  transition: min-height 320ms var(--ease), background 300ms ease;
}

.site-header.scrolled {
  min-height: 64px;
  background: rgba(243, 241, 230, 0.95);
}

.brand,
.version,
.site-header nav {
  font-size: 0.95rem;
  font-weight: 600;
}

.brand {
  width: max-content;
  letter-spacing: 0.02em;
}

.site-header nav {
  display: flex;
  gap: clamp(1.3rem, 2.6vw, 2.8rem);
}

.site-header nav a {
  position: relative;
  padding: 0.5rem 0;
}

.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.25rem;
  left: 0;
  height: 1px;
  content: '';
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms var(--ease);
}

.site-header nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.version {
  justify-self: end;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(400px, 0.75fr);
  min-height: max(820px, 100svh);
  padding: calc(var(--header-h) + 3rem) var(--page-x) 3rem;
  overflow: hidden;
  align-items: center;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.hex-wall {
  position: absolute;
  z-index: -3;
  inset: 0;
  opacity: 0.7;
  background-image: var(--hex-pattern);
  background-position: var(--hex-x, 0) var(--hex-y, 0);
  mask-image: radial-gradient(circle at 58% 46%, black, transparent 75%);
  transition: background-position 250ms linear;
}

.hero::before {
  position: absolute;
  z-index: -2;
  top: 15%;
  right: 13%;
  width: min(41vw, 640px);
  aspect-ratio: 1;
  border-radius: 50%;
  content: '';
  opacity: 0.7;
  background: radial-gradient(circle, rgba(206, 255, 104, 0.54), rgba(219, 231, 129, 0.2) 45%, transparent 72%);
  filter: blur(2px);
  animation: breathe 7s ease-in-out infinite;
}

.molecule {
  position: absolute;
  z-index: -1;
  inset: 2% 0 auto auto;
  width: min(69vw, 1060px);
  height: auto;
  overflow: visible;
  opacity: 0.58;
  pointer-events: none;
  transform: translate3d(var(--molecule-x, 0), var(--molecule-y, 0), 0);
}

.molecule polygon,
.molecule line,
.projects-molecule polygon {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.molecule circle,
.projects-molecule circle {
  fill: var(--ink);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

body.is-ready .molecule polygon,
body.is-ready .molecule line,
.projects-molecule.is-visible polygon {
  animation: drawMolecule 1.6s var(--ease) forwards;
}

body.is-ready .molecule circle,
.projects-molecule.is-visible circle {
  animation: nodeAppear 600ms ease 1s forwards, nodePulse 3s ease-in-out 1.6s infinite;
}

.cluster-a {
  transform-origin: 74% 42%;
  animation: moleculeFloat 8s ease-in-out infinite;
}

.cluster-b {
  transform-origin: 24% 60%;
  animation: moleculeFloat 10s ease-in-out -3s infinite reverse;
}

.hero-copy {
  position: relative;
  z-index: 5;
  max-width: 920px;
  padding-bottom: 4.5rem;
}

.kicker,
.section-label,
.section-head > p:last-child,
.current-kicker,
.latest > span,
.project-index,
.project-period,
.hero-system,
.hero-status small {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.kicker {
  margin: 0 0 2rem;
}

.hero h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(4.2rem, 7.5vw, 8rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.hero-copy > p:last-child {
  max-width: 51ch;
  margin: 2.4rem 0 0;
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  line-height: 1.44;
}

.hero-copy > p a {
  border-bottom: 1px solid currentColor;
  font-weight: 600;
}

.hero-portrait {
  position: absolute;
  z-index: 4;
  right: 3.2%;
  bottom: -1%;
  width: min(43vw, 650px);
  pointer-events: none;
}

.hero-portrait img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 28px rgba(16, 36, 29, 0.2));
}

.portrait-hex {
  position: absolute;
  z-index: 1;
  top: 13%;
  left: 10%;
  width: 78%;
  aspect-ratio: 0.866;
  opacity: 0.9;
  background:
    linear-gradient(145deg, rgba(206, 255, 104, 0.78), rgba(20, 56, 45, 0.18)),
    var(--hex-pattern);
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%);
  animation: hexFloat 6s ease-in-out infinite;
}

.portrait-hex::after {
  position: absolute;
  inset: 7%;
  border: 2px solid rgba(16, 36, 29, 0.35);
  content: '';
  clip-path: inherit;
}

.hero-status {
  position: absolute;
  z-index: 7;
  right: var(--page-x);
  bottom: 4.6rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  width: min(360px, 29vw);
  min-height: 90px;
  padding: 1.1rem 1.2rem;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line);
  background: rgba(251, 250, 244, 0.82);
  box-shadow: 0 18px 50px rgba(16, 36, 29, 0.08);
  backdrop-filter: blur(12px);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #67c66b;
  box-shadow: 0 0 0 6px rgba(103, 198, 107, 0.15);
  animation: nodePulse 2.6s ease-in-out infinite;
}

.hero-status > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-status small {
  color: var(--muted);
}

.hero-status strong {
  font-size: 1.25rem;
}

.hero-status b {
  font-size: 1.25rem;
}

.hero-system {
  position: absolute;
  right: var(--page-x);
  bottom: 1rem;
  left: var(--page-x);
  display: flex;
  justify-content: space-between;
  color: rgba(16, 36, 29, 0.48);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
}

.current,
.projects,
.contact {
  padding: clamp(5.5rem, 9vw, 9rem) var(--page-x);
}

.current {
  background: var(--paper-bright);
}

.section-head {
  display: flex;
  margin-bottom: 2rem;
  justify-content: space-between;
  align-items: center;
}

.section-label {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 0.8rem;
}

.section-label > span {
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
  place-items: center;
  letter-spacing: 0;
}

.section-head > p:last-child {
  margin: 0;
}

.current-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
  overflow: hidden;
  color: var(--paper-bright);
  background: var(--forest-dark);
  isolation: isolate;
}

.card-hexagons {
  position: absolute;
  z-index: -1;
  top: -10%;
  right: -3%;
  width: 46%;
  aspect-ratio: 1;
  opacity: 0.24;
  pointer-events: none;
  transform: rotate(var(--card-rotation, 0deg));
}

.card-hexagons i {
  position: absolute;
  width: 42%;
  aspect-ratio: 0.866;
  border: 2px solid var(--signal);
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%);
}

.card-hexagons i:nth-child(1) { top: 0; left: 22%; }
.card-hexagons i:nth-child(2) { top: 30%; left: 0; }
.card-hexagons i:nth-child(3) { top: 30%; left: 44%; }
.card-hexagons i:nth-child(4) { top: 60%; left: 22%; }

.current-image {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #050907;
}

.current-image::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(180deg, transparent 65%, rgba(8, 25, 17, 0.45));
}

.current-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06) translateY(var(--image-y, 0));
  transition: transform 850ms var(--ease), filter 400ms ease;
}

.current-image:hover img {
  filter: saturate(1.08);
  transform: scale(1.085) translateY(var(--image-y, 0));
}

.current-copy {
  display: flex;
  padding: clamp(3rem, 5vw, 5.5rem);
  flex-direction: column;
  justify-content: center;
}

.current-kicker {
  margin: 0;
  color: var(--signal);
}

.current-copy h2 {
  margin: 1.2rem 0 1.8rem;
  font-size: clamp(4.2rem, 7vw, 8rem);
  font-weight: 600;
  line-height: 0.83;
  letter-spacing: -0.075em;
}

.current-copy > p:not(.current-kicker) {
  max-width: 38ch;
  margin: 0;
  color: rgba(251, 250, 244, 0.78);
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  line-height: 1.42;
}

.current-links {
  display: flex;
  margin-top: 2.4rem;
  align-items: center;
  gap: 1.3rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0.75rem 1.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid var(--signal);
  border-radius: 999px;
  color: var(--ink);
  background: var(--signal);
  font-size: 0.95rem;
  font-weight: 800;
  transition: color 180ms ease, background 180ms ease, transform 260ms var(--ease);
}

.button:hover {
  color: var(--paper-bright);
  background: transparent;
  transform: translateY(-2px);
}

.current-links > a:not(.button) {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.95rem;
  font-weight: 600;
}

.latest {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 145px minmax(300px, 1fr) auto 40px;
  min-height: 108px;
  padding: 1.35rem 1.5rem;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.025);
  transition: background 220ms ease;
}

.latest:hover {
  background: rgba(206, 255, 104, 0.08);
}

.latest > span {
  color: var(--signal);
}

.latest strong {
  overflow: hidden;
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.latest small {
  color: rgba(251, 250, 244, 0.62);
  font-size: 0.9rem;
}

.latest b {
  justify-self: end;
  font-size: 1.4rem;
}

.projects {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}

.projects::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: '';
  opacity: 0.2;
  background-image: var(--hex-pattern);
  mask-image: linear-gradient(180deg, black, transparent 42%);
}

.projects-molecule {
  position: absolute;
  z-index: -1;
  top: 3rem;
  right: -3rem;
  width: min(34vw, 520px);
  opacity: 0.15;
  pointer-events: none;
  transform: translateY(var(--molecule-y, 0));
}

.projects-molecule svg {
  display: block;
  width: 100%;
  height: auto;
}

.projects-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.5fr);
  margin-bottom: clamp(4rem, 7vw, 7rem);
  align-items: end;
  gap: 3rem;
}

.projects-head .section-label {
  grid-column: 1 / -1;
  margin-bottom: 2rem;
}

.projects-head h2 {
  margin: 0;
  font-size: clamp(3.8rem, 7vw, 7.5rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.projects-head > p:last-child {
  max-width: 39ch;
  margin: 0;
  font-size: 1.2rem;
}

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

.project-item {
  border-bottom: 1px solid var(--line);
}

.project-summary {
  display: grid;
  grid-template-columns: 48px 122px minmax(280px, 1fr) 140px 52px;
  width: 100%;
  min-height: 132px;
  padding: 1.2rem 0;
  border: 0;
  align-items: center;
  gap: 1.5rem;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: padding 300ms var(--ease), background 220ms ease;
}

.project-summary:hover,
.project-item.open .project-summary {
  padding-right: 1rem;
  padding-left: 1rem;
  background: rgba(219, 231, 129, 0.46);
}

.project-index {
  color: var(--muted);
}

.project-thumb {
  display: block;
  width: 122px;
  height: 82px;
  overflow: hidden;
  background: #dfe4d7;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 550ms var(--ease), filter 350ms ease;
}

.project-thumb.contain {
  background: #dce5a1;
}

.project-thumb.contain img {
  padding: 0.4rem;
  object-fit: contain;
}

.project-summary:hover .project-thumb img,
.project-item.open .project-thumb img {
  filter: saturate(1.08);
  transform: scale(1.07);
}

.project-title {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.35rem;
}

.project-title small {
  color: var(--muted);
  font-size: 0.875rem;
}

.project-title strong {
  font-size: clamp(2.2rem, 3.3vw, 3.7rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.project-period {
  justify-self: end;
  text-align: right;
  white-space: nowrap;
}

.project-toggle-icon {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-bright);
  transition: color 250ms ease, background 250ms ease, transform 450ms var(--ease);
}

.project-toggle-icon i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 400ms var(--ease);
}

.project-toggle-icon i:nth-child(2) {
  transform: translate(-50%, -50%) rotate(90deg);
}

.project-summary:hover .project-toggle-icon {
  color: var(--paper-bright);
  background: var(--ink);
}

.project-item.open .project-toggle-icon {
  color: var(--ink);
  background: var(--signal);
  transform: rotate(180deg);
}

.project-item.open .project-toggle-icon i:nth-child(2) {
  transform: translate(-50%, -50%) rotate(0deg);
}

.project-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 700ms var(--ease), visibility 700ms;
}

.project-panel-clip {
  min-height: 0;
  overflow: hidden;
}

.project-item.open .project-panel,
.no-js .project-panel {
  grid-template-rows: 1fr;
  visibility: visible;
}

.project-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  padding: 0 0 clamp(3rem, 5vw, 5rem) 170px;
  gap: clamp(2.5rem, 6vw, 7rem);
}

.project-detail-image {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: var(--forest-dark);
  isolation: isolate;
  opacity: 0;
  transform: translateX(-38px) scale(0.97);
  transition: opacity 500ms ease 120ms, transform 700ms var(--ease) 120ms;
}

.project-item.open .project-detail-image {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.project-detail-image img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}

.project-detail-image:hover img {
  transform: scale(1.025);
}

.project-detail-image.contain {
  display: grid;
  min-height: 610px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.6), transparent 34%),
    #dce5a1;
  place-items: center;
}

.project-detail-image.contain img {
  width: auto;
  height: min(78%, 500px);
  min-height: 0;
  max-width: 68%;
  object-fit: contain;
  filter: drop-shadow(0 28px 30px rgba(24, 48, 35, 0.22));
}

.detail-hex {
  position: absolute;
  z-index: 1;
  top: -16%;
  right: -5%;
  width: 58%;
  aspect-ratio: 0.866;
  border: 2px solid rgba(206, 255, 104, 0.28);
  opacity: 0.65;
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%);
  animation: hexFloat 8s ease-in-out infinite;
}

.project-detail-image.contain .detail-hex {
  border-color: rgba(16, 36, 29, 0.25);
}

.project-detail-copy {
  display: flex;
  padding: 2rem 2rem 2rem 0;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateX(38px);
  transition: opacity 500ms ease 180ms, transform 700ms var(--ease) 180ms;
}

.project-item.open .project-detail-copy {
  opacity: 1;
  transform: translateX(0);
}

.project-detail-copy p {
  max-width: 45ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.project-detail-copy .detail-summary {
  margin-bottom: 1.4rem;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.detail-meta {
  display: flex;
  margin-top: 2rem;
  padding-top: 1rem;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.project-link {
  display: inline-flex;
  width: max-content;
  min-height: 52px;
  margin-top: 2.2rem;
  padding: 0.75rem 1.1rem;
  align-items: center;
  gap: 1.4rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  transition: color 200ms ease, background 200ms ease, transform 300ms var(--ease);
}

.project-link:hover {
  color: var(--paper-bright);
  background: var(--ink);
  transform: translateY(-2px);
}

.about {
  display: grid;
  grid-template-columns: minmax(380px, 0.8fr) minmax(0, 1.2fr);
  min-height: 900px;
  overflow: hidden;
  color: var(--paper-bright);
  background: var(--forest-dark);
}

.about-image {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  isolation: isolate;
}

.about-image::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(180deg, transparent 65%, rgba(7, 22, 15, 0.4));
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hex {
  position: absolute;
  z-index: 2;
  top: 8%;
  right: 8%;
  width: 48%;
  aspect-ratio: 0.866;
  border: 2px solid rgba(206, 255, 104, 0.56);
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%);
  animation: hexFloat 7s ease-in-out infinite;
}

.about-hex::after {
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(206, 255, 104, 0.36);
  content: '';
  clip-path: inherit;
}

.about-copy {
  display: flex;
  padding: clamp(4rem, 8vw, 9rem);
  flex-direction: column;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='104' viewBox='0 0 120 104' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23cfff65' stroke-opacity='.1' stroke-width='1'%3E%3Cpath d='M30 1 59 17.5v33L30 67 1 50.5v-33Z'/%3E%3Cpath d='m90 36 29 16.5v33L90 102 61 85.5v-33Z'/%3E%3C/g%3E%3C/svg%3E");
}

.about-copy .section-label {
  color: var(--signal);
}

.about-copy h2 {
  max-width: 10ch;
  margin: clamp(3rem, 5vw, 5rem) 0 2rem;
  font-size: clamp(3.5rem, 6vw, 7rem);
  font-weight: 600;
  line-height: 0.91;
  letter-spacing: -0.07em;
}

.about-copy > p:not(.section-label) {
  max-width: 45ch;
  margin: 0;
  color: rgba(251, 250, 244, 0.68);
  font-size: 1.1rem;
}

.about-copy .about-lead {
  margin-bottom: 1.4rem;
  color: var(--paper-bright);
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  line-height: 1.4;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(420px, 1fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 8rem);
  border-bottom: 1px solid var(--line);
  background: var(--lime);
}

.contact h2 {
  margin: 3rem 0 0.5rem;
  font-size: clamp(2.2rem, 3.5vw, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
}

.contact p:not(.section-label) {
  margin: 0;
}

.contact > a {
  display: flex;
  padding: 0.8rem 0;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  font-size: clamp(1.8rem, 4vw, 4.4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.contact > a span {
  font-size: 0.7em;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  min-height: 130px;
  padding: 2rem var(--page-x);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  color: var(--paper-bright);
  background: var(--forest-dark);
  font-size: 0.875rem;
}

.site-footer nav {
  display: flex;
  gap: 1.4rem;
}

.site-footer a:hover {
  color: var(--signal);
}

.js [data-fly] {
  opacity: 0;
  filter: blur(7px);
  transition:
    opacity 700ms ease var(--delay, 0ms),
    filter 800ms ease var(--delay, 0ms),
    transform 900ms var(--ease) var(--delay, 0ms);
}

.js [data-fly='left'] { transform: translate3d(-72px, 18px, 0) rotate(-1.2deg); }
.js [data-fly='right'] { transform: translate3d(72px, 18px, 0) rotate(1.2deg); }
.js [data-fly='up'] { transform: translate3d(0, 58px, 0); }
.js [data-fly='scale'] { transform: translate3d(0, 34px, 0) scale(0.955); }

.js [data-fly].is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) rotate(0) scale(1);
}

@keyframes drawMolecule {
  to { stroke-dashoffset: 0; }
}

@keyframes nodeAppear {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 0.9; transform: scale(1); }
}

@keyframes nodePulse {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.72); }
}

@keyframes moleculeFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(7px, -10px, 0) rotate(0.8deg); }
}

@keyframes hexFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -12px, 0) rotate(1.5deg); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.58; transform: scale(0.96); }
  50% { opacity: 0.78; transform: scale(1.035); }
}

@media (max-width: 1160px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.65fr);
  }

  .hero-portrait {
    right: 0;
    width: min(46vw, 620px);
  }

  .hero-status {
    width: min(350px, 33vw);
  }

  .project-detail {
    padding-left: 140px;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    padding: 1rem var(--page-x) 1.25rem;
    border-top: 1px solid rgba(16, 36, 29, 0.08);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    background: rgba(243, 241, 228, 0.99);
    box-shadow: 0 18px 36px rgba(7, 22, 15, 0.1);
  }

  .site-header nav a {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(16, 36, 29, 0.1);
    font-size: 1.1rem;
  }

  .site-header nav a:last-child {
    border-bottom: 0;
  }

  .js .site-header nav {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, -12px, 0);
    transition:
      opacity 180ms ease,
      visibility 180ms,
      transform 280ms var(--ease);
  }

  .js .site-header nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
  }

  .nav-toggle {
    display: inline-flex;
    min-height: 44px;
    padding: 0.55rem 0;
    border: 0;
    align-items: center;
    gap: 0.65rem;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle-label {
    font-size: 0.82rem;
    font-weight: 600;
  }

  .nav-toggle-icon {
    position: relative;
    display: block;
    width: 22px;
    height: 14px;
  }

  .nav-toggle-icon i {
    position: absolute;
    right: 0;
    left: 0;
    display: block;
    height: 1.5px;
    background: currentColor;
    transform-origin: center;
    transition: transform 240ms var(--ease), top 240ms var(--ease);
  }

  .nav-toggle-icon i:first-child { top: 3px; }
  .nav-toggle-icon i:last-child { top: 10px; }

  .nav-toggle[aria-expanded='true'] .nav-toggle-icon i:first-child {
    top: 6px;
    transform: rotate(45deg);
  }

  .nav-toggle[aria-expanded='true'] .nav-toggle-icon i:last-child {
    top: 6px;
    transform: rotate(-45deg);
  }

  .version {
    display: none;
  }

  .hero {
    display: block;
    min-height: 920px;
  }

  .hero-copy {
    width: 72%;
    padding-top: 5rem;
  }

  .hero-portrait {
    right: -7%;
    width: min(60vw, 550px);
  }

  .hero-status {
    right: auto;
    bottom: 4.5rem;
    left: var(--page-x);
    width: min(360px, 46vw);
  }

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

  .current-image {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .latest {
    grid-template-columns: 130px 1fr 34px;
  }

  .latest small {
    display: none;
  }

  .projects-head {
    grid-template-columns: 1fr;
  }

  .projects-head > p:last-child {
    max-width: 620px;
  }

  .project-summary {
    grid-template-columns: 42px 106px minmax(0, 1fr) 108px 46px;
    gap: 1rem;
  }

  .project-thumb {
    width: 106px;
    height: 74px;
  }

  .project-detail {
    grid-template-columns: 1fr;
    padding: 0 0 4rem 148px;
    gap: 2rem;
  }

  .project-detail-image,
  .project-detail-image img {
    min-height: 440px;
  }

  .project-detail-copy {
    padding: 0 2rem 0 0;
  }

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

  .about-image {
    min-height: 78svh;
  }

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

@media (max-width: 640px) {
  :root {
    --page-x: 1.2rem;
    --header-h: 70px;
  }

  body {
    font-size: 18px;
  }

  .brand,
  .version {
    font-size: 0.875rem;
  }

  .hero {
    min-height: 900px;
    padding-top: calc(var(--header-h) + 2.7rem);
    padding-bottom: 3rem;
  }

  .hex-wall {
    background-size: 90px 78px;
  }

  .molecule {
    top: 17%;
    right: -50%;
    width: 150vw;
    opacity: 0.38;
  }

  .hero-copy {
    width: 100%;
    padding-top: 0;
  }

  .kicker {
    margin-bottom: 1.5rem;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 15.4vw, 4.25rem);
    line-height: 0.94;
  }

  .hero-copy > p:last-child {
    max-width: 31ch;
    margin-top: 1.8rem;
    font-size: 1.15rem;
  }

  .hero-portrait {
    right: -10%;
    bottom: 5.5rem;
    width: 78vw;
    max-width: 340px;
  }

  .portrait-hex {
    top: 17%;
    left: 8%;
    width: 75%;
  }

  .hero-status {
    z-index: 8;
    right: var(--page-x);
    bottom: 4.2rem;
    left: var(--page-x);
    width: auto;
    min-height: 82px;
  }

  .hero-system {
    right: var(--page-x);
    left: var(--page-x);
  }

  .hero-system span:nth-child(2) {
    display: none;
  }

  .current,
  .projects,
  .contact {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .section-head {
    align-items: flex-start;
    gap: 1rem;
  }

  .section-head > p:last-child {
    padding-top: 0.5rem;
    text-align: right;
  }

  .current-card {
    margin-right: calc(var(--page-x) * -1);
    margin-left: calc(var(--page-x) * -1);
  }

  .current-image {
    aspect-ratio: 4 / 3;
  }

  .current-copy {
    padding: 3.5rem var(--page-x);
  }

  .current-copy h2 {
    font-size: clamp(4rem, 20vw, 5.4rem);
  }

  .current-copy > p:not(.current-kicker) {
    font-size: 1.2rem;
  }

  .latest {
    grid-template-columns: 1fr 32px;
    padding: 1.3rem var(--page-x);
    gap: 0.6rem 1rem;
  }

  .latest > span {
    grid-column: 1;
    grid-row: 1;
  }

  .latest strong {
    display: -webkit-box;
    grid-column: 1;
    grid-row: 2;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .latest b {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .projects-molecule {
    top: 2rem;
    right: -35%;
    width: 90vw;
  }

  .projects-head {
    margin-bottom: 3.5rem;
    gap: 1.5rem;
  }

  .projects-head .section-label {
    margin-bottom: 1.5rem;
  }

  .projects-head h2 {
    font-size: clamp(3.25rem, 16vw, 4.35rem);
  }

  .projects-head > p:last-child {
    font-size: 1.1rem;
  }

  .project-summary {
    grid-template-columns: 28px 78px minmax(0, 1fr) 38px;
    min-height: 116px;
    padding: 1rem 0;
    gap: 0.65rem;
  }

  .project-summary:hover,
  .project-item.open .project-summary {
    padding-right: 0;
    padding-left: 0;
  }

  .project-thumb {
    width: 78px;
    height: 58px;
  }

  .project-title {
    gap: 0.25rem;
  }

  .project-title small {
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .project-title strong {
    font-size: clamp(1.55rem, 7.7vw, 2.05rem);
    overflow-wrap: anywhere;
  }

  .project-period {
    grid-column: 3;
    grid-row: 2;
    justify-self: start;
    font-size: 0.72rem;
    text-align: left;
  }

  .project-toggle-icon {
    grid-column: 4;
    grid-row: 1 / 3;
    width: 36px;
    height: 36px;
  }

  .project-detail {
    grid-template-columns: 1fr;
    padding: 0 0 3.5rem;
    gap: 2rem;
  }

  .project-detail-image,
  .project-detail-image img {
    min-height: 84vw;
  }

  .project-detail-image.contain {
    min-height: 112vw;
  }

  .project-detail-image.contain img {
    height: 75%;
    max-width: 70%;
  }

  .project-detail-copy {
    padding: 0;
  }

  .project-detail-copy p {
    font-size: 1.05rem;
  }

  .project-detail-copy .detail-summary {
    font-size: 1.45rem;
  }

  .detail-meta {
    flex-direction: column;
    gap: 0.35rem;
  }

  .about {
    min-height: 0;
  }

  .about-image {
    min-height: 118vw;
    max-height: 700px;
  }

  .about-copy {
    padding: 4.5rem var(--page-x);
  }

  .about-copy h2 {
    margin-top: 3.5rem;
    font-size: clamp(3.1rem, 14.8vw, 4.2rem);
  }

  .about-copy .about-lead {
    font-size: 1.3rem;
  }

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

  .contact h2 {
    font-size: 2.4rem;
  }

  .contact > a {
    overflow-wrap: anywhere;
    font-size: clamp(1.65rem, 7.7vw, 2.2rem);
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    min-height: 190px;
    gap: 1.5rem 1rem;
  }

  .site-footer nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
  }

  .js [data-fly='left'] { transform: translate3d(-46px, 16px, 0) rotate(-1deg); }
  .js [data-fly='right'] { transform: translate3d(46px, 16px, 0) rotate(1deg); }
  .js [data-fly='up'] { transform: translate3d(0, 44px, 0); }
}

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

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

  .js [data-fly] {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
