/* ============================================
   BRAVIX - Responsive Styles
   ============================================ */

/* 1920px+ */
@media (min-width: 1920px) {
  :root {
    --container-max: 1440px;
    --section-padding: 80px;
    --section-header-gap: 16px;
  }

  .hero__title-line {
    font-size: 4rem;
  }
}

/* Desktop - Hero orbit position */
@media (min-width: 1025px) {
  .hero__grid {
    gap: 44px;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  }

  .hero__visual {
    justify-content: flex-start;
    align-items: center;
    padding-left: 24px;
  }

  .orbit-showcase {
    width: auto;
    max-width: 100%;
  }

  .orbit-showcase__scene {
    justify-content: flex-start;
    width: auto;
    min-width: 400px;
    margin-left: 68px;
    padding-left: 0;
    perspective-origin: 52% 50%;
  }
}

/* 1440px */
@media (max-width: 1440px) {
  .process__steps {
    gap: 8px;
  }

  .process-step h3 {
    font-size: 0.875rem;
  }
}

/* 1024px - Tablet Landscape */
@media (max-width: 1024px) {
  :root {
    --section-padding: 56px;
    --section-header-gap: 12px;
    --header-height: 72px;
  }

  html {
    scroll-snap-type: y proximity;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__visual {
    max-width: 520px;
    margin: 0 auto;
    overflow: visible;
    min-height: 360px;
  }

  .orbit-showcase__scene {
    height: 340px;
    padding: 36px 0 28px;
  }

  .orbit-card__inner {
    width: 230px;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__features {
    height: auto;
  }

  .about__feature {
    flex: none;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills__grid {
    grid-template-columns: 1fr;
  }

  .process.section {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .process__timeline {
    margin: 0 -24px;
    padding: 32px 0;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
  }

  .process__timeline::-webkit-scrollbar {
    display: none;
  }

  .process__scroll {
    display: inline-flex;
    flex-direction: column;
    min-width: min-content;
    padding: 0 24px;
    position: relative;
  }

  .process__track {
    position: absolute;
    top: 7px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1;
  }

  .process__steps {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    width: max-content;
    grid-template-columns: unset;
    row-gap: unset;
    position: relative;
    z-index: 2;
  }

  .process-step {
    flex: 0 0 120px;
    scroll-snap-align: start;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

}

/* 768px - Tablet Portrait & Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 36px;
    --section-header-gap: 8px;
    --header-height: 64px;
  }

  html {
    scroll-snap-type: y proximity;
    scroll-padding-top: var(--header-height);
  }

  .section {
    scroll-snap-stop: normal;
  }

  .container {
    padding: 0 16px;
  }

  .nav__logo {
    gap: 8px;
    font-size: 1.25rem;
  }

  .nav__logo-img {
    width: 1.75em;
    height: 1.75em;
  }

  .section-tag {
    font-size: 0.75rem;
    margin-bottom: 3px;
  }

  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    line-height: 1.2;
  }

  .section-desc {
    margin-top: 3px;
    font-size: 0.9375rem;
  }

  .header {
    z-index: 1100;
  }

  .nav__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(2, 4, 12, 0.71);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 1090;
  }

  .nav__backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 33.333vw;
    min-width: 112px;
    height: 100dvh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: calc(var(--header-height) + 16px) 14px 24px;
    background: rgba(7, 11, 28, 0.84);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid rgba(0, 212, 255, 0.14);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.35);
    transform: translateX(105%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1095;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
  }

  .nav__menu.active {
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav__menu li {
    width: 100%;
  }

  .nav__link {
    display: block;
    width: 100%;
    padding: 12px 10px;
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
  }

  .nav__link::after {
    display: none;
  }

  .nav__link:active {
    background: rgba(0, 212, 255, 0.1);
    color: var(--text-primary);
  }

  .nav__link--cta {
    margin-top: 8px;
    padding: 12px 10px;
    font-size: 0.875rem;
    text-align: center;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.28);
  }

  .nav__toggle {
    display: flex;
    position: relative;
    z-index: 1101;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  body.nav-open .fab {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  html,
  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }

  main {
    overflow-x: clip;
    max-width: 100%;
  }

  .hero {
    min-height: auto;
    padding-bottom: 32px;
  }

  .hero__grid {
    gap: 28px;
    padding-block: 24px;
    padding-inline: 20px;
  }

  .hero__badge {
    margin-bottom: 14px;
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .hero__title-line {
    font-size: clamp(1.625rem, 6.5vw, 2rem);
  }

  .hero__subtitle {
    font-size: 0.9375rem;
    margin-bottom: 10px;
  }

  .hero__desc {
    font-size: 0.9375rem;
    margin-bottom: 20px;
  }

  .hero__cta {
    gap: 10px;
  }

  .hero__cta .btn {
    padding: 12px 20px;
    font-size: 0.875rem;
  }

  .hero__scroll {
    display: none;
  }

  .hero__visual {
    min-height: 328px;
    max-width: 100%;
    margin: -14px auto 0;
    overflow: visible;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-left: 0;
  }

  .orbit-showcase {
    margin: -10px 0 0 -20px;
  }

  .orbit-showcase__scene {
    height: 302px;
    padding: 12px 0 18px;
    margin-left: -8px;
    perspective-origin: 44% 50%;
  }

  .hero__scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: -2px;
    padding: 2px 0 10px;
    font-size: 0.6875rem;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .hero__scroll-hint .hero__scroll-line {
    height: 28px;
  }

  .orbit-card__inner {
    width: 210px;
  }

  .orbit-card__info {
    padding: 10px 12px 12px;
  }

  .orbit-card__title {
    font-size: 0.8125rem;
    margin-bottom: 4px;
  }

  .orbit-card__tech {
    font-size: 0.625rem;
    margin-bottom: 4px;
  }

  .orbit-card__desc {
    font-size: 0.6875rem;
    line-height: 1.35;
  }

  .orbit-card[data-orbit-index="2"] .orbit-card__media {
    max-height: 150px;
  }

  .about.section {
    scroll-snap-align: none;
    overflow: visible;
  }

  .about__grid {
    gap: 14px;
  }

  .about__float {
    height: auto;
    overflow: visible;
  }

  .about__story {
    height: auto;
    padding: 16px;
    overflow: visible;
  }

  .about__lead {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.35;
  }

  .about__story p {
    font-size: 0.8125rem;
    margin-bottom: 8px;
    line-height: 1.5;
  }

  .about__slogan {
    flex: none;
    margin-top: 12px;
    padding-top: 12px;
  }

  .about__slogan-main {
    font-size: 0.9375rem;
    margin-bottom: 4px;
  }

  .about__slogan-sub {
    font-size: 0.6875rem;
    margin-bottom: 10px;
    line-height: 1.4;
  }

  .about__slogan-list {
    margin-bottom: 10px;
  }

  .about__slogan-list li {
    font-size: 0.6875rem;
    line-height: 1.45;
    padding-left: 14px;
  }

  .about__slogan-list li + li {
    margin-top: 6px;
  }

  .about__expertise {
    margin-top: 0;
    padding-top: 10px;
  }

  .about__expertise-header {
    margin-bottom: 8px;
    gap: 8px;
  }

  .about__expertise-header span {
    font-size: 0.5625rem;
  }

  .about__expertise-header strong {
    font-size: 0.75rem;
  }

  .about__expertise-visual {
    min-height: 148px;
    height: auto;
    overflow: visible;
    padding: 10px 0 12px;
  }

  .expertise-nodes {
    padding: 12px 8px 14px;
  }

  .expertise-node__icon {
    width: 30px;
    height: 30px;
    font-size: 0.6875rem;
  }

  .expertise-node span {
    font-size: 0.5625rem;
  }

  .expertise-hub {
    width: 44px;
    height: 44px;
  }

  .expertise-hub i {
    font-size: 0.75rem;
  }

  .about__features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .about__feature {
    padding: 14px;
    flex: none;
  }

  .about__feature:nth-child(3) {
    grid-column: auto;
  }

  .about__feature-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9375rem;
    margin-bottom: 8px;
  }

  .about__feature h3 {
    font-size: 0.875rem;
    margin-bottom: 4px;
  }

  .about__feature p {
    font-size: 0.75rem;
    line-height: 1.45;
  }

  .about__feature-list {
    margin-top: 8px;
    padding-top: 8px;
  }

  .about__feature-list li {
    font-size: 0.6875rem;
    padding-left: 12px;
    line-height: 1.4;
  }

  .about__feature-list li + li {
    margin-top: 4px;
  }

  @keyframes floatSpaceMobile {
    0%, 100% {
      transform: translate(0, 0) rotate(0deg);
    }
    25% {
      transform: translate(2px, -6px) rotate(0.2deg);
    }
    50% {
      transform: translate(-2px, -8px) rotate(-0.15deg);
    }
    75% {
      transform: translate(-3px, -5px) rotate(0.12deg);
    }
  }

  @keyframes floatSpaceAltMobile {
    0%, 100% {
      transform: translate(0, 0) rotate(0deg);
    }
    33% {
      transform: translate(-3px, -7px) rotate(-0.2deg);
    }
    66% {
      transform: translate(2px, -8px) rotate(0.18deg);
    }
  }

  .about__float,
  .service-float,
  .portfolio-float {
    animation-name: floatSpaceMobile;
    animation-duration: var(--float-duration, 7s);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-delay: var(--float-delay, 0s);
    will-change: transform;
  }

  .service-float--2,
  .service-float--4,
  .service-float--6,
  .portfolio-float--2,
  .portfolio-float--4 {
    animation-name: floatSpaceAltMobile;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .service-card {
    padding: 16px 14px;
  }

  .service-card__icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .service-card h3 {
    font-size: 0.9375rem;
    margin-bottom: 6px;
  }

  .service-card p {
    font-size: 0.75rem;
    line-height: 1.45;
  }

  .service-card__arrow {
    display: none;
  }

  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .portfolio-card__info {
    padding: 14px;
  }

  .portfolio-card__tag {
    font-size: 0.625rem;
    margin-bottom: 4px;
  }

  .portfolio-card__info h3 {
    font-size: 0.875rem;
    margin-bottom: 4px;
  }

  .portfolio-card__info p {
    font-size: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .portfolio-card__btn {
    padding: 8px 14px;
    font-size: 0.75rem;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 20px 12px;
  }

  .stat-card__number {
    font-size: 1.75rem;
    margin-bottom: 6px;
  }

  .stat-card__label {
    font-size: 0.8125rem;
  }

  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .skill-group {
    padding: 16px;
  }

  .skill-group--wide {
    grid-column: 1 / -1;
  }

  .skill-group__title {
    font-size: 0.9375rem;
    margin-bottom: 12px;
  }

  .skill-tags {
    gap: 6px;
  }

  .skill-tag {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .process.section {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    padding-bottom: 32px;
  }

  .process__timeline {
    margin: 0;
    padding: 16px 0 8px;
    overflow: visible;
    scroll-snap-type: none;
    touch-action: pan-y;
  }

  .process__scroll {
    display: block;
    padding: 0 12px;
    max-width: 360px;
    margin: 0 auto;
    aspect-ratio: 10 / 14;
    min-height: 420px;
    touch-action: pan-y;
  }

  .process__spiral {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
  }

  .process__track {
    display: none;
  }

  .process__steps {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
  }

  .process-step {
    position: absolute;
    width: 88px;
    transform: translateX(-50%);
    scroll-snap-align: unset;
    pointer-events: none;
    animation: processSpiralFloat 6s ease-in-out infinite;
    animation-delay: var(--spiral-delay, 0s);
  }

  .process-step:nth-child(1) {
    left: 50%;
    top: 1%;
    --spiral-delay: 0s;
  }

  .process-step:nth-child(2) {
    left: 84%;
    top: 10%;
    --spiral-delay: 0.4s;
  }

  .process-step:nth-child(3) {
    left: 84%;
    top: 22%;
    --spiral-delay: 0.8s;
  }

  .process-step:nth-child(4) {
    left: 50%;
    top: 34%;
    --spiral-delay: 1.2s;
  }

  .process-step:nth-child(5) {
    left: 16%;
    top: 46%;
    --spiral-delay: 1.6s;
  }

  .process-step:nth-child(6) {
    left: 16%;
    top: 60%;
    --spiral-delay: 2s;
  }

  .process-step:nth-child(7) {
    left: 50%;
    top: 76%;
    --spiral-delay: 2.4s;
  }

  .process-step__num {
    font-size: 0.6875rem;
    margin-bottom: 4px;
  }

  .process-step h3 {
    font-size: 0.8125rem;
  }

  .process-step p {
    font-size: 0.6875rem;
    line-height: 1.35;
  }

  .process-step__dot {
    width: 12px;
    height: 12px;
    margin-bottom: 8px;
  }

  .process-step.active .process-step__dot {
    animation: processDotPulse 1.4s ease-in-out infinite;
  }

  .testimonials.section {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    padding-bottom: 88px;
    overflow: visible;
  }

  .testimonials .container {
    overflow: visible;
  }

  .testimonials__viewport {
    margin: 0 -16px;
    padding: 8px 16px 32px;
    min-height: 240px;
    overflow-x: auto;
    overflow-y: visible;
    touch-action: pan-x;
    overscroll-behavior-y: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .testimonials__viewport::-webkit-scrollbar {
    display: none;
  }

  .testimonials__grid {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: max-content;
    min-height: 200px;
    padding-bottom: 16px;
  }

  .testimonial-card {
    flex: 0 0 calc(88vw - 32px);
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    padding: 16px 16px 20px;
    box-sizing: border-box;
    overflow: visible;
    margin-bottom: 4px;
  }

  .testimonial-card__stars {
    font-size: 0.6875rem;
    margin-bottom: 8px;
    gap: 3px;
  }

  .testimonial-card p {
    font-size: 0.8125rem;
    line-height: 1.55;
    margin-bottom: 14px;
    flex: none;
  }

  .testimonial-card__author {
    gap: 10px;
    margin-top: 0;
  }

  .testimonial-card__avatar {
    width: 36px;
    height: 36px;
    font-size: 0.8125rem;
    flex-shrink: 0;
  }

  .testimonial-card cite {
    font-size: 0.8125rem;
    line-height: 1.3;
  }

  .testimonial-card__author span {
    font-size: 0.6875rem;
    line-height: 1.35;
  }

  .testimonials__slider {
    padding-bottom: 20px;
    overflow: visible;
  }

  .testimonials__dots {
    display: flex;
    justify-content: center;
    padding: 0 16px 12px;
    margin-top: 16px;
  }

  .contact.section {
    padding-bottom: 20px;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .contact__grid {
    gap: 16px;
  }

  .contact__desc {
    font-size: 0.9375rem;
    margin-top: 12px;
  }

  .contact__details {
    margin-top: 16px;
    gap: 10px;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .form-group {
    margin-bottom: 12px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 0.875rem;
  }

  .contact-modal__body {
    padding: 20px 16px 16px;
  }

  .contact-modal__title {
    font-size: 1.25rem;
  }

  .contact__open-btn {
    margin-top: 24px;
    width: 100%;
  }

  .form-group textarea {
    min-height: 80px;
  }

  .footer {
    padding: 40px 0 24px;
  }

  .footer__inner {
    gap: 6px;
  }

  .footer__brand-top {
    gap: 8px 12px;
  }

  .footer__logo {
    font-size: 1.25rem;
  }

  .footer__slogan {
    font-size: 0.75rem;
  }

  .footer__desc {
    font-size: 0.75rem;
    max-width: 100%;
    padding: 0 8px;
  }

  .fab {
    position: fixed;
    top: auto;
    left: auto;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(20px, env(safe-area-inset-bottom, 0px));
    width: auto;
    height: auto;
    margin: 0;
    z-index: 1700;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transform: none;
    -webkit-transform: none;
    isolation: isolate;
  }

  .fab__menu {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .fab__toggle {
    pointer-events: auto;
    animation: none;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.45);
  }

  .modal__content {
    max-height: 85vh;
  }

  .modal__body {
    padding: 20px;
  }

  .modal__title {
    font-size: 1.375rem;
  }

  .mouse-glow {
    display: none;
  }
}

/* 480px - Mobile Small */
@media (max-width: 480px) {
  :root {
    --section-padding: 28px;
    --section-header-gap: 6px;
  }

  .hero__grid {
    padding-block: 16px;
    padding-inline: 18px;
    gap: 20px;
  }

  .hero__cta {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .hero__cta .btn {
    flex: 1;
    min-width: calc(50% - 5px);
    padding: 10px 12px;
    font-size: 0.8125rem;
  }

  .process__scroll {
    max-width: 300px;
    min-height: 440px;
    padding: 0 8px;
  }

  .process-step {
    width: 76px;
  }

  .section-title {
    font-size: clamp(1.5rem, 7vw, 1.875rem);
  }

  .about__story {
    padding: 14px;
  }

  .about__lead {
    font-size: 0.9375rem;
  }

  .about__story p {
    font-size: 0.75rem;
  }

  .about__slogan-main {
    font-size: 0.875rem;
  }

  .about__slogan-list li {
    font-size: 0.625rem;
  }

  .about__expertise-visual {
    min-height: 136px;
  }

  .about__feature h3 {
    font-size: 0.8125rem;
  }

  .about__feature p {
    font-size: 0.6875rem;
  }

  .about__feature-list li {
    font-size: 0.625rem;
  }

  .services__grid,
  .portfolio__grid {
    gap: 10px;
  }

  .service-card {
    padding: 14px 12px;
  }

  .service-card h3 {
    font-size: 0.8125rem;
  }

  .service-card p {
    font-size: 0.6875rem;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .portfolio-card__info {
    padding: 10px;
  }

  .portfolio-card__info h3 {
    font-size: 0.8125rem;
  }

  .stat-card__number {
    font-size: 1.5rem;
  }

  .skills__grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .skill-group {
    padding: 12px;
  }

  .skill-group__title {
    font-size: 0.8125rem;
    margin-bottom: 8px;
  }

  .skill-group__title i {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 32px 0 20px;
  }

  .footer__inner {
    gap: 5px;
  }

  .footer__brand-top {
    gap: 6px 10px;
  }

  .footer__logo {
    font-size: 1.125rem;
  }

  .footer__slogan {
    font-size: 0.6875rem;
  }

  .footer__desc {
    font-size: 0.6875rem;
    padding: 0 4px;
  }

  .fab {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: calc(12px + env(safe-area-inset-right, 0px));
  }

  .fab__menu {
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  }

  .fab__toggle {
    width: 48px;
    height: 48px;
    font-size: 1.125rem;
  }

  .fab__item {
    padding: 8px 14px;
    font-size: 0.75rem;
  }
}

@media (max-width: 320px) {
  .services__grid,
  .portfolio__grid,
  .skills__grid {
    grid-template-columns: 1fr;
  }

  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    min-width: 100%;
  }

  .hero__title-line {
    font-size: 1.5rem;
  }

  .btn {
    padding: 10px 16px;
    font-size: 0.8125rem;
  }
}
