:root {
  --bg: #eceae4;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.84);
  --ink: #18140f;
  --muted: #473f33;
  --muted-2: #6f6658;
  --line: rgba(24, 20, 15, 0.12);
  --green: #46ae3c;
  --yellow: #f5c518;
  --cyan: #36c2dd;
  --blue: #5b8def;
  --purple: #7b53d1;
  --pink: #ff8fbe;
  --orange: #ff6a3d;
  --radius: 20px;
  --container: 1240px;
  --header-h: 82px;
  --shadow-soft: 0 18px 40px -24px rgba(24, 20, 15, 0.44);
  --font-display: "Archivo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html.js body.is-loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
a { color: inherit; }
::selection { background: var(--green); color: #fff; }

.container {
  width: calc(100% - 40px);
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}
.section {
  position: relative;
  padding: clamp(58px, 7vw, 92px) 0;
  isolation: isolate;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity .58s ease, visibility .58s ease;
}
.no-js .loader,
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader.is-hidden,
.loader.loader--force-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body:not(.is-loading) .loader {
  pointer-events: none;
}

.loader__inner {
  width: calc(100vw - 64px);
  max-width: 300px;
  display: grid;
  justify-items: center;
  gap: 22px;
}
.loader__logo {
  width: 72vw;
  max-width: 260px;
  height: auto;
}
.loader__bar {
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(24, 20, 15, .12);
}
.loader__bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ink), var(--green));
  transform-origin: left center;
  transition: width .16s ease-out;
}
.loader__text {
  margin: -8px 0 0;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  color: rgba(24, 20, 15, .62);
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: url('../images/bg-shapes.svg') center top / cover no-repeat;
  transform: scale(1.035);
  animation: bgDrift 34s ease-in-out infinite;
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(236, 234, 228, .38);
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .44;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}
@keyframes bgDrift {
  0%, 100% { transform: scale(1.035) translate3d(0,0,0); }
  50% { transform: scale(1.035) translate3d(-.8%, .5%, 0); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(24, 20, 15, .07);
  background: rgba(234, 239, 242, .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
}
.brand { flex: 0 0 auto; text-decoration: none; }
.brand img { width: clamp(196px, 23vw, 292px); height: auto; }
.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 30px);
  margin-left: .4vw;
}
.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.1;
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--green); }
.header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(24, 20, 15, .06);
}
.lang-switch button {
  min-width: 34px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .03em;
  padding: 7px 10px;
  transition: background .2s ease, color .2s ease;
}
.lang-switch button.is-active {
  color: var(--bg);
  background: var(--ink);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.1;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #eaeff2; }
.btn--outline { color: var(--ink); background: transparent; border-color: rgba(24, 20, 15, .28); }
.btn--outline:hover { border-color: var(--ink); }

.hero { padding-top: clamp(62px, 7vw, 88px); }
.hero__grid,
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.hero__content { max-width: 630px; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-family: var(--font-display);
  font-size: clamp(12px, 1.3vw, 14px);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero__title,
.copy-block h2,
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--ink);
}
.hero__title {
  margin: 0;
  font-size: clamp(52px, 7.2vw, 98px);
  line-height: .92;
}
.accent { color: var(--green); }
.hero__text,
.copy-block p {
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 19px);
  line-height: 1.6;
}
.hero__text {
  max-width: 480px;
  margin: 26px 0 32px;
}
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.hero__visual img {
  width: 100%;
  max-width: 570px;
  height: auto;
  filter: drop-shadow(0 22px 44px rgba(0,0,0,.34));
}
.scribble {
  position: absolute;
  left: -34px;
  top: 12%;
  width: 27vw;
  max-width: 150px;
  color: var(--ink);
}

.media-card {
  position: relative;
  display: flex;
  justify-content: center;
}
.media-card img,
.contact__image {
  width: 100%;
  max-width: 520px;
  height: auto;
}
.deco-square {
  position: absolute;
  left: 8%;
  bottom: 11%;
  width: 86px;
  height: 86px;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  transform: rotate(7deg);
  pointer-events: none;
}
.copy-block h2,
.section-title {
  margin: 0 0 24px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1;
}
.copy-block p {
  max-width: 480px;
  margin: 0 0 18px;
}
.text-link {
  display: inline-flex;
  margin-top: 6px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  border-bottom: 2px solid var(--green);
  padding-bottom: 3px;
}
.section-title { font-size: clamp(30px, 3.7vw, 48px); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.product-card,
.contact-form {
  border: 1px solid rgba(24, 20, 15, .09);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: none;
}
.product-card {
  padding: 18px 22px 26px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  background: var(--surface-strong);
}
.product-card__image {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.product-card__image img {
  width: auto;
  max-width: 100%;
  max-height: 150px;
}
.product-card h3,
.step h3,
.pillar h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.product-card h3 { font-size: 19px; }
.product-card p,
.step p,
.pillar p {
  margin: 0;
  color: #5d564a;
  font-size: 15px;
  line-height: 1.52;
}
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.steps::before {
  content: "";
  position: absolute;
  left: 40px;
  right: 40px;
  top: 38px;
  border-top: 2px dashed rgba(24, 20, 15, .22);
}
.step { position: relative; z-index: 1; }
.step__icon,
.pillar__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
}
.step__icon img,
.pillar__icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.step__icon--yellow,
.pillar__icon--yellow { background: var(--yellow); }
.step__icon--green,
.pillar__icon--green { background: #74cf63; }
.step__icon--pink { background: var(--pink); }
.step__icon--blue { background: var(--blue); }
.step__icon--orange { background: var(--orange); }
.pillar__icon--cyan { background: var(--cyan); }
.pillar__icon--purple { background: var(--purple); }
.step__num {
  display: block;
  margin-bottom: 3px;
  color: #9a9183;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
}
.step h3 { font-size: 18px; }
.step p { max-width: 190px; font-size: 14px; }
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 34px);
}
.pillar h3 { font-size: 20px; }

.split-grid--contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.contact__image { margin-top: 16px; width: 100%; max-width: 440px; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 3vw, 32px);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.form-field label {
  display: block;
  margin: 0 0 7px;
  color: rgba(24, 20, 15, .72);
  font-size: 13px;
  font-weight: 700;
}
.fv-input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(24, 20, 15, .14);
  border-radius: 12px;
  outline: 0;
  background: rgba(255,255,255,.54);
  color: var(--ink);
  font-size: 16px;
  padding: 14px 16px;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
textarea.fv-input { min-height: 128px; resize: vertical; }
.fv-input::placeholder { color: #8c857a; }
.fv-input:focus {
  border-color: rgba(24, 20, 15, .65);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(70,174,60,.12);
}
.form-field.has-error .fv-input {
  border-color: #b42318;
  box-shadow: 0 0 0 4px rgba(180,35,24,.08);
}
.field-error {
  display: block;
  min-height: 18px;
  margin-top: 4px;
  color: #b42318;
  font-size: 13px;
}
.form-submit { align-self: flex-start; margin-top: 2px; border: 0; }
.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.form-status.is-success { color: #1d6b24; }
.form-status.is-error { color: #b42318; }

.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(24, 20, 15, .1);
  padding: 34px 0;
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__inner img { width: 58vw; max-width: 212px; height: auto; }
.footer__copy { text-align: right; color: #7a7264; }
.footer__copy p { margin: 0; font-size: 14px; line-height: 1.45; }
.footer__copy p + p { margin-top: 6px; }

.no-js .reveal {
  opacity: 1;
  transform: none;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity .68s ease, transform .68s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

:focus-visible {
  outline: 3px solid rgba(70,174,60,.55);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  :root { --header-h: 74px; }
  .container { width: calc(100% - 32px); max-width: var(--container); }
  .main-nav { display: none; }
  .hero__grid,
  .split-grid,
  .split-grid--contact { grid-template-columns: 1fr; }
  .hero__content { max-width: 720px; }
  .hero__visual { order: -1; }
  .hero__visual img { width: 78vw; max-width: 520px; }
  .scribble { left: 7%; }
  .media-card { order: -1; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 22px; }
  .steps::before { display: none; }
  .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .section { padding: 52px 0; }
  .header__inner { gap: 12px; }
  .brand img { width: 44vw; max-width: 184px; }
  .header__actions { gap: 8px; }
  .header__cta { display: none; }
  .lang-switch button { min-width: 31px; padding: 7px 8px; }
  .hero { padding-top: 40px; }
  .hero__visual { margin-top: -6px; }
  .hero__visual img { width: 96vw; max-width: 460px; }
  .hero__title { font-size: clamp(48px, 15vw, 74px); }
  .button-row .btn { width: 100%; }
  .product-grid,
  .steps,
  .pillar-grid,
  .form-row { grid-template-columns: 1fr; }
  .product-card { padding: 18px 18px 24px; }
  .product-card__image { height: 136px; }
  .step p { max-width: none; }
  .media-card img, .contact__image { width: 100%; max-width: 440px; }
  .deco-square { width: 64px; height: 64px; }
  .footer__inner { display: grid; justify-items: start; }
  .footer__copy { text-align: left; }
}

@media (max-width: 420px) {
  .container { width: calc(100% - 24px); max-width: var(--container); }
  .brand img { width: 154px; }
  .lang-switch button { font-size: 11px; min-width: 28px; padding-inline: 7px; }
  .hero__title { letter-spacing: -.045em; }
  .btn { width: 100%; padding-inline: 18px; }
  .contact-form { border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
  .page-bg { animation: none; }
  .reveal { opacity: 1; transform: none; }
}


/* Sprint 1.2 Safari emergency safety overrides */
body{visibility:visible!important;opacity:1!important;}
main,.site-header,.site-footer{visibility:visible!important;}
.loader{animation:flavouritLoaderAutoHide .5s ease 2.8s forwards;}
@keyframes flavouritLoaderAutoHide{to{opacity:0;visibility:hidden;pointer-events:none;}}
@supports (-webkit-touch-callout: none){
  .page-bg{animation:none!important;transform:none!important;}
  .grain{display:none!important;}
  .loader__bar span{transition:none;}
}
