/* Graysmith Labs. Shared styles for every page. */
:root {
  --ink: #15171a;
  --paper: #f4f1ea;
  --card: #fbf9f4;
  --muted: #6b6760;
  --accent: #3b5641;
  --accent-ink: #f4f1ea;
  --line: #d8d3c8;
  --shadow: 0 1px 2px rgba(21, 23, 26, 0.04), 0 8px 24px rgba(21, 23, 26, 0.06);
  --serif: "Fraunces", Georgia, serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;
  --max: 1080px;
  --gutter: 32px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ece8df;
    --paper: #131513;
    --card: #1b1e1b;
    --muted: #9a958b;
    --accent: #8fb398;
    --accent-ink: #131513;
    --line: #2d312d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--line) 0.5px, transparent 0.5px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px;
  text-decoration: none; font-size: 13px;
}
.skip:focus { top: 16px; }

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 72px;
}
.mark {
  font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 11px; text-decoration: none; white-space: nowrap;
}
.glyph {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  background: #3b5641 url(assets/art/mark.svg) center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(21, 23, 26, 0.12);
  display: grid; place-items: center; padding-bottom: 10px;
  font-size: 15px; font-weight: 600; line-height: 1; font-family: var(--serif); color: #f4f1ea;
}
.nav { display: flex; align-items: center; gap: 26px; font-size: 13px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { color: var(--accent-ink); }
.nav .btn:hover { color: var(--accent-ink); }

/* Buttons */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--mono); font-size: 13.5px; font-weight: 500; letter-spacing: 0.01em;
  padding: 12px 20px; border-radius: 999px; text-decoration: none; border: 1px solid var(--accent);
  transition: transform 0.15s ease, filter 0.2s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); filter: none; }
.btn.sm { padding: 9px 16px; font-size: 12.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Type */
.eyebrow {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(40px, 6.6vw, 76px); max-width: 17ch; margin-bottom: 28px; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(30px, 4.2vw, 46px); max-width: 20ch; }
h3 { font-size: 22px; letter-spacing: -0.01em; line-height: 1.2; }
.lede { font-size: 16.5px; line-height: 1.75; color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.link { text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 1px; transition: color 0.2s; }
.link:hover { color: var(--accent); }

/* Sections */
section { padding: 96px 0; border-top: 1px solid var(--line); }
section.first { border-top: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.sec-head p { max-width: 44ch; color: var(--muted); }

/* Hero */
.hero { padding-top: 104px; padding-bottom: 88px; }
.hero .btn-row { margin-top: 40px; }
.stats {
  margin-top: 72px; padding-top: 36px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 32px;
}
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 40px; letter-spacing: -0.02em; line-height: 1; margin-bottom: 10px; }
.stat span { font-size: 13px; color: var(--muted); line-height: 1.5; display: block; }
.icon-strip { display: flex; gap: 10px; margin-top: 44px; flex-wrap: wrap; }

/* Hero proof: live apps */
.hero-apps { display: inline-flex; align-items: center; gap: 14px; margin-top: 32px; text-decoration: none; color: var(--ink); }
.hero-apps .stack { display: flex; flex: none; }
.hero-apps .stack img { flex: none; max-width: none; width: 34px; height: 34px; border-radius: 9px; border: 2px solid var(--paper); box-shadow: var(--shadow); margin-left: -9px; transition: transform 0.2s; }
.hero-apps .stack img:first-child { margin-left: 0; }
.hero-apps:hover .stack img { transform: translateY(-2px); }
.hero-apps:hover .stack img:nth-child(even) { transform: translateY(1px); }
.hero-apps .copy { display: grid; font-size: 13px; line-height: 1.35; }
.hero-apps b { font-weight: 600; font-size: 14px; }
.hero-apps .copy span { color: var(--muted); }
.hero-apps .arrow { color: var(--accent); }
.shelf-hint { display: none; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12px; color: var(--muted); }
.icon-strip a { transition: transform 0.2s; }
.icon-strip a:hover { transform: translateY(-3px) rotate(-2deg); }
.icon-strip img { width: 56px; height: 56px; border-radius: 13px; box-shadow: var(--shadow); }

/* App cards */
.app-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.app-card {
  grid-column: span 2;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px; text-decoration: none; display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
}
.app-card:hover { transform: translateY(-3px); border-color: var(--muted); box-shadow: var(--shadow); }
.app-card .top { display: flex; align-items: center; gap: 14px; }
.app-card img { width: 60px; height: 60px; border-radius: 14px; box-shadow: var(--shadow); flex: none; }
.app-card h3 { margin-bottom: 2px; }
.app-card p { color: var(--muted); font-size: 14px; line-height: 1.6; flex: 1; }
.app-card .go { font-size: 13px; color: var(--accent); }
.tag {
  display: inline-block; font-size: 11px; letter-spacing: 0.06em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px;
}

/* Featured work (Valentine Tide) */
.feature {
  --vt-bone: #f5f0e8; --vt-blood: #8b0000; --vt-black: #161616;
  background: var(--vt-black); color: var(--vt-bone);
  border-radius: 26px; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr 1fr;
  border: 1px solid #262626;
}
.feature .shot { background: #0f0f0f; display: flex; align-items: center; }
.feature .shot img { width: 100%; height: 100%; object-fit: cover; }
.feature .body { padding: 48px 44px; display: flex; flex-direction: column; gap: 18px; }
.feature .eyebrow { color: #c0392b; margin: 0; }
.feature h3 { font-size: 32px; }
.feature p { color: #b5afa5; font-size: 14.5px; }
.feature ul { list-style: none; display: grid; gap: 8px; font-size: 13.5px; color: #d8d2c7; }
.feature li::before { content: "\2192"; color: #c0392b; margin-right: 10px; }
.feature .btn { background: var(--vt-blood); border-color: var(--vt-blood); color: var(--vt-bone); }
.feature .btn.ghost { background: transparent; border-color: #3a3a3a; color: var(--vt-bone); }
.feature .btn.ghost:hover { border-color: var(--vt-bone); }

/* Services and process */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.service {
  border: 1px solid var(--line); border-radius: 20px; padding: 30px; background: var(--card);
}
.service .num { font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.service h3 { margin: 14px 0 10px; }
.service p { color: var(--muted); font-size: 14px; }
.service ul { list-style: none; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.step { border-top: 2px solid var(--ink); padding-top: 18px; }
.step .num { font-family: var(--serif); font-size: 15px; font-style: italic; color: var(--accent); }
.step h3 { font-size: 20px; margin: 8px 0 8px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.about .facts { display: grid; gap: 22px; }
.about .facts div { border-top: 1px solid var(--line); padding-top: 14px; }
.about .facts p { font-size: 14px; margin-top: 4px; }
.prose p + p { margin-top: 18px; }
.prose p { color: var(--muted); max-width: 60ch; }
.prose strong { color: var(--ink); font-weight: 500; }

/* Contact */
.contact-card {
  --cc-bg: #1d2620; --cc-fg: #f4f1ea;
  background: var(--cc-bg); color: var(--cc-fg); border: 1px solid #2c3a30; border-radius: 28px;
  padding: 72px 64px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end;
}
.contact-card h2 { max-width: 16ch; }
.contact-card h2 em { color: #a9c7b0; }
.contact-card p { color: color-mix(in srgb, var(--cc-fg) 72%, transparent); margin-top: 20px; max-width: 46ch; }
.contact-card .btn { background: var(--cc-fg); color: #15171a; border-color: var(--cc-fg); }
.contact-card .email {
  font-family: var(--serif); font-size: clamp(19px, 2.2vw, 26px); text-decoration: none; white-space: nowrap;
  border-bottom: 1px solid color-mix(in srgb, var(--cc-fg) 40%, transparent);
}
.contact-card .email:hover { border-color: var(--cc-fg); }
.contact-card .side { display: grid; gap: 22px; justify-items: start; }
.contact-card .side .label { color: color-mix(in srgb, var(--cc-fg) 60%, transparent); }
.contact-card ul { list-style: none; font-size: 13.5px; color: color-mix(in srgb, var(--cc-fg) 75%, transparent); display: grid; gap: 6px; }

/* App detail pages */
.crumbs { font-size: 12.5px; color: var(--muted); padding-top: 36px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.app-hero { padding: 48px 0 72px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.app-hero .id { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.app-hero .id img { width: 88px; height: 88px; border-radius: 20px; box-shadow: var(--shadow); }
.app-hero h1 { font-size: clamp(40px, 5.6vw, 64px); margin-bottom: 20px; }
.app-hero .btn-row { margin-top: 32px; }
.phones { display: flex; gap: 14px; justify-content: center; }
.phones img {
  width: 31%; height: auto; min-width: 0; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow);
  aspect-ratio: 600 / 1300; object-fit: cover; background: var(--card);
}
.phones img:nth-child(2) { transform: translateY(-22px); }
.facts-bar {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0;
}
.facts-bar p { font-size: 14px; margin-top: 4px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.features .service h3 { font-size: 19px; margin-top: 0; }
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; }
.checks { list-style: none; display: grid; gap: 14px; }
.checks li { padding-left: 28px; position: relative; color: var(--muted); font-size: 14.5px; }
.checks li strong { color: var(--ink); font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--accent); background: color-mix(in srgb, var(--accent) 25%, transparent); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pager a { border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; text-decoration: none; display: flex; align-items: center; gap: 14px; background: var(--card); transition: border-color 0.2s; }
.pager a:hover { border-color: var(--muted); }
.pager a.next { justify-content: flex-end; text-align: right; }
.pager img { width: 44px; height: 44px; border-radius: 11px; }
.pager b { font-family: var(--serif); font-weight: 400; font-size: 20px; display: block; }

/* Case study */
.case-hero { background: #161616; color: #f5f0e8; border-radius: 26px; overflow: hidden; margin-top: 28px; border: 1px solid #262626; }
.case-hero img { width: 100%; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gallery figure { background: #161616; border-radius: 20px; overflow: hidden; border: 1px solid #262626; display: flex; flex-direction: column; }
.gallery figure img { flex: 1; object-fit: contain; width: 100%; padding: 28px; }
.gallery figcaption { font-size: 12.5px; color: #9d978d; padding: 14px 20px; border-top: 1px solid #262626; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.swatch { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.swatch i { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); display: block; }

/* Footer */
.site-foot { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 56px 0 calc(28px + var(--horizon)); margin-top: 40px; --horizon: clamp(84px, 12vw, 180px); }
.site-foot::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--horizon); pointer-events: none;
  background: url(assets/art/horizon-light.svg) center bottom / cover no-repeat;
}
@media (prefers-color-scheme: dark) { .site-foot::after { background-image: url(assets/art/horizon-dark.svg); } }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid ul { list-style: none; display: grid; gap: 8px; margin-top: 12px; font-size: 13.5px; }
.foot-grid a { text-decoration: none; color: var(--muted); }
.foot-grid a:hover { color: var(--ink); }
.foot-grid .blurb { font-size: 13.5px; color: var(--muted); margin-top: 14px; max-width: 34ch; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* Motion */
.rise { opacity: 0; animation: rise 0.7s ease forwards; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.16s; } .d3 { animation-delay: 0.28s; } .d4 { animation-delay: 0.4s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; animation: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .app-card { grid-column: span 3; }
  .feature { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about, .split { grid-template-columns: 1fr; gap: 36px; }
  .contact-card { grid-template-columns: 1fr; padding: 56px 40px; }
  .app-hero { grid-template-columns: 1fr; }
  .facts-bar { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 14.5px; }
  .hero { padding-top: 64px; padding-bottom: 56px; }
  section { padding: 72px 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  /* Apps: a swipeable shelf with the next card peeking in */
  .app-grid {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .app-grid::-webkit-scrollbar { display: none; }
  .app-card { flex: 0 0 84%; max-width: 340px; scroll-snap-align: start; padding: 22px; gap: 14px; border-radius: 18px; }
  .app-card img { width: 52px; height: 52px; border-radius: 12px; }
  .app-card .top { gap: 12px; }
  .app-card .tag { white-space: nowrap; }
  .app-card .go { white-space: nowrap; }
  .app-grid .app-card.reveal { opacity: 1; transform: none; }
  .shelf-hint { display: flex; }
  .hero-apps { margin-top: 28px; gap: 12px; }
  .hero-apps .stack img { width: 30px; height: 30px; border-radius: 8px; margin-left: -10px; }
  .grid-2, .grid-3, .grid-4, .features, .gallery, .pager { grid-template-columns: 1fr; }
  .feature .body { padding: 32px 24px; }
  .contact-card { padding: 44px 24px; border-radius: 22px; }
  .facts-bar { grid-template-columns: 1fr 1fr; }
  .phones { gap: 8px; }
  .phones img { border-radius: 14px; }
  .foot-grid { grid-template-columns: 1fr; }
  .pager a.next { justify-content: flex-start; text-align: left; flex-direction: row-reverse; }
}
@media (max-width: 380px) {
  .mark { font-size: 17px; }
  .nav .btn { padding: 8px 12px; font-size: 12px; }
}

/* AI note: short and centered */
.ai-note { text-align: center; display: grid; justify-items: center; }
.ai-note h2 { max-width: none; }
.ai-note .lede { margin-top: 22px; }

/* ------------------------------------------------------------------ */
/* Enhancements: hero art, marquee, icons, engagements, FAQ, form, motion */

/* Header states and mobile menu */
.site-head { transition: box-shadow 0.3s, background 0.3s; }
.site-head.scrolled { box-shadow: 0 6px 24px rgba(21, 23, 26, 0.06); }
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}
.menu-cta { display: none; }
.menu-btn {
  display: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
  place-content: center; gap: 5px;
}
.menu-btn span { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform 0.25s ease; }
.site-head.open .menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
.site-head.open .menu-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Buttons: arrow nudge */
.btn .arrow { display: inline-block; transition: transform 0.2s ease; }
.btn:hover .arrow, .app-card:hover .arrow { transform: translateX(3px); }

/* Availability badge */
.avail {
  display: inline-flex; align-items: center; gap: 8px; margin-right: 14px;
  padding: 4px 11px 4px 9px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink); letter-spacing: 0.08em; font-size: 11px;
}
.avail i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); position: relative; }
.avail i::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
  animation: ping 2s ease-out infinite;
}
@keyframes ping { from { transform: scale(1); opacity: 0.6; } to { transform: scale(3); opacity: 0; } }

/* Hero layout and illustration */
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero-grid h1 { font-size: clamp(40px, 5.4vw, 66px); }
.hero { overflow-x: clip; }
/* Hero illustration: an engraved sunrise medallion ringed by our six apps */
:root {
  --art-sky: #fbf9f4; --art-dot: #d8d3c8; --art-sun: #3b5641; --art-rim: #15171a;
  --art-far: #fbf9f4; --art-far-hatch: #d8d3c8; --art-far-edge: #8f8a80;
  --art-mid: #3b5641; --art-mid-hatch: rgba(21, 23, 26, 0.3); --art-snow: #f4f1ea;
  --art-near: #15171a; --art-near-hatch: rgba(59, 86, 65, 0.55);
}
@media (prefers-color-scheme: dark) {
  :root {
    --art-sky: #1b1e1b; --art-dot: #2d312d; --art-sun: #8fb398; --art-rim: #ece8df;
    --art-far: #232723; --art-far-hatch: #30352f; --art-far-edge: #4d534d;
    --art-mid: #2f4a37; --art-mid-hatch: rgba(0, 0, 0, 0.35); --art-snow: #d8d3c8;
    --art-near: #0b0c0b; --art-near-hatch: rgba(64, 98, 73, 0.6);
  }
}
.hero-art { position: relative; --tx: 0px; --ty: 0px; }
.gl { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 560 / 470; }
.gl-scene { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; translate: calc(var(--tx) * 0.3) calc(var(--ty) * 0.3); }
.gl-topo circle { fill: none; stroke: var(--line); stroke-width: 1.2; }
.gl-topo circle + circle { stroke-dasharray: 2 6; }
.gl-sky { fill: var(--art-sky); }
.gl-dot { fill: var(--art-dot); }
.gl-sunbands { animation: sunrise 1.8s cubic-bezier(.2, .7, .2, 1) 0.3s both; }
.gl-sunbands rect { fill: var(--art-sun); opacity: 0.85; }
.gl-sunring { fill: none; stroke: var(--art-rim); stroke-width: 1.4; animation: sunrise 1.8s cubic-bezier(.2, .7, .2, 1) 0.3s both; }
@keyframes sunrise { from { transform: translateY(46px); } }
.gl-far { fill: var(--art-far); }
.gl-hf { stroke: var(--art-far-hatch); stroke-width: 1; }
.gl-faredge { fill: none; stroke: var(--art-far-edge); stroke-width: 1.1; }
.gl-mid { fill: var(--art-mid); }
.gl-hm { stroke: var(--art-mid-hatch); stroke-width: 1.1; }
.gl-snow { fill: var(--art-snow); }
.gl-midedge { fill: none; stroke: var(--art-near); stroke-width: 1.5; }
.gl-near { fill: var(--art-near); }
.gl-hn { stroke: var(--art-near-hatch); stroke-width: 1.1; }
.gl-rim { fill: none; stroke: var(--art-rim); stroke-width: 1.6; }
.gl-link { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 1 7; stroke-linecap: round; }
.gl-spark path { fill: var(--accent); opacity: 0.75; transform-box: fill-box; transform-origin: center; animation: twinkle 3.2s ease-in-out infinite; }
.gl-spark g:nth-child(even) path { animation-delay: -1.6s; }
@keyframes appear { from { opacity: 0; scale: 0.6; } }
.gl-app {
  position: absolute; left: var(--x); top: var(--y); width: clamp(46px, 11.4%, 64px); aspect-ratio: 1;
  translate: calc(-50% + var(--tx) * 0.6) calc(-50% + var(--ty) * 0.6);
  display: grid; place-items: center; border-radius: 50%;
  background: var(--card); border: 1.5px solid var(--ink); color: var(--ink);
  box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 4px var(--line), var(--shadow);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(.2, .7, .2, 1), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
  animation: appear 0.5s cubic-bezier(.2, .7, .2, 1.3) backwards; animation-delay: calc(0.7s + var(--i) * 0.09s);
}
.gl-app svg { width: 68%; height: 68%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.gl-app .g-acc { fill: var(--accent); stroke: none; }
.gl-app .g-dim { opacity: 0.6; }
.gl-app .g-dim2 { opacity: 0.32; }
.gl-app .g-accs { stroke: var(--accent); stroke-width: 1.7; }
.gl-app .g-ink { fill: currentColor; stroke: none; }
.gl-app .g-card { fill: var(--card); transition: fill 0.25s; }
.gl-app .g-hollow { stroke-width: 1.4; }
.gl-app .g-soft { stroke-width: 1.6; opacity: 0.55; }
.gl-name {
  position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 0; white-space: nowrap;
  font-size: 11px; line-height: 1; letter-spacing: 0.04em; padding: 5px 9px; border-radius: 999px;
  background: var(--ink); color: var(--paper); opacity: 0; transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s; pointer-events: none;
}
.gl-app:hover, .gl-app:focus-visible {
  transform: translateY(-4px) scale(1.06); background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
  box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 4px color-mix(in srgb, var(--accent-ink) 35%, transparent), var(--shadow);
}
.gl-app:hover .g-acc, .gl-app:focus-visible .g-acc { fill: var(--accent-ink); }
.gl-app:hover .g-accs, .gl-app:focus-visible .g-accs { stroke: var(--accent-ink); }
.gl-app:hover .g-card, .gl-app:focus-visible .g-card { fill: var(--accent); }
.gl-app:hover .gl-name, .gl-app:focus-visible .gl-name { opacity: 1; transform: none; }
.ai-spark svg { width: 14px; height: 14px; fill: var(--accent); animation: twinkle 2.8s ease-in-out infinite; }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes twinkle { 50% { transform: rotate(90deg) scale(0.8); opacity: 0.7; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Stats: tighter spacing now that the hero has art */
.hero .stats { margin-top: 56px; }

/* Marquee */
.marquee {
  position: relative; z-index: 1; overflow: hidden; border-top: 1px solid var(--line);
  padding: 20px 0; font-size: 13px; color: var(--muted);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee-track + .marquee-track { margin-top: 12px; }
.marquee-track.reverse { animation-direction: reverse; animation-duration: 95s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { list-style: none; display: flex; }
.marquee li { padding: 0 22px; white-space: nowrap; display: flex; align-items: center; gap: 44px; }
.marquee li::after { content: "\2726"; color: var(--accent); font-size: 10px; margin-right: -22px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Icons */
.ico {
  width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
  transition: transform 0.3s ease, background 0.3s;
}
.ico svg, .step-ico {
  width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.svc-top { display: flex; justify-content: space-between; align-items: center; }
.service { transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s; }
#services .service:hover, .engage:hover { transform: translateY(-4px); border-color: var(--muted); box-shadow: var(--shadow); }
.service:hover .ico, .engage:hover .ico, .audit:hover .ico { transform: rotate(-8deg) scale(1.06); background: color-mix(in srgb, var(--accent) 20%, transparent); }

/* Process */
.steps .step { position: relative; border-top-color: var(--line); }
.steps .step::before {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--ink);
  transform-origin: left; transform: scaleX(1); transition: transform 0.9s cubic-bezier(.2,.7,.2,1) var(--delay, 0s);
}
.steps .step.reveal:not(.in)::before { transform: scaleX(0); }
.step-top { display: flex; justify-content: space-between; align-items: center; }
.step-ico { color: var(--accent); }

/* App cards */
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stars { font-size: 11px; letter-spacing: 1px; color: #c9962b; white-space: nowrap; }
.stars b { color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 2px; }
.app-card img { transition: transform 0.35s cubic-bezier(.3,1.6,.5,1); }
.app-card:hover img { transform: rotate(-6deg) scale(1.06); }

/* AI note */
.ai-spark {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px;
  border: 1px solid var(--line); background: var(--card); box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 6%, transparent);
}
.ai-spark svg { width: 22px; height: 22px; }
.ai-note h2 em {
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 45%, var(--ink)), var(--accent));
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 6s linear infinite; padding-right: 0.08em;
}
@keyframes sheen { to { background-position: -200% 0; } }

/* Engagements */
.engage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.engage {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 30px;
  display: flex; flex-direction: column; gap: 14px; transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
}
.engage .label { margin-top: 6px; color: var(--accent); }
.engage h3 { margin-top: -6px; }
.engage > p:not(.label) { color: var(--muted); font-size: 14px; }
.engage .checks { gap: 8px; margin: 4px 0 8px; flex: 1; align-content: start; }
.engage .checks li { font-size: 13.5px; }
.engage .btn { align-self: flex-start; }
.engage.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.engage.featured:hover { border-color: var(--accent); }
.badge {
  position: absolute; top: -11px; right: 24px; background: var(--accent); color: var(--accent-ink);
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 11px; border-radius: 999px;
}
.audit {
  margin-top: 20px; border: 1px dashed var(--muted); border-radius: 22px; padding: 26px 30px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
}
.audit h3 { font-size: 21px; }
.audit h3 em { font-style: italic; color: var(--accent); }
.audit p { color: var(--muted); font-size: 14px; margin-top: 6px; max-width: 64ch; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--serif); font-size: 19px; letter-spacing: -0.01em; transition: color 0.2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.faq-list summary::after, .faq-list summary::before {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.5px; background: var(--accent);
  transition: transform 0.3s ease;
}
.faq-list summary::before { transform: rotate(90deg); }
.faq-list details[open] summary::before { transform: rotate(0deg); }
.faq-list details p { color: var(--muted); font-size: 14.5px; padding: 0 40px 22px 0; max-width: 62ch; }
.faq-list details[open] p { animation: pop 0.35s ease; }

/* Contact form and extras */
.contact-card { position: relative; overflow: hidden; overflow: clip; }
.contact-card::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 199, 176, 0.18), transparent 70%); pointer-events: none;
  animation: drift 14s ease-in-out infinite;
}
@keyframes drift { 50% { transform: translate(-60px, 50px) scale(1.1); } }
.contact-card > * { position: relative; }
.contact-card.has-form { grid-template-columns: 1fr 1.15fr; align-items: start; }
.promise { margin-top: 28px; }
.promise li { padding-left: 24px; position: relative; }
.promise li::before { content: "\2713"; position: absolute; left: 0; color: #a9c7b0; }
.inquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: color-mix(in srgb, var(--cc-fg) 62%, transparent); }
.inquiry input, .inquiry select, .inquiry textarea {
  font: inherit; font-size: 14px; color: var(--cc-fg); width: 100%;
  background: rgba(244, 241, 234, 0.06); border: 1px solid rgba(244, 241, 234, 0.16); border-radius: 12px;
  padding: 11px 13px; transition: border-color 0.2s, background 0.2s; resize: vertical;
}
.inquiry select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, #a9c7b0 50%), linear-gradient(135deg, #a9c7b0 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.inquiry option { color: #15171a; }
.inquiry textarea::placeholder { color: rgba(244, 241, 234, 0.4); }
.inquiry input:focus, .inquiry select:focus, .inquiry textarea:focus {
  outline: none; border-color: #a9c7b0; background-color: rgba(244, 241, 234, 0.1);
}
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 4px; }
.form-foot .btn { cursor: pointer; font-family: var(--mono); }
.form-note { font-size: 12px; color: color-mix(in srgb, var(--cc-fg) 60%, transparent); max-width: 40ch; line-height: 1.5; }
.email-sm { color: var(--cc-fg); }
.copy-btn {
  font: inherit; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  background: transparent; color: color-mix(in srgb, var(--cc-fg) 70%, transparent);
  border: 1px solid rgba(244, 241, 234, 0.2); border-radius: 999px; padding: 4px 11px; transition: border-color 0.2s, color 0.2s;
}
.copy-btn:hover { border-color: var(--cc-fg); color: var(--cc-fg); }

/* App pages: gently floating phones */
.phones img { animation: float 7s ease-in-out infinite; }
.phones img:nth-child(2) { animation: float2 7s ease-in-out -2.3s infinite; }
.phones img:nth-child(3) { animation-delay: -4.6s; }
@keyframes float2 { 0%, 100% { transform: translateY(-22px); } 50% { transform: translateY(-32px); } }

/* Scroll reveal (applied by main.js) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease var(--delay, 0s), transform 0.8s cubic-bezier(.2,.7,.2,1) var(--delay, 0s); }
.reveal.in { opacity: 1; transform: none; }
.service.reveal.in, .engage.reveal.in, .app-card.reveal.in { transition: opacity 0.8s ease var(--delay, 0s), transform 0.25s ease, border-color 0.25s, box-shadow 0.25s; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 500px; width: 100%; margin: 8px auto 0; }
  .engage-grid { grid-template-columns: 1fr; max-width: 560px; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .contact-card.has-form { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .menu-btn { display: grid; }
  .nav { gap: 10px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
  }
  .nav-links a { padding: 13px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .site-head.open .nav-links { display: flex; animation: pop 0.25s ease; }
  .avail { display: flex; width: fit-content; margin-bottom: 12px; }
  .audit { grid-template-columns: 1fr; padding: 24px; }
  .inquiry { grid-template-columns: 1fr; }
  .faq-list summary { font-size: 17px; }
}
@media (max-width: 480px) {
  .nav > .btn.sm { display: none; }
  .nav-links a.menu-cta { display: block; color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .phones img:nth-child(2) { transform: translateY(-22px); }
}

/* Inquiry form: honeypot, sending state, and thank you panel */
.inquiry[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.inquiry .btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.sent { display: grid; gap: 16px; justify-items: start; align-self: center; animation: pop 0.5s ease; }
.sent[hidden] { display: none; }
.sent:focus { outline: none; }
.sent h3 { font-size: clamp(26px, 3vw, 34px); }
.sent h3 em { font-style: italic; color: #a9c7b0; }
.sent p { margin-top: 0; }
.sent-ico {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(169, 199, 176, 0.16); color: #a9c7b0;
  box-shadow: 0 0 0 8px rgba(169, 199, 176, 0.06);
}
.sent-ico svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 0.6s ease 0.2s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .sent-ico svg { stroke-dashoffset: 0; } }
