/*
  Rene Jedtke Portfolio
  Static, responsive and accessible. No framework required.
*/

:root {
  --bg: #101814;
  --bg-elevated: #16211b;
  --bg-soft: #1c2922;
  --surface: #1a2720;
  --surface-2: #203128;
  --text: #f3f0e8;
  --text-soft: #bbc7be;
  --text-muted: #8fa097;
  --line: rgba(220, 232, 223, 0.15);
  --line-strong: rgba(220, 232, 223, 0.27);
  --green: #b9dc71;
  --green-strong: #98c34a;
  --orange: #e9a34a;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
  --header-bg: rgba(16, 24, 20, 0.82);
  --container: 1240px;
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 36px;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

html[data-theme="light"] {
  --bg: #f1eee5;
  --bg-elevated: #faf7ef;
  --bg-soft: #e7e7db;
  --surface: #f8f4eb;
  --surface-2: #e9ecdf;
  --text: #17221c;
  --text-soft: #46564d;
  --text-muted: #65766d;
  --line: rgba(24, 45, 34, 0.14);
  --line-strong: rgba(24, 45, 34, 0.27);
  --green: #6f9c25;
  --green-strong: #527c18;
  --orange: #bf6f20;
  --shadow: 0 28px 70px rgba(43, 61, 50, 0.15);
  --header-bg: rgba(241, 238, 229, 0.86);
}

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

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

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

p,
h1,
h2,
h3,
ul {
  margin-top: 0;
}

::selection {
  background: var(--green);
  color: #112016;
}

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

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--green);
  color: #102016;
  font-weight: 800;
  transition: transform 0.2s ease;
}

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

.scroll-progress {
  position: fixed;
  z-index: 120;
  inset: 0 0 auto;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--green), var(--orange));
  will-change: transform;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.header-inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1.15;
}

.brand-mark {
  display: grid;
  width: 44px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface);
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy .brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-copy small {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
}

.main-nav a {
  position: relative;
  padding: 10px 0;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

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

.main-nav a:hover,
.main-nav a[aria-current="true"] {
  color: var(--text);
}

.main-nav a:hover::after,
.main-nav a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.main-nav .nav-cta {
  padding: 9px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
}

.main-nav .nav-cta:hover {
  border-color: var(--green);
  color: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.icon-button,
.menu-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.icon-button:hover,
.menu-toggle:hover {
  border-color: var(--green);
  color: var(--green);
}

.icon-button:active,
.menu-toggle:active {
  transform: scale(0.94);
}

.theme-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-moon,
html[data-theme="light"] .theme-icon-sun {
  display: none;
}

html[data-theme="light"] .theme-icon-moon {
  display: block;
}

.menu-toggle {
  display: none;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.menu-toggle span:nth-child(1) { transform: translateY(-6px); }
.menu-toggle span:nth-child(3) { transform: translateY(6px); }
.nav-open .menu-toggle span:nth-child(1) { transform: rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  display: grid;
  min-height: max(780px, 100svh);
  align-items: center;
  overflow: hidden;
  padding: 140px 0 90px;
  background:
    radial-gradient(circle at 73% 38%, rgba(118, 162, 62, 0.17), transparent 29%),
    radial-gradient(circle at 12% 82%, rgba(232, 163, 74, 0.09), transparent 25%);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.22;
  mask-image: linear-gradient(to bottom, transparent 5%, #000 30%, #000 75%, transparent 100%);
}

.hero::before {
  position: absolute;
  width: 540px;
  height: 540px;
  top: 52%;
  right: -160px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.74fr);
  align-items: center;
  gap: clamp(52px, 8vw, 120px);
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.hero-copy h1 {
  display: grid;
  width: min(100%, 790px);
  gap: 10px;
  overflow-wrap: break-word;
  hyphens: auto;
}

.hero-name,
.hero-profession {
  display: block;
}

.hero-profession {
  font-size: clamp(2rem, 4.45vw, 4.85rem);
  line-height: 1.03;
}

.eyebrow,
.section-number,
.project-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--green);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span,
.project-kicker span {
  width: 26px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3 {
  line-height: 1.06;
  text-wrap: balance;
}

h1,
h2 {
  margin-bottom: 28px;
  font-weight: 760;
  letter-spacing: -0.052em;
}

h1 {
  max-width: 790px;
  font-size: clamp(3.35rem, 6.5vw, 6.9rem);
}

h2 {
  font-size: clamp(2.65rem, 5.5vw, 5.55rem);
}

h1 em,
h2 em {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.hero-lead {
  max-width: 700px;
  margin-bottom: 36px;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.55vw, 1.27rem);
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.89rem;
  font-weight: 800;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  background: var(--green);
  color: #122016;
}

.button-primary:hover {
  background: #c9ea84;
}

html[data-theme="light"] .button-primary {
  color: #fff;
  background: #527c18;
}

html[data-theme="light"] .button-primary:hover {
  background: #41670f;
}

.button-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.button-ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

.button-large {
  min-height: 60px;
  padding-inline: 30px;
}

.hero-facts {
  display: flex;
  max-width: 720px;
  margin: 58px 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
  padding: 0 22px;
  border-left: 1px solid var(--line-strong);
}

.hero-facts li:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-facts strong {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  letter-spacing: -0.03em;
}

.hero-facts span {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 470px);
  perspective: 1100px;
}

.portrait-frame {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  z-index: 2;
  padding: 10px;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  transition: transform 0.18s ease-out;
  will-change: transform;
}

.portrait-frame::after {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: calc(var(--radius-lg) - 10px);
  content: "";
  pointer-events: none;
}

.portrait-frame picture,
.portrait-frame img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 10px);
}

.portrait-frame picture {
  display: block;
}

.portrait-frame img {
  height: auto;
}

.portrait-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--header-bg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
  color: var(--text);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.portrait-badge-top {
  top: 34px;
  left: -48px;
  transform: rotate(-4deg);
}

.portrait-badge-bottom {
  right: -36px;
  bottom: 42px;
}

.portrait-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 20%, transparent);
}

.orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 390px;
  height: 390px;
  top: 7%;
  right: -22%;
}

.orbit-two {
  width: 520px;
  height: 520px;
  right: -5%;
  bottom: -14%;
  border-style: dashed;
  opacity: 0.55;
  animation: orbit-rotate 38s linear infinite;
}

@keyframes orbit-rotate { to { transform: rotate(360deg); } }

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--text-muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-cue i {
  position: relative;
  width: 1px;
  height: 62px;
  overflow: hidden;
  background: var(--line-strong);
}

.scroll-cue i::after {
  position: absolute;
  width: 1px;
  height: 25px;
  inset: -25px 0 auto;
  background: var(--green);
  content: "";
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line { 60%, 100% { transform: translateY(90px); } }

/* Ticker */
.ticker {
  overflow: hidden;
  padding: 17px 0;
  border-block: 1px solid var(--line);
  background: var(--bg-elevated);
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 30px;
  animation: ticker 32s linear infinite;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.ticker-track i {
  color: var(--orange);
  font-style: normal;
}

@keyframes ticker { to { transform: translateX(-50%); } }

/* Sections */
.section {
  position: relative;
  padding: clamp(100px, 12vw, 170px) 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(50px, 9vw, 130px);
}

.section-number {
  margin-bottom: 22px;
}

.section-number::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.section-intro h2 {
  max-width: 560px;
  margin-bottom: 0;
  font-size: clamp(2.7rem, 4.8vw, 5rem);
}

.lead-copy {
  max-width: 830px;
  margin-bottom: 42px;
  font-size: clamp(1.45rem, 2.7vw, 2.35rem);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.34;
}

.copy-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 42px;
  color: var(--text-soft);
}

.copy-columns p {
  margin-bottom: 0;
}

.profile-board {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  align-items: center;
  gap: 30px;
  margin-top: clamp(70px, 9vw, 120px);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--surface);
  background-size: 28px 28px;
}

.board-label {
  display: grid;
  gap: 8px;
}

.board-label span {
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.board-label strong {
  font-size: 1.2rem;
}

.board-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.board-flow div {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--header-bg);
}

.board-flow .step-number {
  color: var(--orange);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.board-flow span {
  font-size: 0.8rem;
  font-weight: 750;
}

.board-flow i {
  color: var(--green);
  font-style: normal;
}

/* Skills */
.skills-section {
  overflow: hidden;
  background: var(--bg-elevated);
}

.skills-section::after {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -210px;
  bottom: 3%;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  content: "";
}

.section-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: end;
  gap: 70px;
  margin-bottom: 70px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 490px;
  margin-bottom: 12px;
  color: var(--text-soft);
}

.skills-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  perspective: 1000px;
}

.skill-card {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  min-height: 540px;
  padding: clamp(26px, 3vw, 38px);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: transform 0.18s ease-out, border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.skill-card::before {
  position: absolute;
  width: 220px;
  height: 220px;
  top: -130px;
  right: -100px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  content: "";
}

.skill-card:hover {
  border-color: color-mix(in srgb, var(--green) 60%, transparent);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.15);
}

.skill-card-accent {
  background: var(--green);
  color: #142016;
}

.skill-card-accent p,
.skill-card-accent .card-index {
  color: #263c26;
}

.skill-card-accent .skill-icon {
  border-color: rgba(20, 32, 22, 0.26);
  background: rgba(255, 255, 255, 0.22);
}

.skill-card-accent .tag-list li {
  border-color: rgba(20, 32, 22, 0.22);
  color: #142016;
}

.skill-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 64px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: var(--surface-2);
}

.skill-icon svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-index {
  margin-bottom: 13px;
  color: var(--orange);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.skill-card h3 {
  margin-bottom: 18px;
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
  letter-spacing: -0.04em;
}

.skill-card > p:not(.card-index) {
  margin-bottom: 30px;
  color: var(--text-soft);
  font-size: 0.93rem;
}

.tag-list,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li,
.project-tags li {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 720;
}

.qualification-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.qualification-strip > div {
  padding: 28px 30px;
  border-left: 1px solid var(--line);
}

.qualification-strip > div:first-child {
  border-left: 0;
}

.qualification-strip span {
  display: block;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.qualification-strip strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.15rem;
}

.qualification-strip p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.skills-section .qualification-strip {
  margin-top: 0;
}

.skills-subtitle {
  margin: clamp(58px, 7vw, 90px) 0 30px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  letter-spacing: -0.035em;
}

/* FISI explained */
.fisi-section {
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--bg-soft);
  background-size: 54px 54px;
}

.fisi-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 24px;
}

.fisi-main,
.fisi-tasks {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.fisi-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 68px);
}

.fisi-main h3 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.fisi-main > p:not(.project-kicker) {
  color: var(--text-soft);
}

.fisi-main > p:last-child {
  margin-bottom: 0;
}

.fisi-tasks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line-strong);
}

.fisi-tasks > div {
  min-height: 210px;
  padding: clamp(26px, 3vw, 38px);
  background: var(--bg-elevated);
}

.fisi-tasks span {
  display: block;
  margin-bottom: 34px;
  color: var(--orange);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.fisi-tasks h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.fisi-tasks p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.fisi-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  margin-top: 24px;
  padding: 25px 30px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.fisi-note strong {
  white-space: nowrap;
}

.fisi-note p {
  margin-bottom: 0;
  color: var(--text-soft);
}

/* Projects */
.projects-section {
  background:
    radial-gradient(circle at 10% 12%, rgba(185, 220, 113, 0.07), transparent 24%),
    var(--bg);
}

.projects-heading {
  align-items: end;
}

.project-featured,
.game-project {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.project-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  min-height: 600px;
}

.project-featured-vanreise {
  min-height: 720px;
}

.project-visual {
  position: relative;
  display: block;
  min-height: 100%;
  overflow: hidden;
  background: var(--bg-soft);
}

.project-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 16, 12, 0.4), transparent 40%);
  content: "";
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease), filter 0.35s ease;
}

.project-visual:hover img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.project-visual:hover::after {
  opacity: 1;
}

.project-open {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #132016;
  font-size: 1.2rem;
  transition: transform 0.3s var(--ease);
}

.project-visual:hover .project-open {
  transform: rotate(12deg) scale(1.08);
}

.project-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(30px, 4vw, 58px);
}

.project-kicker {
  margin-bottom: 18px;
  color: var(--orange);
}

.project-content h3 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.05em;
}

.project-content > p:not(.project-kicker) {
  margin-bottom: 26px;
  color: var(--text-soft);
}

.project-tags {
  margin-bottom: 34px;
}

.vanreise-scope {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 34px;
  padding: 1px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--line-strong);
}

.vanreise-scope > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 11px 13px;
  background: var(--bg-elevated);
}

.vanreise-scope span {
  color: var(--orange);
  font-size: 0.61rem;
  font-weight: 900;
}

.vanreise-scope strong {
  font-size: 0.72rem;
  font-weight: 750;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 800;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.text-link:hover {
  border-color: var(--green);
  color: var(--green);
}

.archive-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: end;
  gap: clamp(45px, 8vw, 110px);
  margin: clamp(110px, 13vw, 180px) 0 54px;
  padding-top: 46px;
  border-top: 1px solid var(--line-strong);
}

.archive-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.archive-label span {
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--orange) 55%, transparent);
  border-radius: 999px;
}

.archive-label .archive-count {
  color: var(--text-muted);
  font-weight: 800;
}

.archive-intro h3 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2.7rem, 5.4vw, 5.7rem);
  letter-spacing: -0.055em;
}

.archive-intro h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2.7rem, 5.4vw, 5.7rem);
  letter-spacing: -0.055em;
}

.archive-intro h3 em,
.archive-intro h2 em {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.archive-section {
  background: var(--bg-soft);
}

.archive-section .archive-intro {
  margin-top: 0;
}

.archive-intro > p {
  max-width: 510px;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.game-projects {
  display: grid;
  gap: 24px;
}

.game-project {
  --game-accent: var(--orange);
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  min-height: 590px;
}

.game-project-vc2 {
  --game-accent: #80c7bd;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
}

html[data-theme="light"] .game-project-vc2 {
  --game-accent: #2d8179;
}

.game-project-visual {
  position: relative;
  display: block;
  min-height: 100%;
  overflow: hidden;
  background: #14221b;
}

.game-project-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, transparent 48%, rgba(7, 13, 10, 0.48));
  content: "";
  pointer-events: none;
}

.game-project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.35s ease;
}

.game-project-visual:hover img {
  transform: scale(1.04);
  filter: saturate(1.1) contrast(1.03);
}

.game-project .project-open {
  background: var(--game-accent);
}

.game-project-visual:hover .project-open {
  transform: rotate(12deg) scale(1.08);
}

.game-project-number {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 26px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.game-project-number::before {
  display: inline-block;
  width: 28px;
  height: 1px;
  margin: 0 10px 3px 0;
  background: var(--game-accent);
  content: "";
}

.game-project-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: clamp(34px, 5vw, 68px);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--surface);
  background-size: 42px 42px;
}

.game-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}

.game-title-row h3 {
  margin-bottom: 0;
  font-size: clamp(2.8rem, 5vw, 5rem);
  letter-spacing: -0.055em;
}

.game-title-row > span {
  flex: 0 0 auto;
  margin-bottom: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.game-project-content > p:not(.project-kicker) {
  max-width: 660px;
  margin-bottom: 30px;
  color: var(--text-soft);
}

.game-contributions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 38px;
  padding: 1px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--line-strong);
  list-style: none;
}

.game-contributions li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 13px 15px;
  background: var(--bg-elevated);
}

.game-contributions span {
  color: var(--game-accent);
  font-size: 0.62rem;
  font-weight: 900;
}

.game-contributions strong {
  font-size: 0.76rem;
  font-weight: 730;
}

.game-project-link {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding: 13px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 850;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s var(--ease);
}

.game-project-link i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--game-accent);
  color: #112018;
  font-style: normal;
}

.game-project-link:hover {
  transform: translateY(-2px);
  border-color: var(--game-accent);
  background: color-mix(in srgb, var(--game-accent) 8%, transparent);
}

.archive-manifesto {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: 980px;
  margin: 42px auto 0;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.archive-manifesto > span {
  color: var(--green);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.1em;
}

.archive-manifesto p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.archive-manifesto strong {
  color: var(--text);
}

.project-disclaimer {
  max-width: 840px;
  margin: 30px auto 0;
  color: var(--text-muted);
  font-size: 0.74rem;
  text-align: center;
}

/* FAQ */
.faq-section {
  background: var(--bg-elevated);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(50px, 10vw, 140px);
}

.faq-intro {
  position: sticky;
  top: 130px;
  align-self: start;
}

.faq-intro h2 {
  margin-bottom: 24px;
  font-size: clamp(2.65rem, 4.7vw, 4.8rem);
}

.faq-intro > p:last-child {
  color: var(--text-soft);
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-list details {
  border-bottom: 1px solid var(--line-strong);
}

.faq-list summary {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 0;
  cursor: pointer;
  font-size: clamp(1rem, 1.6vw, 1.26rem);
  font-weight: 720;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary i {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color 0.2s ease, transform 0.3s ease;
}

.faq-list summary i::before,
.faq-list summary i::after {
  position: absolute;
  width: 12px;
  height: 1.5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: currentColor;
  content: "";
}

.faq-list summary i::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.25s ease;
}

.faq-list details[open] summary i {
  transform: rotate(180deg);
  border-color: var(--green);
  color: var(--green);
}

.faq-list details[open] summary i::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-list details > div {
  overflow: hidden;
}

.faq-list details p {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--text-soft);
}

/* Contact */
.contact-section {
  position: relative;
  overflow: hidden;
  padding: clamp(110px, 14vw, 190px) 0;
  background: var(--green);
  color: #132016;
}

.contact-lines {
  position: absolute;
  width: 760px;
  height: 760px;
  top: -290px;
  right: -150px;
  border: 1px solid rgba(18, 32, 22, 0.25);
  border-radius: 50%;
}

.contact-lines::before,
.contact-lines::after {
  position: absolute;
  inset: 70px;
  border: 1px dashed rgba(18, 32, 22, 0.22);
  border-radius: 50%;
  content: "";
}

.contact-lines::after {
  inset: 150px;
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 940px;
  text-align: center;
}

.contact-inner .section-number {
  justify-content: center;
  color: #315121;
}

.contact-inner .section-number::before {
  background: #8b531e;
}

.contact-inner h2 {
  margin-bottom: 26px;
  font-size: clamp(3.5rem, 8vw, 7.8rem);
}

.contact-inner h2 em {
  color: #28491f;
}

.contact-inner > p:not(.section-number) {
  max-width: 680px;
  margin: 0 auto 36px;
  color: #2e482e;
  font-size: 1.08rem;
}

.contact-inner .button-primary {
  border: 1px solid #15241a;
  background: #15241a;
  color: #f4f0e8;
}

.contact-inner .button-primary:hover {
  background: #263d2c;
}

.share-panel {
  max-width: 760px;
  margin: 54px auto 0;
  padding-top: 32px;
  border-top: 1px solid rgba(19, 32, 22, 0.25);
}

.share-panel h3 {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  letter-spacing: -0.025em;
}

.share-panel p {
  max-width: 590px;
  margin: 0 auto 22px;
  color: #2e482e;
  font-size: 0.92rem;
}

.share-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(19, 32, 22, 0.42);
  border-radius: 999px;
  background: transparent;
  color: #132016;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.share-link:hover,
.share-link:focus-visible {
  background: #15241a;
  color: #f4f0e8;
  transform: translateY(-2px);
}

/* Legal pages */
.legal-hero {
  padding: clamp(150px, 16vw, 230px) 0 clamp(76px, 9vw, 120px);
  background:
    radial-gradient(circle at 82% 18%, rgba(185, 220, 113, 0.14), transparent 26%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 54px 54px, 54px 54px, auto;
}

.legal-hero h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(3.8rem, 9vw, 8.2rem);
  letter-spacing: -0.065em;
}

.legal-hero h1 em {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.legal-hero .hero-lead {
  max-width: 720px;
}

.legal-main {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bg-soft);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.28fr) minmax(0, 0.72fr);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
}

.legal-layout,
.legal-content,
.legal-document {
  min-width: 0;
}

.legal-nav-card {
  position: sticky;
  top: 112px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.legal-nav-card > span {
  display: block;
  margin-bottom: 20px;
  color: var(--orange);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.legal-nav-card nav {
  display: grid;
  gap: 10px;
}

.legal-nav-card a {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 750;
}

.legal-nav-card a:hover {
  color: var(--green);
}

.legal-content {
  display: grid;
  gap: 28px;
}

.legal-document {
  scroll-margin-top: 105px;
  padding: clamp(30px, 5vw, 68px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.legal-document h2 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  letter-spacing: -0.055em;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.legal-document > .legal-subtitle {
  margin-bottom: 48px;
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-document h3 {
  margin: 42px 0 14px;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  letter-spacing: -0.03em;
}

.legal-document h4 {
  margin: 28px 0 10px;
  font-size: 1rem;
}

.legal-document p,
.legal-document li,
.legal-address {
  color: var(--text-soft);
}

.legal-document a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.legal-document code {
  overflow-wrap: anywhere;
}

.legal-address {
  padding: 22px 24px;
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-elevated);
  font-style: normal;
  line-height: 1.8;
}

.legal-list {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding-left: 22px;
}

.legal-note {
  margin-top: 34px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}

.legal-note p:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  padding: 76px 0 28px;
  background: #0c120f;
  color: #f3f0e8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 0.65fr 0.65fr;
  gap: 60px;
  padding-bottom: 56px;
}

.footer-brand {
  margin-bottom: 24px;
}

.footer-grid > div > p {
  max-width: 370px;
  color: #9eaba3;
}

.footer-grid nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-grid nav .footer-heading {
  margin-bottom: 8px;
  color: #f3f0e8;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-grid nav a {
  color: #9eaba3;
  font-size: 0.83rem;
  transition: color 0.2s ease;
}

.footer-grid nav a:hover {
  color: #b9dc71;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: #7f8f86;
  font-size: 0.72rem;
}

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

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-legal-links a {
  color: #c4d0c8;
  font-weight: 750;
}

.footer-legal-links a:hover {
  color: #b9dc71;
}

.back-to-top {
  color: #c4d0c8;
  font-weight: 750;
}

.back-to-top span {
  margin-left: 7px;
  color: #b9dc71;
}

/* Motion */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

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

.skills-grid [data-reveal]:nth-child(2),
.game-projects [data-reveal]:nth-child(2) {
  transition-delay: 0.1s;
}

.skills-grid [data-reveal]:nth-child(3) {
  transition-delay: 0.2s;
}

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
    gap: 48px;
  }

  .portrait-badge-top { left: -22px; }
  .portrait-badge-bottom { right: -20px; }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .section-intro h2 { max-width: 800px; }

  .profile-board {
    grid-template-columns: 1fr;
  }

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

  .skill-card:last-child {
    grid-column: 1 / -1;
    min-height: 400px;
  }

  .skill-card:last-child .skill-icon { margin-bottom: 40px; }

  .project-featured {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (max-width: 900px) {
  .container {
    width: min(calc(100% - 36px), var(--container));
  }

  .main-nav { gap: 16px; }
  .main-nav a { font-size: 0.78rem; }
  .main-nav .nav-cta { display: none; }

  .hero {
    min-height: auto;
    padding-top: 145px;
  }

  .hero-grid {
    grid-template-columns: 1fr 0.75fr;
  }

  h1 { font-size: clamp(3.1rem, 7.7vw, 5rem); }
  .scroll-cue { display: none; }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .qualification-strip {
    grid-template-columns: 1fr;
  }

  .qualification-strip > div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .qualification-strip > div:first-child { border-top: 0; }

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

  .project-featured {
    grid-template-columns: 1fr;
  }

  .project-featured .project-visual {
    aspect-ratio: 16 / 9;
  }

  .archive-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .game-project,
  .game-project-vc2 {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .game-project-visual {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .game-project-vc2 .game-project-visual {
    order: -1;
  }

  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-intro {
    position: static;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav-card {
    position: static;
  }

  .legal-nav-card nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .header-inner {
    min-height: 72px;
  }

  .js .menu-toggle {
    display: grid;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: grid;
    padding: 18px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-elevated);
  }

  .js .main-nav {
    visibility: hidden;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .js .nav-open .main-nav {
    visibility: visible;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 12px 4px;
    font-size: 0.98rem;
  }

  .main-nav .nav-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 4px;
  }

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

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 62px;
  }

  .hero-copy { order: 1; }
  .hero-visual {
    order: 2;
    justify-self: center;
    width: min(90%, 460px);
  }

  .portrait-badge-top { left: -14px; }
  .portrait-badge-bottom { right: -12px; }

  .copy-columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .board-flow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .board-flow i { display: none; }

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

  .skill-card,
  .skill-card:last-child {
    grid-column: auto;
    min-height: 470px;
  }

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

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand-copy { display: none; }

  h1 {
    font-size: clamp(3rem, 14vw, 4.15rem);
    line-height: 1.02;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
  }

  .button { width: 100%; }

  .hero-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 42px;
  }

  .hero-facts li {
    padding-inline: 10px;
  }

  .hero-facts strong { font-size: 1rem; }
  .hero-facts span {
    font-size: 0.59rem;
    white-space: normal;
  }

  .hero-visual { width: 95%; }

  .portrait-badge {
    font-size: 0.55rem;
  }

  .portrait-badge-top {
    top: 24px;
    left: -6px;
  }

  .portrait-badge-bottom {
    right: -4px;
    bottom: 27px;
  }

  .section { padding-block: 90px; }

  .section-heading { margin-bottom: 46px; }

  .profile-board {
    padding: 22px;
  }

  .board-flow {
    grid-template-columns: 1fr;
  }

  .skill-card,
  .skill-card:last-child {
    min-height: 0;
    padding: 28px 24px 34px;
  }

  .skill-icon,
  .skill-card:last-child .skill-icon {
    margin-bottom: 45px;
  }

  .project-content,
  .game-project-content {
    min-height: 0;
    padding: 30px 24px 34px;
  }

  .project-featured .project-visual,
  .game-project-visual {
    aspect-ratio: 4 / 3;
  }

  .archive-intro {
    margin-top: 92px;
    padding-top: 34px;
  }

  .archive-intro h3 {
    font-size: clamp(2.65rem, 13vw, 4.1rem);
  }

  .archive-intro h2 {
    font-size: clamp(2.65rem, 13vw, 4.1rem);
  }

  .fisi-tasks {
    grid-template-columns: 1fr;
  }

  .fisi-tasks > div {
    min-height: 0;
  }

  .fisi-note {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px;
  }

  .fisi-note strong {
    white-space: normal;
  }

  .game-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .game-title-row > span {
    margin-bottom: 0;
  }

  .game-contributions {
    grid-template-columns: 1fr;
  }

  .vanreise-scope {
    grid-template-columns: 1fr;
  }

  .archive-manifesto {
    align-items: start;
    gap: 16px;
    padding: 22px;
  }

  .project-visual img {
    object-position: center;
  }

  .project-open {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }

  .faq-list summary {
    min-height: 78px;
    gap: 16px;
  }

  .contact-section { padding-block: 100px; }

  .legal-hero {
    padding: 128px 0 78px;
  }

  .legal-document {
    padding: 30px 24px;
  }

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

  .contact-inner h2 {
    font-size: clamp(3.2rem, 17vw, 5.3rem);
  }

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

  .footer-grid > div:first-child { grid-column: auto; }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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

@media print {
  .site-header,
  .scroll-progress,
  .ticker,
  .scroll-cue,
  .contact-section,
  .site-footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .hero { min-height: auto; padding-top: 30px; }
  .section { padding-block: 35px; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
