/* Bixbite Zip — Apple-inspired product site */

:root {
  --bixbite: #c2184a;
  --bixbite-deep: #8a1234;
  --bixbite-bright: #e11d48;
  --bixbite-soft: #fce7ee;
  --bixbite-mist: #fff5f8;
  --ink: #1a1014;
  --ink-soft: #5c4a52;
  --ink-mute: #8a7680;
  --surface: #ffffff;
  --surface-2: #faf6f7;
  --line: rgba(26, 16, 20, 0.08);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Outfit", "Avenir Next", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--surface-2);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(250, 246, 247, 0.82);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom-color: var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 2;
}

.logo-mark {
  width: 18px;
  height: 22px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(145deg, var(--bixbite-bright), var(--bixbite-deep));
  flex-shrink: 0;
}

.logo-text,
.footer-brand span:last-child {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  color: var(--surface) !important;
  background: var(--ink);
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease) !important;
}

.nav-cta:hover {
  background: var(--bixbite-deep) !important;
  color: var(--surface) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(250, 246, 247, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  padding: 2rem;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.mobile-nav[hidden] {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 35%, rgba(225, 29, 72, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 45% at 20% 70%, rgba(138, 18, 52, 0.18), transparent 50%),
    linear-gradient(165deg, #1a0810 0%, #3d0f22 38%, #6b1435 68%, #c2184a 100%);
}

.gem-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.gem {
  position: absolute;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(225, 29, 72, 0.9) 35%,
    rgba(138, 18, 52, 0.95) 70%,
    rgba(60, 8, 24, 0.9) 100%
  );
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.15);
  animation: gem-float 12s var(--ease) infinite;
}

.gem::after {
  content: "";
  position: absolute;
  inset: 12% 18% 40% 18%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  opacity: 0.7;
}

.gem-a {
  width: min(42vw, 420px);
  height: min(52vw, 520px);
  top: 8%;
  right: 8%;
  opacity: 0.92;
  animation-delay: 0s;
}

.gem-b {
  width: min(22vw, 200px);
  height: min(28vw, 250px);
  top: 42%;
  right: 38%;
  opacity: 0.55;
  filter: blur(1px);
  animation-delay: -3s;
  animation-duration: 14s;
}

.gem-c {
  width: min(16vw, 140px);
  height: min(20vw, 180px);
  top: 18%;
  right: 48%;
  opacity: 0.35;
  filter: blur(2px);
  animation-delay: -6s;
  animation-duration: 16s;
}

.light-sweep {
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.08) 48%,
    rgba(255, 220, 230, 0.18) 50%,
    rgba(255, 255, 255, 0.08) 52%,
    transparent 60%
  );
  animation: sweep 9s ease-in-out infinite;
  mix-blend-mode: soft-light;
}

@keyframes gem-float {
  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }
  50% {
    transform: translateY(-18px) rotate(-2deg);
  }
}

@keyframes sweep {
  0%,
  100% {
    transform: translateX(-8%) rotate(0deg);
    opacity: 0.4;
  }
  50% {
    transform: translateX(8%) rotate(2deg);
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  padding: calc(var(--header-h) + 4rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vw, 5.5rem);
  color: #fff;
}

.brand-lockup {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #ffffff 30%, rgba(255, 210, 220, 0.85));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 1s var(--ease) both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 16ch;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.95);
  animation: rise 1s var(--ease) 0.12s both;
}

.hero-lede {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  font-weight: 300;
  color: rgba(255, 245, 248, 0.78);
  max-width: 38ch;
  margin-bottom: 2rem;
  animation: rise 1s var(--ease) 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 1s var(--ease) 0.32s both;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #fff;
  color: var(--bixbite-deep);
}

.btn-primary:hover {
  background: var(--bixbite-soft);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

/* Strip */

.strip {
  padding: 1.35rem clamp(1.25rem, 4vw, 3rem);
  text-align: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.strip p {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Sections */

.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) clamp(1.25rem, 4vw, 3rem);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-head h2,
.about-copy h2,
.contact-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

.section-head p,
.about-copy p,
.contact-panel > p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 42ch;
}

.section-head.light h2 {
  color: #fff;
}

.section-head.light p {
  color: rgba(255, 245, 248, 0.72);
}

/* Work */

.work {
  background: var(--surface);
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 7vw, 5rem);
  max-width: 1120px;
}

.work-item {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.work-item.reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.work-item.reverse .work-media {
  order: 2;
}

.work-media {
  position: relative;
  min-height: clamp(280px, 36vw, 420px);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.tone-a {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 40%),
    linear-gradient(145deg, #9f1239, #e11d48 55%, #fda4af);
}

.tone-b {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.25), transparent 45%),
    linear-gradient(160deg, #4c0519, #881337 50%, #be123c);
}

.tone-c {
  background:
    radial-gradient(circle at 40% 80%, rgba(255, 182, 193, 0.35), transparent 40%),
    linear-gradient(180deg, #fb7185, #be123c 60%, #7f1d1d);
}

.work-device {
  width: min(72%, 340px);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 0.65rem;
  box-shadow: 0 24px 48px rgba(26, 8, 16, 0.25);
  transform: perspective(900px) rotateY(-8deg) rotateX(4deg);
}

.device-bar {
  display: block;
  height: 8px;
  width: 28%;
  margin: 0.2rem auto 0.75rem;
  border-radius: 999px;
  background: rgba(26, 16, 20, 0.08);
}

.device-screen {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.5rem 0.35rem 0.85rem;
}

.ui-line {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bixbite-soft), #fff);
}

.ui-line.w40 { width: 40%; }
.ui-line.w50 { width: 50%; }
.ui-line.w60 { width: 60%; }
.ui-line.w70 { width: 70%; }

.ui-card {
  display: block;
  height: 88px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bixbite-bright), var(--bixbite-deep));
  opacity: 0.9;
}

.ui-row {
  display: block;
  height: 36px;
  border-radius: 10px;
  background: var(--bixbite-mist);
}

.work-grid-ui {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  width: min(78%, 280px);
}

.work-grid-ui span {
  aspect-ratio: 1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.work-grid-ui span:nth-child(1) {
  background: rgba(255, 255, 255, 0.88);
}

.work-grid-ui span:nth-child(4) {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05));
}

.work-phone {
  width: min(42%, 180px);
  aspect-ratio: 9 / 17;
  background: #1a1014;
  border-radius: 28px;
  padding: 0.55rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 28px 50px rgba(26, 8, 16, 0.35);
}

.phone-notch {
  width: 38%;
  height: 10px;
  margin: 0.25rem auto 0.75rem;
  border-radius: 999px;
  background: #0d0709;
}

.phone-body {
  height: calc(100% - 28px);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff5f8, #ffe4ec);
  padding: 1.1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pulse {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fda4af, var(--bixbite-bright));
  animation: pulse 2.4s ease-in-out infinite;
  margin-bottom: 0.4rem;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.35);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 14px rgba(225, 29, 72, 0);
  }
}

.work-copy .eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bixbite);
  margin-bottom: 0.65rem;
}

.work-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.work-copy p:last-child {
  color: var(--ink-soft);
  max-width: 36ch;
}

/* Services */

.services {
  background: var(--bixbite-mist);
}

.service-list {
  list-style: none;
  max-width: 920px;
  border-top: 1px solid var(--line);
}

.service-list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: padding-left 0.35s var(--ease);
}

.service-list li:hover {
  padding-left: 0.5rem;
}

.service-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--bixbite);
  letter-spacing: -0.02em;
  padding-top: 0.2rem;
}

.service-list h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 0.35rem;
}

.service-list p {
  color: var(--ink-soft);
  max-width: 48ch;
}

/* Process */

.process {
  background: var(--surface);
  padding-top: clamp(3rem, 6vw, 4rem);
}

.process-panel {
  max-width: 1120px;
  margin: 0 auto;
  border-radius: calc(var(--radius) + 10px);
  padding: clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(225, 29, 72, 0.45), transparent 50%),
    linear-gradient(145deg, #1a0810, #4a0f28 55%, #7a1438);
  color: #fff;
}

.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.process-steps li {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.process-steps li::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fda4af;
  letter-spacing: 0.04em;
}

.process-steps strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.process-steps span {
  font-size: 0.95rem;
  color: rgba(255, 245, 248, 0.7);
  line-height: 1.45;
}

/* About */

.about {
  background: var(--surface-2);
}

.about-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

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

.about-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem 0 0;
}

.about-aside p {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.about-aside strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

/* Contact */

.contact {
  background: var(--surface);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.contact-panel {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.contact-panel > p {
  margin: 0 auto 2.25rem;
}

.contact-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.contact-form label span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 14px;
  padding: 0.95rem 1.05rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(194, 24, 74, 0.45);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(194, 24, 74, 0.1);
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.35rem;
  background: var(--bixbite);
  color: #fff;
  border: 0;
}

.contact-form .btn:hover {
  background: var(--bixbite-deep);
}

.form-status {
  min-height: 1.4em;
  font-size: 0.95rem;
  color: var(--bixbite-deep);
}

.contact-alt {
  margin-top: 1.75rem;
  font-size: 0.95rem;
  color: var(--ink-mute);
}

.contact-alt a {
  color: var(--bixbite);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}

.contact-alt a:hover {
  border-bottom-color: var(--bixbite);
}

/* Footer */

.site-footer {
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.site-footer > p {
  color: var(--ink-mute);
  font-size: 0.9rem;
}

.footer-copy {
  width: 100%;
  margin-top: 0.5rem;
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .work-item,
  .work-item.reverse {
    grid-template-columns: 1fr;
  }

  .work-item.reverse .work-media {
    order: 0;
  }

  .work-device {
    transform: none;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding-bottom: 3rem;
  }

  .brand-lockup {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-panel {
    border-radius: var(--radius);
  }

  .gem-a {
    right: -8%;
    top: 4%;
    opacity: 0.75;
  }

  .gem-b,
  .gem-c {
    opacity: 0.25;
  }

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

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

  .gem,
  .light-sweep,
  .pulse,
  .brand-lockup,
  .hero h1,
  .hero-lede,
  .hero-actions {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
