:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-strong: #eef7f4;
  --ink: #111918;
  --muted: #5d6a68;
  --line: rgba(17, 25, 24, 0.12);
  --night: #111820;
  --night-soft: #18222d;
  --teal: #0e9f9a;
  --teal-dark: #087a78;
  --coral: #ff6b4a;
  --lime: #b9d75a;
  --blue: #3278db;
  --amber: #f7b731;
  --shadow: 0 24px 70px rgba(17, 25, 24, 0.12);
  --radius: 8px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(14, 159, 154, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(50, 120, 219, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 100%;
  height: 3px;
  background: rgba(17, 24, 32, 0.08);
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--coral), var(--lime));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 120ms ease-out;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  display: flex;
  width: min(calc(100% - 32px), var(--max-width));
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(17, 24, 32, 0.84);
  color: #fff;
  box-shadow: 0 14px 40px rgba(17, 24, 32, 0.18);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal), var(--coral));
  color: #fff;
  font-size: 0.86rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 10px;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.section-shell {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 88px 0;
}

section[id] {
  scroll-margin-top: 112px;
}

.hero {
  width: 100%;
  min-height: clamp(720px, 86vh, 860px);
  padding: 124px max(16px, calc((100% - var(--max-width)) / 2)) 72px;
  background:
    linear-gradient(135deg, rgba(14, 159, 154, 0.18), transparent 32%),
    linear-gradient(315deg, rgba(255, 107, 74, 0.16), transparent 28%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 120px),
    var(--night);
  color: #fff;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
  width: min(100%, var(--max-width));
  margin: 0 auto;
  min-width: 0;
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
}

.hero-title-wrap {
  position: relative;
  width: fit-content;
  max-width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 34px;
  height: 2px;
  background: currentColor;
  content: "";
}

.hero h1,
.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.04;
}

.hero h1 {
  max-width: min(100%, 720px);
  font-size: clamp(3rem, 7vw, 6.4rem);
  text-wrap: balance;
}

.hero h1 span {
  display: block;
}

.hero-banner {
  position: absolute;
  right: 0;
  bottom: -18px;
  margin: 0;
  width: max-content;
  max-width: min(100%, 460px);
  border: 2px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-family:
    "Segoe UI Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.72rem, 1.2vw, 0.96rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  padding: 8px 12px;
  text-transform: uppercase;
  transform: rotate(-4deg) translateY(42%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.hero-lead {
  max-width: min(100%, 660px);
  margin: 46px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
  padding: 12px 18px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

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

.button.primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 14px 34px rgba(14, 159, 154, 0.28);
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 38px;
}

.hero-metrics article {
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.hero-metrics strong {
  display: block;
  color: var(--lime);
  font-size: 1.04rem;
}

.hero-metrics span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.hero-visual {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  display: grid;
  justify-items: end;
  gap: 16px;
  padding-top: 30px;
  padding-bottom: 72px;
  min-width: 0;
}

.portrait-card {
  position: relative;
  width: min(100%, 420px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
  overflow: visible;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 220ms ease;
}

.portrait-card::before {
  position: absolute;
  inset: 14px;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  content: "";
}

.portrait-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.04) contrast(1.02);
}

.portrait-caption {
  position: absolute;
  top: -30px;
  left: 18px;
  z-index: 2;
  max-width: calc(100% - 36px);
  border-radius: var(--radius);
  background: rgba(17, 24, 32, 0.88);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 12px 14px;
  backdrop-filter: blur(14px);
}

.signal-panel {
  position: absolute;
  right: min(20px, 5%);
  bottom: 0;
  z-index: 4;
  width: min(92%, 360px);
  border: 1px solid rgba(185, 215, 90, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(11, 34, 37, 0.9), rgba(11, 30, 34, 0.76)),
    rgba(17, 24, 32, 0.88);
  color: rgba(255, 255, 255, 0.82);
  font-family:
    "Segoe UI Mono", "SFMono-Regular", Consolas, monospace;
  padding: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.signal-panel p {
  margin: 0;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.45;
}

.signal-panel ul {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.signal-panel li {
  position: relative;
  padding-left: 16px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
}

.signal-panel li::before {
  position: absolute;
  top: 0.72em;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  content: "";
  transform: translateY(-50%);
}

.signal-dot {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 7px rgba(185, 215, 90, 0.16);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 36px;
}

.section-heading.compact {
  max-width: 720px;
}

.section-heading h2,
.contact-copy h2 {
  font-size: clamp(1.85rem, 3.2vw, 3.35rem);
}

.section-heading p:not(.eyebrow),
.contact-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.profile-grid,
.stack-grid,
.project-grid,
.service-board {
  display: grid;
  gap: 18px;
}

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

.profile-card,
.service-item,
.stack-group,
.project-card,
.timeline-item,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.profile-card {
  padding: 26px;
}

.services-section {
  position: relative;
  width: 100%;
  padding-right: max(16px, calc((100% - var(--max-width)) / 2));
  padding-left: max(16px, calc((100% - var(--max-width)) / 2));
  background:
    linear-gradient(120deg, rgba(255, 107, 74, 0.1), transparent 32%),
    linear-gradient(300deg, rgba(185, 215, 90, 0.14), transparent 34%),
    var(--night);
  color: #fff;
  overflow: hidden;
}

.services-section::before,
.stack-section::before,
.projects-section::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100% - 32px, var(--max-width));
  height: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0 0 var(--radius) var(--radius);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.services-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.service-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-item {
  position: relative;
  min-height: 260px;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.service-item::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-right: 2px solid rgba(185, 215, 90, 0.7);
  border-bottom: 2px solid rgba(185, 215, 90, 0.7);
  border-radius: 0 0 var(--radius) 0;
  content: "";
}

.service-count {
  display: inline-flex;
  width: 48px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(185, 215, 90, 0.42);
  border-radius: var(--radius);
  color: var(--lime);
  font-family:
    "Segoe UI Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 900;
}

.service-item h3 {
  margin: 24px 0 0;
  font-size: 1.42rem;
  line-height: 1.1;
}

.service-item p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.card-kicker,
.project-type,
.timeline-date {
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-card h3,
.stack-group h3,
.project-content h3,
.timeline-item h3 {
  margin: 10px 0 0;
  font-size: 1.12rem;
  line-height: 1.2;
}

.profile-card p,
.project-content p,
.timeline-item p {
  margin: 12px 0 0;
  color: var(--muted);
}

.stack-section {
  position: relative;
  width: 100%;
  padding-right: max(16px, calc((100% - var(--max-width)) / 2));
  padding-left: max(16px, calc((100% - var(--max-width)) / 2));
  background:
    linear-gradient(90deg, rgba(185, 215, 90, 0.16), transparent 34%),
    linear-gradient(270deg, rgba(50, 120, 219, 0.12), transparent 38%),
    var(--surface);
}

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

.stack-group {
  padding: 24px;
}

.tag-list,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-list span,
.project-tags span {
  border: 1px solid rgba(17, 25, 24, 0.1);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: #24423f;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 8px 10px;
}

.experience-section {
  position: relative;
}

.projects-section {
  position: relative;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
}

.timeline-date {
  padding-top: 4px;
}

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

.project-card {
  overflow: hidden;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.project-card:hover {
  border-color: rgba(14, 159, 154, 0.32);
  box-shadow: 0 30px 80px rgba(17, 25, 24, 0.16);
  transform: translateY(-6px);
}

.project-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--night-soft);
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.project-card:hover .project-media img {
  transform: scale(1.035);
}

.project-corner {
  position: absolute;
  right: -1px;
  bottom: -1px;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: end;
  border-radius: 36px 0 0 0;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  padding: 10px;
}

.project-corner span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
  transition: transform 180ms ease;
}

.project-card:hover .project-corner span {
  transform: rotate(-45deg);
}

.project-content {
  padding: 24px;
}

.project-content h3 {
  font-size: 1.32rem;
}

.project-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--teal-dark);
  font-weight: 900;
}

.project-link::after {
  margin-left: 8px;
  content: "→";
  transition: transform 180ms ease;
}

.project-link:hover::after {
  transform: translateX(4px);
}

.project-card-empty {
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(14, 159, 154, 0.12), transparent 52%),
    rgba(255, 255, 255, 0.84);
}

.project-empty-link {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.project-plus {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 3px dashed rgba(17, 25, 24, 0.24);
  border-radius: var(--radius);
  color: var(--teal-dark);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.project-empty-link h3 {
  margin: 18px 0 0;
  font-size: 1.36rem;
  line-height: 1.14;
}

.project-empty-link .project-type {
  margin-top: 28px;
}

.project-empty-link .project-link {
  width: fit-content;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.contact-links a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
  padding: 10px 12px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.contact-links a:hover {
  border-color: rgba(14, 159, 154, 0.42);
  color: var(--teal-dark);
  transform: translateY(-2px);
}

.contact-form {
  display: grid;
  gap: 10px;
  position: relative;
  padding: 24px;
}

.contact-form label {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 12px 14px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(14, 159, 154, 0.12);
}

.form-honeypot {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.form-honeypot input {
  width: 1px;
  height: 1px;
  border: 0;
  padding: 0;
}

.form-button {
  width: 100%;
  margin-top: 8px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  padding: 26px 16px 34px;
  background: var(--night);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

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

@media (max-width: 980px) {
  .site-header {
    top: 10px;
    width: min(calc(100% - 20px), var(--max-width));
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    gap: 6px;
    padding: 10px;
    border-radius: var(--radius);
    background: rgba(17, 24, 32, 0.96);
    box-shadow: 0 18px 50px rgba(17, 24, 32, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 13px 14px;
  }

  .hero-grid,
  .contact-section,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    justify-items: start;
  }

  .portrait-card {
    max-width: 520px;
  }

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

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

@media (max-width: 680px) {
  body {
    background-size: 34px 34px, 34px 34px, auto;
  }

  .brand span:last-child {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .section-shell {
    width: min(100% - 24px, var(--max-width));
    padding: 64px 0;
  }

  .hero {
    padding: 104px 12px 56px;
  }

  .hero h1 {
    font-size: 2.8rem;
    line-height: 1.08;
  }

  .hero-banner {
    position: relative;
    right: auto;
    bottom: auto;
    width: fit-content;
    max-width: 100%;
    margin-top: 12px;
    transform: rotate(-3deg);
  }

  .hero-lead {
    margin-top: 24px;
  }

  .hero-copy {
    max-width: 100%;
    min-width: 0;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 1.78rem;
    line-height: 1.08;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .portrait-card img {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .portrait-caption {
    top: auto;
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .signal-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
  }

  .hero-visual {
    padding-top: 0;
    padding-bottom: 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .profile-card,
  .service-item,
  .stack-group,
  .project-content,
  .timeline-item,
  .contact-form,
  .project-empty-link {
    padding: 20px;
  }
}

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

  .reveal,
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
