:root {
  --aqua-50: #e6f7ff;
  --aqua-100: #b3e8ff;
  --aqua-200: #66d4ff;
  --aqua-300: #33c9ff;
  --aqua-400: #00bfff;
  --aqua-500: #0099d6;
  --aqua-glow: rgba(0, 191, 255, 0.28);
  --deep-900: #1a1f26;
  --deep-800: #232933;
  --deep-700: #2d3540;
  --deep-600: #384252;
  --on-accent: #111820;
  --text-primary: #f2f5f8;
  --text-muted: #9ca8b5;
  --text-dim: #6d7a88;
  --border: rgba(0, 191, 255, 0.16);
  --border-strong: rgba(0, 191, 255, 0.3);
  --glass: rgba(45, 53, 64, 0.52);
  --surface-overlay: rgba(26, 31, 38, 0.88);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --nav-height: 72px;
  --max-width: 1120px;
  --page-gutter: 1.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--deep-900);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 191, 255, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(0, 191, 255, 0.06), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(102, 212, 255, 0.05), transparent);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--aqua-300);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--aqua-100);
}

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

.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  height: var(--nav-height);
  border-bottom: 1px solid var(--border);
  background: var(--surface-overlay);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--aqua-200);
}

.brand__logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__link:hover,
.nav__link--active {
  color: var(--text-primary);
  background: rgba(0, 191, 255, 0.1);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--aqua-300);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bar::before {
  top: -6px;
}

.nav-toggle__bar::after {
  top: 6px;
}

main {
  flex: 1;
  padding-top: calc(var(--nav-height) + 2.5rem);
  padding-bottom: 5rem;
}

.page-hero {
  margin-bottom: 3rem;
}

.page-hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aqua-400);
  margin-bottom: 0.75rem;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.page-hero__lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 42rem;
}

.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - var(--nav-height) - 8rem);
  padding-block: 2rem;
}

.home-hero__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: fadeUp 0.8s var(--ease) both;
}

.home-hero__intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-hero__tagline {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aqua-400);
  margin: 0;
}

.home-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--aqua-200) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero__text {
  position: relative;
  z-index: 1;
}

.home-hero__text p {
  color: var(--text-muted);
  margin: 0 0 1rem;
  max-width: 32rem;
}

.home-hero__text p:last-child {
  margin-bottom: 0;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

.home-hero__visual {
  position: relative;
  animation: fadeUp 0.8s 0.15s var(--ease) both;
}

.home-hero__frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), 0 0 60px var(--aqua-glow);
  background: var(--deep-700);
}

.home-hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, var(--aqua-glow), transparent 70%);
  z-index: -1;
  filter: blur(40px);
}

/* Home: balanced hero that fits one viewport */
.page-home {
  overflow: hidden;
}

.page-home .shell {
  height: 100dvh;
  max-height: 100dvh;
}

.page-home main {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
  padding-bottom: 0.5rem;
}

.page-home main > .container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.page-home .home-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 3.5rem);
  width: min(100%, var(--max-width));
  min-height: 0;
  margin-inline: auto;
  padding-block: 0;
}

.page-home .home-hero__content {
  flex: 1 1 28rem;
  min-width: 0;
  max-width: 36rem;
  gap: 1.35rem;
}

.page-home .home-hero__intro {
  gap: 0.65rem;
}

.page-home .home-hero__tagline {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.page-home .home-hero__headline {
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  line-height: 1.05;
}

.page-home .home-hero__text p {
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 0.65rem;
  max-width: 32rem;
}

.page-home .home-hero__actions {
  gap: 0.75rem;
  margin-top: 0.15rem;
}

.page-home .home-hero__actions .btn {
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
}

.page-home .home-hero__visual {
  flex: 0 0 auto;
  width: clamp(14rem, 22vw, 17.5rem);
}

.page-home .home-hero__frame {
  width: 100%;
  max-height: calc(100dvh - var(--nav-height) - 5rem);
  aspect-ratio: 4 / 5;
  height: auto;
}

.page-home .site-footer {
  flex-shrink: 0;
  padding: 0.85rem 0;
}

.page-home .site-footer__inner {
  font-size: 0.82rem;
  gap: 0.5rem;
}

@media (max-height: 760px) and (min-width: 901px) {
  .page-home .home-hero {
    gap: 1.75rem;
  }

  .page-home .home-hero__content {
    gap: 1rem;
  }

  .page-home .home-hero__headline {
    font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  }

  .page-home .home-hero__text p {
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
  }

  .page-home .home-hero__visual {
    width: clamp(12rem, 18vw, 14.5rem);
  }

  .page-home .home-hero__frame {
    max-height: calc(100dvh - var(--nav-height) - 4.75rem);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.btn--primary {
  background: linear-gradient(135deg, var(--aqua-400), var(--aqua-500));
  color: var(--on-accent);
  box-shadow: 0 8px 32px var(--aqua-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--aqua-glow);
  color: var(--on-accent);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn--ghost:hover {
  background: rgba(0, 191, 255, 0.08);
  color: var(--aqua-100);
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid--2 {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

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

.card__media {
  aspect-ratio: 16 / 9;
  background: var(--deep-600);
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__media-link {
  display: block;
  color: inherit;
}

.card__media--site {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--deep-800);
  padding: 1.25rem;
}

.card__media--site img {
  object-fit: contain;
  max-height: 100%;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}

.card--site:hover .card__media--site img {
  transform: scale(1.03);
  transition: transform 0.25s var(--ease);
}

.card__body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.card__meta {
  font-size: 0.8rem;
  color: var(--aqua-400);
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 191, 255, 0.12);
  color: var(--aqua-300);
  border: 1px solid var(--border);
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--deep-700);
}

.video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--deep-700);
}

.video-preview {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  text-align: left;
  font: inherit;
  color: inherit;
}

.video-preview:hover .video-preview__hint,
.video-preview:focus-visible .video-preview__hint {
  opacity: 1;
}

.video-preview:focus-visible {
  outline: 2px solid var(--aqua-400);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.video-preview__hint {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: rgba(26, 31, 38, 0.82);
  border: 1px solid var(--border-strong);
  opacity: 0.85;
  transition: opacity 0.2s var(--ease);
  pointer-events: none;
}

.card--video .video-embed {
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
}

body.video-lightbox-open {
  overflow: hidden;
}

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.video-lightbox[hidden] {
  display: none;
}

.video-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 16, 0.88);
  backdrop-filter: blur(8px);
}

.video-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  background: var(--deep-800);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow), 0 0 80px var(--aqua-glow);
}

.video-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--deep-700);
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.video-lightbox__close:hover {
  background: var(--deep-600);
  border-color: var(--border-strong);
}

.video-lightbox__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.video-player--expanded {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-lightbox__title {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.card__media--visual {
  aspect-ratio: 4 / 3;
}

.card--visual .card__media {
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
}

.visual-preview {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  text-align: left;
  font: inherit;
  color: inherit;
}

.visual-preview:hover .visual-preview__hint,
.visual-preview:focus-visible .visual-preview__hint {
  opacity: 1;
}

.visual-preview:focus-visible {
  outline: 2px solid var(--aqua-400);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.visual-preview__hint {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: rgba(26, 31, 38, 0.82);
  border: 1px solid var(--border-strong);
  opacity: 0.85;
  transition: opacity 0.2s var(--ease);
  pointer-events: none;
}

.visual-design-empty {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.visual-design-empty code {
  color: var(--aqua-200);
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 16, 0.88);
  backdrop-filter: blur(8px);
}

.gallery-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  max-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  background: var(--deep-800);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow), 0 0 80px var(--aqua-glow);
}

.gallery-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--deep-700);
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.gallery-lightbox__close:hover {
  background: var(--deep-600);
  border-color: var(--border-strong);
}

.gallery-lightbox__stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.gallery-lightbox__image {
  max-width: 100%;
  max-height: min(70vh, 720px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.gallery-lightbox__title {
  margin-top: 0.85rem;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.videography-alert {
  margin-bottom: 2rem;
}

.videography-alert code {
  color: var(--aqua-200);
}

.section {
  margin-bottom: 3.5rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.resume-panel {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
}

.resume-panel__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.resume-viewer {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  line-height: 0;
}

.resume-pdf {
  display: block;
  width: 100%;
  height: min(88vh, 1200px);
  border: 0;
  background: #fff;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  border: 1px solid rgba(255, 180, 80, 0.3);
  background: rgba(255, 180, 80, 0.08);
  color: #f5d9a8;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.contact-list__value {
  color: var(--text-primary);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 191, 255, 0.04);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.social-link:hover {
  border-color: var(--border-strong);
  background: rgba(0, 191, 255, 0.1);
  color: var(--aqua-100);
}

.social-link__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.85;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  margin-top: auto;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  :root {
    --page-gutter: clamp(1.25rem, 5vw, 2rem);
  }

  .container {
    width: 100%;
    max-width: var(--max-width);
    padding-left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
  }

  .page-home {
    overflow: auto;
  }

  .page-home .shell {
    height: auto;
    min-height: 100dvh;
    max-height: none;
    overflow: visible;
  }

  .page-home main {
    overflow: visible;
    align-items: flex-start;
    padding-top: calc(var(--nav-height) + 1.25rem);
    padding-bottom: 2rem;
  }

  .page-home main > .container {
    justify-content: stretch;
  }

  .page-home .home-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 1.75rem;
    padding-block: 0.5rem 0.25rem;
    width: 100%;
    max-width: none;
  }

  .page-home .home-hero__visual {
    order: -1;
    width: min(17rem, calc(100% - 1rem));
    margin-inline: auto;
  }

  .page-home .home-hero__frame {
    max-height: none;
  }

  .page-home .home-hero__content {
    flex: none;
    max-width: none;
    gap: 1.25rem;
    text-align: center;
  }

  .page-home .home-hero__intro {
    align-items: center;
    gap: 0.75rem;
  }

  .page-home .home-hero__tagline {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    line-height: 1.45;
    max-width: 100%;
    margin-inline: auto;
    padding-inline: 0.25rem;
  }

  .page-home .home-hero__headline {
    font-size: clamp(1.75rem, 6.5vw, 2.25rem);
    line-height: 1.12;
    max-width: 100%;
    margin-inline: auto;
    padding-inline: 0.25rem;
    text-wrap: balance;
  }

  .page-home .home-hero__text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    max-width: 100%;
    padding-inline: 0.25rem;
  }

  .page-home .home-hero__actions {
    justify-content: center;
    margin-top: 0.25rem;
  }

  .page-home .home-hero__actions .btn {
    padding: 0.75rem 1.35rem;
    font-size: 0.9rem;
  }

  .page-home .site-footer {
    padding: 1.25rem 0;
  }

  .page-home .site-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.85rem;
    gap: 0.35rem;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 1.5rem;
  }

  .home-hero__visual {
    order: -1;
    max-width: 360px;
    margin-inline: auto;
  }

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

@media (max-width: 480px) {
  .brand {
    gap: 0.5rem;
    min-width: 0;
  }

  .brand span {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .page-home main {
    padding-top: calc(var(--nav-height) + 0.75rem);
  }

  .page-home .home-hero {
    gap: 1.5rem;
  }

  .page-home .home-hero__visual {
    width: min(15.5rem, calc(100% - 1rem));
  }

  .page-home .home-hero__headline {
    font-size: clamp(1.55rem, 7.25vw, 1.95rem);
  }

  .page-home .home-hero__tagline {
    font-size: 0.68rem;
  }

  .page-home .home-hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 18rem;
    margin-inline: auto;
  }

  .page-home .home-hero__actions .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--surface-overlay);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }

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

  .nav__link {
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
  }
}
