:root{
  --black: #000000;
  --black-2: #0a0a0a;
  --white: #ffffff;
  --white-soft: #f5f5f7;

  --text-dark: #1d1d1f;
  --text-dark-soft: #4b5563;
  --text-dark-faint: #6e6e73;

  --text-light: #f5f5f7;
  --text-light-soft: rgba(245, 245, 247, .82);
  --text-light-faint: rgba(245, 245, 247, .58);

  --shadow-soft: 0 16px 40px rgba(0, 0, 0, .08);
  --shadow-mid: 0 24px 70px rgba(0, 0, 0, .12);
  --shadow-strong: 0 34px 100px rgba(0, 0, 0, .18);

  --radius-md: 24px;
  --radius-lg: 34px;
  --radius-xl: 42px;
  --radius-pill: 999px;

  --container: 1320px;
  --header-h: 92px;
  --speed: .28s ease;
  --green: #0f5c36;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  min-height: 100dvh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--black);
  color: var(--text-light);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.mobile-nav-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .34);
  outline-offset: 3px;
  border-radius: 12px;
}

::selection {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  border-radius: 14px;
  background: #111;
  color: #fff;
  box-shadow: var(--shadow-soft);
  z-index: 9999;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-shell {
  min-height: 100svh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: visible;
  position: relative;
}

/* HEADER */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .14) 100%);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.header-row {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 84px;
  align-items: center;
  gap: 18px;
}

.header-balance {
  width: 84px;
  height: 44px;
}

.header-center {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-center {
  justify-self: center;
}

.brand-logo-main {
  width: auto;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .12));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.main-nav-left {
  justify-content: flex-end;
}

.main-nav-right {
  justify-content: flex-start;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  color: var(--text-light-soft);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: color var(--speed), background var(--speed), transform var(--speed);
  white-space: nowrap;
}

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

.header-actions {
  width: 84px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  position: relative;
}

.nav-login-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .10);
  transition: transform var(--speed), background var(--speed), border-color var(--speed);
  overflow: hidden;
  padding: 0;
}

.nav-login-icon:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .16);
}

.nav-login-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.nav-toggle-label,
.mobile-nav-shell {
  display: none;
}

/* HERO */
.hero-section {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: clip;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  background: #000;
  opacity: 0;
  transition: opacity .35s ease;
}

.hero-video.is-ready {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .48) 0%, rgba(0, 0, 0, .12) 30%, rgba(0, 0, 0, .18) 58%, rgba(0, 0, 0, .84) 100%);
}

.hero-shell {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  min-height: 100dvh;
  padding-top: calc(var(--header-h) + 34px + env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-copy {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.hero-kicker {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, .70);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 auto;
  max-width: 9.8ch;
  font-size: clamp(56px, 8vw, 112px);
  line-height: .92;
  letter-spacing: -.078em;
  font-weight: 700;
  color: #fff;
}

.hero-copy p {
  margin: 18px auto 0;
  max-width: 700px;
  color: rgba(255, 255, 255, .84);
  font-size: 18px;
  line-height: 1.58;
  letter-spacing: -.01em;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn-primary-solid,
.btn-secondary-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  transition: transform var(--speed), background var(--speed), border-color var(--speed), color var(--speed), box-shadow var(--speed);
}

.btn-primary-solid:hover,
.btn-secondary-ghost:hover {
  transform: translateY(-1px);
}

.btn-primary-solid {
  background: #fff;
  color: #111;
  box-shadow: 0 14px 34px rgba(255, 255, 255, .10);
}

.btn-primary-solid:hover {
  background: #f2f2f2;
}

.btn-secondary-ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .15);
}

.btn-secondary-ghost:hover {
  background: rgba(255, 255, 255, .12);
}

.hero-note {
  margin-top: 24px;
  color: rgba(255, 255, 255, .68);
  font-size: .92rem;
  text-align: center;
}

/* LIGHT SECTIONS */
.showcase-section,
.services-section,
.working-model-section {
  padding: 96px 0;
  background: var(--white-soft);
  color: var(--text-dark);
}

/* DARK SECTION */
.living-section {
  padding: 96px 0;
  background: var(--black);
  color: var(--text-light);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.section-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dark-faint);
}

.section-kicker-light {
  color: var(--text-light-faint);
}

.section-heading h2,
.living-left h2,
.fafuer-advantage-copy h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 700;
}

.section-heading p,
.living-left p,
.fafuer-advantage-copy p {
  margin: 18px 0 0;
  max-width: 760px;
  font-size: 19px;
  line-height: 1.74;
}

.showcase-section .section-heading p,
.services-section .section-heading p,
.working-model-section .section-heading p {
  color: var(--text-dark-soft);
}

.living-section .living-left p {
  color: var(--text-light-soft);
}

.section-link {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  opacity: .88;
}

.section-link:hover {
  opacity: 1;
}

/* PORTFOLIOS */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #050505;
  min-height: 460px;
  box-shadow: var(--shadow-mid);
}

.portfolio-card-link {
  position: absolute;
  inset: 0;
  display: block;
}

.portfolio-card-image {
  position: absolute;
  inset: 0;
}

.portfolio-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.portfolio-card:hover .portfolio-card-image img {
  transform: scale(1.03);
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .08) 24%, rgba(0, 0, 0, .68) 100%);
  color: #fff;
}

.portfolio-card-topbar {
  display: flex;
  justify-content: flex-start;
}

.portfolio-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portfolio-card-price {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
}

.portfolio-card-content h3 {
  margin: 10px 0 0;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 700;
}

.portfolio-card-location {
  margin-top: 10px;
  color: rgba(255, 255, 255, .90);
  line-height: 1.6;
  font-size: 15px;
}

.content-box-empty {
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, .06);
  color: var(--muted);
}

/* LIVING */
.living-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.living-right {
  display: grid;
  gap: 16px;
}

.living-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(10px);
}

.living-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  color: #ffffff;
}

.living-card p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  line-height: 1.75;
  font-size: 16px;
}

/* FAFUER ADVANTAGE VIDEO SECTION */
.fafuer-advantage-section {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
  color: #fff;
}

.fafuer-advantage-media {
  position: absolute;
  inset: 0;
}

.fafuer-advantage-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fafuer-advantage-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.18) 30%, rgba(0,0,0,.72) 100%);
}

.fafuer-advantage-shell {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  padding-top: 140px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fafuer-advantage-copy {
  max-width: 860px;
  margin-bottom: 38px;
}

.fafuer-advantage-copy p {
  color: rgba(255,255,255,.84);
}

.fafuer-advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.fafuer-advantage-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(12px);
}

.fafuer-advantage-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.fafuer-advantage-card p {
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: 16px;
  line-height: 1.72;
}

/* WORKING MODEL */
.working-model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.working-model-card {
  background: #ffffff;
  border: 1px solid rgba(17,17,17,.08);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.working-model-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text-dark);
}

.working-model-card p {
  margin: 0;
  color: var(--text-dark-soft);
  line-height: 1.75;
  font-size: 16px;
}

/* FOOTER */
.site-footer-apple {
  background: var(--white-soft);
  color: var(--text-dark);
  padding: 0 0 calc(28px + env(safe-area-inset-bottom));
}

.footer-apple-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(17, 17, 17, .08);
}

.footer-apple-bottom p {
  margin: 0;
  color: var(--text-dark-faint);
  font-size: 13px;
}

.footer-apple-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-apple-links a {
  color: var(--text-dark-faint);
  font-size: 13px;
}

.footer-apple-links a:hover {
  color: var(--text-dark);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .portfolio-grid,
  .services-grid,
  .working-model-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .living-grid,
  .fafuer-advantage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-header {
    background: rgba(0, 0, 0, .80);
  }

  .header-row {
    grid-template-columns: 44px 1fr 44px;
    min-height: calc(76px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    gap: 10px;
  }

  .header-balance {
    width: 44px;
    height: 44px;
  }

  .header-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    position: relative;
    width: 100%;
  }

  .main-nav {
    display: none;
  }

  .brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 2;
  }

  .brand-logo-main {
    height: 60px;
  }

  .header-actions {
    width: 44px;
    gap: 8px;
    justify-content: flex-end;
  }

  .header-actions > .nav-login-icon {
    display: none !important;
  }

  .nav-toggle-label {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 121;
  }

  .nav-toggle-label span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    display: block;
    transition: transform var(--speed), opacity var(--speed);
  }

  .mobile-nav-shell {
    display: block;
    position: absolute;
    inset: calc(100% + 10px) 14px auto 14px;
    z-index: 120;
    pointer-events: none;
  }

  .mobile-nav {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 14px;
    background: rgba(12, 12, 14, .98);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 22px;
    box-shadow: var(--shadow-strong);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity var(--speed), visibility var(--speed), transform var(--speed);
  }

  .mobile-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    color: #fff;
    font-weight: 650;
  }

  .mobile-nav a:hover {
    background: rgba(255, 255, 255, .06);
  }

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

  .site-header.is-mobile-nav-open .nav-toggle-label span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.is-mobile-nav-open .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-mobile-nav-open .nav-toggle-label span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-shell {
    padding-top: calc(92px + env(safe-area-inset-top));
  }

  .hero-copy h1 {
    max-width: 10.6ch;
    font-size: clamp(40px, 11vw, 72px);
  }

  .hero-copy p,
  .section-heading p,
  .living-left p,
  .fafuer-advantage-copy p {
    font-size: 18px;
  }

  .fafuer-advantage-shell {
    min-height: auto;
    padding-top: 120px;
  }

  .fafuer-advantage-section {
    min-height: auto;
  }

  .hero-video{
    object-position: center center;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 22px), var(--container));
  }

  .brand-logo-main {
    height: 56px;
  }

  .hero-kicker,
  .section-kicker {
    margin-bottom: 14px;
    font-size: 11px;
    letter-spacing: .16em;
  }

  .hero-copy h1 {
    font-size: clamp(36px, 12vw, 58px);
    max-width: 10ch;
  }

  .hero-copy p,
  .section-heading p,
  .living-left p,
  .service-box p,
  .working-model-card p,
  .fafuer-advantage-card p {
    font-size: 16px;
    line-height: 1.64;
  }

  .hero-actions .btn-primary-solid,
  .hero-actions .btn-secondary-ghost {
    width: 100%;
  }

  .portfolio-grid,
  .services-grid,
  .working-model-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card {
    min-height: 380px;
  }

  .section-heading h2,
  .living-left h2,
  .fafuer-advantage-copy h2 {
    font-size: clamp(30px, 8vw, 44px);
  }

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

  .mobile-nav-shell {
    inset: calc(100% + 8px) 11px auto 11px;
  }
}

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

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