:root {
  --bg: #060607;
  --bg-soft: #0d0e10;
  --bg-elevated: #131417;
  --surface: rgba(17, 18, 20, 0.82);
  --surface-strong: rgba(20, 21, 24, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.03);
  --text: #f5f1ea;
  --muted: #a6a8ad;
  --muted-strong: #d0d2d6;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #d8d2ca;
  --accent-soft: #90959d;
  --success: #9bd7b1;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 16px 38px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: min(1160px, calc(100% - 2rem));
  --nav-height: 80px;
  --header-offset: 112px;
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  background-color: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  position: relative;
  isolation: isolate;
  color: var(--text);
  background-color: var(--bg);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 24%),
    #060607;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: rgba(216, 210, 202, 0.22);
  color: var(--text);
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

main {
  overflow-x: clip;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 6rem 0;
  scroll-margin-top: var(--header-offset);
}

.section-shell {
  position: relative;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-heading h2,
.hero-copy h1,
.contact-copy h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.section-heading h2,
.contact-copy h2 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
}

.hero-copy h1 {
  max-width: 100%;
  font-size: clamp(2.2rem, 4.1vw, 3.85rem);
  line-height: 0.96;
}

.hero-name {
  margin: 0;
  color: var(--muted-strong);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-kicker,
.eyebrow,
.highlight-label,
.fact-card span,
.contact-card span,
.project-meta span,
.timeline-date {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-kicker::before,
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: rgba(216, 210, 202, 0.6);
}

p {
  margin: 0;
  color: var(--muted);
}

.glass {
  background: rgba(17, 18, 20, 0.84);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.page-glow,
.grain {
  position: fixed;
  pointer-events: none;
}

.page-glow {
  z-index: 0;
  border-radius: 999px;
  filter: blur(96px);
}

.glow-1 {
  top: 5%;
  left: -6rem;
  width: 22rem;
  height: 22rem;
  background: rgba(255, 255, 255, 0.09);
}

.glow-2 {
  right: -6rem;
  bottom: 8%;
  width: 18rem;
  height: 18rem;
  background: rgba(117, 124, 136, 0.12);
}

.grain {
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 5px 5px;
  mix-blend-mode: soft-light;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: 1rem;
}

.navbar {
  position: relative;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: fit-content;
  max-width: calc(100% - 2rem);
  margin-inline: auto;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(10, 11, 12, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.site-header.scrolled .navbar {
  background: rgba(10, 11, 12, 0.94);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 2.85rem;
  height: 2.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-text {
  color: #fff;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 0.95rem;
  transition:
    color 0.22s ease,
    background 0.22s ease;
}

.nav-link-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 1rem;
  color: inherit;
  font-size: 0.96rem;
  line-height: 1;
}

.nav-link-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  inset: auto 18px 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.96rem;
  transition:
    transform 0.28s ease,
    opacity 0.28s ease;
}

.nav-toggle-close {
  opacity: 0;
  transform: scale(0.82) rotate(-90deg);
}

.nav-toggle.open .nav-toggle-bars {
  opacity: 0;
  transform: scale(0.82) rotate(90deg);
}

.nav-toggle.open .nav-toggle-close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.hero {
  min-height: calc(100vh - 5.5rem);
  display: grid;
  align-items: center;
  padding-top: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.8fr);
  gap: clamp(1.8rem, 3vw, 3rem);
  align-items: center;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 0.85rem;
  max-width: 34rem;
}

.hero-copy > * {
  margin: 0;
}

.hero-text {
  max-width: 31rem;
  font-size: clamp(0.98rem, 1.1vw, 1.03rem);
  line-height: 1.68;
}

.hero-copy .eyebrow,
.hero-copy .hero-name,
.hero-copy h1,
.hero-copy .hero-text,
.hero-copy .hero-actions,
.hero-copy .social-strip,
.hero-copy .hero-highlights {
  justify-self: start;
}

.hero-actions,
.project-links,
.social-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-actions {
  margin-top: 0.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.35rem;
  padding: 0.88rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 700;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

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

.btn-primary {
  color: #0b0c0d;
  background: #f2ede6;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  background: #fffaf3;
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
}

.btn-secondary:hover {
  border-color: var(--line-strong);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.btn-full {
  width: 100%;
}

.social-strip {
  margin-top: 0.1rem;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.8rem;
  padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  border-radius: 999px;
  color: var(--muted-strong);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease;
}

.social-label {
  display: inline-block;
}

.social-chip:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.social-badge {
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.social-badge i,
.skill-icon i,
.footer-link i {
  line-height: 1;
}

.social-badge i {
  font-size: 0.82rem;
}

.hero-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.55rem;
  max-width: 31rem;
  width: 100%;
}

.hero-highlights .highlight-card {
  padding: 1.1rem 1.15rem;
}

.highlight-card,
.fact-card,
.contact-card {
  padding: 1.3rem;
  border-radius: var(--radius-lg);
}

.highlight-label,
.fact-card span,
.contact-card span,
.project-meta span,
.timeline-date {
  margin-bottom: 0.55rem;
}

.highlight-card strong,
.fact-card strong,
.contact-card strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  line-height: 1.5;
}

.contact-card strong a {
  transition: color 0.22s ease;
}

.highlight-card small,
.fact-card small {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 607px;
  width: min(100%, 28rem);
  justify-self: start;
  align-self: center;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(3px);
  opacity: 0.85;
}

.orb-a {
  top: 8%;
  right: 6%;
  width: 15rem;
  height: 15rem;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.02) 70%
  );
  animation: pulse 9s ease-in-out infinite;
}

.orb-b {
  left: 2%;
  bottom: 10%;
  width: 12rem;
  height: 12rem;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(137, 143, 153, 0.18),
    rgba(137, 143, 153, 0.02) 72%
  );
  animation: pulse 10s ease-in-out infinite reverse;
}

.designer-card {
  position: absolute;
  inset: 5% 0 0;
  padding: 1.35rem;
  border-radius: 34px;
}

.designer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.availability p {
  color: var(--muted-strong);
}

.designer-tag {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.status-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 16px rgba(155, 215, 177, 0.38);
}

.designer-center {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem 0;
}

.profile-ring {
  width: 6.8rem;
  height: 6.8rem;
  padding: 0.45rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-core {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0f1012;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
}

.designer-center h2 {
  margin: 0 0 0.45rem;
  font-size: 1.7rem;
  font-family: "Cormorant Garamond", serif;
  line-height: 1;
}

.metric-grid {
  display: grid;
  gap: 0.85rem;
}

.metric-grid article {
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.metric-grid strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #fff;
}

.metric-grid span {
  color: var(--muted);
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-grid {
  gap: clamp(1.4rem, 2.5vw, 2.4rem);
}

.contact-copy {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.about-card {
  padding: 1.8rem;
  border-radius: var(--radius-xl);
}

.about-card p {
  font-size: 1rem;
}

.about-card p + p {
  margin-top: 1rem;
}

.about-facts,
.contact-cards {
  display: grid;
  gap: 1rem;
}

.contact-cards {
  margin-top: 0.35rem;
}

.timeline-wrapper {
  margin-top: 2rem;
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}

.timeline-header {
  margin-bottom: 1.3rem;
}

.timeline-header h3 {
  margin: 0;
  font-size: 1.9rem;
  font-family: "Cormorant Garamond", serif;
  line-height: 1;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 1rem;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.timeline-item {
  position: relative;
  margin-left: 2.2rem;
  padding: 1.3rem 1.25rem;
  border-radius: 1.2rem;
}

.timeline-dot {
  position: absolute;
  top: 1.45rem;
  left: -1.72rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(216, 210, 202, 0.08);
}

.timeline-item h4,
.skill-card h3,
.project-card h3 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 1.24rem;
}

.timeline-place {
  margin-bottom: 0.75rem;
  color: var(--muted-strong);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.skill-card,
.project-card,
.contact-form {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.skill-card::before,
.project-card::before,
.contact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.08),
    transparent 35%,
    rgba(255, 255, 255, 0.03)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.skill-card:hover::before,
.project-card:hover::before,
.contact-form:hover::before {
  opacity: 1;
}

.skill-card {
  min-height: 220px;
  padding: 1.5rem;
  transform-style: preserve-3d;
  transition:
    transform 0.26s ease,
    border-color 0.26s ease,
    background 0.26s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}

.skill-icon {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 800;
}

.skill-icon-photoshop {
  padding: 0.34rem;
}

.photoshop-badge {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.025) 72%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.08);
}

.projects-carousel {
  display: grid;
  gap: 1rem;
}

.projects-carousel-bar {
  display: flex;
  justify-content: flex-end;
}

.projects-controls {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.projects-control {
  width: 2.95rem;
  height: 2.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease,
    opacity 0.24s ease;
}

.projects-control:hover,
.projects-control:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
}

.projects-control:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.projects-control i {
  font-size: 0.88rem;
}

.projects-viewport {
  overflow-x: auto;
  padding: 0.45rem 0.1rem 0.75rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.1rem;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x pan-y;
  cursor: grab;
}

.projects-viewport::-webkit-scrollbar {
  display: none;
}

.projects-track {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 1.2rem;
  width: max-content;
}

.projects-track .project-card {
  flex: 0 0 clamp(19rem, 31vw, 24rem);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.projects-carousel.is-dragging .projects-viewport {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.projects-carousel.is-dragging .project-card {
  user-select: none;
}

.project-card {
  display: grid;
  min-height: 100%;
  background: rgba(16, 17, 19, 0.94);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
}

.project-image {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-bottom: 1px solid var(--line);
  background-position: center;
  background-size: cover;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-launch {
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  z-index: 1;
  width: 2.7rem;
  height: 2.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 9, 10, 0.72);
  color: #fff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.project-launch i {
  font-size: 0.9rem;
}

.project-launch:hover,
.project-launch:focus-visible {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

.project-launch:focus-visible {
  outline: 2px solid rgba(216, 210, 202, 0.55);
  outline-offset: 3px;
}

.project-image-a {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.14), transparent 45%),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.035) 0 12px,
      transparent 12px 24px
    ),
    linear-gradient(135deg, #191a1d 0%, #0c0d0f 100%);
}

.project-image-b {
  background:
    radial-gradient(
      circle at 72% 30%,
      rgba(255, 255, 255, 0.12),
      transparent 18%
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #17181b 0%, #0b0c0e 100%);
  background-size:
    auto,
    28px 28px,
    28px 28px,
    auto;
}

.project-image-c {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 45%),
    radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.08),
      transparent 18%
    ),
    linear-gradient(135deg, #18191c 0%, #090a0c 100%);
}

.project-content {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.project-tags span,
.project-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.project-links a:hover {
  color: #fff;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.contact-card {
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
}

.contact-form {
  padding: 1.6rem;
  display: grid;
  gap: 1rem;
}

.form-group + .form-group {
  margin-top: 0;
}

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted-strong);
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  outline: none;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

input:focus,
textarea:focus {
  border-color: rgba(216, 210, 202, 0.35);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 0 4px rgba(216, 210, 202, 0.08);
}

textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.form-note[data-state="success"] {
  color: var(--muted-strong);
}

.form-note[data-state="error"] {
  color: #f0c4c4;
}

.site-footer {
  padding: 0 0 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted-strong);
  transition: color 0.22s ease;
}

.footer-link:hover {
  color: #fff;
}

.footer-link i {
  font-size: 0.82rem;
}

.reveal,
.reveal-delay-1,
.reveal-delay-2 {
  opacity: 1;
  transform: none;
}

body.has-interactions .reveal,
body.has-interactions .reveal-delay-1,
body.has-interactions .reveal-delay-2 {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

body.has-interactions .reveal-delay-1 {
  transition-delay: 0.08s;
}

body.has-interactions .reveal-delay-2 {
  transition-delay: 0.16s;
}

body.has-interactions .reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.floating-card {
  animation: floatCard 8s ease-in-out infinite;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-track .project-card {
    flex-basis: clamp(18rem, 43vw, 22rem);
  }

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

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .hero-visual {
    display: none;
  }

  .hero-copy {
    max-width: 37rem;
  }

  .hero-copy,
  .hero-copy .hero-highlights {
    max-width: 100%;
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: calc(6.35rem + env(safe-area-inset-bottom));
  }

  .site-header {
    position: static;
    top: auto;
    height: 0;
    padding-top: 0;
    z-index: 12;
  }

  .section {
    padding: 3.6rem 0;
  }

  .section-heading {
    margin-bottom: 1.7rem;
  }

  .navbar {
    position: fixed;
    left: 50%;
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(calc(100% - 1.5rem), 34rem);
    max-width: none;
    min-height: auto;
    padding: 0.55rem;
    gap: 0;
    border-radius: 1.5rem;
    z-index: 12;
    box-shadow: var(--shadow-soft);
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    gap: 0.35rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    max-height: none;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-menu.open {
    transform: none;
  }

  .nav-link {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 4.1rem;
    flex-direction: column;
    gap: 0.38rem;
    padding: 0.6rem 0.35rem;
    border-radius: 1rem;
    justify-content: center;
  }

  .nav-link-icon {
    display: inline-flex;
  }

  .nav-link-label {
    font-size: 0.72rem;
    line-height: 1.1;
  }

  .nav-link.active {
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-link.active::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 1.4rem;
  }

  .hero-grid {
    gap: 1.15rem;
  }

  .hero-copy {
    gap: 0.75rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.15rem;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 2.9rem;
    padding: 0.72rem 0.78rem;
    font-size: 0.86rem;
    line-height: 1.15;
  }

  .social-strip {
    flex-wrap: nowrap;
    gap: 0.65rem;
    margin-top: 0.15rem;
  }

  .social-chip {
    width: 3rem;
    min-width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    justify-content: center;
    padding: 0;
    gap: 0;
    border-radius: 50%;
  }

  .social-label {
    display: none;
  }

  .social-badge {
    width: 100%;
    height: 100%;
    background: transparent;
  }

  .social-badge i {
    font-size: 0.92rem;
  }

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

  .projects-carousel {
    gap: 0.85rem;
  }

  .projects-carousel-bar {
    display: none;
  }

  .projects-track {
    gap: 1rem;
  }

  .projects-track .project-card {
    flex-basis: min(84vw, 21rem);
  }

  .hero-visual {
    display: none;
  }

  .contact-grid {
    gap: 1.25rem;
  }

  .contact-copy {
    gap: 0.8rem;
  }

  .contact-form {
    padding: 1.35rem;
  }

  .timeline-item {
    margin-left: 1.8rem;
  }

  .timeline::before {
    left: 0.82rem;
  }

  .timeline-dot {
    left: -1.38rem;
  }

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

@media (max-width: 540px) {
  :root {
    --nav-height: 72px;
    --container: min(1160px, calc(100% - 1.25rem));
  }

  body {
    padding-bottom: calc(5.95rem + env(safe-area-inset-bottom));
  }

  .section {
    padding: 3.1rem 0;
  }

  .navbar {
    width: calc(100% - 1.25rem);
    bottom: max(0.7rem, env(safe-area-inset-bottom));
    padding: 0.48rem;
    border-radius: 1.35rem;
  }

  .nav-menu {
    gap: 0.25rem;
  }

  .nav-link {
    min-height: 3.75rem;
    padding: 0.5rem 0.25rem;
    border-radius: 0.9rem;
  }

  .nav-link-label {
    font-size: 0.68rem;
  }

  .brand-mark {
    width: 2.45rem;
    height: 2.45rem;
  }

  .brand-text {
    font-size: 0.92rem;
  }

  .hero-copy h1 {
    font-size: 2.1rem;
  }

  .hero-text {
    font-size: 0.95rem;
    line-height: 1.62;
  }

  .section-heading h2,
  .contact-copy h2,
  .timeline-header h3 {
    font-size: 1.95rem;
  }

  .hero-copy {
    gap: 0.7rem;
  }

  .hero-actions .btn {
    min-height: 2.8rem;
    padding: 0.68rem 0.72rem;
    font-size: 0.82rem;
  }

  .projects-viewport {
    padding-top: 0.3rem;
    padding-bottom: 0.55rem;
  }

  .projects-track {
    gap: 0.9rem;
  }

  .projects-track .project-card {
    flex-basis: min(85vw, 19.5rem);
  }

  .project-launch {
    top: 0.8rem;
    right: 0.8rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .project-links {
    flex-direction: column;
  }

  .project-links a {
    width: 100%;
  }

  .hero-highlights {
    gap: 0.7rem;
    margin-top: 0.25rem;
  }

  .contact.section {
    padding-top: 3.1rem;
    padding-bottom: 3.1rem;
  }

  .contact-grid {
    gap: 1rem;
  }

  .contact-copy {
    gap: 0.7rem;
  }

  .contact-cards {
    gap: 0.7rem;
    margin-top: 0.2rem;
  }

  .contact-form {
    gap: 0.8rem;
  }

  .designer-card,
  .about-card,
  .timeline-wrapper,
  .contact-form,
  .skill-card,
  .project-content,
  .highlight-card,
  .fact-card,
  .contact-card {
    padding: 1.15rem;
  }

  .project-meta {
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  .section {
    padding: 2.75rem 0;
  }

  .hero-copy h1 {
    font-size: 1.9rem;
  }

  .hero-actions .btn {
    min-height: 2.7rem;
    padding: 0.66rem 0.65rem;
    font-size: 0.78rem;
  }

  .hero-text,
  .contact-copy p {
    font-size: 0.92rem;
  }

  .contact-form,
  .contact-card,
  .highlight-card,
  .fact-card {
    padding: 1rem;
  }
}

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

  .projects-viewport {
    scroll-behavior: auto;
  }

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

  body.has-interactions .reveal,
  body.has-interactions .reveal-delay-1,
  body.has-interactions .reveal-delay-2,
  body.has-interactions .reveal-visible {
    opacity: 1;
    transform: none;
  }
}
