/* Ebenezer Nzombe — an independent builder's portfolio. */
:root {
  --paper: #f6f4ed;
  --ink: #20231f;
  --muted: #64695f;
  --line: #d8dbcf;
  --blue: #304ce5;
  --blue-dark: #2038b4;
  --font-body: 'Manrope', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
::selection {
  background: #d7ff72;
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}
.container,
.nav-container,
.footer-container,
.hero-layout,
.hero-footline {
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: white;
}
.skip-link:focus {
  top: 12px;
}
.gradient-text {
  color: var(--blue);
}
.section {
  padding: 110px 0;
}
.section-tag,
.project-category {
  display: block;
  font: 500 11px/1.7 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-tag {
  color: var(--muted);
  margin-bottom: 22px;
}
.section-title {
  font-size: clamp(36px, 4.5vw, 66px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.065em;
}
.section-header {
  margin-bottom: 54px;
  position: relative;
}
.section-desc {
  max-width: 510px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 16px;
}
.btn-primary,
.btn-ghost,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 54px;
  padding: 13px 24px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid transparent;
  transition:
    background 0.2s,
    transform 0.2s;
}
.btn-primary {
  background: var(--blue);
  color: white;
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}
.btn-ghost {
  border-color: var(--line);
  background: transparent;
}
.btn-ghost:hover {
  background: #e8e9df;
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #458134;
}

/* Navigation */
#navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #f6f4edf5;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.nav-container {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo,
.footer-logo {
  display: inline-flex;
  align-items: baseline;
  font: 700 40px/1 var(--font-display);
  letter-spacing: -0.09em;
}
.logo-dot {
  color: var(--blue);
}
.logo-caption {
  align-self: center;
  max-width: 80px;
  margin-left: 18px;
  font: 500 9px/1.6 var(--font-mono);
  letter-spacing: 0.07em;
}
.nav-links {
  display: flex;
  gap: 25px;
  font-size: 12px;
  font-weight: 600;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--blue);
  transition: width 0.2s;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-cta {
  background: var(--ink);
  color: var(--paper);
  min-height: 44px;
  padding: 8px 17px;
  font-size: 11px;
}
.nav-cta:hover {
  background: var(--blue);
}
.hamburger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 13px 11px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.hamburger.open span:first-child {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}
.mobile-menu {
  display: none;
}

/* The opening spread */
.hero-section {
  padding: 78px 0 0;
  overflow: clip;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 64px;
}
.hero-greeting {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 34px;
}
.code-tag {
  font: 500 10px/1.7 var(--font-mono);
  letter-spacing: 0.08em;
}
.hero-person {
  font-size: 14px;
  margin-bottom: 15px;
}
.hero-name {
  font: 500 clamp(48px, 5.7vw, 82px) / 1.03 var(--font-display);
  letter-spacing: -0.075em;
}
.hero-build {
  color: var(--blue);
  display: inline-block;
  position: relative;
}
.hero-build svg {
  position: absolute;
  width: 110%;
  left: -5%;
  bottom: -12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
}
.hero-desc {
  max-width: 445px;
  font-size: 15px;
  color: var(--muted);
  margin-top: 32px;
  line-height: 1.85;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 29px;
}
.hero-socials {
  display: flex;
  gap: 6px;
  margin-top: 24px;
}
.social-icon,
.social-btn {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition:
    color 0.2s,
    background 0.2s;
}
.social-icon:hover,
.social-btn:hover {
  color: var(--blue);
  background: #e4e7da;
}
.hero-work {
  min-width: 0;
  align-self: center;
}
.work-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
  font: 500 9px/1.7 var(--font-mono);
  letter-spacing: 0.06em;
}
.work-topline > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.work-topline > span:last-child {
  color: var(--muted);
}
.work-art {
  background: var(--blue);
  padding: 185px 22px 40px;
  position: relative;
  isolation: isolate;
}
.work-art::after {
  content: '';
  position: absolute;
  width: 275px;
  height: 275px;
  border: 1px solid #ffffff26;
  border-radius: 50%;
  right: -65px;
  top: 40px;
  z-index: -1;
}
.work-word {
  position: absolute;
  top: 19px;
  left: 26px;
  font: 700 97px/0.79 var(--font-display);
  letter-spacing: -0.075em;
  color: #e5ebff;
}
.work-word > span {
  font-weight: 400;
  margin-left: 5px;
}
.work-route {
  position: absolute;
  right: 17px;
  top: 22px;
  writing-mode: vertical-rl;
  color: #d5ddff;
  font: 400 9px var(--font-mono);
  letter-spacing: 0.15em;
}
.work-route > span {
  padding-block: 10px;
}
.work-window {
  position: relative;
  display: block;
  background: #f6f4ed;
  box-shadow: 0 25px 50px #10183740;
  transform: rotate(-7deg);
  border: 1px solid #ffffff55;
  border-radius: 7px;
  overflow: hidden;
  transition: transform 0.35s;
}
.work-window:hover {
  transform: rotate(-3deg) translateY(-5px);
}
.window-bar {
  min-height: 29px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font: 400 8px var(--font-mono);
  color: #6a716a;
  background: #f5f5ef;
  border-bottom: 1px solid #20231f15;
}
.window-dots {
  font-size: 7px;
  letter-spacing: 2px;
  color: #a8aea0;
}
.work-window img {
  width: 100%;
}
.work-stamp {
  position: absolute;
  bottom: 17px;
  left: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 112px;
  height: 112px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: #dcfa94;
  color: var(--ink);
  font: 500 9px/1.8 var(--font-mono);
  text-align: center;
  transform: rotate(-13deg);
  box-shadow: 3px 4px 0 #20231f;
}
.work-stamp strong {
  font: 600 17px var(--font-display);
  letter-spacing: -0.05em;
}
.work-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0 0;
}
.work-caption h2 {
  font: 600 15px/1.5 var(--font-display);
  letter-spacing: -0.025em;
}
.work-caption p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.work-caption a {
  display: grid;
  place-items: center;
  height: 44px;
  width: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex-shrink: 0;
}
.work-caption a:hover {
  color: var(--blue);
  border-color: var(--blue);
}
.hero-footline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 70px;
  padding: 20px 0;
  font: 400 9px/1.6 var(--font-mono);
  letter-spacing: 0.05em;
  color: var(--muted);
}
.hero-footline a {
  color: var(--ink);
}
.hero-footline a span {
  margin-left: 20px;
}

/* Work — actual products, not stock illustrations. */
#projects {
  padding-top: 90px;
}
.projects-grid {
  display: grid;
  gap: 64px;
}
.project-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 58px;
  align-items: center;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 120px;
  min-width: 0;
}
.project-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.project-card:nth-child(2) {
  grid-template-columns: 1fr 1.2fr;
}
.project-card:nth-child(2) .project-body {
  order: -1;
}
.project-img-wrap {
  display: block;
  position: relative;
  background: #e8e7df;
  padding: 22px 26px 20px;
  min-width: 0;
}
#project-card-4 .project-img-wrap {
  background: #e0e8d8;
}
#project-card-2 .project-img-wrap {
  background: #dee4ef;
}
.project-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px;
  font: 500 9px/1.6 var(--font-mono);
  padding-bottom: 26px;
}
.live-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  background: #f6f4ed;
  border-radius: 20px;
  padding: 4px 8px;
}
.live-label .status-dot {
  width: 5px;
  height: 5px;
}
.project-screen {
  border: 1px solid #20231f26;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 28px #20231f17;
  transition: transform 0.3s;
}
.project-screen img {
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
  object-position: top;
}
.project-img-wrap:hover .project-screen {
  transform: translateY(-5px);
}
.preview-visit {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  padding-top: 22px;
}
.preview-visit > span {
  font-size: 19px;
  line-height: 1;
}
.project-category {
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 12px;
}
.project-title {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.06em;
  margin-bottom: 20px;
}
.project-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 21px 0;
}
.project-tag {
  font: 400 9px/1.5 var(--font-mono);
  padding: 5px 8px;
  border: 1px solid var(--line);
}
.project-case {
  border-block: 1px solid var(--line);
  margin-bottom: 15px;
}
.project-case summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.project-case summary::-webkit-details-marker {
  display: none;
}
.project-case summary > span {
  font-size: 21px;
  font-weight: 400;
}
.project-case[open] summary > span {
  transform: rotate(45deg);
}
.project-case dl {
  margin: 0;
  padding-bottom: 20px;
}
.project-case dt {
  font: 500 9px/1.6 var(--font-mono);
  color: var(--blue);
  text-transform: uppercase;
  margin: 12px 0 6px;
}
.project-case dd {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.project-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}
.project-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* The person & the practice */
#about {
  background: #eaece2;
}
.about-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}
.about-location {
  margin-top: 24px;
  font: 400 11px/1.7 var(--font-mono);
  color: var(--muted);
}
.origin-mark {
  width: fit-content;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 17px;
  font: 500 68px/1 var(--font-display);
  letter-spacing: -0.09em;
  margin-top: 50px;
}
.origin-arrow {
  color: var(--blue);
  font-size: 52px;
}
.origin-mark small {
  flex-basis: 100%;
  font: 400 8px/1.7 var(--font-mono);
  letter-spacing: 0.11em;
  margin-top: 13px;
}
.about-lead {
  font: 500 clamp(24px, 2.3vw, 33px) / 1.45 var(--font-display);
  letter-spacing: -0.04em;
  margin-bottom: 26px;
}
.about-text {
  color: var(--muted);
  font-size: 14px;
  margin-top: 20px;
}
.about-actions {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 30px;
}
.about-actions .btn-ghost {
  border-color: #bdc4b2;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.toolkit-card {
  padding: 30px 24px;
  border-right: 1px solid var(--line);
}
.toolkit-card:first-child {
  padding-left: 0;
}
.toolkit-card:last-child {
  border: 0;
  padding-right: 0;
}
.toolkit-card > svg {
  color: var(--blue);
  margin-bottom: 28px;
}
.toolkit-card h3 {
  font-size: 17px;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin-bottom: 15px;
}
.toolkit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 65px;
  align-content: start;
}
.toolkit-tags li {
  font: 400 9px/1.7 var(--font-mono);
  color: var(--muted);
}
.toolkit-tags li:not(:last-child)::after {
  content: ' /';
  color: #909789;
  margin-left: 4px;
}
.toolkit-evidence {
  display: block;
  font-size: 11px;
  line-height: 1.9;
  margin-top: 20px;
}
.toolkit-evidence:hover {
  color: var(--blue);
}

/* One chronological thread, in the user's chosen order. */
#experience {
  padding-top: 20px;
}
.journey-intro {
  max-width: 550px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.timeline {
  position: relative;
}
.timeline-item {
  position: relative;
  padding-left: 36px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 34px;
  bottom: -34px;
  width: 1px;
  background: var(--line);
}
.timeline-item:last-child::before {
  display: none;
}
.timeline-marker {
  position: absolute;
  top: 32px;
  left: 0;
  width: 17px;
  height: 17px;
  border: 1px solid #a2aa95;
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
  color: var(--blue);
}
.timeline-marker svg {
  width: 9px;
  height: 9px;
}
.timeline-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  column-gap: 42px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-badge {
  grid-column: 1;
  grid-row: 1;
  font: 500 10px/1.7 var(--font-mono);
  color: var(--blue);
}
.timeline-title {
  grid-column: 2;
  grid-row: 1;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.4;
}
.timeline-org {
  grid-column: 2;
  grid-row: 2;
  font-size: 12px;
  margin-top: 8px;
  color: var(--muted);
}
.timeline-date {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font: 400 9px/1.8 var(--font-mono);
  color: var(--muted);
  margin-top: 8px;
}
.timeline-date svg {
  display: none;
}
.journey-details {
  grid-column: 2;
}
.journey-details summary {
  min-height: 44px;
  padding: 12px 0;
  font-size: 11px;
  cursor: pointer;
  color: var(--blue);
}
.timeline-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  padding: 4px 0 14px;
}
.timeline .project-link {
  grid-column: 2;
  font-size: 11px;
}

/* GitHub remains part of the portfolio. */
#github {
  background: #202820;
  color: #f1f5e8;
}
#github .section-tag,
#github .section-desc {
  color: #b4c0ae;
}
#github .gradient-text {
  color: #c8ed92;
}
.activity-panel {
  padding: 30px;
  border: 1px solid #52604d;
  background: #253027;
}
.activity-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.activity-heading strong {
  font: 400 13px var(--font-mono);
}
.activity-heading .text-link {
  color: #c8ed92;
  font-size: 11px;
}
.activity-scroll {
  overflow-x: auto;
  padding-bottom: 15px;
  scrollbar-color: #8eae73 #253027;
}
.activity-scroll img {
  min-width: 660px;
  width: 100%;
}
.activity-note {
  font-size: 11px;
  color: #b4c0ae;
  margin-top: 10px;
}
#github :focus-visible {
  outline-color: #c8ed92;
}

/* Invitation */
#contact {
  background: var(--blue);
  color: white;
}
#contact .section-tag {
  color: #d6ddff;
}
#contact .gradient-text {
  color: #cbd3ff;
}
#contact .section-title {
  font-size: clamp(38px, 5.5vw, 78px);
}
#contact .section-desc {
  color: #d6ddff;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.contact-info h3 {
  font: 400 11px var(--font-mono);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact-items {
  display: grid;
  gap: 20px;
}
.contact-item {
  display: flex;
  gap: 15px;
  align-items: center;
  min-height: 48px;
}
.contact-icon {
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff50;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-label {
  display: block;
  font-size: 10px;
  color: #d6ddff;
}
.contact-value {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.contact-item > div:last-child {
  min-width: 0;
}
.contact-socials {
  margin-top: 36px;
}
.contact-socials h4 {
  font: 400 10px var(--font-mono);
  color: #d6ddff;
  margin-bottom: 12px;
}
.socials-row {
  display: flex;
  gap: 8px;
}
#contact .social-btn {
  color: white;
  border: 1px solid #ffffff50;
}
#contact .social-btn:hover {
  background: #ffffff22;
}
.contact-invitation {
  background: var(--paper);
  color: var(--ink);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: start;
  transform: rotate(2deg);
  box-shadow: 8px 8px 0 #2038b4;
}
#contact .contact-invitation .section-tag {
  color: var(--muted);
  margin: 0;
  font-size: 9px;
}
.contact-invitation h3 {
  font-size: 38px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.05em;
}
.contact-invitation p {
  color: var(--muted);
  font-size: 13px;
}
#contact :focus-visible {
  outline-color: #dcfa94;
}
.contact-invitation :focus-visible {
  outline-color: var(--ink) !important;
}
.footer-container {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-copy {
  font-size: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}
.heart-icon {
  color: var(--blue);
}
.back-to-top {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.mobile-dock {
  display: none;
}
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--blue);
  z-index: 60;
  pointer-events: none;
}

@media (min-width: 1100px) {
  #projects .section-desc {
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: 355px;
  }
}
@media (max-width: 1100px) {
  .container,
  .nav-container,
  .footer-container,
  .hero-layout,
  .hero-footline {
    width: calc(100% - 64px);
  }
  .hero-layout {
    gap: 36px;
  }
  .hero-name {
    font-size: clamp(45px, 6.2vw, 65px);
  }
  .work-art {
    padding-top: 175px;
  }
  .work-word {
    font-size: 87px;
  }
  .work-stamp {
    width: 98px;
    height: 98px;
  }
  .nav-links {
    gap: 18px;
  }
  .logo-caption {
    display: none;
  }
  .project-card,
  .project-card:nth-child(2) {
    gap: 32px;
  }
  .about-editorial {
    gap: 60px;
  }
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toolkit-card {
    padding: 30px !important;
  }
  .toolkit-card:nth-child(2) {
    border-right: 0;
  }
  .toolkit-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .toolkit-tags {
    min-height: 0;
  }
  .contact-grid {
    gap: 44px;
  }
}
@media (max-width: 980px) {
  .nav-links {
    display: none;
  }
  .nav-container {
    height: 74px;
    gap: 14px;
  }
  .nav-logo {
    margin-right: auto;
  }
  .logo-caption {
    display: inline;
  }
  .hamburger {
    display: block;
  }
  .mobile-menu.open {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 15px 32px 24px;
    box-shadow: 0 18px 22px #20231f0c;
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
  }
  .mobile-link {
    display: block;
    min-height: 48px;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 760px) {
  .container,
  .nav-container,
  .footer-container,
  .hero-layout,
  .hero-footline {
    width: calc(100% - 40px);
  }
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
  html {
    scroll-padding-top: 90px;
  }
  .nav-container {
    height: 68px;
  }
  .nav-logo {
    font-size: 35px;
  }
  .logo-caption {
    font-size: 8px;
    margin-left: 13px;
  }
  .nav-cta {
    display: none;
  }
  .mobile-menu.open {
    padding-inline: 20px;
  }
  .hero-section {
    padding-top: 40px;
  }
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
  }
  .hero-greeting {
    margin-bottom: 26px;
  }
  .code-tag {
    font-size: 9px;
  }
  .hero-person {
    font-size: 12px;
  }
  .hero-name {
    font-size: clamp(46px, 10.9vw, 74px);
    letter-spacing: -0.07em;
  }
  .hero-desc {
    font-size: 14px;
    margin-top: 27px;
    max-width: 480px;
  }
  .hero-actions {
    margin-top: 25px;
    gap: 10px;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    min-height: 50px;
    font-size: 12px;
    padding: 12px 18px;
    gap: 15px;
  }
  .hero-socials {
    margin-top: 15px;
  }
  .hero-work {
    margin: 0 5px;
  }
  .work-topline {
    font-size: 8px;
  }
  .work-art {
    padding: clamp(180px, 45vw, 240px) 16px 34px;
  }
  .work-word {
    font-size: clamp(90px, 23vw, 130px);
    top: 24px;
    left: 24px;
  }
  .work-route {
    font-size: 8px;
  }
  .work-stamp {
    width: 88px;
    height: 88px;
    bottom: 15px;
    left: 10px;
    font-size: 8px;
  }
  .work-stamp strong {
    font-size: 14px;
  }
  .work-caption {
    padding-top: 18px;
  }
  .work-caption h2 {
    font-size: 14px;
  }
  .work-caption p {
    font-size: 11px;
  }
  .hero-footline {
    margin-top: 36px;
    font-size: 8px;
  }
  .hero-footline a {
    display: none;
  }
  .section,
  #projects {
    padding: 65px 0;
  }
  .section-header {
    margin-bottom: 32px;
  }
  .section-tag {
    font-size: 9px;
    margin-bottom: 18px;
  }
  .section-title {
    font-size: clamp(36px, 9vw, 52px);
  }
  .section-desc {
    font-size: 14px;
    margin-top: 20px;
  }
  .projects-grid {
    gap: 38px;
  }
  .project-card,
  .project-card:nth-child(2) {
    grid-template-columns: minmax(0, 1fr);
    gap: 27px;
    padding-bottom: 38px;
  }
  .project-card:nth-child(2) .project-body {
    order: initial;
  }
  .project-img-wrap {
    padding: 16px 16px 14px;
  }
  .project-preview-top {
    padding-bottom: 20px;
    font-size: 9px;
  }
  .project-screen .window-bar {
    font-size: 7px;
  }
  .preview-visit {
    padding-top: 17px;
    font-size: 11px;
  }
  .project-category {
    font-size: 9px;
  }
  .project-title {
    font-size: 33px;
    margin-bottom: 15px;
  }
  .project-desc {
    font-size: 15px;
  }
  .project-tags {
    margin: 18px 0;
  }
  .project-link {
    font-size: 13px;
  }
  .project-case summary {
    font-size: 13px;
  }
  .live-label {
    font-size: 9px;
  }
  .about-editorial {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
  }
  .origin-mark {
    font-size: 52px;
    margin-top: 28px;
  }
  .origin-arrow {
    font-size: 40px;
  }
  .about-lead {
    font-size: 25px;
  }
  .about-text {
    font-size: 14px;
  }
  .about-actions {
    gap: 14px;
  }
  .about-actions .btn-ghost {
    padding: 10px 16px;
    min-height: 48px;
    font-size: 12px;
  }
  .about-actions .text-link {
    font-size: 11px;
  }
  .skills-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .toolkit-card {
    padding: 24px 0 !important;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .toolkit-card > svg {
    float: left;
    width: 22px;
    height: 22px;
    margin: 0 14px 0 0;
  }
  .toolkit-card h3 {
    font-size: 19px;
    margin-bottom: 16px;
  }
  .toolkit-tags li {
    font-size: 10px;
  }
  .toolkit-evidence {
    font-size: 14px;
    margin-top: 15px;
  }
  #experience {
    padding-top: 10px;
  }
  .journey-intro {
    font-size: 14px;
  }
  .timeline-item {
    padding-left: 27px;
  }
  .timeline-card {
    display: block;
    padding: 24px 0;
  }
  .timeline-badge {
    font-size: 10px;
    display: block;
    margin-bottom: 10px;
  }
  .timeline-title {
    font-size: 20px;
  }
  .timeline-org {
    font-size: 14px;
  }
  .timeline-date {
    font-size: 11px;
    margin-top: 12px;
  }
  .timeline-desc {
    font-size: 14px;
  }
  .timeline-marker {
    top: 28px;
  }
  .activity-panel {
    padding: 20px 16px;
  }
  .activity-heading {
    gap: 5px;
    margin-bottom: 15px;
  }
  .activity-heading strong {
    font-size: 12px;
  }
  .activity-note {
    font-size: 11px;
  }
  #contact .section-title {
    font-size: clamp(37px, 9.3vw, 58px);
  }
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
  }
  .contact-value {
    font-size: 13px;
  }
  .contact-invitation {
    padding: 28px;
    margin-inline: 4px;
    gap: 20px;
    transform: rotate(1deg);
  }
  .contact-invitation h3 {
    font-size: 35px;
  }
  .contact-invitation .btn-primary {
    font-size: 12px;
    padding-inline: 17px;
  }
  .footer-container {
    min-height: 110px;
    gap: 15px;
  }
  .footer-copy {
    font-size: 9px;
    max-width: 190px;
  }
  .footer-logo {
    font-size: 34px;
  }
  .mobile-dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
    background: #f6f4edf5;
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }
  .mobile-dock a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--line);
  }
  .mobile-dock a:last-child {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-content {
    animation: enter 0.65s both;
  }
  .hero-work {
    animation: enter 0.8s 0.12s both;
  }
  @keyframes enter {
    from {
      opacity: 0;
      transform: translateY(15px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
