:root {
  color-scheme: light;
  --anchor-offset: 1rem;
  --color-cream: #faf3ee;
  --color-cream-light: #fffaf7;
  --color-hero-start: #f6e0dc;
  --color-hero-end: #f3d7d0;
  --color-applications: #fff8f5;
  --color-vision: #f9e9e3;
  --color-values: #fffaf7;
  --color-contact: #f8ded9;
  --color-rose: #f5ddd8;
  --color-rose-strong: #efc9c3;
  --color-brown: #4a2020;
  --color-body: #321f20;
  --color-muted: #674e50;
  --color-button: #592d31;
  --color-button-hover: #442226;
  --color-white: #fff;
  --shadow-card: 0 14px 36px rgb(68 42 48 / 8%), 0 3px 10px rgb(68 42 48 / 4%);
  --radius-card: 1.75rem;
  --content-width: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

section[id] {
  scroll-margin-top: var(--anchor-offset);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--color-cream);
  color: var(--color-body);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

a {
  color: var(--color-button);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-button-hover);
}

a:focus-visible {
  outline: 3px solid #8a4d56;
  outline-offset: 4px;
  border-radius: 0.25rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--color-brown);
  font-family: inherit;
  font-weight: 750;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.15rem, 8vw, 3.5rem);
  letter-spacing: -0.04em;
}

.hero-copy h1 span {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: var(--color-button);
  font-style: italic;
  font-weight: 750;
}

h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.5rem;
}

.skip-link {
  position: absolute;
  z-index: 30;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  border-radius: 0.75rem;
  background: var(--color-white);
  color: var(--color-brown);
  box-shadow: var(--shadow-card);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: static;
  z-index: 20;
  border-bottom: 1px solid rgb(117 78 84 / 12%);
  background: rgb(255 250 247 / 92%);
  box-shadow: 0 0.35rem 1.2rem rgb(68 42 48 / 7%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-inner,
.section-shell,
.footer-inner {
  width: min(100% - 2rem, var(--content-width));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding-block: 0.8rem 0.65rem;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-brown);
  text-decoration: none;
}

.brand img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.brand-tagline {
  margin-top: 0.2rem;
  color: var(--color-muted);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.main-nav {
  width: 100%;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: var(--color-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.main-nav a:hover {
  background: var(--color-rose);
  color: var(--color-brown);
}

.main-nav a[aria-current="page"] {
  background: var(--color-rose-strong);
  color: var(--color-brown);
}

.hero {
  width: 100%;
  padding-block: 2.4rem 2rem;
  background: linear-gradient(108deg, var(--color-hero-start), #fff2ee 52%, var(--color-hero-end));
  text-align: center;
}

.hero-grid {
  width: min(100% - 2rem, var(--content-width));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 1.5rem;
}

.hero-avatar {
  display: grid;
  width: 8.5rem;
  aspect-ratio: 1;
  padding: 0.32rem;
  place-items: center;
  overflow: hidden;
  border: 3px solid var(--color-white);
  border-radius: 50%;
  background: linear-gradient(145deg, #edc9c2, #fff7f3 68%);
  box-shadow: 0 0.7rem 1.4rem rgb(71 35 38 / 18%);
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.hero-copy {
  width: 100%;
  min-width: 0;
  max-width: 41rem;
}

.hero-copy h1 {
  font-size: clamp(1.75rem, 7vw, 2rem);
}

.hero-copy h1 span {
  padding: 0;
  font-size: 0.96em;
}

.eyebrow {
  margin-bottom: 0.65rem;
  color: #80514f;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-intro {
  max-width: 37rem;
  margin: 0 auto;
  font-size: clamp(1rem, 2.8vw, 1.15rem);
}

.hero-intro p:last-child {
  margin-bottom: 0;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button-primary svg {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
}

.button-primary {
  background: var(--color-button);
  color: var(--color-white);
  box-shadow: 0 8px 18px rgb(86 53 59 / 18%);
}

.button-primary:hover {
  background: var(--color-button-hover);
  color: var(--color-white);
}

.button-secondary {
  border-color: var(--color-rose-strong);
  background: var(--color-white);
  color: var(--color-button);
}

.button-secondary:hover {
  background: var(--color-rose);
}

.hero-art {
  width: min(100%, 36rem);
}

.hero-art img {
  width: 100%;
  filter: drop-shadow(0 0.8rem 1.3rem rgb(70 45 48 / 12%));
}

.wave {
  height: 2.6rem;
  margin-bottom: -1px;
  line-height: 0;
}

.wave svg {
  width: 100%;
  height: 100%;
}

.wave-fill {
  fill: currentColor;
}

.hero + .wave {
  height: 3.2rem;
}

.wave-edge {
  fill: none;
  stroke: #fffdfb;
  stroke-width: 2.5px;
  vector-effect: non-scaling-stroke;
}

.wave-rose {
  background: var(--color-hero-end);
  color: var(--color-applications);
}

.wave-cream {
  background: var(--color-applications);
  color: var(--color-vision);
}

.wave-values {
  background: var(--color-vision);
  color: var(--color-values);
}

.wave-contact {
  background: var(--color-values);
  color: var(--color-values);
  height: 1.5rem;
}

.section-tint {
  background: var(--color-applications);
}

.applications,
.values {
  width: 100%;
  padding-block: 2rem 3rem;
}

.applications > .section-heading,
.applications > .app-grid {
  width: min(100% - 2rem, var(--content-width));
  margin-inline: auto;
}

.hero + .wave + .applications {
  padding-top: 1.4rem;
}

.section-heading {
  max-width: 45rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 0;
}

.app-grid {
  display: grid;
  gap: 1rem;
}

.app-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 1.2rem;
  min-width: 0;
  overflow: hidden;
  padding: 1.4rem;
  border: 1px solid rgb(255 255 255 / 88%);
  border-radius: 2rem;
  background: linear-gradient(135deg, #f8e9eb, #fff7f6);
  box-shadow: var(--shadow-card);
}

.app-card-sos {
  background: linear-gradient(135deg, #fff0e7, #fff8f2);
}

.app-icon {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 0.7rem;
  place-items: center;
  border-radius: 1.1rem;
}

.app-icon svg {
  width: 1.7rem;
  height: 1.7rem;
}

.app-icon-lila {
  background: #f0dde3;
  color: #633f51;
}

.app-icon-sos {
  background: #ffe7d7;
  color: #774737;
}

.app-copy {
  min-width: 0;
}

.app-copy p:last-child {
  margin-bottom: 0;
}

.app-type {
  margin-bottom: 0.45rem;
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-card h3 {
  margin-bottom: 0.65rem;
  font-size: 1.55rem;
}

.app-copy .status-badge {
  margin-bottom: 0.85rem;
}

.app-copy > p:not(.app-type):not(.status-badge) {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.app-copy > .button {
  margin-bottom: 0.25rem;
}

.app-visual {
  width: min(62%, 10.5rem);
  margin: 0 auto 0.35rem;
  text-align: center;
}

.app-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0.4rem 0.55rem rgb(49 32 34 / 13%));
}

.app-visual figcaption {
  margin-top: 0.25rem;
  color: var(--color-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.status-badge {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.22rem 0.65rem;
  border: 1px solid #d8b58c;
  border-radius: 999px;
  background: #fff7e9;
  color: #563b1c;
  font-size: 0.86rem;
  font-weight: 750;
}

.safety-note {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-left: 3px solid #9e5b50;
  border-radius: 0 0.65rem 0.65rem 0;
  background: #fff7f2;
  color: var(--color-brown);
  font-size: 0.92rem;
  font-weight: 650;
}

.vision {
  width: 100%;
  padding-block: 2.5rem;
  background: var(--color-vision);
}

.vision-grid {
  width: min(100% - 2rem, var(--content-width));
  margin-inline: auto;
  display: grid;
  align-items: center;
  gap: 1.75rem;
}

.vision-art {
  width: min(100%, 42rem);
  margin-inline: auto;
}

.vision-art img {
  width: 100%;
  filter: drop-shadow(0 0.7rem 1.2rem rgb(70 45 48 / 12%));
}

.vision-copy {
  max-width: 38rem;
}

.vision-copy p:last-child {
  margin-bottom: 0;
}

.values {
  background: var(--color-values);
  border-block: 1px solid rgb(117 78 84 / 10%);
}

.value-grid {
  width: min(100% - 2rem, var(--content-width));
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.value-card {
  min-width: 0;
  padding: 1.25rem 1rem;
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 2rem;
  background: linear-gradient(145deg, #fffdfb, #fff5f1);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.value-mark {
  width: 4.3rem;
  height: auto;
  margin: 0 auto 0.5rem;
  object-fit: contain;
}

.value-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}

.value-card p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.contact {
  width: 100%;
  padding-block: 1rem;
  background: var(--color-values);
}

.contact-card {
  display: grid;
  width: min(100% - 2rem, var(--content-width));
  grid-template-columns: 3.5rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem 1.4rem;
  margin-inline: auto;
  padding: 1rem 1.1rem;
  border: 1px solid rgb(255 255 255 / 85%);
  border-radius: 3rem;
  background: linear-gradient(110deg, #f7dcd8, #fbe9e4);
  text-align: left;
  box-shadow: var(--shadow-card);
}

.contact-icon {
  width: 3.5rem;
  height: auto;
  object-fit: contain;
}

.contact-heading .eyebrow {
  margin-bottom: 0.3rem;
}

.contact-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.contact-message {
  grid-column: 2;
  margin-bottom: 0;
  font-size: 1rem;
}

.contact-message p {
  margin-bottom: 0.75rem;
}

.site-footer {
  border-top: 1px solid rgb(117 78 84 / 14%);
  background: #f6eae4;
}

.footer-inner {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  padding-block: 1.5rem;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  color: var(--color-brown);
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-brand img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.footer-brand-copy {
  display: grid;
  line-height: 1.15;
  text-align: left;
}

.footer-brand-copy > span:first-child {
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: 1.3em;
  font-weight: 600;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
}

.footer-inner nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.4rem 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.legal-page {
  max-width: 54rem;
  padding-block: 2.5rem 4rem;
}

.legal-notice {
  margin-bottom: 2rem;
  padding: 1rem 1.1rem;
  border: 1px solid #b77a4b;
  border-radius: 1rem;
  background: #fff6e8;
  color: #49301b;
}

.legal-page h1 {
  margin-bottom: 2rem;
}

.legal-page section {
  margin-bottom: 1.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgb(117 78 84 / 14%);
}

.legal-page section h2 {
  font-size: 1.55rem;
}

.legal-page section p {
  margin-bottom: 0;
}

.legal-page > .button {
  margin-top: 0.4rem;
}

.not-found {
  display: grid;
  min-height: min(70vh, 42rem);
  place-items: center;
  padding-block: 3rem;
}

.not-found-card {
  width: min(100%, 44rem);
  padding: clamp(2rem, 7vw, 4rem);
  border: 1px solid rgb(255 255 255 / 88%);
  border-radius: 2.5rem;
  background: linear-gradient(135deg, #f8e9eb, #fff7f6);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.not-found-card p:not(.eyebrow) {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

@media (min-width: 480px) {
  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-card {
    padding: 1.65rem;
  }

  .not-found-card {
    border-radius: 3rem;
  }

  .contact-card {
    padding: 1.8rem 2.5rem;
  }
}

@media (min-width: 760px) {
  .header-inner {
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.75rem;
  }

  .main-nav {
    width: auto;
    max-width: 65%;
  }

  .main-nav ul {
    justify-content: flex-end;
  }

  .main-nav a {
    padding-inline: 0.55rem;
  }

  .brand img {
    width: 3.65rem;
    height: 3.65rem;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .hero {
    padding-block: 3rem 2rem;
  }

  .hero-grid {
    grid-template-columns: minmax(10rem, 0.7fr) minmax(0, 1.3fr);
    justify-items: stretch;
    align-items: center;
    gap: 1rem 1.5rem;
    text-align: left;
  }

  .hero-copy h1 {
    font-size: clamp(1.8rem, 4.2vw, 2.15rem);
  }

  .hero-avatar {
    width: 11rem;
    justify-self: center;
  }

  .hero-intro {
    margin-inline: 0;
  }

  .hero-art {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 36rem);
  }

  .applications {
    padding-block: 1.6rem 3rem;
  }

  .values {
    padding-block: 1.8rem 2.8rem;
  }

  .hero + .wave + .applications {
    padding-top: 1.2rem;
  }

  .app-grid {
    gap: 1.25rem;
  }

  .app-card {
    display: block;
    min-height: 28rem;
    padding: 1.75rem;
  }

  .app-copy {
    position: relative;
    z-index: 1;
    width: 53%;
  }

  .app-visual {
    position: absolute;
    right: 0.85rem;
    bottom: 0.45rem;
    width: min(40%, 13.125rem);
    margin: 0;
    transform: rotate(3deg);
  }

  .app-icon {
    width: 4.75rem;
    height: 4.75rem;
    border-radius: 1.45rem;
  }

  .app-icon svg {
    width: 2.4rem;
    height: 2.4rem;
  }

  .app-card h3 {
    font-size: 1.8rem;
  }

  .vision {
    padding-block: 2.5rem;
  }

  .vision-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
    gap: 2rem;
  }

  .vision-art {
    width: 100%;
  }

  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .value-card {
    padding: 1.4rem 1rem;
  }

  .contact {
    padding-block: 1.25rem;
  }

  .contact-card {
    grid-template-columns: auto minmax(0, 1.2fr) minmax(13rem, 0.8fr);
    gap: 1rem 1.4rem;
    padding: 1.2rem 2rem;
  }

  .contact-icon {
    width: 4.4rem;
  }

  .contact-message {
    grid-column: auto;
    padding-left: 1rem;
    border-left: 1px solid rgb(117 78 84 / 35%);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    text-align: left;
  }

  .footer-brand {
    min-width: 0;
    justify-self: start;
  }

  .footer-inner nav {
    min-width: 0;
    justify-content: center;
  }

  .footer-note {
    justify-self: end;
  }
}

@media (min-width: 768px) {
  :root {
    --anchor-offset: 8rem;
  }

  .site-header {
    position: sticky;
    top: 0;
  }
}

@media (min-width: 900px) {
  :root {
    --anchor-offset: 6rem;
  }

  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .app-card {
    min-height: 28rem;
    padding: 1.65rem 1.65rem 1.9rem;
  }

  .app-copy {
    width: 45%;
  }

  .app-visual {
    right: 1.05rem;
    width: min(45%, 13.75rem);
  }
}

@media (min-width: 960px) {
  .hero {
    padding-block: 1.9rem 1.8rem;
  }

  .hero-grid {
    grid-template-columns: minmax(12rem, 0.65fr) minmax(29rem, 1.8fr) minmax(14rem, 0.85fr);
    justify-items: stretch;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
  }

  .hero-avatar {
    width: 12rem;
    justify-self: start;
  }

  .hero-copy {
    width: 100%;
    align-self: center;
    max-width: none;
  }

  .hero-copy h1 {
    margin-bottom: 0.9rem;
    font-size: clamp(1.85rem, 2.35vw, 2.15rem);
    line-height: 1.12;
  }

  .hero-copy h1 span {
    display: inline;
    width: auto;
    max-width: none;
    padding-inline: 0.04em;
  }

  .hero-art {
    grid-column: auto;
    justify-self: center;
    width: 100%;
    align-self: center;
  }

  .hero + .wave + .applications {
    padding-top: 1.2rem;
  }
}

@media (min-width: 960px) {
  .value-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .hero-grid {
    grid-template-columns: minmax(13.5rem, 0.75fr) minmax(32rem, 2fr) minmax(19rem, 1fr);
    gap: 0.75rem;
  }

  .hero-avatar {
    width: 13.5rem;
  }

  .hero-art {
    width: 100%;
  }

  .app-card {
    min-height: 28rem;
  }
}

@media (max-width: 759px) {
  .wave {
    height: 2rem;
  }

  .wave-contact {
    height: 1.25rem;
  }

  .hero + .wave {
    height: 2.2rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
