/* Components */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: 0.15s ease;
  cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { color: var(--blue-hover); }
.btn-ghost::after { content: " \203a"; margin-left: 2px; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--hair);
}
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 251, 253, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  height: var(--nav-h);
}
.nav-inner {
  max-width: none;
  margin: 0;
  height: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.nav-logo { height: 36px; display: flex; align-items: center; }
.nav-logo img { height: 36px; width: auto; display: block; }
@media (max-width: 720px) {
  .nav-inner { justify-content: space-between; gap: 12px; }
}
@media (max-width: 720px) {
  .nav-logo, .nav-logo img { height: 30px; }
}
.home-wordmark {
  padding: 60px 22px 80px;
  display: flex;
  justify-content: center;
}
.home-wordmark img {
  width: min(680px, 70vw);
  height: auto;
  display: block;
}
.nav ul {
  display: flex;
  gap: 28px;
  font-size: 12px;
  font-weight: 400;
}
.nav li a { color: var(--ink); opacity: 0.85; }
.nav li a:hover { opacity: 1; color: var(--ink); }
.nav li a[aria-current="page"] { opacity: 1; color: var(--blue); }
.nav .cta { font-size: 12px; color: var(--blue); }

/* Nav dropdown */
.nav li.has-dropdown { position: relative; }
.nav li.has-dropdown > a { cursor: default; }
.nav li.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 180px;
  padding: 10px 0;
  background: rgba(251, 251, 253, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--hair);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
}
.nav li.has-dropdown .dropdown a {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--ink);
  opacity: 0.85;
  white-space: nowrap;
}
.nav li.has-dropdown .dropdown a:hover { opacity: 1; color: var(--blue); }
.nav li.has-dropdown:hover .dropdown,
.nav li.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-toggle {
  display: none;
  font-size: 18px;
  color: var(--ink);
}
@media (max-width: 720px) {
  .nav ul {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(251, 251, 253, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 18px 22px;
    gap: 14px;
    font-size: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .nav[data-open="true"] ul { display: flex; }
  .nav-toggle { display: inline-flex; }
  .nav-inner { padding: 0 18px; }
  .nav li.has-dropdown .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    box-shadow: none;
    padding: 6px 0 0 14px;
    min-width: 0;
  }
  .nav li.has-dropdown .dropdown a { padding: 6px 0; font-size: 14px; }
}

/* Hero */
.hero {
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
  background: var(--white);
}
.hero-visual {
  margin: 48px auto 0;
  max-width: 1080px;
  height: clamp(220px, 42vw, 460px);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(1200px 500px at 20% 20%, #e7f0ff 0%, transparent 60%),
    radial-gradient(900px 500px at 85% 80%, #dbe6ff 0%, transparent 55%),
    linear-gradient(180deg, #f5f7fb 0%, #eef2f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual .ghost-label {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-size: 11px;
  color: #9aa2b1;
  letter-spacing: 0.02em;
}
.hero-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 14px;
  padding: 22px 26px;
  box-shadow: var(--shadow-card);
  max-width: 420px;
  text-align: left;
}
.hero-card small {
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-card h4 { margin: 6px 0 2px; font-size: 22px; font-weight: 600; }
.hero-card p { margin: 0; color: var(--mute); font-size: 14px; }
.hero-card .price {
  color: var(--blue);
  font-weight: 500;
  font-size: 15px;
  margin-top: 10px;
}

/* Tile grid */
.tiles { padding: 0 22px 22px; }
.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
}
@media (max-width: 720px) {
  .tile-grid { grid-template-columns: 1fr; }
}
.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 560px;
  padding: 60px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--panel);
  color: var(--ink);
}
.tile--dark { background: #1d1d1f; color: #f5f5f7; }
.tile--dark .eyebrow { color: var(--blue-soft); }
.tile--dark .kicker { color: #a1a1a6; }
.tile h3 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 8px 0 8px;
  line-height: 1.05;
}
.tile .kicker { font-size: 18px; max-width: 420px; margin: 0 0 22px; }
.tile .actions { display: flex; gap: 22px; margin-top: auto; padding-top: 20px; }
.tile .preview {
  margin-top: 28px;
  width: 100%;
  flex: 1;
  border-radius: 12px;
  background: linear-gradient(135deg, #e3ecff, #f5f5f7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mute);
  font-size: 13px;
}
.tile--dark .preview {
  background: linear-gradient(135deg, #2a2a2c, #1d1d1f);
  color: #6e6e73;
}
.tile-media {
  margin: -60px -44px 28px;
  width: calc(100% + 88px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-card-media {
  display: block;
  width: calc(100% + 52px);
  margin: -22px -26px 16px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

/* Project card (index page) */
.project-card {
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.project-card .card-preview {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #e3ecff, #f5f5f7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mute);
  font-size: 12px;
}
.project-card .card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; }
.project-card .card-body .eyebrow { margin: 0 0 2px; font-size: 12px; }
.project-card .card-body h3 { font-size: 22px; margin: 0; }
.project-card .card-body p { color: var(--mute); font-size: 14px; margin: 4px 0 0; }
.project-card .card-meta { font-size: 13px; color: var(--blue); margin-top: 10px; font-weight: 500; }

/* Cancelled project treatment (red strike + badge) */
.project-card .card-preview { position: relative; }
.project-card .cancelled-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e11d2e;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 980px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(225, 29, 46, 0.35);
}
.project-card--cancelled { opacity: 0.72; }
.project-card--cancelled .card-preview img { filter: grayscale(60%) brightness(0.92); }
.project-card--cancelled .card-body h3 {
  color: #86868b;
  text-decoration: line-through;
  text-decoration-color: #e11d2e;
  text-decoration-thickness: 3px;
}
.project-card--cancelled .card-body .eyebrow,
.project-card--cancelled .card-body p,
.project-card--cancelled .card-meta { color: #a1a1a6; }
.project-card--cancelled .card-meta { text-decoration: line-through; text-decoration-color: #e11d2e; }
.project-card--cancelled:hover { transform: none; box-shadow: none; }

/* Sold Out treatment (red badge, dimmed image, no strikethrough) */
.project-card .sold-out-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e11d2e;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 980px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(225, 29, 46, 0.35);
}
.project-card--sold-out .card-preview img { filter: grayscale(35%) brightness(0.96); }
.project-card--sold-out .card-body h3 { color: #e11d2e; }
.project-card--sold-out .card-meta { color: #a1a1a6; }

/* Stats */
.stats { background: var(--white); padding-top: 96px; padding-bottom: 96px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
@media (max-width: 720px) {
  .stat-grid { grid-template-columns: 1fr; gap: 48px; }
}
.stat .num {
  font-size: clamp(56px, 10vw, 96px);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--blue);
  line-height: 1;
  margin: 0;
}
.stat .label {
  font-size: 15px;
  color: var(--mute);
  margin-top: 10px;
  max-width: 220px;
  margin-inline: auto;
}
.stat .num .unit {
  color: var(--ink);
  font-weight: 400;
  font-size: 0.25em;
  margin-left: 4px;
}

/* About */
.about { background: var(--panel); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
}
.about h2 {
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  line-height: 1.08;
}
.about p {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 12px;
  max-width: 520px;
}
@media (max-width: 820px) {
  .about p { margin-inline: auto; }
}
.about img {
  border-radius: 14px;
  max-width: 420px;
  margin-inline: auto;
  filter: saturate(0.92) contrast(1.02);
  box-shadow: var(--shadow-about);
}

/* Dark panel */
.dark-hero {
  background: #0a0a0b;
  color: #f5f5f7;
  padding: 120px 22px;
}
.dark-hero .display em.accent,
.dark-hero .display em { color: var(--blue-soft); }
.dark-hero .kicker { color: #a1a1a6; }
.dark-hero .btn-ghost { color: var(--blue-soft); }
.dark-hero .eyebrow { color: var(--blue-soft); }

/* Signup */
.signup {
  background: var(--white);
  padding: 88px 22px;
  text-align: center;
}
.signup h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.signup .kicker { margin-bottom: 28px; }
.signup form {
  display: flex;
  gap: 8px;
  justify-content: center;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.signup input {
  flex: 1 1 260px;
  padding: 14px 18px;
  border-radius: 980px;
  border: 1px solid var(--hair);
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
  min-width: 0;
}
.signup input:focus {
  outline: 2px solid var(--blue);
  border-color: transparent;
}
.form-msg { margin-top: 14px; font-size: 14px; color: var(--mute); min-height: 20px; }
.form-msg[data-state="ok"] { color: var(--blue); }
.form-msg[data-state="err"] { color: #c43c3c; }

/* Forms (contact, register, platinum) */
.form-block {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.form-block label { font-size: 13px; color: var(--mute); font-weight: 500; }
.form-block input,
.form-block textarea {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--hair);
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
}
.form-block textarea { min-height: 120px; resize: vertical; }
.form-block .btn { align-self: flex-start; margin-top: 6px; }

/* Filter bar — Apple-style pill dropdowns */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 auto 32px;
  max-width: var(--max);
  padding: 0 22px;
}
.filters .count {
  margin-left: auto;
  font-size: 13px;
  color: var(--mute);
}

/* Pill dropdown wrapper */
.fpill-drop { position: relative; }

/* The pill button */
.fpill-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 980px;
  border: none;
  background: rgba(0,0,0,.06);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  line-height: 1;
}
.fpill-btn:hover { background: rgba(0,0,0,.1); }

/* Active (non-default value selected) — fills with ink */
.fpill-drop.is-active .fpill-btn {
  background: var(--ink);
  color: #fff;
}
.fpill-drop.is-active .fpill-arrow path { stroke: #fff; }

/* Chevron rotates when open */
.fpill-arrow { flex-shrink: 0; transition: transform .2s; }
.fpill-drop.is-open .fpill-arrow { transform: rotate(180deg); }

/* Dropdown menu panel */
.fpill-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 300;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.13), 0 1px 4px rgba(0,0,0,.06);
  padding: 6px 0;
  margin: 0;
  list-style: none;
  min-width: 180px;
  max-height: 340px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.fpill-drop.is-open .fpill-menu { display: block; }

.fpill-menu li {
  padding: 9px 16px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: background .1s;
  white-space: nowrap;
}
.fpill-menu li:hover { background: #f5f5f7; }
.fpill-menu li.is-sel { font-weight: 600; color: var(--blue, #2D7CF1); }

/* Footer */
footer {
  background: var(--panel);
  color: var(--mute);
  font-size: 12px;
  padding: 40px 22px 32px;
  border-top: 1px solid var(--hair);
}
.foot {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 720px) {
  .foot { grid-template-columns: 1fr 1fr; }
}
footer h5 {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 10px;
}
footer ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer a { color: var(--mute); }
footer a:hover { color: var(--ink); }
.foot-bottom {
  max-width: var(--max);
  margin: 28px auto 0;
  border-top: 1px solid var(--hair);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
}

/* Project detail */
.project-hero {
  padding: 60px 22px 40px;
  text-align: center;
}
.project-meta {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--mute);
  font-size: 14px;
  margin-top: 14px;
}
.project-meta span { padding: 4px 12px; border: 1px solid var(--hair); border-radius: 980px; }
.project-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 22px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px 60px;
}
@media (max-width: 720px) {
  .project-gallery { grid-template-columns: 1fr; }
}
.project-gallery .shot {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e3ecff, #f5f5f7);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mute);
  font-size: 12px;
}

/* Testimonials */
.testimonials { background: var(--panel); padding: 88px 22px; }
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-card);
}
.testimonial blockquote {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
}
.testimonial cite {
  font-style: normal;
  font-size: 13px;
  color: var(--mute);
}

/* 404 */
.err-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 22px;
}
.err-page h1 { font-size: clamp(48px, 10vw, 96px); font-weight: 300; color: var(--blue); margin: 0 0 12px; }
.err-page p { color: var(--mute); font-size: 18px; margin: 0 0 24px; }
