@font-face {
  font-family: Barlow;
  src: url('assets/fonts/Barlow-ExtraBold.ttf') format('truetype');
  font-style: normal; font-weight: 800; font-display: swap;
}
@font-face {
  font-family: Yinmar;
  src: url('assets/fonts/Yinmar.ttf') format('truetype');
  font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('assets/fonts/BarlowCondensed-Medium.ttf') format('truetype');
  font-style: normal; font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Patrick Hand';
  src: url('assets/fonts/PatrickHand-Regular.ttf') format('truetype');
  font-style: normal; font-weight: 400; font-display: swap;
}

:root {
  /* White and deep green lead; warm yellow and peach complement the orange cat. */
  --paper: #ffffff;
  --ink: #114900;
  --accent: var(--sand);
  --halo: #f1d9c5;
  --circle: #fbf5cc;
  --sand: #e6dc9e;
  --grain-opacity: .11;
  --grain-speed: .72s;
  --paw-duration: .72s;
  --grain-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='discrete' tableValues='0 0 1 1'/%3E%3CfeFuncG type='discrete' tableValues='0 0 1 1'/%3E%3CfeFuncB type='discrete' tableValues='0 0 1 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)' opacity='1'/%3E%3C/svg%3E");
  --line: rgb(17 73 0 / 24%);
  --body-font: Yinmar, 'Barlow Condensed', sans-serif;
  --heading-font: Barlow, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body {
  margin: 0; padding: 12px; color: var(--ink);
  font-family: var(--body-font); font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
::selection { background: var(--halo); color: var(--ink); }
.page-shell {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - 24px); border-radius: 24px;
  background: var(--paper); display: flex; flex-direction: column;
}
.site-header {
  height: 100px; flex: none; display: flex; align-items: center; gap: 42px;
  padding: 0 38px; position: relative; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 15px; margin-right: auto; }
.brand-logo { display: block; width: 58px; height: 58px; flex: none; }
.brand-caption {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 500;
  letter-spacing: 1.1px; font-size: 12px; line-height: 1.4;
}
.language-toggle {
  flex: none; min-width: 46px; height: 36px; padding: 0 10px;
  border: 1px solid var(--ink); border-radius: 999px; background: var(--paper);
  font-family: 'Barlow Condensed', sans-serif; font-size: 16px; letter-spacing: 1px;
  transition: background .2s;
}
.language-toggle:hover { background: var(--sand); }
.desktop-nav { display: flex; align-items: center; gap: 27px; }
.nav-link {
  position: relative; padding: 7px 0; background: none;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 500;
  font-size: 17px; line-height: 1; text-transform: uppercase; letter-spacing: 1.4px;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; height: 2px; left: 0; right: 0;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .24s ease;
}
.nav-link:hover::after, .nav-link.is-current::after { transform: scaleX(1); }
.nav-arrow { font-family: Arial, sans-serif; margin-left: 2px; font-size: 13px; }
.menu-toggle, .mobile-nav { display: none; }
.hero {
  position: relative; flex: 1; min-height: 540px; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto;
}
.hero-heading { position: relative; z-index: 5; text-align: center; padding: 8px 28px 0; pointer-events: none; }
.hero-heading { grid-area: 1 / 1; min-width: 0; }
h1 {
  font-family: var(--heading-font); font-weight: 800; letter-spacing: .01em;
  word-spacing: .08em; line-height: 1.03; font-size: clamp(48px, 7.1vw, 136px);
  margin: 0; white-space: nowrap; text-transform: uppercase;
}
h1 span { display: inline-block; }
.hero-kicker {
  margin: 0 0 14px; font-family: var(--heading-font); font-weight: 800;
  font-size: clamp(18px, 2vw, 31px); line-height: 1.3;
}
.scene {
  --cat-width: clamp(350px, calc(27vw + 285px), 660px);
  --cat-bottom: 27px;
  --cat-ratio: .510949;
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.sun-disc {
  position: absolute; z-index: 0; left: 50%; bottom: -100px;
  width: clamp(360px, 39vw, 600px); aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%; background: var(--circle);
}
.orbit {
  position: absolute; z-index: 0; left: 50%; bottom: -108px;
  width: clamp(376px, calc(39vw + 16px), 616px); aspect-ratio: 1;
  transform: translateX(-50%) rotate(-15deg); border-radius: 50%;
  border: 1px solid rgb(230 220 158 / 55%);
}
.orbit-two {
  bottom: -120px; width: clamp(400px, calc(39vw + 40px), 640px);
  transform: translateX(-50%) rotate(15deg); border-style: dashed; opacity: .4;
}
.ground {
  grid-area: 3 / 1; position: relative; z-index: 1;
  align-self: stretch; background: var(--sand);
}
/* The solid band shares the text row; its curved edge stays above that row.
   Content height, wrapping and font loading therefore cannot cut into the text. */
.ground::before {
  content: ''; position: absolute; bottom: calc(100% - 1px); left: -15%;
  width: 130%; height: 40px; background: var(--sand);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  border-top: 1px solid var(--ink);
}
.hero-cat {
  position: absolute; z-index: 4; bottom: var(--cat-bottom); left: 50%;
  transform: translateX(-50%); width: var(--cat-width); height: auto;
  filter: drop-shadow(0 8px 0 rgb(17 73 0 / 7%));
}
.cat-shadow {
  position: absolute; z-index: 3; left: 50%; bottom: calc(var(--cat-bottom) - 2px);
  width: calc(var(--cat-width) * .88); height: 22px;
  background: rgb(17 73 0 / 10%); border-radius: 50%;
  transform: translateX(-50%) rotate(-2deg); filter: blur(6px);
}
.sleep-notes {
  position: absolute; z-index: 5; left: 50%;
  bottom: calc(var(--cat-bottom) + var(--cat-width) * var(--cat-ratio) * .82 + 18px);
  width: 110px; height: 110px; transform: translateX(-50%);
}
.sleep-notes span { position: absolute; font-family: 'Patrick Hand', sans-serif; font-size: 23px; animation: sleep 3.5s ease-in-out infinite; }
.sleep-notes span:nth-child(1) { left: 5px; bottom: 0; transform: rotate(-15deg); }
.sleep-notes span:nth-child(2) { left: 43px; bottom: 25px; font-size: 30px; animation-delay: -1.1s; transform: rotate(9deg); }
.sleep-notes span:nth-child(3) { left: 77px; bottom: 58px; font-size: 40px; animation-delay: -2.3s; transform: rotate(16deg); }
.spark { position: absolute; z-index: 1; display: block; line-height: 1; animation: turn 35s linear infinite; }
.spark-one { right: 10%; top: 220px; font-size: 77px; color: var(--accent); }
.spark-two { right: 22%; top: 312px; font-size: 43px; }
.spark-three { left: 30%; top: 230px; font-size: 31px; color: var(--accent); }
.spark-left-large { left: 8%; top: 55%; font-size: 67px; color: var(--accent); animation-direction: reverse; }
.spark-left-small { left: 24%; top: 73%; font-size: 37px; animation: twinkle 5.5s ease-in-out infinite; }
.doodle { position: absolute; width: 76px; z-index: 2; }
.doodle path { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.doodle-one { right: 7%; top: 350px; transform: rotate(-10deg); animation: float-doodle 7s ease-in-out infinite; }
.doodle-two { left: 31%; bottom: 310px; width: 38px; transform: rotate(-20deg); animation: twinkle 5s ease-in-out infinite; }
.doodle-left-waves { left: 12%; top: 37%; width: 84px; transform: rotate(-9deg); animation: float-doodle 6.3s ease-in-out -2s infinite; }
.doodle-left-loop { left: 19%; top: 55%; width: 70px; transform: rotate(12deg); animation: sway-doodle 8s ease-in-out -3s infinite; }
.doodle-left-loop path { stroke: var(--accent); }
.hero-bottom {
  grid-area: 3 / 1; position: relative; z-index: 8; padding: 24px 38px 20px;
  display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 20px;
}
.intro-copy { max-width: 260px; }
.tiny-label { font-family: 'Barlow Condensed', sans-serif; font-weight: 500; letter-spacing: 1.8px; font-size: 11px; }
.intro-copy p { font-family: var(--body-font); font-size: 16px; line-height: 1.4; margin: 10px 0 0; }
.project-cta {
  justify-self: end; display: flex; align-items: center; gap: 18px;
  background: none; text-align: left; font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500; font-size: 21px; line-height: 1.1; letter-spacing: 1px;
  text-transform: uppercase; padding: 0;
}
.circle-arrow {
  display: grid; place-items: center; width: 62px; height: 62px;
  border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper);
  font-family: Arial, sans-serif; font-size: 36px; transition: background .25s, transform .25s;
}
.project-cta:hover .circle-arrow { background: var(--ink); color: var(--paper); transform: rotate(45deg); }
.site-footer {
  position: relative; z-index: 9; display: flex; justify-content: space-between;
  align-items: center; flex: none; gap: 15px; min-height: 46px;
  padding: 0 38px; background: var(--ink); color: var(--paper);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 500;
  font-size: 10px; letter-spacing: 1.5px;
}
.footer-index { margin-left: 20px; }
.page-dialog {
  color: var(--ink); border: 1.5px solid var(--ink); border-radius: 20px;
  background: var(--paper); padding: 52px 38px 36px;
  width: min(520px, calc(100vw - 36px)); box-shadow: 9px 9px 0 var(--halo);
}
.page-dialog::backdrop { background: rgb(17 73 0 / 40%); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; right: 17px; top: 10px; background: none; font-family: Arial, sans-serif; font-size: 32px; padding: 5px 8px; line-height: 1; }
.dialog-eyebrow { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: 2px; }
.page-dialog h2 { font-family: var(--heading-font); font-size: clamp(34px, 6vw, 54px); letter-spacing: -2px; margin: 18px 0 14px; line-height: 1; }
.page-dialog p { font-family: var(--body-font); font-size: 19px; line-height: 1.5; margin: 0 0 25px; }
.dialog-back {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; padding: 15px 17px; background: var(--halo); border-radius: 4px;
  text-align: left; font-family: 'Barlow Condensed', sans-serif; font-size: 17px; letter-spacing: .5px;
}
.dialog-back span { font-family: Arial, sans-serif; font-size: 23px; }
.film-grain {
  position: fixed; inset: 0; z-index: 1000; overflow: hidden;
  pointer-events: none; opacity: var(--grain-opacity);
}
.film-grain::before, .page-dialog::after {
  content: ''; position: absolute; inset: -24%; pointer-events: none;
  background-image: var(--grain-image); background-size: 180px 180px;
  animation: film-grain var(--grain-speed) steps(1, end) infinite; will-change: transform;
}
/* A modal is in the browser's top layer, so its own overlay continues the grain. */
.page-dialog { overflow: hidden; }
.page-dialog::after { z-index: 5; opacity: var(--grain-opacity); }
.paw-trail { position: fixed; inset: 0; z-index: 900; overflow: hidden; pointer-events: none; }
.paw-print {
  position: absolute; width: 25px; height: 29px; fill: var(--ink); opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--paw-angle));
  animation: paw-fade var(--paw-duration) linear forwards; pointer-events: none;
}
.paw-print.is-retiring { animation: paw-exit .08s linear forwards; }
@keyframes paw-exit {
  from { opacity: var(--paw-exit-opacity); }
  to { opacity: 0; }
}
@keyframes film-grain {
  0%, 100% { transform: translate3d(0, 0, 0); }
  12.5% { transform: translate3d(-3%, -4%, 0); }
  25% { transform: translate3d(5%, 2%, 0); }
  37.5% { transform: translate3d(-6%, 5%, 0); }
  50% { transform: translate3d(3%, -6%, 0); }
  62.5% { transform: translate3d(-5%, -2%, 0); }
  75% { transform: translate3d(6%, 4%, 0); }
  87.5% { transform: translate3d(2%, -3%, 0); }
}
@keyframes paw-fade {
  0% { opacity: 0; scale: .88; }
  3% { opacity: .38; scale: 1; }
  57% { opacity: .30; scale: 1; }
  100% { opacity: 0; scale: 1; }
}
@keyframes float-doodle { 0%, 100% { translate: 0 0; } 50% { translate: 4px -9px; } }
@keyframes sway-doodle { 0%, 100% { translate: 0 0; rotate: -6deg; } 50% { translate: -5px 8px; rotate: 6deg; } }
@keyframes twinkle { 0%, 100% { opacity: .55; scale: .9; } 50% { opacity: 1; scale: 1.08; } }
.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: fixed; top: -80px; left: 26px; background: var(--paper); padding: 14px; z-index: 100; border: 1px solid var(--ink); }
.skip-link:focus { top: 20px; }
.back-to-top {
  position: fixed; z-index: 1100; right: clamp(16px, 2vw, 28px);
  bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 16px), calc(var(--back-to-top-footer-offset, 0px) + 16px));
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border: 1.5px solid var(--ink); border-radius: 50%;
  background: var(--paper); color: var(--ink); box-shadow: 0 4px 15px rgb(17 73 0 / 14%);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(10px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background .2s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.back-to-top.is-visible:hover { background: var(--circle); transform: translateY(-3px); }
.back-to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
@keyframes sleep { 0%, 100% { opacity: .35; translate: 0 5px; } 50% { opacity: 1; translate: 0 -6px; } }
@keyframes turn { to { rotate: 360deg; } }
[data-motion='off'] *, [data-motion='off'] *::before, [data-motion='off'] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

@media (min-width: 1600px) {
  .hero { min-height: 660px; }
  .hero-heading { padding-top: 8px; }
  .hero-bottom { padding-bottom: 25px; }
  .spark-one, .spark-three { top: 280px; }
  .spark-two { top: 390px; }
  .doodle-one { top: 420px; }
}
@media (max-width: 1050px) {
  .site-header { padding: 0 26px; gap: 24px; height: 86px; }
  .brand-caption { display: none; }
  .desktop-nav { gap: 21px; }
  .hero-heading { padding-top: 8px; }
  .hero { min-height: 560px; }
  .scene { --cat-bottom: 80px; }
  h1 { font-size: 7.2vw; }
  .hero-bottom { padding-inline: 26px; }
  .intro-copy p { font-size: 16px; }
  .project-cta { font-size: 18px; gap: 10px; }
  .circle-arrow { width: 50px; height: 50px; font-size: 30px; }
  .site-footer { padding: 0 26px; letter-spacing: 1px; }
  .footer-index { margin-left: 9px; }
  .spark-one { right: 7%; }
  .doodle-one { right: 4%; }
}
@media (max-width: 700px) {
  body { padding: 8px; }
  .page-shell { border-radius: 19px; min-height: calc(100svh - 16px); }
  .site-header { padding: 0 21px; height: 78px; gap: 18px; }
  .brand-logo { width: 50px; height: 50px; }
  .brand-caption { display: block; font-size: 10px; line-height: 1.5; }
  .language-toggle { min-width: 42px; height: 34px; }
  .brand { gap: 12px; }
  .desktop-nav { display: none; }
  .menu-toggle { width: 28px; height: 40px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0; background: none; }
  .menu-toggle span { height: 1.5px; width: 25px; background: var(--ink); transition: transform .2s; }
  .menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .mobile-nav {
    position: absolute; z-index: 15; top: 78px; left: 0; right: 0; padding: 30px 25px;
    background: var(--paper); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
    box-shadow: 0 15px 20px rgb(17 73 0 / 10%); display: grid; gap: 16px;
  }
  .mobile-nav a, .mobile-nav button { display: block; background: none; padding: 7px 0; text-align: left; font-family: var(--heading-font); font-size: 31px; letter-spacing: -1px; }
  .mobile-nav span { display: inline-block; width: 34px; font-family: 'Barlow Condensed', sans-serif; font-size: 13px; letter-spacing: 0; vertical-align: middle; }
  .mobile-nav .mobile-nav-label { display: inline; width: auto; font: inherit; letter-spacing: inherit; vertical-align: baseline; }
  .hero { min-height: 625px; }
  .hero-heading { padding: 10px 16px 0; }
  h1 { font-size: 12vw; line-height: .94; white-space: normal; }
  h1 span { display: block; }
  .hero-kicker { font-size: 17px; }
  .scene { --cat-width: min(90vw, 420px); --cat-bottom: 115px; }
  .sun-disc { width: 330px; bottom: -18px; }
  .orbit { width: 346px; bottom: -26px; }
  .orbit-two { width: 370px; bottom: -38px; }
  .ground::before { height: 32px; left: -45%; width: 190%; }
  .sleep-notes { left: 48%; transform: translateX(-50%) scale(.7); }
  .cat-shadow { height: 18px; }
  .spark-one { right: 6%; top: 225px; font-size: 48px; }
  .spark-two { right: 6%; top: 350px; font-size: 30px; }
  .spark-three { display: none; }
  .doodle-one { right: 7%; top: 290px; width: 60px; }
  .doodle-two { left: 16%; bottom: 290px; width: 25px; }
  .spark-left-large { left: 8%; top: 270px; font-size: 37px; }
  .spark-left-small, .doodle-left-loop { display: none; }
  .doodle-left-waves { left: 8%; top: 215px; width: 55px; }
  .hero-bottom { padding: 24px 21px 20px; grid-template-columns: 1fr 1fr; gap: 10px; }
  .tiny-label { font-size: 9px; letter-spacing: 1px; }
  .intro-copy p { font-size: 15px; margin-top: 7px; line-height: 1.4; }
  .intro-copy p br { display: none; }
  .project-cta { font-size: 16px; gap: 9px; align-self: end; }
  .circle-arrow { width: 43px; height: 43px; font-size: 28px; flex: none; }
  .site-footer { min-height: 44px; padding: 0 21px; font-size: 8px; letter-spacing: .8px; gap: 8px; }
  .footer-index { margin-left: 8px; }
}
@media (max-width: 370px) {
  .brand-caption { display: none; }
  .hero-kicker { font-size: 15px; }
  .hero { min-height: 610px; }
  .scene { --cat-bottom: 115px; }
  .project-cta { font-size: 14px; }
  .circle-arrow { width: 37px; height: 37px; font-size: 24px; }
  .intro-copy p { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
