:root {
  color-scheme: light;
  --bg: #f8eff3;
  --ink: #1d151b;
  --muted: #5b4b56;
  --accent: #ff7aa2;
  --accent-2: #d45c8a;
  --accent-3: #f6c3d0;
  --card: #ffffff;
  --shadow: 0 24px 40px rgba(23, 20, 23, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

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

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: radial-gradient(circle at top left, #ffe5ee 0%, transparent 45%),
    radial-gradient(circle at 80% 20%, #f4e3ef 0%, transparent 45%),
    linear-gradient(180deg, #f9eff3 0%, #f4e9ee 50%, #f9eff3 100%);
  color: var(--ink);
  min-height: 100vh;
}

html {
  scroll-padding-top: 120px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
      rgba(255, 255, 255, 0.6) 0.7px,
      transparent 0.7px
    ),
    radial-gradient(rgba(255, 255, 255, 0.35) 0.7px, transparent 0.7px);
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  padding: 32px clamp(20px, 5vw, 80px) 48px;
  max-width: 1300px;
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  z-index: 10;
}

.skip-link:focus {
  left: 20px;
}

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

p {
  color: var(--muted);
  line-height: 1.6;
}

a {
  color: inherit;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 12px 18px;
  margin: 8px 0 32px;
  position: sticky;
  top: 16px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(23, 20, 23, 0.08);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 28px rgba(23, 20, 23, 0.08);
  animation: fade-down 0.9s ease both;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-photo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 0 3px rgba(255, 122, 162, 0.35),
    0 14px 22px rgba(23, 20, 23, 0.12);
}

.brand-name {
  font-weight: 600;
  color: var(--ink);
}

.brand-tag {
  margin-top: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}

.nav-cta {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
  max-width: 0;
  padding: 0;
  min-height: 0;
  border: 0;
  overflow: hidden;
  box-shadow: none;
}

body.is-scrolled .nav-cta {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  max-width: 220px;
  padding: 12px 22px;
  min-height: 44px;
  border: none;
  box-shadow: var(--shadow);
}

body.is-scrolled .nav-group {
  gap: 18px;
}

.hero-cta {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

body.is-scrolled .hero-cta {
  opacity: 0.65;
  transform: translateY(4px);
}

.socials {
  display: flex;
  gap: 10px;
}

.social {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(23, 20, 23, 0.12);
  box-shadow:
    0 0 0 2px rgba(255, 122, 162, 0.32),
    0 12px 18px rgba(23, 20, 23, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 22px rgba(23, 20, 23, 0.12);
}

.social img {
  width: 18px;
  height: 18px;
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  padding: 24px 0 64px;
}

.hero-copy {
  display: grid;
  gap: 20px;
  animation: fade-up 1s ease both;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--accent-2);
  font-weight: 600;
}

.lead {
  font-size: 1.05rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.primary,
.ghost {
  border: none;
  font-family: inherit;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
}

.primary {
  background: var(--accent);
  color: #1a0f0b;
  box-shadow: var(--shadow);
  font-weight: 600;
}

.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(23, 20, 23, 0.2);
}

.text-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  font-weight: 600;
}

.hero-meta {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.meta-title {
  color: var(--ink);
  font-weight: 600;
}

.meta-sub {
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 18px;
}

.hero-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid rgba(23, 20, 23, 0.08);
  animation: float 6s ease-in-out infinite;
}

.hero-card.card-a {
  animation-delay: 0s;
}

.hero-card.card-b {
  animation-delay: 1.2s;
}

.hero-card.card-c {
  animation-delay: 2.4s;
}

.card-label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: var(--accent-2);
  font-weight: 600;
}

.card-title {
  margin-top: 10px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 600;
}

.profile {
  padding: 8px 0 60px;
}

.portfolio,
.services,
.case-study,
.contact {
  scroll-margin-top: 140px;
}

@media (min-width: 901px) {
  html {
    scroll-padding-top: 90px;
  }

  .portfolio,
  .services,
  .case-study,
  .contact {
    scroll-margin-top: 110px;
  }
}

.profile-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(23, 20, 23, 0.08);
  box-shadow: var(--shadow);
}

.profile-label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: var(--accent-2);
  font-weight: 600;
}

.profile-info {
  display: grid;
  gap: 14px;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-tags span {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(23, 20, 23, 0.1);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.section-head {
  display: grid;
  gap: 12px;
}

.section-head p {
  max-width: 640px;
}

.services {
  display: grid;
  gap: 24px;
  padding: 20px 0 70px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.service-card {
  padding: 22px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(23, 20, 23, 0.08);
  box-shadow: 0 16px 24px rgba(23, 20, 23, 0.08);
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.service-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.service-list li {
  position: relative;
  padding-left: 18px;
}

.service-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-weight: 700;
}

.packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.package-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(23, 20, 23, 0.08);
  box-shadow: 0 16px 24px rgba(23, 20, 23, 0.08);
  display: grid;
  gap: 10px;
}

.package-card:nth-child(2) {
  background: linear-gradient(135deg, #ffffff, #ffe9f2);
  border-color: rgba(212, 92, 138, 0.35);
}

.package-tier {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--accent-2);
  font-weight: 600;
}

.package-desc {
  color: var(--muted);
}

.package-note {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9rem;
}

.case-study {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  padding: 10px 0 70px;
  align-items: center;
}

.case-label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: var(--accent-2);
  font-weight: 600;
}

.case-text {
  display: grid;
  gap: 14px;
}

.case-list {
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.case-results {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.case-results .metric-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
}

.case-results .metric-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.case-media {
  display: grid;
  gap: 16px;
}

.case-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(23, 20, 23, 0.08);
  box-shadow: 0 16px 24px rgba(23, 20, 23, 0.08);
}

.case-frame img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.case-frame figcaption {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.portfolio {
  display: grid;
  gap: 28px;
  padding: 10px 0 80px;
}

.filter-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.filter-tags span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(23, 20, 23, 0.12);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-auto-rows: 180px;
  gap: 18px;
}

.tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: rise 0.9s ease both;
  animation-delay: var(--delay);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.7) 100%
  );
  opacity: 0.9;
}

.tile figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: #fff;
  z-index: 1;
  display: grid;
  gap: 6px;
}

.tile figcaption span {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

.tile figcaption strong {
  font-weight: 600;
  font-size: 1.05rem;
}

.tile figcaption em {
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.tile--wide {
  grid-column: span 2;
}

.tile--tall {
  grid-row: span 2;
}

.tile--hero {
  grid-column: span 2;
  grid-row: span 2;
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: start;
  padding-bottom: 60px;
}

.availability {
  margin-top: 10px;
  font-weight: 600;
  color: var(--ink);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid rgba(23, 20, 23, 0.08);
}

.contact-form .primary {
  width: 100%;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 600;
}

input,
select,
textarea {
  font-family: inherit;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(23, 20, 23, 0.2);
  background: #fff;
  font-size: 0.95rem;
}

textarea {
  resize: vertical;
}

.form-note {
  font-size: 0.9rem;
}

.footer {
  padding-top: 20px;
  border-top: 1px solid rgba(23, 20, 23, 0.1);
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 960px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .tile--wide,
  .tile--hero {
    grid-column: span 1;
  }

  .tile--hero {
    grid-row: span 1;
  }
}

@media (max-width: 720px) {
  .nav {
    top: 10px;
    padding: 12px 14px;
  }

  .nav-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links {
    order: 1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .nav-links a {
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffffff, #ffeaf1);
    border: 1px solid rgba(23, 20, 23, 0.1);
    box-shadow: 0 0 0 2px rgba(255, 122, 162, 0.28);
    white-space: nowrap;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
  }

  body.is-scrolled .nav-cta {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .nav-cta {
    order: 2;
    display: none;
  }

  body.is-scrolled .nav-group {
    gap: 10px;
  }

  body.is-scrolled .nav-cta {
    display: inline-flex;
  }

  body.is-contact .nav-cta {
    opacity: 0;
    pointer-events: none;
    max-width: 0;
    padding: 0;
    min-height: 0;
    border: 0;
    box-shadow: none;
    display: none;
  }

  body.is-contact .nav-group {
    gap: 0;
  }

  .socials {
    order: 1;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .grid {
    grid-auto-rows: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
