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

:root {
  --navy: #1E1E5A;
  --beige: #E8E3D9;
  --page: #FFFFFF;
  --soft: #F8F7F4;
  --soft-2: #F3F1EC;
  --text: #1A1A1A;
  --body: #44413D;
  --muted: #67615B;
  --border: #D8D1C7;
  --divider: #EAE5DD;
  --frame-inline: 64px;
  --section-space: 88px;
}

html { scroll-behavior: smooth; }
body { margin: 0; }

.home-page,
.home-page * { box-sizing: border-box; }

.home-page {
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
}

.home-page a { color: inherit; text-decoration: none; }
.home-page img { display: block; max-width: 100%; }
.home-shell { width: min(1180px, 100%); margin: 0 auto; }

.home-nav-wrap {
  position: sticky;
  top: 14px;
  z-index: 40;
  padding: 0 var(--frame-inline);
  pointer-events: none;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 54px;
  padding: 8px 14px 8px 20px;
  border: 1px solid rgba(30, 30, 90, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 10px 30px rgba(30, 30, 90, .08);
  pointer-events: auto;
}

.home-brand { color: var(--navy); font: 700 13px/1 'Mali', cursive; }

.home-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font: 600 11px/1 'Inter', sans-serif;
}

.home-nav-links a { transition: color .18s ease; }
.home-nav-links a:hover { color: var(--navy); }

.home-section { padding: var(--section-space) var(--frame-inline); }

.home-hero {
  padding-top: 72px;
  padding-bottom: 72px;
  background: #fff;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 64px;
  align-items: center;
}

.home-hero-copy { max-width: 620px; }

.home-eyebrow,
.home-kicker {
  display: block;
  margin: 0 0 18px;
  color: var(--navy);
  font: 600 11px/1 'Inter', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-title {
  margin: 0;
  color: var(--navy);
  font: 700 clamp(44px, 5vw, 64px)/1.02 'Mali', cursive;
  letter-spacing: -.03em;
}

.home-subtitle {
  margin: 16px 0 18px;
  max-width: 540px;
  color: var(--body);
  font: 500 clamp(20px, 2.5vw, 28px)/1.35 'Mali', cursive;
}

.home-copy {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font: 400 15px/1.75 'Inter', sans-serif;
}

.home-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.home-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: #fff !important;
  font: 600 11px/1 'Inter', sans-serif;
  transition: transform .18s ease, box-shadow .18s ease;
}

.home-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(30, 30, 90, .14);
}

.home-button--small { min-height: 38px; padding: 0 15px; }

.home-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font: 400 12px/1.2 'Inter', sans-serif;
}

.home-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
}

.home-portrait {
  margin: 0;
  width: 100%;
  aspect-ratio: 360 / 420;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(30, 30, 90, .08);
}

.home-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.home-signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 64px;
  border: 1px solid var(--border);
  background: var(--border);
}

.home-signal-strip > div {
  min-height: 122px;
  padding: 22px;
  background: #fff;
}

.home-signal-strip span {
  display: block;
  margin-bottom: 18px;
  color: var(--navy);
  font: 700 10px/1 'Inter', sans-serif;
}

.home-signal-strip strong {
  display: block;
  color: var(--navy);
  font: 700 17px/1.25 'Mali', cursive;
}

.home-signal-strip small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font: 400 11px/1.55 'Inter', sans-serif;
}

.home-section--works { background: var(--soft); }

.home-grid-2 {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 78px;
  align-items: start;
}

.home-sticky { position: sticky; top: 102px; }

.home-work-heading,
.home-beyond-heading {
  margin: 0 0 14px;
  color: var(--navy);
  font: 700 38px/1.06 'Mali', cursive;
}

.home-line {
  width: 42px;
  height: 3px;
  margin: 0 0 18px;
  background: var(--navy);
}

.home-side-copy,
.home-beyond-sub {
  margin: 0;
  color: var(--muted);
  font: 400 13px/1.75 'Inter', sans-serif;
}

.home-works { display: grid; gap: 28px; }

.home-work {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--border);
  background: #fff;
  isolation: isolate;
}

.home-work::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border: 1px solid var(--navy);
  opacity: 0;
  clip-path: inset(0 100% 100% 0);
  transition: clip-path .38s ease, opacity .18s ease;
  pointer-events: none;
}

.home-work:hover::before {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

.home-thumb {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
}

.home-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  transition: transform .32s ease;
}

.home-work:hover .home-thumb img { transform: scale(1.025); }

.home-work-details { min-width: 0; }

.home-proof {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font: 700 9px/1 'Inter', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.home-tags span {
  display: inline-flex;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--navy);
  background: #fff;
  font: 600 9px/1 'Inter', sans-serif;
}

.home-work h3 {
  margin: 0;
  color: var(--navy);
  font: 700 25px/1.15 'Mali', cursive;
}

.home-work-subtitle {
  margin: 8px 0 10px;
  color: var(--navy);
  font: 600 12px/1.45 'Inter', sans-serif;
}

.home-work-copy {
  margin: 0 0 18px;
  color: var(--muted);
  font: 400 13px/1.75 'Inter', sans-serif;
}

.home-story { background: #fff; }

.home-story-copy {
  display: grid;
  gap: 19px;
  max-width: 700px;
}

.home-story-copy p {
  margin: 0;
  color: var(--body);
  font: 400 15px/1.85 'Inter', sans-serif;
}

.home-story-copy strong { color: var(--navy); font-weight: 600; }

.home-beyond { background: var(--soft-2); }
.home-beyond-sub { margin-bottom: 34px; }

.home-hobby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-hobby {
  border: 1px solid var(--border);
  background: #fff;
}

.home-hobby-visual {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

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

.home-hobby-content { padding: 20px; }

.home-hobby-content > span {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font: 600 9px/1 'Inter', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-hobby h3 {
  margin: 0;
  color: var(--navy);
  font: 700 19px/1.2 'Mali', cursive;
}

.home-hobby p {
  margin: 9px 0 0;
  color: var(--muted);
  font: 400 12px/1.7 'Inter', sans-serif;
}

.home-footer {
  display: flex;
  justify-content: center;
  gap: 56px;
  padding: 28px var(--frame-inline);
  border-top: 1px solid var(--divider);
  background: #fff;
  color: var(--muted);
  font: 500 11px/1 'Inter', sans-serif;
}

.home-footer a:hover { color: var(--navy); }

@media (max-width: 960px) {
  :root { --frame-inline: 28px; --section-space: 72px; }

  .home-hero-grid,
  .home-grid-2 {
    grid-template-columns: 1fr;
  }

  .home-portrait {
    max-width: 420px;
    order: -1;
  }

  .home-sticky { position: static; }

  .home-signal-strip { grid-template-columns: 1fr; }

  .home-work {
    grid-template-columns: minmax(240px, .9fr) minmax(0, 1.1fr);
  }
}

@media (max-width: 720px) {
  :root { --frame-inline: 18px; --section-space: 56px; }

  .home-nav-wrap { top: 10px; }
  .home-nav {
    flex-wrap: wrap;
    justify-content: center;
    padding: 11px 12px 11px 16px;
  }
  .home-brand { width: 100%; text-align: center; }
  .home-nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 10px;
  }

  .home-hero {
    padding-top: 42px;
    padding-bottom: 56px;
  }

  .home-hero-grid { gap: 34px; }
  .home-title { font-size: 40px; }
  .home-subtitle { font-size: 22px; }
  .home-copy { font-size: 14px; }

  .home-signal-strip { margin-top: 44px; }

  .home-work {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px;
  }

  .home-thumb img { aspect-ratio: 16 / 9; }

  .home-hobby-grid { grid-template-columns: 1fr; }

  .home-footer {
    gap: 22px;
    flex-wrap: wrap;
  }
}


/* Unified glass navigation */
.home-shell { width: min(1180px, 100%); }
.home-nav-wrap { top: 14px; }
.home-nav {
  min-height: 54px;
  padding: 8px 14px 8px 20px;
  border: 1px solid rgba(30,30,90,.12);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 10px 30px rgba(30,30,90,.08);
}


/* Home refinements */
.home-signal-heading { margin-top: 58px; margin-bottom: 18px; }
.home-signal-heading .home-kicker { margin-bottom: 9px; }
.home-signal-heading h2 { margin: 0; color: var(--navy); font: 700 24px/1.25 'Mali', cursive; }
.home-signal-strip { margin-top: 0; }
#selected-works .home-side-copy {
  color: var(--navy);
  font: 500 14px/1.65 'Mali', cursive;
}
.home-work-details { display: flex; min-height: 100%; flex-direction: column; align-items: flex-start; }
.home-work-copy { flex: 1; }
.home-work-label { color: var(--navy); font-weight: 600; }


/* Shared portfolio footer */
.portfolio-footer {
  border-top: 1px solid var(--divider, var(--border));
  background: #fff;
  color: var(--muted);
  font: 500 11px/1 'Inter', sans-serif;
}
.portfolio-footer-inner {
  display: flex;
  width: min(1180px, calc(100% - 128px));
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto;
}
.portfolio-footer-links { display: flex; align-items: center; gap: 28px; }
.portfolio-footer a { color: var(--muted); text-decoration: none; }
.portfolio-footer a:hover { color: var(--navy); }
@media (max-width: 980px) {
  .portfolio-footer-inner { width: min(100% - 56px, 1180px); }
}
/* Mobile FAB navigation */
.mobile-fab { display: none; }
.mobile-fab,
.mobile-fab * { box-sizing: border-box; }

@media (max-width: 760px) {
  .home-nav-wrap,
  .mafia-nav-wrap,
  .payment-nav-wrap,
  .case-nav-wrap,
  .site-header {
    display: none !important;
  }

  .home-page,
  .mafia-page,
  .payment-page,
  .debtor-page,
  .case-study {
    padding-bottom: 96px !important;
  }

  .mobile-fab {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, calc(14px + env(safe-area-inset-bottom)));
    z-index: 1000;
    display: block;
    width: 60px;
    height: 60px;
    pointer-events: none;
    font-family: 'Inter', system-ui, sans-serif;
  }

  .mobile-fab__backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(30, 30, 90, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
  }

  .mobile-fab__menu {
    position: absolute;
    right: 2px;
    bottom: 74px;
    z-index: 2;
    display: grid;
    width: max-content;
    gap: 10px;
    justify-items: end;
    pointer-events: none;
  }

  .mobile-fab__menu a {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    color: #1E1E5A !important;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(.92);
    transform-origin: right center;
    transition: opacity .2s ease, transform .3s cubic-bezier(.2, .9, .2, 1);
  }

  .mobile-fab__menu a span {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 15px;
    border: 1px solid rgba(30, 30, 90, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 28px rgba(30, 30, 90, .12);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
  }

  .mobile-fab__menu a i {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    background: #1E1E5A;
    box-shadow: 0 12px 28px rgba(30, 30, 90, .24);
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .04em;
  }

  .mobile-fab__menu a:nth-child(1) { transition-delay: 0s; }
  .mobile-fab__menu a:nth-child(2) { transition-delay: .025s; }
  .mobile-fab__menu a:nth-child(3) { transition-delay: .05s; }
  .mobile-fab__menu a:nth-child(4) { transition-delay: .075s; }

  .mobile-fab__toggle {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    width: 60px;
    height: 60px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: #1E1E5A;
    box-shadow: 0 16px 36px rgba(30, 30, 90, .3);
    cursor: pointer;
    pointer-events: auto;
    transition: transform .28s cubic-bezier(.2, .9, .2, 1), box-shadow .28s ease;
  }

  .mobile-fab__toggle span,
  .mobile-fab__toggle span::before {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transition: transform .28s cubic-bezier(.2, .9, .2, 1);
  }

  .mobile-fab__toggle span { position: relative; }
  .mobile-fab__toggle span::before {
    content: '';
    position: absolute;
    inset: 0;
    transform: rotate(90deg);
  }

  .mobile-fab.is-open .mobile-fab__backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: rgba(30, 30, 90, .08);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .mobile-fab.is-open .mobile-fab__menu { pointer-events: auto; }
  .mobile-fab.is-open .mobile-fab__menu a {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .mobile-fab.is-open .mobile-fab__menu a:nth-child(1) { transition-delay: .12s; }
  .mobile-fab.is-open .mobile-fab__menu a:nth-child(2) { transition-delay: .09s; }
  .mobile-fab.is-open .mobile-fab__menu a:nth-child(3) { transition-delay: .06s; }
  .mobile-fab.is-open .mobile-fab__menu a:nth-child(4) { transition-delay: .03s; }
  .mobile-fab.is-open .mobile-fab__toggle {
    transform: rotate(45deg);
    box-shadow: 0 18px 40px rgba(30, 30, 90, .36);
  }

  .mobile-fab__toggle:focus-visible,
  .mobile-fab__menu a:focus-visible {
    outline: 3px solid rgba(30, 30, 90, .24);
    outline-offset: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-fab__backdrop,
  .mobile-fab__menu a,
  .mobile-fab__toggle,
  .mobile-fab__toggle span,
  .mobile-fab__toggle span::before {
    transition: none !important;
  }
}

/* Final card treatment: shared across desktop and mobile. */
.home-portrait,
.home-signal-strip > *,
.home-work,
.home-thumb,
.home-hobby,
.home-hobby-visual {
  border-radius: 4px;
}

/* Final mobile-only layout refinements. */
@media (max-width: 720px) {
  .home-page { padding-bottom: 0 !important; }
  .home-nav-wrap { display: none !important; }

  .home-portrait {
    margin-inline: auto;
  }

  .portfolio-footer {
    min-height: 0;
  }

  .portfolio-footer-inner {
    width: min(100% - 36px, 1180px);
    min-height: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 0;
    text-align: center;
  }

  .portfolio-footer-inner > span { white-space: nowrap; }
  .portfolio-footer-links {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 20px;
  }
}
