/* Sortify Tiles — cozy azulejo atelier landing
   Differentiated layout: floating pill nav, kiln plaque hero,
   workshop tool tiles, wooden shelf gallery. */

:root {
  --ink: #2d1a12;
  --ink-soft: #5c4033;
  --parchment: #f3e2c4;
  --parchment-deep: #e8c99a;
  --cream: #fff8eb;
  --cobalt: #2b5ea7;
  --cobalt-deep: #1e4a8a;
  --clay: #c16648;
  --clay-soft: #d8895e;
  --ochre: #d29056;
  --green: #6b8e4e;
  --outline: 3.5px solid var(--ink);
  --radius-tile: 1.35rem;
  --radius-pill: 999px;
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-hard-sm: 4px 4px 0 var(--ink);
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --header-h: 4.5rem;
  --max: 68rem;
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --trans: 200ms ease;
}

[data-theme="dark"] {
  --ink: #f5e6cc;
  --ink-soft: #d4b896;
  --parchment: #2a1f18;
  --parchment-deep: #3d2e24;
  --cream: #3a2c22;
  --cobalt: #4a8ad4;
  --cobalt-deep: #2b5ea7;
  --clay: #e07a55;
  --ochre: #c4894a;
  --green: #8fb870;
  --shadow-hard: 6px 6px 0 #1a100c;
  --shadow-hard-sm: 4px 4px 0 #1a100c;
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--parchment);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--cobalt);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition: top var(--trans);
}

.skip-link:focus {
  top: 1rem;
}

/* —— Atmosphere —— */
.atelier-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 20% 10%, rgba(43, 94, 167, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 45% at 85% 20%, rgba(193, 102, 72, 0.14), transparent 50%),
    linear-gradient(165deg, var(--parchment) 0%, var(--parchment-deep) 100%);
}

.atelier-bg__wash {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 28px,
      rgba(45, 26, 18, 0.015) 28px,
      rgba(45, 26, 18, 0.015) 29px
    );
}

.atelier-bg__arch {
  position: absolute;
  width: min(28vw, 220px);
  height: min(40vh, 320px);
  border: 4px solid rgba(45, 26, 18, 0.08);
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
  bottom: 8%;
  opacity: 0.55;
}

.atelier-bg__arch--l {
  left: -4%;
  transform: rotate(-6deg);
}

.atelier-bg__arch--r {
  right: -6%;
  transform: rotate(8deg);
  border-color: rgba(43, 94, 167, 0.12);
}

.atelier-bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  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)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
}

[data-theme="dark"] .atelier-bg__grain {
  mix-blend-mode: soft-light;
  opacity: 0.25;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-pill);
  border: var(--outline);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: var(--shadow-hard-sm);
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans);
  cursor: pointer;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px) scale(0.98);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn--cobalt {
  background: var(--cobalt);
  color: #fff8eb;
}

.btn--cobalt:hover {
  background: var(--cobalt-deep);
}

.btn--clay {
  background: var(--clay);
  color: #fff8eb;
}

.btn--ghost {
  background: var(--cream);
  color: var(--cobalt);
}

.btn--wide {
  width: 100%;
  min-width: 12rem;
}

.btn i {
  width: 1.15rem;
  height: 1.15rem;
}

/* —— Header / pill nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.85rem 1rem 0;
  transition: padding var(--trans);
}

.site-header.is-scrolled {
  padding-top: 0.55rem;
}

.pill-nav {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem 0.55rem 0.65rem;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  border: var(--outline);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-hard-sm);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.brand__icon {
  width: 40px;
  height: 40px;
  border-radius: 0.85rem;
  border: 2.5px solid var(--ink);
  object-fit: cover;
}

.pill-nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.pill-nav__links a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: background var(--trans), color var(--trans);
}

.pill-nav__links a:hover,
.pill-nav__links a:focus-visible {
  background: color-mix(in srgb, var(--cobalt) 16%, transparent);
  color: var(--cobalt);
  outline: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.theme-toggle {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: var(--outline);
  background: var(--cream);
  display: grid;
  place-items: center;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform var(--trans);
}

.theme-toggle:hover {
  transform: translate(-1px, -1px);
}

.theme-toggle i {
  width: 1.1rem;
  height: 1.1rem;
}

.theme-toggle__moon {
  display: none;
}

[data-theme="dark"] .theme-toggle__sun {
  display: none;
}

[data-theme="dark"] .theme-toggle__moon {
  display: block;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.85rem;
  border: var(--outline);
  background: var(--cream);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 3px 3px 0 var(--ink);
}

.nav-toggle__bar {
  display: block;
  width: 1.1rem;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
}

/* —— Hero —— */
.hero {
  padding: calc(1.5rem + 50px) 1rem calc(2.5rem + 50px);
}

.hero__stage {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.5rem 2rem;
  align-items: center;
  min-height: min(78vh, 640px);
}

.azu-bubble {
  position: absolute;
  top: -0.4rem;
  left: 0.5rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 14rem;
  animation: floaty 4.5s ease-in-out infinite;
}

.azu-bubble__bird {
  width: 3.4rem;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(3px 3px 0 rgba(45, 26, 18, 0.25));
}

.azu-bubble__text {
  margin: 0;
  padding: 0.55rem 0.85rem;
  background: var(--cream);
  border: var(--outline);
  border-radius: 1rem 1rem 1rem 0.35rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-hard-sm);
  color: var(--cobalt);
}

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

.kiln-plaque {
  position: relative;
  z-index: 2;
  background: var(--cream);
  border: var(--outline);
  border-radius: 1.75rem;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: var(--shadow-hard);
  transform: rotate(-1.2deg);
  margin-top: 2.5rem;
}

.kiln-plaque__shine {
  position: absolute;
  top: 1rem;
  left: 1.2rem;
  width: 1.1rem;
  height: 0.35rem;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 2px;
  transform: rotate(-25deg);
}

.hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cobalt);
}

.hero__brand img {
  width: 44px;
  height: 44px;
  border-radius: 0.9rem;
  border: 2.5px solid var(--ink);
}

.hero__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero__title em {
  font-style: normal;
  color: var(--cobalt);
}

.hero__lead {
  margin: 0 0 1.35rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.hero__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hero__chips li {
  padding: 0.35rem 0.75rem;
  background: color-mix(in srgb, var(--ochre) 28%, var(--cream));
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.hero__phones {
  position: relative;
  height: min(58vh, 520px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.phone {
  margin: 0;
  border: var(--outline);
  border-radius: 1.6rem;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-hard);
}

.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 415 / 900;
  object-fit: cover;
  object-position: top center;
}

.phone--back {
  width: min(46%, 210px);
  position: absolute;
  left: 30px;
  bottom: 12%;
  transform: rotate(-6deg);
  z-index: 1;
  opacity: 0.95;
}

.phone--front {
  width: min(46%, 230px);
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  transform: rotate(4deg);
  margin-left: 0;
}

.deco-tile {
  position: absolute;
  width: 3.2rem;
  height: 3.2rem;
  border: 3px solid var(--ink);
  border-radius: 0.85rem;
  box-shadow: 3px 3px 0 var(--ink);
  z-index: 0;
}

.deco-tile--vine {
  top: 12%;
  right: 4%;
  background: var(--cobalt);
  transform: rotate(12deg);
}

.deco-tile--vine::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 2.5px solid var(--cream);
  border-radius: 40% 60% 45% 55%;
}

.deco-tile--star {
  bottom: 18%;
  left: 46%;
  background: var(--clay);
  transform: rotate(-18deg);
  width: 2.4rem;
  height: 2.4rem;
}

.deco-tile--star::after {
  content: "";
  position: absolute;
  inset: 22%;
  background: #f5d76e;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* —— Section heads —— */
.section-head {
  max-width: 36rem;
  margin: 0 auto 2rem;
  text-align: center;
  padding: 0 1rem;
}

.section-head__eyebrow {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.3rem 0.85rem;
  background: var(--cobalt);
  color: #fff8eb;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 3px 3px 0 var(--ink);
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.section-head__lead {
  margin: 0;
  color: var(--ink-soft);
}

/* —— Workshop tool grid —— */
.workshop {
  padding: calc(2.5rem + 50px) 1rem calc(3.5rem + 50px);
}

.tool-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tool-tile {
  position: relative;
  padding: 1.35rem 1.2rem 1.25rem;
  border: var(--outline);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-hard-sm);
  transition: transform var(--trans), box-shadow var(--trans);
  cursor: default;
}

.tool-tile:hover {
  transform: translate(-3px, -3px) rotate(-0.5deg);
  box-shadow: 7px 7px 0 var(--ink);
}

.tool-tile--cobalt {
  background: var(--cobalt);
  color: #fff8eb;
}

.tool-tile--cobalt p {
  color: rgba(255, 248, 235, 0.88);
}

.tool-tile--clay {
  background: var(--clay);
  color: #fff8eb;
}

.tool-tile--clay p {
  color: rgba(255, 248, 235, 0.9);
}

.tool-tile--cream {
  background: var(--cream);
  color: var(--ink);
}

.tool-tile--cream p {
  color: var(--ink-soft);
}

.tool-tile__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.85rem;
  background: rgba(255, 248, 235, 0.22);
  border: 2.5px solid currentColor;
  border-radius: 0.85rem;
}

.tool-tile--cream .tool-tile__icon {
  background: color-mix(in srgb, var(--cobalt) 12%, var(--cream));
  color: var(--cobalt);
  border-color: var(--ink);
}

.tool-tile__icon i {
  width: 1.35rem;
  height: 1.35rem;
}

.tool-tile h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.tool-tile p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

/* —— Wooden shelf gallery —— */
.shelf-section {
  padding: calc(1rem + 50px) 0 calc(3.5rem + 50px);
}

.section-head--on-shelf {
  margin-bottom: 1.5rem;
}

.wood-shelf {
  max-width: calc(var(--max) + 2rem);
  margin: 0 auto;
  padding: 1.5rem 1rem 0;
  position: relative;
}

.wood-shelf__rail {
  position: absolute;
  inset: 0 4% auto;
  height: 1.1rem;
  background: linear-gradient(180deg, #8b5a3c, #6b422e);
  border: 3px solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 0 rgba(45, 26, 18, 0.2);
  z-index: 0;
}

.screen-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.75rem 0.5rem 0;
  align-items: end;
}

.shelf-phone {
  margin: 0;
  text-align: center;
}

.shelf-phone img {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  aspect-ratio: 415 / 900;
  object-fit: cover;
  object-position: top center;
  border: var(--outline);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-hard-sm);
  background: var(--cream);
  transition: transform 280ms var(--ease-spring);
}

.shelf-phone:nth-child(odd) img {
  transform: rotate(-2deg);
}

.shelf-phone:nth-child(even) img {
  transform: rotate(2.5deg);
}

.shelf-phone:hover img {
  transform: rotate(0deg) translateY(-8px);
}

.shelf-phone figcaption {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.wood-shelf__ledge {
  position: relative;
  margin-top: 40px;
  height: 3.2rem;
  background: linear-gradient(180deg, #a06b45 0%, #7a4a2e 55%, #5c3720 100%);
  border: 3.5px solid var(--ink);
  border-radius: 0.65rem;
  box-shadow: var(--shadow-hard-sm);
}

.ledge-books,
.ledge-pot {
  position: absolute;
  bottom: 100%;
  width: 2.8rem;
  height: 2.2rem;
  border: 2.5px solid var(--ink);
  border-bottom: none;
}

.ledge-books {
  left: 8%;
  background: linear-gradient(90deg, var(--cobalt) 33%, var(--cream) 33% 66%, var(--clay) 66%);
  border-radius: 0.25rem 0.25rem 0 0;
}

.ledge-pot {
  right: 10%;
  width: 2.2rem;
  height: 1.8rem;
  background: var(--clay);
  border-radius: 0.35rem 0.35rem 0 0;
}

.ledge-pot::after {
  content: "";
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.35rem;
  height: 0.9rem;
  background: var(--green);
  border-radius: 2px;
  box-shadow: 0.45rem 0.15rem 0 var(--green), -0.4rem 0.2rem 0 var(--green);
}

/* —— Download banner —— */
.get-app {
  padding: calc(1rem + 50px) 1rem calc(4rem + 50px);
}

.challenge-banner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 1.75rem;
  background: linear-gradient(135deg, var(--green) 0%, #5a7a42 100%);
  color: #fff8eb;
  border: var(--outline);
  border-radius: 1.75rem;
  box-shadow: var(--shadow-hard);
  position: relative;
  overflow: hidden;
}

.challenge-banner::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -8%;
  width: 12rem;
  height: 12rem;
  border: 4px solid rgba(255, 248, 235, 0.15);
  border-radius: 1.5rem;
  transform: rotate(18deg);
}

.challenge-banner__label {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.25rem 0.7rem;
  background: rgba(45, 26, 18, 0.25);
  border: 2px solid rgba(255, 248, 235, 0.45);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
}

.challenge-banner h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.15;
}

.challenge-banner p {
  margin: 0;
  opacity: 0.92;
  max-width: 32rem;
}

.challenge-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
  z-index: 1;
}

.challenge-banner .btn--ghost {
  color: var(--ink);
}

/* —— Footer —— */
.site-footer {
  padding: calc(2rem + 50px) 1rem calc(2.5rem + 50px);
  border-top: 3px solid color-mix(in srgb, var(--ink) 18%, transparent);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  justify-content: space-between;
}

.brand--footer {
  font-size: 0.95rem;
}

.brand--footer img {
  border-radius: 0.7rem;
  border: 2px solid var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--cobalt);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links a:hover {
  color: var(--clay);
}

.footer-copy {
  margin: 0;
  width: 100%;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* —— Modal —— */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 26, 18, 0.45);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 24rem);
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--cream);
  border: var(--outline);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-hard);
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  display: grid;
  place-items: center;
  background: var(--parchment);
}

.modal__close i {
  width: 1rem;
  height: 1rem;
}

.modal__icon {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto 0.85rem;
  display: grid;
  place-items: center;
  background: var(--cobalt);
  color: #fff8eb;
  border: var(--outline);
  border-radius: 1rem;
  box-shadow: var(--shadow-hard-sm);
}

.modal__icon i {
  width: 1.4rem;
  height: 1.4rem;
}

.modal__panel h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.modal__panel p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .hero__stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .kiln-plaque {
    transform: none;
    margin-top: 3rem;
  }

  .hero__phones {
    height: auto;
    min-height: 320px;
    order: -1;
    margin-top: 1rem;
  }

  .phone--back {
    width: 42%;
    left: 30px;
    bottom: 10%;
  }

  .phone--front {
    width: 44%;
    right: 12%;
    margin-left: 0;
  }

  .azu-bubble {
    top: auto;
    bottom: auto;
    left: 0.25rem;
  }

  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screen-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1rem;
  }

  .challenge-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .pill-nav__links {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem;
    background: var(--cream);
    border: var(--outline);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-hard-sm);
    display: none;
  }

  .pill-nav__links.is-open {
    display: flex;
  }

  .pill-nav {
    position: relative;
    border-radius: 1.25rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-actions .btn--clay {
    display: none;
  }

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

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

  .shelf-phone img {
    max-width: 160px;
  }

  .deco-tile {
    display: none;
  }

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

@media (max-width: 420px) {
  .hero__phones {
    min-height: 280px;
  }

  .phone--front {
    width: 46%;
  }

  .phone--back {
    width: 44%;
  }
}
