/* Vozeto Graphic Solutions: landing page */

@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --yellow: #f4ca29;
  --yellow-hi: #f9dd6e;
  --paper: #fffcea;
  --ink: #161813;
  --ink-2: #3b3416;
  --teal: #12bfc1;
  --gutter: clamp(16px, 4vw, 56px);
  --font: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--ink) var(--yellow);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--yellow); }

a { color: inherit; }
h1, h2, p, ul { margin: 0; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
  border-radius: 8px;
}

.i {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.nowrap { white-space: nowrap; }

.skip {
  position: absolute;
  z-index: 50;
  left: var(--gutter);
  top: 12px;
  padding: 0.6em 1em;
  background: var(--ink);
  color: var(--yellow);
  font-weight: 700;
  border-radius: 999px;
  translate: 0 -200%;
}
.skip:focus-visible { translate: 0 0; }

/* ---------- Pill button ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.7em 1.35em 0.7em 1.5em;
  border-radius: 999px;
  background: var(--ink);
  color: var(--yellow);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px -12px rgb(22 24 19 / 0.7);
  transition: background-color 0.2s, color 0.2s, translate 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.pill .i { width: 1.1em; height: 1.1em; transition: translate 0.35s var(--ease-out); }
.pill:hover { background: var(--teal); color: var(--ink); translate: 0 -2px; box-shadow: 0 14px 22px -14px rgb(22 24 19 / 0.8); }
.pill:hover .i { translate: 2px -2px; }
.pill:active { translate: 0 0; }

/* ---------- Hero frame ---------- */

.hero {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1560px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-block: clamp(12px, 2vh, 22px) clamp(10px, 1.5vh, 16px);
  border-bottom: 1.5px solid var(--ink);
}

.brand { display: block; border-radius: 6px; }
.brand img { display: block; height: clamp(48px, 5.8vw, 96px); width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 40px);
  padding-bottom: 4px;
}
.nav-link {
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.2s;
}
.nav-link:hover { text-decoration-color: var(--ink); }

.hero-main {
  flex: 1 1 auto;
  padding-bottom: clamp(10px, 2vh, 24px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(380px, 1fr);
  grid-template-areas: "pitch" "stage";
}

/* ---------- Pitch & service details (share one cell on wide screens) ---------- */

.pitch,
.details { grid-area: pitch; }

.pitch {
  padding-top: clamp(14px, 2.4vh, 32px);
  text-align: center;
}

.headline {
  font-weight: 850;
  font-size: clamp(2.35rem, 0.9rem + 3.7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.big { position: relative; display: inline-block; }
.big::after {
  content: "";
  position: absolute;
  left: -0.03em;
  right: -0.03em;
  bottom: -0.09em;
  height: 0.1em;
  border-radius: 3px;
  background: var(--teal);
  transform-origin: 0 50%;
  animation: draw 0.9s 0.3s var(--ease-out) both;
}
@keyframes draw { from { transform: scaleX(0); } }

.lede {
  margin-top: clamp(8px, 1.4vh, 16px);
  color: var(--ink-2);
  font-size: clamp(1.05rem, 0.85rem + 0.65vw, 1.45rem);
  font-weight: 500;
  text-wrap: balance;
}

.details { display: grid; }

.detail {
  grid-area: 1 / 1;
  padding-top: clamp(14px, 2.4vh, 32px);
  text-align: center;
  visibility: hidden;
}
.detail h2 {
  font-weight: 850;
  font-size: clamp(1.9rem, 0.9rem + 2.9vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.detail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 22px;
  margin-top: clamp(12px, 2vh, 22px);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 0.42em 0.95em;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow-hi);
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1.2;
}
.detail-actions { display: flex; align-items: center; gap: 10px; }

.close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background-color 0.2s, rotate 0.35s var(--ease-out);
}
.close:hover { background: var(--yellow-hi); rotate: 90deg; }

.js .detail.is-open { visibility: visible; }
.js[data-service] .pitch { visibility: hidden; }

@media (prefers-reduced-motion: no-preference) {
  .js .detail.is-open h2 { animation: rise 0.45s var(--ease-out) both; }
  .js .detail.is-open .tags li { animation: rise 0.45s var(--ease-out) both; }
  .js .detail.is-open .tags li:nth-child(2) { animation-delay: 40ms; }
  .js .detail.is-open .tags li:nth-child(3) { animation-delay: 80ms; }
  .js .detail.is-open .detail-actions { animation: rise 0.45s 120ms var(--ease-out) both; }
  .js .pitch { transition: opacity 0.25s; }
}
@keyframes rise { from { opacity: 0; translate: 0 10px; } }

/* Without JavaScript the service details simply list under the stage. */
.no-js .hero-main { grid-template-areas: "pitch" "stage" "list"; grid-template-rows: auto minmax(380px, 1fr) auto; }
.no-js .details { grid-area: list; gap: 40px; padding-block: 32px; }
.no-js .detail { grid-area: auto; visibility: visible; }
.no-js .close { display: none; }

/* ---------- Stage ---------- */

.stage-wrap {
  grid-area: stage;
  position: relative;
  display: grid;
  place-items: end center;
  container-type: size;
  scroll-margin-top: 16px;
}

.stage {
  --m: clamp(64px, 8.6cqi, 120px);
  --lf: clamp(15px, 1.85cqi, 25px);
  position: relative;
  width: min(100cqw, 240cqh, 1400px);
  aspect-ratio: 12 / 5;
  container-type: inline-size;
}

.orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.orbit path {
  fill: none;
  stroke: rgb(22 24 19 / 0.3);
  stroke-width: 1.5;
  stroke-dasharray: 1 7;
  stroke-linecap: round;
}

/* The mascot box is the shared pose canvas (1169x1100); the gecko sits a little left of its centre. */
.mascot {
  position: absolute;
  bottom: 0;
  left: 46%;
  height: 100%;
  aspect-ratio: 1169 / 1100;
  translate: -49% 0;
  pointer-events: none;
}
.mascot::before {
  content: "";
  position: absolute;
  left: 22%;
  right: 24%;
  bottom: -1.2%;
  height: 7%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(22 24 19 / 0.26), rgb(22 24 19 / 0));
  transform: scale(var(--shadow, 1));
  opacity: var(--shadow, 1);
}

/* The animated puppet (gecko.js) sits over the still image and takes over once it has drawn. */
.gecko { position: absolute; z-index: 1; pointer-events: none; }
.mascot.is-rigged .lean { visibility: hidden; }

.lean, .bob, .figure { position: absolute; inset: 0; }
.lean { transform-origin: 49% 97%; transition: transform 0.7s var(--ease-out); }
.bob { transform-origin: 49% 97%; }
.figure { transform-origin: 49% 97%; }

.pose {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  user-select: none;
  -webkit-user-drag: none;
}
.pose.is-active { z-index: 2; opacity: 1; transition: opacity 120ms linear; }
.pose.is-leaving { z-index: 1; opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .figure { animation: breathe 4.2s ease-in-out infinite alternate; }
}
@keyframes breathe { to { transform: scale(1.006, 1.016); } }

.bubble {
  position: absolute;
  z-index: 5;
  left: 74%;
  top: 17%;
  max-width: 10.5em;
  padding: 0.5em 0.85em 0.55em;
  border: 2px solid var(--ink);
  border-radius: 18px 18px 18px 4px;
  background: var(--paper);
  box-shadow: 0 10px 18px -12px rgb(22 24 19 / 0.6);
  font-weight: 750;
  font-size: clamp(14px, 1.4cqi, 19px);
  line-height: 1.2;
  opacity: 0;
  scale: 0.85;
  transform-origin: 0 100%;
  transition: opacity 0.2s, scale 0.35s var(--ease-out);
}
.bubble.is-on { opacity: 1; scale: 1; }

.burst {
  position: absolute;
  z-index: 4;
  width: 22%;
  aspect-ratio: 1;
  translate: -50% -50%;
  overflow: visible;
  pointer-events: none;
  animation: burst 0.6s var(--ease-out) forwards;
}
/* Light halo under an ink core, so the pop reads on the yellow page and on the black hoodie. */
.burst-rays { fill: none; stroke: var(--paper); stroke-width: 9; stroke-linecap: round; }
.burst-core { stroke: var(--ink); stroke-width: 4; }
.burst-dots { fill: var(--teal); stroke: var(--ink); stroke-width: 1.5; }
@keyframes burst {
  0% { transform: scale(0.3) rotate(-8deg); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: scale(1.12) rotate(0); opacity: 0; }
}

/* ---------- Service nodes ---------- */

.nodes {
  position: absolute;
  inset: 0;
  z-index: 3;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}
.node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 0;
  height: 0;
}
.node--prints { --x: 26.3%; --y: 15%; }
.node--signs  { --x: 73.7%; --y: 15%; }
.node--merch  { --x: 15.4%; --y: 49%; }
.node--design { --x: 84.6%; --y: 47%; }
.node--social { --x: 75.5%; --y: 79%; }

.node button {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6em;
  width: max-content;
  max-width: 11em;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: var(--lf);
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  translate: -50% calc(var(--m) / -2);
  -webkit-tap-highlight-color: transparent;
}
.node--social button { max-width: none; }

.medallion {
  display: grid;
  place-items: center;
  width: var(--m);
  height: var(--m);
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow-hi);
  box-shadow: 0 8px 16px -10px rgb(22 24 19 / 0.55);
  transition: translate 0.4s var(--ease-out), background-color 0.2s, color 0.2s, box-shadow 0.4s var(--ease-out);
}
.medallion .i { width: 58%; height: 58%; stroke-width: 2.1; }
.i .dot { fill: currentColor; stroke: none; }

.label {
  position: relative;
  padding: 0 0.3em 0.2em;
  border-radius: 6px;
  background: var(--yellow); /* masks the orbit line where it passes behind */
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.012em;
}
.label::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: -0.15em;
  height: 3px;
  border-radius: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease-out);
}

.node button:hover .medallion,
.node button:focus-visible .medallion,
.node button.is-looked .medallion {
  translate: 0 -5px;
  background: var(--paper);
  box-shadow: 0 16px 22px -14px rgb(22 24 19 / 0.7);
}
.node button:hover .label::after,
.node button:focus-visible .label::after { transform: scaleX(1); }
.node button:focus-visible { outline-offset: 6px; }

.node button[aria-expanded="true"] .medallion {
  background: var(--ink);
  color: var(--yellow);
  box-shadow: 0 0 0 4px var(--teal), 0 16px 22px -14px rgb(22 24 19 / 0.8);
}
.node button[aria-expanded="true"] .label::after { transform: scaleX(1); left: 0; right: 0; }

/* ---------- Close-out: quote and footer ---------- */

/* Yellow top: the promise, with the gecko standing whole on the ink edge. */
.close-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: clamp(24px, 4vw, 64px);
  max-width: 1560px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  overflow: hidden;
}
.close-top::before {
  content: "";
  grid-column: 1 / -1;
  justify-self: stretch;
  border-top: 1.5px solid var(--ink);
}
.close-copy { padding-block: clamp(36px, 6vh, 72px); }
.close-title {
  max-width: 11em;
  font-weight: 850;
  font-size: clamp(2.3rem, 1rem + 4.2vw, 5rem);
  line-height: 1;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
.close-lede {
  max-width: 34em;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.3rem);
}
.close-gecko {
  display: block;
  width: auto;
  height: clamp(230px, 27vw, 420px);
  margin-top: clamp(20px, 4vh, 40px);
  margin-right: clamp(0px, 5vw, 96px);
}
@media (prefers-reduced-motion: no-preference) {
  .js .close-gecko { translate: 0 28%; transition: translate 0.9s var(--ease-out); }
  .js .close-out.is-seen .close-gecko { translate: 0 0; }
}

/* Ink base: the two ways to ask, then the strip. Edges line up with the hero's gutters. */
.close-base {
  padding: clamp(32px, 5vh, 56px) calc(max(0px, (100% - 1560px) / 2) + var(--gutter)) 0;
  background: var(--ink);
  color: var(--yellow);
}
.close-base :focus-visible { outline-color: var(--teal); }

.close-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.close-actions .pill { min-height: 56px; padding: 0.8em 1.5em 0.8em 1.65em; font-size: 1.1rem; box-shadow: none; }
.pill--yellow { background: var(--yellow); color: var(--ink); }
.pill--line { background: transparent; color: var(--yellow); }
.close-actions .pill--line { box-shadow: inset 0 0 0 1.5px var(--yellow); }
.pill--line:hover { background: var(--yellow); color: var(--ink); }
.pill--line .i { width: 1.2em; height: 1.2em; }

.close-contact {
  margin-top: 18px;
  color: rgb(244 202 41 / 0.85);
  font-size: 1.05rem;
  font-weight: 650;
}
.close-contact a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.close-contact a:hover { color: var(--yellow); text-decoration-color: var(--yellow); }

.close-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(36px, 6vh, 64px);
  padding-block: 16px 22px;
  border-top: 1px solid rgb(244 202 41 / 0.25);
}
.close-place {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.legal { color: rgb(244 202 41 / 0.75); font-size: 0.875rem; }

/* ---------- 404 ---------- */

.lost {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 18px;
  min-height: 100svh;
  padding: 32px var(--gutter);
  text-align: center;
}
.lost .brand img { height: 64px; width: auto; }
.lost-gecko { width: min(320px, 70vw); height: auto; margin-top: 8px; }
.lost-title {
  font-weight: 850;
  font-size: clamp(2.2rem, 1rem + 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lost-lede { max-width: 30em; color: var(--ink-2); }

/* ---------- Narrow and portrait screens: mascot on top, services below ---------- */

@media (max-width: 760px), (max-aspect-ratio: 4 / 5) {
  .masthead { align-items: center; }
  .br-wide { display: none; }
  .nav-link { display: none; }
  .pill { min-height: 44px; padding: 0.6em 1.05em 0.6em 1.2em; font-size: 0.95rem; }

  .hero-main {
    grid-template-rows: auto auto auto;
    grid-template-areas: "pitch" "stage" "details";
  }
  .details { grid-area: details; }
  .js[data-service] .pitch { visibility: visible; }
  .js .detail { display: none; padding: 4px 0 8px; }
  .js .detail.is-open { display: block; }
  .detail h2 { font-size: clamp(1.7rem, 1rem + 3.4vw, 2.6rem); }
  .detail-row { flex-direction: column; }
  .detail-actions { width: 100%; justify-content: center; }

  .stage-wrap { display: block; container-type: normal; padding-top: 18px; }
  .stage {
    --m: clamp(54px, 16cqi, 76px);
    --lf: clamp(14px, 3.9cqi, 17px);
    width: min(100%, 540px, calc((100svh - 230px) * 0.64));
    min-width: min(100%, 300px);
    margin-inline: auto;
    aspect-ratio: 0.64;
  }
  .orbit { display: none; }
  .mascot { top: 0; bottom: auto; left: 50%; height: 57%; }
  .bubble { left: 70%; top: 12%; max-width: 8em; font-size: clamp(13px, 3.7cqi, 16px); }

  .node--prints { --x: 17%; --y: 65%; }
  .node--signs  { --x: 50%; --y: 65%; }
  .node--merch  { --x: 83%; --y: 65%; }
  .node--design { --x: 32%; --y: 86%; }
  .node--social { --x: 68%; --y: 86%; }
  .node button { max-width: 9em; gap: 0.45em; }

  .close-top { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .close-copy { padding-bottom: 8px; }
  .close-title, .close-lede { margin-inline: auto; }
  .close-gecko { height: clamp(210px, 58vw, 320px); margin: 8px 0 0; }
  .close-actions { flex-direction: column; align-items: stretch; }
  .close-actions .pill { justify-content: center; }
  .close-contact { display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .close-contact > span { display: none; }
  .close-foot { justify-content: center; text-align: center; }
}

/* Portrait tablets keep the orbit: the services ring the gecko's feet in a low arc. */
@media (min-width: 761px) and (max-aspect-ratio: 4 / 5) {
  .stage {
    --m: clamp(64px, 10cqi, 92px);
    --lf: clamp(15px, 2.3cqi, 19px);
    width: min(100%, 860px, calc((100svh - 290px) * 0.86));
    aspect-ratio: 0.86;
  }
  .orbit { display: block; }
  .mascot { height: 72%; }
  .node--merch  { --x: 10%; --y: 79.5%; }
  .node--prints { --x: 30%; --y: 84.5%; }
  .node--signs  { --x: 50%; --y: 86.5%; }
  .node--design { --x: 70%; --y: 84.5%; }
  .node--social { --x: 90%; --y: 79.5%; }
  .node button { max-width: 8em; }
  .close-actions { flex-direction: row; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .pose.is-active, .lean, .medallion, .bubble, .close, .pill { transition: none; }
  .big::after { animation: none; }
  .burst { display: none; }
}
