/* spydrhaus v2 — shared styles (Nov 2026 rebuild) */
:root {
  --night: #0a070b;
  --night-2: #141016;
  --night-3: #1d1820;
  --silk: #ece6dd;
  --ash: #9d95a0;
  --line: rgba(236, 230, 221, .13);
  --line-2: rgba(236, 230, 221, .24);
  --pink: #ff5ccf;
  --display: 'Syne', 'Arial Narrow', sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1480px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--night); color: var(--silk); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.025em; line-height: 1.02; }
::selection { background: var(--pink); color: var(--night); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--silk); color: var(--night); padding: 10px 14px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--ash); }
.mark { font-family: var(--display); font-weight: 800; letter-spacing: -.045em; white-space: nowrap; }
.mark i { font-style: normal; color: var(--pink); }

/* buttons and links */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--silk); background: var(--silk); color: var(--night); font: 700 15px/1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--pink); border-color: var(--pink); color: var(--night); }
.btn.line { background: transparent; color: var(--silk); border-color: var(--line-2); }
.btn.line:hover { border-color: var(--silk); background: transparent; color: var(--silk); }
.btn[disabled] { opacity: .35; pointer-events: none; }
.txt { color: var(--silk); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-color .2s; }
.txt:hover { text-decoration-color: var(--pink); }

/* header */
.top { position: fixed; inset: 0 0 auto; z-index: 30; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.top.solid { background: var(--night); border-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.top .home { font-size: 24px; text-decoration: none; margin-right: auto; display: block; }
.mark-img { display: block; height: 1.02em; width: auto; }
.top { z-index: 50; }
.top .top-cta { margin-left: auto; min-height: 40px; padding: 0 18px; font-size: 14px; }
.menu-btn { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--silk); cursor: pointer; transition: border-color .2s, background .2s; }
.menu-btn:hover { border-color: var(--silk); }
.menu-btn i { position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px; margin: -.75px 0 0 -9px; background: currentColor; transition: transform .45s cubic-bezier(.7, 0, .3, 1); }
.menu-btn i + i { transform: rotate(90deg); }
.menu-open .menu-btn { background: var(--silk); color: var(--night); border-color: var(--silk); }
.menu-open .menu-btn i { transform: rotate(45deg); }
.menu-open .menu-btn i + i { transform: rotate(135deg); }
.menu-open .top { background: transparent; border-color: transparent; }
@media (max-width: 520px) { .top .top-cta { display: none; } .top .home { font-size: 21px; } .top .wrap { justify-content: space-between; } }

/* full-screen menu: opens through a diamond, the words rise in one after another */
.menu { position: fixed; inset: 0; z-index: 45; display: grid; grid-template-rows: 1fr auto; padding: 96px var(--gut) 28px; background: var(--night); transform: translateX(101%); box-shadow: -2px 0 0 var(--pink); transition: transform .6s cubic-bezier(.7, 0, .2, 1); overflow: auto; }
.menu.on { transform: none; }
.menu::before { content: ""; position: absolute; inset: 0; background: url(/assets/foot-light.jpg) center / cover; opacity: .28; pointer-events: none; }
.menu nav { position: relative; align-self: center; }
.menu-links { list-style: none; margin: 0; padding: 0; }
.menu-links li { overflow: hidden; }
.menu-links a { display: inline-block; padding: .02em 0; font: 800 clamp(52px, 11vw, 170px)/.94 var(--display); letter-spacing: -.055em; color: var(--silk); text-decoration: none; transform: translateY(105%); transition: transform .8s cubic-bezier(.2, .7, .2, 1), color .25s, opacity .25s; }
.menu.on .menu-links a { transform: none; }
.menu.on .menu-links li:nth-child(2) a { transition-delay: .06s, 0s, 0s; }
.menu.on .menu-links li:nth-child(3) a { transition-delay: .12s, 0s, 0s; }
.menu.on .menu-links li:nth-child(4) a { transition-delay: .18s, 0s, 0s; }
.menu.on .menu-links li:nth-child(5) a { transition-delay: .24s, 0s, 0s; }
.menu-links:hover a { opacity: .3; }
.menu-links a:hover, .menu-links a:focus-visible { opacity: 1; color: var(--pink); }
.menu-links a[aria-current="page"]::after { content: "."; color: var(--pink); }
.menu-foot { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ash); }
.menu-foot a { color: var(--silk); text-decoration: none; margin-right: 18px; }
.menu-foot a:hover { color: var(--pink); }
.menu-open { overflow: hidden; }
/* menu, calmer layout: links on the left, a short contact column on the right, all on one screen */
.menu { grid-template-rows: 1fr; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); gap: 40px clamp(32px, 6vw, 110px); padding: 110px clamp(24px, 6vw, 110px) 48px; }
.menu::before { opacity: .1; }
.menu nav { align-self: center; }
.menu-links li + li { margin-top: clamp(2px, .6vh, 8px); }
.menu-links a { font: 700 clamp(40px, min(6.2vw, 10.5vh), 104px)/1.04 var(--display); letter-spacing: -.045em; }
.menu-links a::before { content: ""; display: inline-block; width: 0; height: .09em; margin-right: 0; vertical-align: middle; background: var(--pink); transition: width .4s var(--ease), margin .4s var(--ease); }
.menu-links a:hover::before, .menu-links a:focus-visible::before { width: .5em; margin-right: .22em; }
.menu-foot { align-self: end; flex-direction: column; flex-wrap: nowrap; justify-content: flex-end; gap: 14px; padding: 0 0 0 clamp(24px, 3vw, 44px); border-top: 0; border-left: 1px solid var(--line); opacity: 0; transform: translateY(12px); transition: opacity .6s .3s, transform .6s .3s var(--ease); }
.menu.on .menu-foot { opacity: 1; transform: none; }
.menu-lede { margin: 0; font: 700 clamp(22px, 1.8vw, 28px)/1.15 var(--display); letter-spacing: -.02em; color: var(--silk); }
.menu-foot .menu-cta { display: inline-flex; align-self: flex-start; align-items: center; min-height: 46px; margin: 4px 0 18px; padding: 0 22px; border-radius: 999px; background: var(--silk); color: var(--night); font-weight: 600; }
.menu-foot .menu-cta:hover { background: var(--pink); color: var(--night); }
.menu-foot span { display: block; }
@media (max-width: 760px) {
  .menu { grid-template-columns: 1fr; grid-template-rows: 1fr auto; padding: 96px var(--gut) 28px; gap: 28px; }
  .menu-foot { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .menu-links a { font-size: clamp(38px, 11vw, 64px); }
}
/* homepage: the corner logo waits until the big wordmark has scrolled away */
.is-home .top .home { opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .4s, transform .4s var(--ease); }
.is-home .top.solid .home, .is-home.menu-open .top .home, html.menu-open .is-home .top .home { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .menu, .menu-links a { transition: none; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dot { font-style: normal; color: var(--pink); }

/* section rhythm */
.sec { padding: clamp(88px, 11vw, 168px) 0; position: relative; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-h { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: end; margin-bottom: clamp(40px, 6vw, 88px); }
.sec-h h2 { grid-column: 1 / span 7; font-size: clamp(44px, 6.4vw, 104px); }
.sec-h p { grid-column: 9 / -1; color: var(--ash); max-width: 42ch; margin: 0; }
@media (max-width: 900px) { .sec-h { grid-template-columns: 1fr; } .sec-h h2, .sec-h p { grid-column: auto; } }

/* footer */
.foot { position: relative; border-top: 1px solid var(--line); overflow: hidden; }
.foot-web { position: absolute; inset: 0; opacity: .55; pointer-events: none; }
.foot-web img, .foot-web .us { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.foot .wrap { position: relative; padding-top: clamp(80px, 10vw, 140px); padding-bottom: 32px; }
.foot .big { font-size: clamp(52px, 10vw, 170px); line-height: .92; display: block; text-decoration: none; white-space: normal; text-wrap: balance; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 7vw, 96px); padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; }
.foot-cols h4 { font: 600 14px/1.4 var(--body); color: var(--ash); margin-bottom: 10px; letter-spacing: 0; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { color: var(--pink); }
.foot-mark { position: relative; display: flex; width: max-content; margin: clamp(40px, 6vw, 80px) 0 -.06em; font: 800 11.6vw/.86 var(--display); letter-spacing: -.06em; white-space: nowrap; color: var(--silk); user-select: none; animation: foot-run 28s linear infinite; }
.foot-mark span { display: flex; align-items: flex-end; gap: .45em; padding-right: .45em; }
.foot-mark img { display: block; height: .8em; width: auto; }
@keyframes foot-run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .foot-mark { animation: none; } }
.foot-mark i { font-style: normal; color: var(--pink); }
.foot-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; font-size: 13px; color: var(--ash); }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr 1fr; } }

/* reveal: one orchestrated hero load only, nothing else animates in */
@media (prefers-reduced-motion: no-preference) {
  .load { opacity: 0; transform: translateY(14px); animation: load .9s var(--ease) forwards; }
  .load.d1 { animation-delay: .15s; } .load.d2 { animation-delay: .3s; } .load.d3 { animation-delay: .45s; }
  @keyframes load { to { opacity: 1; transform: none; } }
}

/* page changes: the old page sinks back and blurs while the new one opens through a diamond.
   Cross-document view transitions (Chrome, Edge, Safari 18.2+); fx.js plays a similar wipe elsewhere. */
@view-transition { navigation: auto; }
/* page change, "the sweep" (after Caris's reference): a dark panel with a pink leading edge sweeps
   across from the right and covers the page, the wordmark rises into its middle, then the panel
   parts from the middle to show the next page. */
::view-transition-old(root) { animation: none; z-index: 1; }
::view-transition-new(root) { animation: vt-in .7s cubic-bezier(.7, 0, .2, 1) both; z-index: 2; }
::view-transition-group(root) { animation-duration: .7s; }
@keyframes vt-in { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
.sweep { position: fixed; inset: 0; z-index: 9998; pointer-events: none; overflow: hidden; }
.sweep::before { content: ""; position: absolute; inset: 0; background: var(--night-2); box-shadow: -2px 0 0 var(--pink); transform: translateX(101%); animation: sweep-in .5s cubic-bezier(.7, 0, .2, 1) forwards; will-change: transform; }
.sweep b { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); overflow: hidden; padding: .1em .06em; font: 800 clamp(34px, 5.2vw, 84px)/1 var(--display); letter-spacing: -.04em; white-space: nowrap; color: var(--silk); }
.sweep b span { display: inline-block; transform: translateY(120%); animation: sweep-mark .5s .34s cubic-bezier(.2, .7, .1, 1) forwards; }
.sweep b i { font-style: normal; color: var(--pink); }
.sweep b img { display: block; height: .9em; width: auto; max-width: 84vw; object-fit: contain; }
@keyframes sweep-in { to { transform: none; } }
@keyframes sweep-mark { to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .sweep { display: none; }
}

/* the round View label takes over from the spider, so the two never stack */
html:has(.view-cursor.on) .spider { opacity: 0 !important; }
html.menu-open:has(.menu-btn:hover) .spider { opacity: 0 !important; }

/* footer "Let's build yours." reads as a button: pink arrow disc, underline draws on hover */
.foot .big-cta { display: block; color: var(--silk); }
.big-cta .bc-t { -webkit-box-decoration-break: clone; box-decoration-break: clone; background: linear-gradient(var(--pink), var(--pink)) 0 100% / 0 .06em no-repeat; padding-bottom: .04em; transition: background-size .6s var(--ease); }
.big-cta .bc-go { display: inline-grid; place-items: center; vertical-align: -.02em; width: .72em; height: .72em; margin-left: .18em; border-radius: 50%; background: var(--pink); color: var(--night); transform: rotate(-45deg); transition: transform .5s var(--ease), background .3s; }
.big-cta .bc-go svg { width: 46%; height: 46%; }
.big-cta:hover .bc-t, .big-cta:focus-visible .bc-t { background-size: 100% .06em; }
.big-cta:hover .bc-go, .big-cta:focus-visible .bc-go { transform: rotate(0) scale(1.06); background: var(--silk); }
.big-cta:active .bc-go { transform: rotate(0) scale(.96); }
@media (prefers-reduced-motion: reduce) { .big-cta .bc-t, .big-cta .bc-go { transition: none; } }
