:root {
  --bg: #f3ece1;
  --bg-soft: #ede2d2;
  --bg-deep: #e4d7c5;
  --ink: #17211e;
  --ink-soft: #59635e;
  --panel: rgba(255, 251, 246, 0.84);
  --panel-solid: #fffaf2;
  --panel-dark: #121a19;
  --panel-dark-soft: #192424;
  --line: rgba(23, 33, 30, 0.11);
  --line-strong: rgba(23, 33, 30, 0.2);
  --accent: #145c4b;
  --accent-2: #b5764f;
  --accent-3: #d5c0a6;
  --accent-4: #23a37b;
  --white: #f8f4eb;
  --shadow-lg: 0 24px 80px rgba(30, 34, 32, 0.12);
  --shadow-md: 0 16px 34px rgba(30, 34, 32, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1180px;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body: "Segoe UI Variable Text", "Segoe UI", "Trebuchet MS", sans-serif;
  --mono: "Consolas", "SFMono-Regular", "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(20, 92, 75, 0.12), transparent 28%),
    radial-gradient(circle at right 20% top 10%, rgba(181, 118, 79, 0.1), transparent 18%),
    radial-gradient(circle at center 85%, rgba(20, 92, 75, 0.06), transparent 22%),
    linear-gradient(180deg, #f6efe4 0%, var(--bg) 42%, var(--bg-deep) 100%);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1414;
  --bg-soft: #101818;
  --bg-deep: #081010;
  --ink: #eef4f0;
  --ink-soft: #a8b4af;
  --panel: rgba(18, 26, 25, 0.82);
  --panel-solid: #16201f;
  --panel-dark: #0b1111;
  --panel-dark-soft: #121b1b;
  --line: rgba(238, 244, 240, 0.1);
  --line-strong: rgba(238, 244, 240, 0.18);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.36);
  --shadow-md: 0 16px 34px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(20, 92, 75, 0.18), transparent 28%),
    radial-gradient(circle at right 20% top 10%, rgba(181, 118, 79, 0.12), transparent 18%),
    radial-gradient(circle at center 85%, rgba(20, 92, 75, 0.12), transparent 22%),
    linear-gradient(180deg, #0b1111 0%, var(--bg) 42%, var(--bg-deep) 100%);
}

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

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

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.background-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 33, 30, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 30, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 72%);
  pointer-events: none;
  z-index: -1;
}

html[data-theme="dark"] .background-grid {
  background-image:
    linear-gradient(rgba(248, 244, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 244, 235, 0.05) 1px, transparent 1px);
}

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

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 28%);
  pointer-events: none;
}

html[data-theme="dark"] .panel::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 28%);
}

.panel-dark {
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(213, 192, 166, 0.08), transparent 25%),
    linear-gradient(145deg, var(--panel-dark) 0%, var(--panel-dark-soft) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 16px 0 0;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 18px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.74);
  border: 1px solid rgba(23, 33, 30, 0.09);
  box-shadow: 0 12px 28px rgba(23, 33, 30, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
}

html[data-theme="dark"] .header-bar {
  background: rgba(11, 17, 17, 0.74);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.brand {
  display: grid;
  gap: 4px;
  line-height: 1.1;
}

.brand strong {
  font-size: 0.98rem;
  letter-spacing: 0.03em;
}

.brand span {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(23, 33, 30, 0.1);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.92);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(23, 33, 30, 0.06);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

html[data-theme="dark"] .mobile-menu-toggle {
  background: rgba(16, 24, 23, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
  transform: translateY(-1px);
  outline: none;
  border-color: rgba(20, 92, 75, 0.24);
}

.mobile-menu-icon {
  position: relative;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: background-color 0.2s ease;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.mobile-menu-icon::before {
  top: -5px;
}

.mobile-menu-icon::after {
  bottom: -5px;
}

.header-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--ink);
  background: rgba(20, 92, 75, 0.08);
  outline: none;
  transform: translateY(-1px);
}

html[data-theme="dark"] .header-nav a:hover,
html[data-theme="dark"] .header-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 140px;
  padding: 10px 14px;
  border: 1px solid rgba(23, 33, 30, 0.1);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.92);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(23, 33, 30, 0.06);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
  outline: none;
  border-color: rgba(20, 92, 75, 0.24);
}

.theme-toggle-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(23, 33, 30, 0.14);
  background: linear-gradient(135deg, #17211e 0 52%, #f5ede0 52%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  flex: none;
}

.theme-toggle[data-theme="dark"] .theme-toggle-icon {
  background: linear-gradient(135deg, #f5ede0 0 52%, #17211e 52%);
}

html[data-theme="dark"] .theme-toggle {
  background: rgba(16, 24, 23, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .theme-toggle-icon {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: #16211f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .lang-switch {
  background: #0f1717;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lang-button {
  min-width: 52px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(248, 244, 235, 0.72);
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lang-button:hover,
.lang-button:focus-visible {
  color: var(--white);
  outline: none;
  transform: translateY(-1px);
}

.lang-button.is-active {
  color: #10201c;
  background: linear-gradient(135deg, #f6eedf, #d9c7ad);
}

.hero-section {
  padding: 54px 0 38px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 24px;
  align-items: stretch;
}

.hero-panel,
.identity-card,
.insight-card,
.manifesto-card,
.skill-card,
.timeline-card,
.value-card,
.contact-cta,
.contact-card,
.work-stage {
  padding: 32px;
}

.hero-panel::before,
.contact-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 35%),
    radial-gradient(circle at 85% 20%, rgba(213, 192, 166, 0.12), transparent 20%);
  pointer-events: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -20px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(213, 192, 166, 0.2), transparent 62%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-3);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

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

.hero-panel h1,
.section-head h2,
.contact-cta h2 {
  margin: 0;
  font-family: var(--display);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-panel h1 {
  max-width: 11ch;
  font-size: clamp(3.1rem, 6.4vw, 6rem);
}

.hero-lead {
  max-width: 60ch;
  margin: 22px 0 0;
  color: rgba(248, 244, 235, 0.86);
  font-size: 1.06rem;
}

.hero-lead-soft {
  color: rgba(248, 244, 235, 0.68);
}

.hero-actions,
.stage-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin: 30px 0 0;
}

.hero-counters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.counter-card {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.counter-card strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.counter-card span {
  display: block;
  margin-top: 6px;
  color: rgba(248, 244, 235, 0.72);
  font-size: 0.94rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, #1a7a62, var(--accent));
  box-shadow: 0 12px 28px rgba(20, 92, 75, 0.25);
}

.button-secondary {
  color: inherit;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.button-whatsapp {
  color: #f6fbf8;
  background: linear-gradient(135deg, #2dc86f, #168b4b);
  box-shadow: 0 12px 26px rgba(29, 162, 91, 0.24);
}

.whatsapp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.proof-strip article {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.proof-strip strong {
  display: block;
  margin-bottom: 6px;
}

.proof-strip span {
  color: rgba(248, 244, 235, 0.7);
  font-size: 0.94rem;
}

.hero-side {
  display: grid;
  gap: 18px;
}

.identity-card {
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(20, 92, 75, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.9), rgba(251, 245, 237, 0.82));
}

html[data-theme="dark"] .identity-card {
  background:
    radial-gradient(circle at top right, rgba(20, 92, 75, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(17, 24, 24, 0.94), rgba(13, 20, 20, 0.88));
}

.identity-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.identity-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent), #0f4136);
  box-shadow: 0 10px 24px rgba(20, 92, 75, 0.18);
  color: var(--white);
  font-family: var(--display);
  font-size: 1.8rem;
}

.card-label,
.timeline-label,
.stage-type,
.contact-list span {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card-label {
  margin: 0 0 10px;
  color: var(--accent);
}

.identity-card h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.identity-card p,
.manifesto-card p,
.skill-card p,
.timeline-card p,
.value-card p,
.section-head p,
.contact-card p,
.stage-summary,
.contact-list strong a,
.contact-list strong,
.site-footer {
  color: var(--ink-soft);
}

.identity-meta {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.identity-meta div {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

html[data-theme="dark"] .identity-meta div {
  background: rgba(255, 255, 255, 0.04);
}

.identity-meta span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.identity-meta strong {
  font-size: 0.98rem;
}

.insight-card {
  background: linear-gradient(160deg, rgba(222, 234, 228, 0.82), rgba(255, 252, 247, 0.84));
}

html[data-theme="dark"] .insight-card {
  background: linear-gradient(160deg, rgba(20, 32, 31, 0.92), rgba(13, 20, 20, 0.9));
}

.plain-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  padding-left: 16px;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.section {
  padding: 86px 0;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    rgba(255, 250, 243, 0.26);
}

html[data-theme="dark"] .section-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    rgba(7, 12, 12, 0.22);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.82fr);
  gap: 24px;
  align-items: end;
}

.section-head h2,
.contact-cta h2 {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  max-width: 11ch;
}

.section-head p,
.contact-cta p {
  margin: 0;
  font-size: 1.03rem;
  max-width: 56ch;
}

.manifesto-grid,
.bento-grid,
.timeline,
.value-grid,
.work-layout,
.contact-layout {
  margin-top: 34px;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.manifesto-card h3,
.skill-card h3,
.timeline-card h3,
.value-card h3,
.work-stage h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.manifesto-card,
.skill-card,
.timeline-card,
.value-card,
.identity-card,
.insight-card,
.contact-card,
.project-option,
.counter-card,
.proof-strip article {
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    background-color 0.24s ease;
}

.accent-card {
  background:
    linear-gradient(160deg, rgba(20, 92, 75, 0.12), rgba(255, 255, 255, 0.84)),
    var(--panel);
}

html[data-theme="dark"] .accent-card {
  background:
    linear-gradient(160deg, rgba(20, 92, 75, 0.18), rgba(17, 25, 25, 0.9)),
    var(--panel);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.skill-card-wide {
  grid-column: span 2;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
}

.timeline-label {
  color: var(--accent);
  padding-top: 3px;
}

.section-work {
  background:
    radial-gradient(circle at top right, rgba(20, 92, 75, 0.06), transparent 20%),
    linear-gradient(180deg, rgba(18, 26, 25, 0.03), rgba(18, 26, 25, 0));
}

html[data-theme="dark"] .section-work {
  background:
    radial-gradient(circle at top right, rgba(20, 92, 75, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0));
}

.section-work .section-head {
  grid-template-columns: 1fr;
  width: 100%;
  justify-content: start;
}

.section-work .section-head > div {
  width: 100%;
  display: grid;
  justify-items: center;
  text-align: center;
}

.section-work .section-head .eyebrow {
  margin-inline: auto;
}

.section-work .section-head h2 {
  width: 100%;
  max-width: none;
  text-align: center;
  margin-inline: auto;
}

.section-work .work-layout.container {
  width: min(calc(100% - 32px), 1380px);
}

.work-layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: clamp(34px, 4vw, 64px);
  align-items: start;
}

.work-list {
  display: grid;
  gap: 12px;
  max-width: 320px;
}

.project-option {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 13px;
  text-align: left;
  color: inherit;
  background: rgba(255, 251, 246, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  position: relative;
}

html[data-theme="dark"] .project-option {
  background: rgba(18, 26, 25, 0.86);
}

.project-option:hover,
.project-option:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(20, 92, 75, 0.28);
  outline: none;
}

.project-option.is-active {
  background: linear-gradient(145deg, rgba(20, 92, 75, 0.08), rgba(255, 251, 246, 0.88));
  border-color: rgba(20, 92, 75, 0.34);
}

html[data-theme="dark"] .project-option.is-active {
  background: linear-gradient(145deg, rgba(20, 92, 75, 0.22), rgba(18, 26, 25, 0.92));
}

.project-option.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), rgba(20, 92, 75, 0.2));
}

.option-thumb {
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #faf6ef, #e8e1d5);
  aspect-ratio: 2540 / 1305;
}

html[data-theme="dark"] .option-thumb {
  background: linear-gradient(180deg, #121918, #1a2523);
}

.option-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.option-copy {
  display: grid;
  gap: 5px;
}

.option-copy strong {
  font-size: 1.02rem;
}

.option-copy small {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.work-stage {
  position: sticky;
  top: 96px;
  --stage-accent: #145c4b;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  padding: clamp(24px, 2vw, 34px);
  box-shadow: var(--shadow-lg);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--stage-accent) 28%, transparent),
    var(--shadow-lg);
}

.stage-browser {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0e1514;
  position: relative;
  width: min(100%, 980px);
  margin-inline: auto;
}

.stage-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--stage-accent) 16%, transparent), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.browser-dots {
  display: inline-flex;
  gap: 6px;
}

.browser-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.stage-url {
  margin-left: auto;
  max-width: 66%;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 244, 235, 0.8);
  font-family: var(--mono);
  font-size: 0.76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-live-shell {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 2540 / 1305;
  background: #ffffff;
  min-height: clamp(420px, 39vw, 720px);
}

html[data-theme="dark"] .stage-live-shell {
  background: #101717;
}

#stage-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: linear-gradient(180deg, #fbf6ee, #eadfce);
}

html[data-theme="dark"] #stage-image {
  background: linear-gradient(180deg, #121918, #0c1312);
}

.stage-content {
  width: min(100%, 980px);
  margin-inline: auto;
  padding-top: 28px;
}

.stage-type {
  margin-bottom: 10px;
  color: rgba(213, 192, 166, 0.84);
  color: color-mix(in srgb, var(--stage-accent) 45%, #f8f4eb);
}

.stage-summary {
  margin: 0;
  color: rgba(248, 244, 235, 0.78);
}

.stage-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.stage-meta article {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stage-meta span {
  display: block;
  margin-bottom: 6px;
  color: rgba(213, 192, 166, 0.84);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stage-meta p {
  margin: 0;
  color: rgba(248, 244, 235, 0.78);
}

.stage-actions {
  margin-top: 22px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.value-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(252, 247, 240, 0.78));
}

html[data-theme="dark"] .value-card {
  background:
    linear-gradient(180deg, rgba(18, 26, 25, 0.88), rgba(13, 20, 20, 0.82));
}

.value-card::before,
.manifesto-card::before,
.skill-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(20, 92, 75, 0.78), rgba(181, 118, 79, 0.22), transparent 70%);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 18px;
  align-items: stretch;
}

.contact-cta p {
  max-width: 58ch;
  margin-top: 16px;
  color: rgba(248, 244, 235, 0.76);
}

.contact-actions {
  margin-top: 28px;
}

.contact-card {
  display: grid;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(251, 244, 236, 0.82));
}

html[data-theme="dark"] .contact-card {
  background:
    linear-gradient(180deg, rgba(18, 26, 25, 0.92), rgba(13, 20, 20, 0.84));
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-list article {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
}

html[data-theme="dark"] .contact-list article {
  background: rgba(255, 255, 255, 0.04);
}

.contact-list span {
  margin-bottom: 6px;
  color: var(--ink-soft);
}

.contact-list strong {
  line-height: 1.3;
  word-break: break-word;
}

.contact-note {
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(20, 92, 75, 0.08), rgba(255, 255, 255, 0.5));
  border: 1px solid var(--line);
}

html[data-theme="dark"] .contact-note {
  background: linear-gradient(155deg, rgba(20, 92, 75, 0.18), rgba(255, 255, 255, 0.04));
}

.contact-note p {
  margin: 0;
}

.site-footer {
  padding: 30px 0 50px;
  font-size: 0.92rem;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.project-option,
.button,
.panel {
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .manifesto-card:hover,
  .skill-card:hover,
  .value-card:hover,
  .identity-card:hover,
  .insight-card:hover,
  .contact-card:hover,
  .counter-card:hover,
  .proof-strip article:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(28, 34, 31, 0.1);
    border-color: rgba(20, 92, 75, 0.16);
  }

  .timeline-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(28, 34, 31, 0.09);
  }

  .button-primary:hover,
  .button-primary:focus-visible {
    box-shadow: 0 16px 34px rgba(20, 92, 75, 0.3);
  }
}

@media (max-width: 1100px) {
  .hero-layout,
  .section-head,
  .work-layout,
  .contact-layout,
  .value-grid,
  .manifesto-grid,
  .bento-grid {
    grid-template-columns: 1fr;
  }

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

  .section-head h2 {
    max-width: 14ch;
  }

  .skill-card-wide {
    grid-column: auto;
  }

  .work-stage {
    position: static;
  }

  .section-work .work-layout.container {
    width: min(calc(100% - 32px), var(--container));
  }

  .work-list {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .header-bar {
    border-radius: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .header-tools {
    display: none;
    justify-items: start;
    grid-column: 1 / -1;
    width: 100%;
    padding-top: 8px;
  }

  .site-header.is-menu-open .header-tools {
    display: grid;
  }

  .header-nav {
    display: grid;
    justify-content: flex-start;
    width: 100%;
  }

  .header-nav a {
    width: 100%;
  }

  .lang-switch {
    margin-top: 4px;
  }

  .theme-toggle {
    margin-top: 4px;
    justify-self: start;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .site-header.is-menu-open .mobile-menu-icon {
    background: transparent;
  }

  .site-header.is-menu-open .mobile-menu-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .site-header.is-menu-open .mobile-menu-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
  }

  .hero-panel,
  .identity-card,
  .insight-card,
  .manifesto-card,
  .skill-card,
  .timeline-card,
  .value-card,
  .contact-cta,
  .contact-card,
  .work-stage {
    padding: 24px;
  }

  .timeline-card,
  .stage-meta,
  .project-option {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .stage-live-shell {
    min-height: clamp(240px, 62vw, 360px);
  }
}

@media (max-width: 560px) {
  .hero-panel h1 {
    font-size: 2.9rem;
  }

  .section-head h2,
  .contact-cta h2 {
    max-width: none;
  }

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

  .button,
  .contact-actions .button,
  .stage-actions .button,
  .hero-actions .button {
    width: 100%;
  }

  .hero-actions,
  .stage-actions,
  .contact-actions {
    display: grid;
  }

  .stage-url {
    max-width: 56%;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
