/* Page CSS on top of the design-taste-frontend kit (assets/system.css, layout.css, motion.css).
   Only what the kit lacks, plus the items the brief asks for that the kit would not choose (waivers). */

/* waiver: the brief asks for the logo's near-black bold lowercase type */
:root { --display-weight: 700; }
h1, h2 { text-transform: lowercase; }
h1 { letter-spacing: -0.045em; }

/* the client's own logo: the stacked wordmark, "gray" in the logo's grey, the lime square */
.gdm-logo, .nav__logo svg.gdm-logo { display: block; width: 46px; height: 45px; max-height: none; overflow: visible; }
.gdm-logo text { font: 700 26px var(--font-display); letter-spacing: -0.02em; fill: currentColor; }
.gdm-logo .lg-g { fill: #77787b; }
.ground-inverse .gdm-logo .lg-g { fill: var(--p-inv-muted); }
.gdm-logo .lg-dot { fill: var(--p-accent); }
.footer-logo svg.gdm-logo { width: 82px; height: 80px; }

/* lightbox triggers are buttons that look like their pictures */
.lb-open, .lb-tile { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; color: inherit; font: inherit; text-align: left; }
.lb-open { height: 100%; }
.lb-open > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lb-tile { display: grid; gap: var(--s-4); }
.lb-tile .tile__name { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
@media (hover: hover) and (pointer: fine) { .lb-tile:hover .tile__media > img { transform: scale(1.03); } }

/* pinned-chapters (inside its visual): the samples are tall, so the live frame is 4:5 */
#work .mo-pc__visual[data-lightbox] { cursor: zoom-in; }
#work.is-live .mo-pc__visuals { aspect-ratio: 4 / 5; width: min(100%, calc((100svh - 128px) * .8)); justify-self: end; }

/* bold display type is wider: keep the split hero's h1 within three lines at its 45-character limit */
.hero--split h1 { font-size: clamp(40px, 4.1vw, 60px); }
.pic-43 { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-lg); }
.svc-stack { display: grid; gap: var(--s-7); }
@media (max-width: 1023px) { #list .pic-43 { aspect-ratio: 16 / 9; } } /* shorter when stacked, so the list keeps to two screens */

/* the phone and tablet heights the checker asked for */
@media (min-width: 640px) and (max-width: 1023px) {
  #samples, #prices, #monthly { --h: 2; }
  main > #work[data-moment]:not(.is-live) { min-height: calc(2 * 100svh); }
}
@media (max-width: 639px) { main > #work[data-moment]:not(.is-live) { min-height: calc(2 * 100lvh); } }
.contact-rows .rows__value { white-space: normal; overflow-wrap: anywhere; text-align: right; }
.work-note { color: var(--muted); max-width: 46ch; margin-top: var(--s-4); }

.rows-more { margin-top: var(--s-6); }
.svc-grid { row-gap: var(--s-8); }
.svc-block h3 { font: 500 var(--t-card)/1.3 var(--font-text); margin-bottom: var(--s-3); }
.svc-block > p { margin-bottom: var(--s-5); max-width: 52ch; }
.price-label { margin-bottom: var(--s-4); }
.price-label--gap { margin-top: var(--s-7); }
.terms { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: grid; gap: var(--s-2); }
.terms li { padding-left: var(--s-5); position: relative; }
.terms li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--p-accent); }
.about-copy p { font-size: var(--t-lead); line-height: 1.6; margin: 0 0 var(--s-5); max-width: 46ch; }
.about-pic { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-lg); }
.tally { background: var(--p-surface); padding: var(--s-6); border-radius: var(--r-lg); }
.tally iframe { width: 100%; height: 500px; border: 0; display: block; }
.tally .t-small { margin-top: var(--s-4); }

/* lightbox: a sample big, with its story */
.lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: transparent; color: var(--p-inv-ink); }
.lb::backdrop { background: rgba(29, 33, 39, .95); }
.lb-inner { width: 100%; height: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(260px, 380px) 56px; align-items: center; gap: var(--s-7); padding: var(--s-8) var(--s-6) var(--s-5); }
.lb-frame { justify-self: center; }
.lb-frame img { max-width: 100%; max-height: calc(100dvh - 128px); width: auto; height: auto; border-radius: var(--r-lg); }
.lb-story h3 { font: 700 var(--t-h2)/1 var(--font-display); letter-spacing: -0.035em; text-transform: lowercase; margin: var(--s-4) 0 var(--s-2); }
.lb-story p { margin: 0 0 var(--s-4); }
.lb-story .sub, .lb-story .note, .lb-story .count { color: var(--p-inv-muted); }
.lb-tag { display: inline-block; background: var(--p-accent); color: var(--p-accent-ink); font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: var(--r-sm); }
.lb button.lb-nav, .lb-close { background: none; border: 0; color: var(--p-inv-ink); cursor: pointer; min-width: 44px; min-height: 44px; font-size: 24px; border-radius: var(--r-sm); }
.lb-close { position: absolute; top: var(--s-4); right: var(--s-5); font-size: 16px; font-weight: 500; padding: 0 var(--s-4); }
.lb button.lb-nav:hover, .lb-close:hover { background: var(--p-accent); color: var(--p-accent-ink); }
.lb :focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; }
@media (max-width: 859px) {
  .lb-inner { grid-template-columns: 44px minmax(0, 1fr) 44px; grid-template-rows: auto auto; align-content: start; overflow-y: auto; gap: var(--s-4); padding-top: 64px; }
  .lb-frame { grid-column: 2; grid-row: 1; }
  .lb-frame img { max-height: 54dvh; }
  .lb-story { grid-column: 1 / -1; grid-row: 2; }
  .lb button.lb-nav { grid-row: 1; }
}

/* waiver: one-tap page dock on phones (brief: services, pricing, work and contact one tap away) */
.dock { display: none; }
@media (max-width: 639px) {
  :root { --bar: calc(56px + env(safe-area-inset-bottom)); }
  .dock { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; background: var(--p-bg); border-top: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); padding-bottom: env(safe-area-inset-bottom); }
  .dock a { min-height: 56px; display: grid; place-items: center; font-size: 14px; font-weight: 500; color: var(--p-ink); text-decoration: none; }
  .dock a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--p-accent); }
}

/* React Bits ClickSpark port: its canvas */
.sparks { position: fixed; inset: 0; z-index: 30; pointer-events: none; }

/* waiver: Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* the client logo file in the nav (an image, so it reads as one mark) */
.nav__logo .gdm-logo-img { display: block; width: 58px; height: 44px; max-height: none; }
.terms-note { margin-top: var(--s-5); color: var(--muted); max-width: 52ch; }
.terms-note + p { margin-top: var(--s-5); }
[role="button"][data-lightbox] { cursor: zoom-in; }
.rows__value > a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; } /* 44px tap target, row height unchanged */

/* ===== bolder layer (the client asked to go past the kit's calm rules) ===== */
/* hero: giant stacked type, letters thin near the cursor (TextPressure port) */
.hero h1.mega { font-size: clamp(46px, min(6.6vw, 11.5svh), 112px); line-height: .9; letter-spacing: -0.05em; }
.hero h1.mega .line { display: block; }
.hero h1.mega .ch { display: inline-block; font-variation-settings: 'wght' 700; }
.h-dot { display: inline-block; width: .17em; height: .17em; background: var(--p-accent); margin-left: .04em; }
.hero__text--bold .hero__lead { max-width: 40ch; }

/* word strip that speeds up and leans with scroll speed (ScrollVelocity port) */
/* doubled class: beats the kit's phone min-height rule on main > section (specificity 0,2,1) */
main > section.velo.velo { height: auto; min-height: 0; padding: clamp(24px, 5vh, 48px) 0; overflow: hidden; border-block: 2px solid var(--p-ink); }
.velo-row { white-space: nowrap; }
.velo-track { display: inline-flex; align-items: center; font: 700 clamp(48px, 9vw, 150px)/1.02 var(--font-display); letter-spacing: -0.045em; text-transform: lowercase; will-change: transform; }
.velo-track span { padding-right: .3em; }
.velo-track i { display: inline-block; width: .28em; height: .28em; background: var(--p-accent); margin-right: .3em; }
.velo-row--outline .velo-track { -webkit-text-fill-color: transparent; -webkit-text-stroke: max(1.5px, .025em) var(--p-ink); }

/* cursor square that labels what it is over */
.cursor { position: fixed; left: 0; top: 0; z-index: 40; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--p-accent); box-shadow: 0 0 0 1.5px var(--p-ink); pointer-events: none; display: grid; place-items: center; font: 600 12px/1 var(--font-text); color: var(--p-accent-ink); transition: width .35s cubic-bezier(.22,1,.36,1), height .35s cubic-bezier(.22,1,.36,1), margin .35s cubic-bezier(.22,1,.36,1); }
.cursor span { opacity: 0; transition: opacity .2s; }
.cursor.big { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
.cursor.big span { opacity: 1; }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) { .cursor { display: none; } }
