@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=Saira:wght@200;300;400;500;600;700&display=swap');

:root {
  --black: #000;
  --dark-grey: #a0a7b3;
  --dark-grey-2: #1e242e;
  --white: #fff;
  --success: #70d98f;
  --danger: #ff6b6b;
  --fs-2xs: 0.78rem;
  --fs-xs: 0.84rem;
  --fs-sm: 0.92rem;
  --fs-base: 1rem;
  --fs-md: 1.08rem;
  --fs-lg: 1.18rem;
  --fs-card-title: clamp(1.2rem, 1.9vw, 1.35rem);
  --fs-faq-title: clamp(2.25rem, 4.8vw, 3.35rem);
  --fs-faq-question: clamp(0.98rem, 1.35vw, 1.12rem);
  --fs-hero: clamp(3rem, 8vw, 6.3rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--black);
  color: var(--dark-grey);
  font-family: 'Saira', 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--white);
}

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

.page-wrapper {
  width: 100%;
  min-height: 100vh;
}

.main-wrapper {
  overflow: hidden;
}

.padding-global {
  padding-left: 5%;
  padding-right: 5%;
}

.container-large {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.container-medium {
  width: 100%;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

.container-small {
  width: 100%;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.padding-section-large {
  padding-top: 4.75rem;
  padding-bottom: 4.75rem;
}

.padding-section-medium {
  padding-top: 2.9rem;
  padding-bottom: 2.9rem;
}

.margin-bottom-small {
  margin-bottom: 1.5rem;
}

.margin-bottom-xsmall {
  margin-bottom: 1rem;
}

.margin-bottom-xxlarge {
  margin-bottom: 2.5rem;
}

.margin-top-xsmall {
  margin-top: 1rem;
}

.text-align-center {
  text-align: center;
}

.align-center {
  margin-left: auto;
  margin-right: auto;
}

.text-size-large {
  font-size: var(--fs-lg);
}

.text-size-medium {
  font-size: var(--fs-md);
}

.text-size-regular {
  font-size: var(--fs-base);
}

.text-weight {
  color: var(--white);
  letter-spacing: 6px;
  text-transform: uppercase;
  font-size: var(--fs-sm);
}

.section-separator-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 1.9rem;
}

.section-separator-wrap.margin-bottom-xxlarge {
  margin-bottom: 2.5rem;
}

.section-separator {
  width: min(100%, 54rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  color: var(--white);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: var(--fs-sm);
}

.section-separator::before,
.section-separator::after {
  content: '';
  height: 1px;
  flex: 1;
  background-color: var(--dark-grey-2);
}

.line-divider {
  width: 100%;
  height: 1px;
  background-color: var(--dark-grey-2);
}

/* Navbar */

.hero-shell {
  position: relative;
  isolation: isolate;
  background-image: url('/images/marble_background_custom.png');
  background-position: center 18%;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-shell::before,
.hero-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-shell::before {
  z-index: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.52) 56%, rgba(0, 0, 0, 0.68) 100%);
}

.hero-shell::after {
  z-index: 0;
  background:
    radial-gradient(88% 64% at 50% 28%, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.1) 62%, transparent 88%),
    radial-gradient(80% 60% at 50% 100%, rgba(0, 0, 0, 0.28), transparent 74%);
}

.hero-shell > * {
  position: relative;
  z-index: 1;
}

.navbar-component {
  width: 100%;
  min-height: 3.6rem;
  border-bottom: 0;
  background-color: transparent;
  align-items: center;
  display: flex;
}

.navbar-component .padding-global {
  padding-left: 1%;
  padding-right: 4%;
}

.navbar-container {
  width: 100%;
  justify-content: flex-end;
  align-items: center;
  display: flex;
  gap: 1rem;
}

.navbar-logo-link {
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

.navbar-logo {
  color: var(--white);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.navbar-logo-domain {
  font-size: clamp(0.74rem, 0.9vw, 0.84rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
}

.navbar-menu {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navbar-link {
  color: var(--white);
  padding: 0.35rem 0.7rem;
  min-height: 34px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-sm);
  transition: color 0.2s ease;
}

.navbar-link:hover,
.navbar-link.current {
  color: var(--dark-grey);
}

.button {
  border: 1px solid var(--white);
  color: var(--white);
  text-align: center;
  background-color: transparent;
  border-radius: 0;
  padding: 0.72rem 1.4rem;
  transition: color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.button-pill {
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  min-height: 34px;
  line-height: 1;
}

.button:hover {
  border-color: var(--dark-grey);
  color: var(--dark-grey);
}

.button.is-link {
  color: var(--dark-grey);
  border: 0;
  padding: 0.2rem 0;
  line-height: 1;
  text-decoration: none;
}

.button.is-link:hover {
  color: var(--white);
}

.button.is-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.icon-arrow {
  font-size: 0.95rem;
  line-height: 1;
}

/* Embedded auth modal */

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.auth-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal-card {
  position: relative;
  width: min(25.25rem, calc(100% - 1.4rem));
  border: 1px solid #333946;
  border-radius: 1.22rem;
  background: linear-gradient(180deg, #232428 0%, #1d1f24 100%);
  color: var(--white);
  padding: 1.52rem 1.35rem 1.26rem;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.48);
  font-family: 'Inter', 'Saira', 'Segoe UI', sans-serif;
}

.auth-close {
  position: absolute;
  top: 0.56rem;
  right: 0.72rem;
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  color: #f3f4f6;
  cursor: pointer;
  font-size: 1.9rem;
  font-weight: 300;
  line-height: 1;
  padding: 0;
}

.auth-close:hover {
  color: #fff;
}

.auth-title {
  margin: 0.4rem 0 0;
  color: var(--white);
  text-align: center;
  font-size: clamp(1.72rem, 1.9vw, 2.4rem);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.auth-subtitle {
  margin: 0.72rem auto 0;
  color: #c3c9d4;
  text-align: center;
  max-width: 19.6rem;
  font-size: clamp(0.89rem, 0.72vw, 0.98rem);
  line-height: 1.38;
}

.auth-provider-list {
  margin-top: 1.16rem;
  display: grid;
  gap: 0.62rem;
}

.auth-provider-button {
  width: 100%;
  min-height: 3.34rem;
  border: 1px solid #4b5160;
  border-radius: 999px;
  background: #2a2d33;
  color: var(--white);
  padding: 0 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  font-size: clamp(0.92rem, 0.76vw, 1.01rem);
  font-weight: 500;
  text-align: center;
  line-height: 1.1;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.auth-provider-button:hover {
  border-color: #646d7f;
  background: #313640;
}

.auth-provider-button:focus,
.auth-provider-button:focus-visible {
  outline: none;
  border-color: #6f7788;
  box-shadow: 0 0 0 1px rgba(111, 119, 136, 0.55);
}

.auth-provider-icon {
  width: 1.02rem;
  height: 1.02rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.02rem;
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1;
}

.auth-provider-icon.google img {
  width: 100%;
  height: 100%;
  display: block;
}

.auth-provider-icon.apple {
  font-size: 1.26rem;
  transform: translateY(-0.02em);
}

.auth-provider-label {
  display: inline-block;
  line-height: 1.08;
  width: auto;
  text-align: center;
  white-space: nowrap;
}

.auth-divider {
  margin: 0.74rem 0 0.72rem;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  color: #a8afb9;
}

.auth-divider span {
  flex: 1;
  height: 1px;
  background: #3f4654;
}

.auth-divider p {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-actions {
  margin-top: 0;
}

.auth-continue-button {
  width: 100%;
  min-height: 3.32rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #eceef2;
  color: #11161d;
  font-size: clamp(0.93rem, 0.76vw, 1rem);
  font-weight: 500;
  cursor: pointer;
}

.auth-continue-button:hover {
  background: #f3f4f6;
}

.auth-continue-button:disabled {
  border-color: #3f4653;
  background: #2b2f38;
  color: #818b99;
  cursor: not-allowed;
}

.auth-status {
  margin-top: 0.6rem;
  min-height: 1.25rem;
  color: var(--dark-grey);
  text-align: center;
  font-size: 0.76rem;
}

.auth-status.success {
  color: var(--success);
}

.auth-status.error {
  color: var(--danger);
}

/* Home */

.section-header {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  background: transparent;
}

.section-header::before {
  content: '';
  position: absolute;
  inset: -1rem 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(70% 56% at 50% 42%, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.12) 58%, transparent 100%);
}

.section-header .container-medium {
  position: relative;
  z-index: 1;
}

.header-text {
  margin: 0;
  color: var(--white);
  font-size: var(--fs-hero);
  line-height: 0.95;
  font-weight: 250;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.58), 0 0 2px rgba(0, 0, 0, 0.82);
}

.letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  animation: letterIn 0.9s ease forwards;
}

.header-text .letter:nth-child(1) { animation-delay: 0.08s; }
.header-text .letter:nth-child(2) { animation-delay: 0.13s; }
.header-text .letter:nth-child(3) { animation-delay: 0.18s; }
.header-text .letter:nth-child(4) { animation-delay: 0.23s; }
.header-text .letter:nth-child(5) { animation-delay: 0.28s; }
.header-text .letter:nth-child(6) { animation-delay: 0.33s; }
.header-text .letter:nth-child(7) { animation-delay: 0.38s; }
.header-text .letter:nth-child(8) { animation-delay: 0.43s; }
.header-text .letter:nth-child(9) { animation-delay: 0.48s; }
.header-text .letter:nth-child(10) { animation-delay: 0.53s; }

.hero-subtitle {
  opacity: 0;
  animation: fadeIn 0.95s ease 0.72s forwards;
  max-width: 56rem;
  text-shadow: 0 7px 18px rgba(0, 0, 0, 0.56), 0 0 1px rgba(0, 0, 0, 0.75);
}

.section-portfolio,
.section-about,
.section-service,
.section-legal,
.section-thanks {
  overflow: hidden;
}

.fade-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.portfolio-component {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portfolio-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  width: 100%;
}

.portfolio-item {
  width: 100%;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.portfolio-image-link {
  width: 100%;
  text-decoration: none;
  display: inline-block;
}

.portfolio-image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--dark-grey-2);
  margin-bottom: 0.85rem;
}

.portfolio-image-wrapper.one {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.01)),
    radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, 0.09), transparent 52%),
    #111620;
}

.portfolio-image-wrapper.two {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.08), transparent 55%),
    #111620;
}

.portfolio-image-wrapper.three {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.01)),
    radial-gradient(110% 80% at 10% 100%, rgba(255, 255, 255, 0.08), transparent 58%),
    #111620;
}

.portfolio-image-wrapper.four {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)),
    radial-gradient(90% 90% at 95% 90%, rgba(255, 255, 255, 0.1), transparent 58%),
    #111620;
}

.portfolio-image-label {
  position: absolute;
  left: 1rem;
  bottom: 0.85rem;
  color: var(--white);
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.heading-style-h5 {
  margin: 0 0 0.5rem;
  color: var(--white);
  font-size: var(--fs-card-title);
  font-weight: 400;
  line-height: 1.4;
}

.portfolio-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.95rem;
}

.portfolio-tag-item {
  border: 1px solid var(--dark-grey-2);
  background-color: var(--dark-grey-2);
  color: var(--dark-grey);
  border-radius: 2px;
  padding: 0.4rem 0.78rem;
  font-size: var(--fs-xs);
  text-decoration: none;
}

.portfolio-button-wrapper {
  margin-top: 1.25rem;
  display: flex;
}

.about-component {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-centered {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

.about-copy {
  max-width: 58rem;
  margin-left: auto;
  margin-right: auto;
}

.about-copy p {
  margin: 0;
  line-height: 1.72;
}

.about-copy p + p {
  margin-top: 1.8rem;
}

.about-paragraph-gap {
  height: 1.6rem;
}

.header-variation-50 {
  margin: 0;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 5.1vw, 4.2rem);
  line-height: 1;
  font-weight: 300;
}

.section-service {
  background-color: var(--black);
  color: var(--dark-grey);
  border-top: 0;
}

.section-about .padding-section-large {
  padding-top: 2.8rem;
  padding-bottom: 1.8rem;
}

.section-portfolio .padding-section-large {
  padding-top: 1.8rem;
  padding-bottom: 2.2rem;
}

.section-service .padding-section-large {
  padding-top: 2.2rem;
  padding-bottom: 2.6rem;
}

.section-about .section-separator-wrap {
  margin-bottom: 1.25rem;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 2.8rem;
  align-items: start;
}

.faq-intro {
  padding-top: 0.25rem;
}

.faq-title {
  margin: 1.15rem 0 0;
  color: var(--white);
  font-family: 'Saira', 'Segoe UI', sans-serif;
  font-size: var(--fs-faq-title);
  line-height: 0.95;
  font-weight: 300;
}

.faq-description {
  margin: 2rem 0 0;
  color: var(--dark-grey);
  font-size: var(--fs-base);
  max-width: 22rem;
}

.faq-contact-button {
  margin-top: 1.9rem;
  border-color: var(--white);
  background-color: transparent;
  color: var(--white);
  padding: 0.68rem 1.1rem;
  min-height: 48px;
  gap: 0.75rem;
}

.faq-contact-button:hover {
  border-color: var(--dark-grey);
  background-color: transparent;
  color: var(--dark-grey);
}

.faq-contact-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-size: var(--fs-xs);
  line-height: 1;
}

.faq-accordion {
  display: grid;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--dark-grey-2);
  border-radius: 1rem;
  background: #06090d;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  color: var(--white);
  font-size: var(--fs-faq-question);
  line-height: 1.35;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 1.35rem 1.2rem;
  color: var(--dark-grey);
  font-size: var(--fs-base);
  line-height: 1.6;
}

/* Legal */

.legal-title {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.7rem, 8.5vw, 6.4rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 300;
}

.legal-subtitle {
  margin: 1rem 0 0;
  color: var(--dark-grey);
  font-size: var(--fs-base);
}

.legal-content {
  border-top: 1px solid var(--dark-grey-2);
  padding-top: 1.6rem;
}

.legal-raw {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--dark-grey);
  font-size: var(--fs-base);
  line-height: 1.72;
  font-family: 'Saira', 'Segoe UI', sans-serif;
}

/* Footer */

.footer-component {
  margin-top: 0;
}

.footer-top-wrapper {
  display: grid;
  grid-template-columns: 0.25fr 1fr 0.25fr;
  gap: 4vw;
  align-items: center;
}

.footer-link-list {
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  gap: 1.4rem;
}

.footer-link {
  color: var(--white);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--dark-grey);
}

.footer-social-list {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.footer-bottom-wrapper {
  display: flex;
  justify-content: center;
}

.footer-credit-text {
  color: var(--dark-grey);
  font-size: var(--fs-xs);
  text-align: center;
}

.footer-minimal {
  border-top: 1px solid var(--dark-grey-2);
}

.footer-minimal-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.footer-minimal .footer-link {
  color: var(--dark-grey);
  font-size: var(--fs-sm);
}

.footer-minimal .footer-link:hover {
  color: var(--white);
}

/* Thank-you page */

.thank-you-card {
  border-top: 1px solid var(--dark-grey-2);
  padding-top: 1.5rem;
}

.thank-you-title {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.8rem, 7.6vw, 5.4rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 300;
}

.thank-you-copy {
  margin: 1rem 0 0;
  color: var(--dark-grey);
  max-width: 45rem;
  font-size: var(--fs-md);
}

/* Join page (functional auth flow retained) */

.join-body {
  position: relative;
  min-height: 100vh;
  background-image: url('/images/marble_background_custom.png');
  background-position: center 20%;
  background-size: cover;
  background-repeat: no-repeat;
}

.join-body::before,
.join-body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.join-body::before {
  background: rgba(0, 0, 0, 0.7);
}

.join-body::after {
  background: radial-gradient(85% 68% at 50% 34%, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.56) 74%);
}

.join-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  position: relative;
  z-index: 1;
}

.auth-modal.join-modal {
  width: min(25.25rem, calc(100% - 1.4rem));
  border: 1px solid #333946;
  border-radius: 1.22rem;
  background: linear-gradient(180deg, #232428 0%, #1d1f24 100%);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.48);
  color: var(--white);
  padding: 1.35rem 1.2rem 1.1rem;
  font-family: 'Inter', 'Saira', 'Segoe UI', sans-serif;
}

.join-title {
  margin: 0.38rem 0 0;
  color: var(--white);
  text-align: center;
  font-size: clamp(1.72rem, 1.9vw, 2.4rem);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.join-body .auth-subtitle {
  margin: 0.72rem auto 0;
  color: #c3c9d4;
  text-align: center;
  max-width: 19.6rem;
  font-size: clamp(0.89rem, 0.72vw, 0.98rem);
  line-height: 1.38;
}

.join-auth-subtitle {
  margin-bottom: 0.55rem;
}

.join-plans-title {
  margin-top: 0.2rem;
}

.join-plans-subtitle {
  margin-bottom: 0.85rem;
}

.join-body .flow-steps {
  display: none;
}

.flow-step {
  display: none;
}

.flow-step.active {
  display: block;
}

.join-plan-divider {
  margin: 0.35rem 0 0.62rem;
}

.join-divider {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  color: #a8afb9;
}

.join-divider span {
  flex: 1;
  height: 1px;
  background: #3f4654;
}

.join-divider p {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-buttons,
.join-body .auth-provider-list {
  margin-top: 1.16rem;
  display: grid;
  gap: 0.62rem;
}

.join-body .auth-provider-button {
  width: 100%;
  min-height: 3.34rem;
  border: 1px solid #4b5160;
  border-radius: 999px;
  background: #2a2d33;
  color: var(--white);
  padding: 0 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  font-size: clamp(0.92rem, 0.76vw, 1.01rem);
  font-weight: 500;
  text-align: center;
  line-height: 1.1;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.join-body .auth-provider-button:hover {
  border-color: #646d7f;
  background: #313640;
}

.join-body .auth-provider-button:focus,
.join-body .auth-provider-button:focus-visible {
  outline: none;
  border-color: #6f7788;
  box-shadow: 0 0 0 1px rgba(111, 119, 136, 0.55);
}

.join-body .auth-divider {
  margin: 0.74rem 0 0.72rem;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  color: #a8afb9;
}

.join-body .auth-divider span {
  flex: 1;
  height: 1px;
  background: #3f4654;
}

.join-body .auth-divider p {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.join-body .auth-actions {
  margin-top: 0;
}

.join-body .auth-continue-button {
  width: 100%;
  min-height: 3.32rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #eceef2;
  color: #11161d;
  font-size: clamp(0.93rem, 0.76vw, 1rem);
  font-weight: 500;
  cursor: pointer;
}

.join-body .auth-continue-button:hover {
  background: #f3f4f6;
}

.join-body .auth-continue-button:disabled {
  border-color: #3f4653;
  background: #2b2f38;
  color: #818b99;
  cursor: not-allowed;
}

.checkout-flow {
  display: grid;
  gap: 0.62rem;
  margin-top: 0.15rem;
}

.step-actions {
  margin-top: 0.1rem;
  display: flex;
  justify-content: center;
  gap: 0.58rem;
}

.step-actions .btn {
  flex: 1;
  min-width: 0;
}

.step-actions.secondary {
  justify-content: center;
}

.plan-grid {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.plan-grid.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.plan {
  border: 1px solid #4b5160;
  border-radius: 0.95rem;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  background: #2a2d33;
  color: var(--white);
  text-align: left;
  display: grid;
  gap: 0.3rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.plan.active {
  border-color: #cfd5df;
  background: #313640;
  transform: translateY(-1px);
}

.plan.unavailable {
  border-color: #454b57;
}

.plan-heading {
  display: grid;
  gap: 0.08rem;
}

.plan-name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.plan-price {
  margin: 0;
  font-size: 0.83rem;
  color: #c7ceda;
  font-style: italic !important;
  font-family: 'Inter', 'Saira', 'Segoe UI', sans-serif;
  font-variation-settings: 'slnt' -10;
  display: block;
}

.plan-summary,
.plan-features {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.2s ease;
}

.plan.active .plan-summary,
.plan.active .plan-features {
  opacity: 1;
  max-height: 18rem;
}

.plan.active .plan-summary {
  margin-top: 0.05rem;
}

.plan-features {
  padding-left: 1.05rem;
  color: #b8c0cc;
  font-size: 0.75rem;
  line-height: 1.36;
}

.plan-features li + li {
  margin-top: 0.16rem;
}

.btn {
  appearance: none;
  border: 1px solid #4b5160;
  border-radius: 999px;
  background: transparent;
  color: #d2d8e1;
  min-height: 2.38rem;
  padding: 0 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: 'Inter', 'Saira', 'Segoe UI', sans-serif;
  cursor: pointer;
}

.btn:hover {
  border-color: #626b7d;
  color: #eef2f8;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn.primary {
  border-color: #e5e7eb;
  background: #eceef2;
  color: #11161d;
}

.btn.primary:hover {
  background: #f3f4f6;
  color: #11161d;
  border-color: #f3f4f6;
}

.btn.auth-btn,
.btn.checkout-btn {
  min-height: 3.32rem;
}

.btn.link {
  text-decoration: none;
  color: #b8bfcc;
}

.btn.link:hover {
  color: var(--white);
}

.meta {
  margin-top: 0.48rem;
  min-height: 1.1rem;
  font-size: 0.74rem;
  color: #aeb6c3;
  text-align: center;
  line-height: 1.35;
}

.status {
  margin-top: 0.55rem;
  min-height: 1.1rem;
  font-size: 0.73rem;
  color: #aeb6c3;
  text-align: center;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.status.error {
  color: var(--danger);
}

.status.success {
  color: var(--success);
}

.join-legal {
  margin-top: 0.7rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.72rem;
}

.join-legal a {
  color: #aeb6c3;
  text-decoration: none;
}

.join-legal a:hover {
  color: var(--white);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 991px) {
  .padding-section-large {
    padding-top: 3.9rem;
    padding-bottom: 3.9rem;
  }

  .section-about .padding-section-large {
    padding-top: 2.4rem;
    padding-bottom: 1.6rem;
  }

  .section-portfolio .padding-section-large {
    padding-top: 1.6rem;
    padding-bottom: 2rem;
  }

  .section-service .padding-section-large {
    padding-top: 2rem;
    padding-bottom: 2.3rem;
  }

  .portfolio-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.2rem;
  }

  .header-text {
    font-size: clamp(2.8rem, 12vw, 6rem);
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .faq-description {
    max-width: 40rem;
  }

  .footer-top-wrapper {
    grid-template-columns: 1fr;
    gap: 1.7rem;
    justify-items: start;
  }

  .footer-link-list {
    justify-content: flex-start;
    grid-auto-flow: row;
    gap: 0.55rem;
  }

  .footer-social-list {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .padding-section-large {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .section-about .padding-section-large {
    padding-top: 2rem;
    padding-bottom: 1.4rem;
  }

  .about-paragraph-gap {
    height: 1.2rem;
  }

  .section-portfolio .padding-section-large {
    padding-top: 1.4rem;
    padding-bottom: 1.8rem;
  }

  .section-service .padding-section-large {
    padding-top: 1.8rem;
    padding-bottom: 2.2rem;
  }

  .padding-section-medium {
    padding-top: 2.2rem;
    padding-bottom: 2.2rem;
  }

  .section-header {
    min-height: auto;
  }

  .navbar-container {
    align-items: center;
    flex-direction: row;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }

  .navbar-menu {
    width: auto;
    justify-content: flex-end;
    gap: 0.22rem;
  }

  .navbar-link {
    padding-left: 0.24rem;
    padding-right: 0.24rem;
    font-size: var(--fs-xs);
  }

  .button-pill {
    padding: 0.4rem 0.72rem;
    min-height: 30px;
  }

  .auth-overlay {
    align-items: flex-start;
    padding: max(4.6rem, env(safe-area-inset-top)) 0.9rem 1rem;
    backdrop-filter: blur(2px);
  }

  .auth-modal-card {
    width: min(20.6rem, 100%);
    max-width: 100%;
    margin: 0 auto;
    border-radius: 1rem;
    border-color: #3a4150;
    background: linear-gradient(180deg, #24262b 0%, #1d2026 100%);
    color: #f6f7f9;
    padding: 1rem 0.84rem 0.86rem;
  }

  .auth-close {
    top: 0.38rem;
    right: 0.55rem;
    border: 0;
    color: #f4f5f7;
    background: transparent;
    font-size: 1.65rem;
    padding: 0;
  }

  .auth-title {
    color: #f5f7fa;
    font-size: clamp(1.3rem, 6.8vw, 1.58rem);
    line-height: 1.13;
  }

  .auth-subtitle {
    color: #b8c0cc;
    font-size: 0.62rem;
    line-height: 1.34;
    margin-top: 0.38rem;
    max-width: 13.8rem;
  }

  .auth-provider-button {
    min-height: 2.12rem;
    border-color: #49505e;
    background: #242930;
    color: #f4f5f7;
    font-size: 0.72rem;
    padding: 0 0.7rem;
    gap: 0.4rem;
  }

  .auth-provider-button:hover {
    border-color: #586171;
    background: #2b3039;
  }

  .auth-provider-icon {
    width: 0.68rem;
    height: 0.68rem;
    flex: 0 0 0.68rem;
    font-size: 0.78rem;
  }

  .auth-provider-icon.apple {
    font-size: 0.94rem;
    transform: translateY(-0.02em);
  }

  .auth-divider {
    margin: 0.5rem 0 0.45rem;
    gap: 0.56rem;
  }

  .auth-divider p {
    font-size: 0.52rem;
    letter-spacing: 0.11em;
  }

  .auth-status {
    color: #aeb6c3;
    font-size: 0.56rem;
  }

  .auth-continue-button {
    min-height: 2.12rem;
    background: #eceef2;
    border-color: #eceef2;
    color: #0c1118;
    font-size: 0.72rem;
  }

  .auth-continue-button:disabled {
    border-color: #3d4452;
    background: #2a2f39;
    color: #838c9a;
  }

  .portfolio-list {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .portfolio-item {
    margin-bottom: 0;
  }

  .about-component {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .faq-title {
    font-size: clamp(2rem, 10.5vw, 2.8rem);
  }

  .faq-item summary {
    padding: 1.05rem 1rem;
  }

  .faq-item p {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .text-size-large {
    font-size: var(--fs-md);
  }

  .legal-raw {
    font-size: var(--fs-sm);
    line-height: 1.64;
  }

  .auth-modal {
    padding: 22px 14px 15px;
  }

  .join-shell {
    align-items: flex-start;
    padding: max(4.6rem, env(safe-area-inset-top)) 0.9rem 1rem;
  }

  .auth-modal.join-modal {
    width: min(20.6rem, 100%);
    max-width: 100%;
    margin: 0 auto;
    border-radius: 1rem;
    border-color: #3a4150;
    background: linear-gradient(180deg, #24262b 0%, #1d2026 100%);
    color: #f6f7f9;
    padding: 1rem 0.84rem 0.86rem;
  }

  .join-title {
    color: #f5f7fa;
    font-size: clamp(1.3rem, 6.8vw, 1.58rem);
    line-height: 1.13;
  }

  .join-body .auth-subtitle {
    color: #b8c0cc;
    font-size: 0.62rem;
    line-height: 1.34;
    margin-top: 0.38rem;
    max-width: 13.8rem;
  }

  .join-body .auth-provider-button {
    min-height: 2.12rem;
    border-color: #49505e;
    background: #242930;
    color: #f4f5f7;
    font-size: 0.72rem;
    padding: 0 0.7rem;
    gap: 0.4rem;
  }

  .join-body .auth-provider-button:hover {
    border-color: #586171;
    background: #2b3039;
  }

  .join-body .auth-provider-icon {
    width: 0.68rem;
    height: 0.68rem;
    flex: 0 0 0.68rem;
    font-size: 0.78rem;
  }

  .join-body .auth-provider-icon.apple {
    font-size: 0.94rem;
    transform: translateY(-0.02em);
  }

  .join-body .auth-divider {
    margin: 0.5rem 0 0.45rem;
    gap: 0.56rem;
  }

  .join-body .auth-divider p {
    font-size: 0.52rem;
    letter-spacing: 0.11em;
  }

  .join-body .auth-continue-button {
    min-height: 2.12rem;
    background: #eceef2;
    border-color: #eceef2;
    color: #0c1118;
    font-size: 0.72rem;
  }

  .join-body .auth-continue-button:disabled {
    border-color: #3d4452;
    background: #2a2f39;
    color: #838c9a;
  }

  .meta,
  .status,
  .join-legal {
    font-size: 0.56rem;
  }

  .step-actions,
  .step-actions.secondary {
    flex-direction: column;
  }

  .step-actions .btn,
  .step-actions.secondary .btn {
    width: 100%;
    min-width: 100%;
  }
}

@media (max-width: 479px) {
  .padding-global {
    padding-left: 6%;
    padding-right: 6%;
  }

  .header-text,
  .legal-title,
  .thank-you-title,
  .modal-title {
    letter-spacing: 0.03em;
  }

  .button {
    width: 100%;
  }

  .navbar-menu .button {
    width: auto;
  }

  .navbar-component .padding-global {
    padding-left: 2.5%;
    padding-right: 4%;
  }

  .navbar-logo-domain {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
  }

  .faq-plus {
    width: 2rem;
    height: 2rem;
    font-size: 1.4rem;
  }
}
