/* Hively Studio shared styles for inner pages (capabilities, clients).
   Mirrors the homepage tokens. One light theme: a whiteboard is white.
   One accent: Expo green. Radius: pills for buttons/nav, 20px surfaces, 3px paper. */
:root {
  color-scheme: light;
  --board: #f6f7f5;
  --board-2: #eceeeb;
  --white: #fdfdfc;
  --frame: #c7ccce;
  --ink: #15181a;
  --ink-2: #4a5056;
  --ink-3: #676f75;
  --line: rgba(21, 24, 26, 0.1);
  --blue: #178a43;
  --blue-soft: #dcefe2;
  --green-text: #127a3d; /* small green text: 5:1 on the board */
  --sticky: #ffe88c;
  --sticky-edge: #f3d86a;
  --ghost: rgba(21, 24, 26, 0.045);
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --hand: "Kalam", "Marker Felt", "Comic Sans MS", cursive;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-paper: 0 1px 1px rgba(21,24,26,.06), 0 10px 22px -12px rgba(21,24,26,.28);
  --shadow-soft: 0 30px 60px -36px rgba(21,24,26,.35);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255,255,255,.95), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(255,255,255,.8), transparent 60%),
    var(--board);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
section { position: relative; scroll-margin-top: 96px; }

/* Nav */
.nav { position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 14px); z-index: 20; padding-inline: 16px; }
.nav-inner {
  max-width: 1100px; margin: 0 auto; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-left: 22px; padding-right: 8px; background: rgba(253, 253, 252, 0.8);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 10px 30px -18px rgba(21,24,26,.25);
}
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.wm { display: inline-flex; align-items: baseline; gap: 5px; }
.logo b { font: 600 21px/1 var(--sans); letter-spacing: -0.04em; }
.logo i { font: normal 700 17px/1 var(--hand); color: var(--green-text); transform: rotate(-6deg) translateY(-2px); display: inline-block; }
.mark { width: 30px; height: 30px; overflow: visible; flex: none; transform: translateY(-1px); }
.mark path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.mark .hk { stroke: var(--ink); stroke-width: 2.6; }
.mark .hc { stroke-width: 2.2; }
.mark .hg { stroke: var(--blue); stroke-width: 2.6; }
@media (prefers-reduced-motion: no-preference) {
  .logo:hover .mark path { animation: redraw .8s var(--ease) both; }
  .logo:hover .mark path:nth-child(2) { animation-delay: .08s; }
  .logo:hover .mark path:nth-child(3), .logo:hover .mark path:nth-child(4) { animation-delay: .14s; }
  .logo:hover .mark path:nth-child(5) { animation-delay: .28s; }
  @keyframes redraw { from { stroke-dashoffset: 1; } }
}
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 500; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--ink-2); transition: color .2s var(--ease); }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding-inline: 24px; border-radius: 999px;
  font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-ink { background: var(--ink); color: var(--white); box-shadow: 0 8px 20px -10px rgba(21,24,26,.6); }
.btn-ink:hover { transform: translateY(-1px); }
.nav-links a.btn-ink, .nav-links a.btn-ink:hover { color: var(--white); }
.btn-line { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink-3); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.nav .btn { height: 44px; padding-inline: 18px; font-size: 14px; }

/* Shared type */
.page-hero { padding-block: 150px 72px; }
.page-hero h1 { font-size: clamp(48px, 7vw, 104px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.page-hero .lede { margin-top: 24px; font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 46ch; }
.tag { font: 700 18px/1 var(--hand); color: var(--green-text); display: inline-block; }
.h2 { font-size: clamp(36px, 4.4vw, 64px); font-weight: 300; letter-spacing: -0.04em; line-height: 1.05; }
.h3 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.12; }
.label { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.body-copy { color: var(--ink-2); max-width: 60ch; }
.mbox {
  position: relative; padding: 18px 20px 20px; font-family: var(--sans); font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--blue); border-radius: 16px;
}
.mbox[data-stroke="green"] { background: var(--blue-soft); }
.board {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-soft), inset 0 0 0 6px var(--board-2), inset 0 0 0 7px var(--frame);
}
.checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { position: relative; padding-left: 28px; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); border-radius: 1px; }
.checklist li strong { color: var(--ink); font-weight: 500; }

/* Contact board (shared) */
.contact { padding-block: 40px 72px; }
.contact-board { padding: 80px 64px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.contact h2 { font-size: clamp(46px, 6vw, 88px); line-height: 1.02; font-weight: 300; letter-spacing: -0.04em; }
.contact .lede { margin-top: 22px; font-size: 18px; color: var(--ink-2); max-width: 40ch; }
.reach { display: flex; flex-direction: column; gap: 12px; }
.reach-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 16px 22px; background: var(--board); border: 1px solid var(--line); border-radius: 999px; }
.reach-row .val { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.reach-row .k { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.reach-row .v { font-size: 16px; overflow-wrap: anywhere; }
.copy { font: 500 13px/1 var(--sans); height: 36px; padding-inline: 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }

footer { padding-block: 24px 48px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--ink-3); }
footer nav { display: flex; gap: 20px; }
footer nav a { text-decoration: none; color: var(--ink-2); }

/* Reveal: visible at rest, rises in when JS marks it */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .rise { animation: rise 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 100ms); }
  @keyframes rise { from { transform: translateY(20px); opacity: .001; } }
}


/* Section navigation: a rail on wide screens, a chip bar under the nav elsewhere */
.side-nav { position: fixed; left: 28px; top: 50%; width: 178px; z-index: 15; opacity: 0; pointer-events: none; transform: translate(-10px, -50%); transition: opacity .45s var(--ease), transform .55s var(--ease); }
.side-nav.show { opacity: 1; pointer-events: auto; transform: translate(0, -50%); }
.sn-h { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.side-nav ol { list-style: none; margin: 14px 0 0; padding: 0; border-left: 2px solid var(--line); }
.side-nav a { display: block; margin-left: -2px; padding: 8px 0 8px 16px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.3; color: var(--ink-3); text-decoration: none; transition: color .25s var(--ease), border-color .25s var(--ease), padding .3s var(--ease); }
.side-nav a:hover { color: var(--ink); }
.side-nav a.on { color: var(--ink); font-weight: 500; border-color: var(--blue); padding-left: 20px; }
.chipbar { position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 84px); z-index: 19; display: none; gap: 8px; overflow-x: auto; padding: 4px 16px 8px; scrollbar-width: none; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .35s var(--ease), transform .45s var(--ease); justify-content: safe center; }
.chipbar::-webkit-scrollbar { display: none; }
.chipbar.show { opacity: 1; pointer-events: auto; transform: none; }
.chipbar a { flex: none; font-size: 13.5px; font-weight: 500; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); background: rgba(253,253,252,.92); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 6px 16px -12px rgba(21,24,26,.35); transition: background .25s var(--ease), color .25s var(--ease); }
.chipbar a.on { background: var(--ink); color: var(--white); border-color: var(--ink); }
@media (min-width: 1200px) { body.has-rail main, body.has-rail footer { padding-left: 196px; } }
@media (max-width: 1199px) { .side-nav { display: none; } .chipbar { display: flex; } }

@media (max-width: 860px) {
  .nav-links a:not(.btn):not(.keep) { display: none; }
  .contact-board { grid-template-columns: 1fr; padding: 48px 26px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .nav { padding-inline: 10px; }
  .nav-inner { padding-left: 16px; }
  .nav-links { gap: 14px; }
  .page-hero { padding-block: 118px 44px; }
  .page-hero h1 { font-size: 48px; }
  .contact-board { padding: 36px 20px 24px; gap: 28px; border-radius: 16px; }
  .contact h2 { font-size: 46px; }
  footer .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
}

.nav-links a.btn[aria-current="page"] { text-decoration: none; }

/* Phone menu */
.menu-btn { display: none; align-items: center; height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font: 500 14px/1 var(--sans); color: var(--ink); cursor: pointer; }
.menu-btn[aria-expanded="true"] { border-color: var(--ink); }
.mnav { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 84px); left: 10px; right: 10px; z-index: 21; display: flex; flex-direction: column; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 50px -24px rgba(21,24,26,.4); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s var(--ease), transform .35s var(--ease); }
.mnav.open { opacity: 1; transform: none; pointer-events: auto; }
.mnav a { padding: 15px 16px; border-radius: 12px; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.mnav a:hover, .mnav a[aria-current="page"] { background: var(--board); }
@media (max-width: 860px) { .menu-btn { display: inline-flex; } }
@media (min-width: 861px) { .mnav { display: none; } }

@media (max-width: 440px) { .nav-links .btn-ink { display: none; } .nav-inner { padding-right: 10px; } }
