/* Shared look for the blog pages: copied from the home page so they match. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  color-scheme: dark;
  --bg: #070707; --surface: #141413; --card: rgba(255,255,255,0.035);
  --text: #efeeea; --text2: #a9a8a1; --muted: #7d7c76; --dim: #5f5e59;
  --line: rgba(255,255,255,0.11); --line2: rgba(255,255,255,0.06);

  --sans:  'Geist', Arial, sans-serif;
  --mono:  'Geist Mono', 'Courier New', monospace;
  --serif: 'Instrument Serif', Georgia, serif;

  --gutter:    clamp(1.25rem, 5vw, 4.5rem);
  --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);
  --max:       1200px;
  --radius:    20px;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--mono); font-size: 10.5px; line-height: 1.6; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.08em; letter-spacing: -0.02em; }
.nowrap { white-space: nowrap; }

/* ── BACKGROUND ── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-grid {
  position: absolute; inset: -128px;
  background-image:
    linear-gradient(to right,  rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to right,  rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 128px 128px, 128px 128px, 32px 32px, 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 35%, transparent 90%);
          mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 35%, transparent 90%);
  animation: grid-pan 48s linear infinite;
}
@keyframes grid-pan { to { transform: translate(128px, 128px); } }

/* ── BUTTON (glossy light pill, as on the live site) ── */
.button {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  min-height: 58px; padding: 0.4rem 0.4rem 0.4rem 1.6rem; border: 0; cursor: pointer;
  border-radius: 999px; color: #0b0b0a; font: inherit; font-size: 0.95rem; font-weight: 550; letter-spacing: -0.01em; white-space: nowrap; text-decoration: none;
  background: linear-gradient(180deg, #ffffff 0%, #eeede8 50%, #d3d2cb 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -4px 10px rgba(0,0,0,0.14), 0 0 0 1px rgba(255,255,255,0.08), 0 18px 40px -16px rgba(230,236,248,0.28);
  transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
}
.button::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.7) 50%, transparent 70%); transform: translateX(-110%) skewX(-16deg); transition: transform 0.7s ease; }
.button::after { content: ''; position: absolute; left: 12%; right: 12%; top: 3px; height: 44%; border-radius: 999px; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0)); }
.button:hover { transform: translateY(-2px); background: linear-gradient(180deg, #fff 0%, #f6f5f1 50%, #dedcd6 100%); box-shadow: inset 0 1px 0 #fff, inset 0 -4px 10px rgba(0,0,0,0.12), 0 0 0 1px rgba(255,255,255,0.12), 0 22px 46px -16px rgba(230,236,248,0.4); }
.button:hover::before { transform: translateX(110%) skewX(-16deg); }
.button .arrow { position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; background: #0b0b0a; color: #f3f2ee; box-shadow: inset 0 -2px 4px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.3); transition: transform 0.35s cubic-bezier(.2,.65,.3,1); }
.button:hover .arrow { transform: rotate(45deg); }
.button.sm { min-height: 42px; padding: 0.25rem 0.25rem 0.25rem 1.05rem; font-size: 0.84rem; gap: 0.75rem; }
.button.sm .arrow { width: 34px; height: 34px; }
.button:disabled { opacity: 0.6; cursor: wait; }

/* ── NAV ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(7,7,7,0.72); border-color: var(--line2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav .wrap { display: flex; align-items: center; gap: 2rem; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 550; font-size: 0.98rem; letter-spacing: -0.02em; text-decoration: none; margin-right: auto; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a { font-size: 0.88rem; color: var(--text2); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* ── 10 FOOTER ── */
footer { padding: clamp(3.5rem, 7vw, 5.5rem) 0 calc(2.5rem + env(safe-area-inset-bottom, 0px)); position: relative; }
footer::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(1100px, 90%); height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08) 25%, rgba(255,255,255,0.08) 75%, transparent); }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.foot p { color: var(--text2); font-size: 0.93rem; margin-top: 1rem; max-width: 20em; }
.foot h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 1rem; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,0.03); color: var(--text2); transition: color .25s, border-color .25s, background .25s, transform .3s cubic-bezier(.2,.65,.3,1); }
.social a:hover { color: var(--text); border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.07); transform: translateY(-2px); }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.foot a { color: var(--text2); text-decoration: none; font-size: 0.93rem; transition: color .2s; }
.foot a:hover { color: var(--text); }
.legal { margin-top: clamp(3rem, 6vw, 4.5rem); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.legal a { color: var(--muted); text-decoration: none; }
.legal a:hover { color: var(--text); }
.wordmark { margin-top: clamp(2rem, 5vw, 3.5rem); font-weight: 520; font-size: clamp(3.5rem, 15vw, 15rem); letter-spacing: -0.07em; line-height: 0.8; text-align: center; color: transparent; background: linear-gradient(180deg, rgba(239,238,234,0.16), rgba(239,238,234,0.02)); -webkit-background-clip: text; background-clip: text; user-select: none; }


.rise { animation: rise 0.9s cubic-bezier(.2,.65,.3,1) both; }
.d1 { animation-delay: 0.08s; } .d2 { animation-delay: 0.18s; } .d3 { animation-delay: 0.3s; } .d4 { animation-delay: 0.45s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 1.25rem; }
  .nav .wrap { height: 60px; }
  .button { gap: 0.9rem; padding-left: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .bg-grid { animation: none; }
}

/* footer on phones: compact, left-aligned, no section headings */
@media (max-width: 640px) {
  footer { padding: 2.4rem 0 calc(1.6rem + env(safe-area-inset-bottom, 0px)); }
  .foot { grid-template-columns: 1fr auto; gap: 0; align-items: start; }
  .foot > div:first-child { grid-column: 1; grid-row: 1; }
  .foot > div:nth-child(2) { grid-column: 2; grid-row: 1; }
  .foot > div:nth-child(n+3) { grid-column: 1 / -1; }
  .foot > div:nth-child(3) { margin-top: 1.4rem; }
  .foot > div:nth-child(4) { margin-top: 0.55rem; }
  .foot h4 { display: none; }
  .foot p { margin-top: 0.6rem; font-size: 0.88rem; max-width: 24em; }
  .social a { width: 38px; height: 38px; }
  .foot ul { flex-direction: row; flex-wrap: wrap; gap: 0.45rem 1.3rem; }
  .foot a { font-size: 0.9rem; }
  .legal { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line2); justify-content: space-between; font-size: 10.5px; }
  .wordmark { display: none; }
}

/* ══ WHITE THEME: matches the home page (white, ink, one font, black buttons, no cards) ══ */
:root { color-scheme: light; --bg: #ffffff; --surface: #f6f6f4; --card: rgba(11,11,10,0.03);
  --text: #0b0b0a; --text2: #4d4c47; --muted: #84837c; --dim: #a5a49d; --line: rgba(11,11,10,0.1); --line2: rgba(11,11,10,0.06);
  --mono: var(--sans); --serif: var(--sans); }
::selection { background: #0b0b0a; color: #fff; }
.bg { display: none; }
.mono { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0; text-transform: none; color: var(--muted); }
em { font-family: inherit; font-style: normal; font-weight: inherit; font-size: inherit; letter-spacing: inherit; }
.nav, .nav.solid { background: rgba(255,255,255,0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line2); }
.brand img { filter: invert(1); }
.button, .button:hover, .button:active { justify-content: center; gap: 0; min-height: 50px; padding: 0 1.6rem; border-radius: 12px; background: #0b0b0a; color: #fff; font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 10px 26px -12px rgba(0,0,0,0.45); transform: none !important; translate: none !important; }
.button:hover { background: #262624; }
.button::before, .button::after, .button .arrow { display: none; }
.button.sm { min-height: 38px; padding: 0 1rem; font-size: 0.86rem; border-radius: 10px; }
footer::before, .foot { display: none; }
.legal { margin-top: 0; justify-content: center; gap: 1.4rem; font-size: 0.85rem; color: var(--muted); }
.wordmark { background: linear-gradient(180deg, rgba(11,11,10,0.13), rgba(11,11,10,0.02)); -webkit-background-clip: text; background-clip: text; }
@media (max-width: 640px) {
  .wordmark { display: block; margin-top: 1.6rem; font-size: 17.5vw; }
  .legal { margin-top: 0; padding-top: 0; border-top: 0; justify-content: center; }
  .nav .button.sm { display: none; }
}

/* Book a call in green */
.button:not(.ghost), .hero .cta .button:not(.ghost) { background: #0b0b0a; color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 10px 26px -12px rgba(0,0,0,0.35); }
.button:not(.ghost):hover { background: #2c2c2a; }

/* Buttons v3: flat and minimal. Compact, no shadow, no edge, no motion; secondary is a plain text link */
.button, .hero .cta .button { min-height: 44px !important; padding: 0 1.15rem !important; border-radius: 8px !important; font-size: 0.94rem !important; font-weight: 500; letter-spacing: -0.01em; border: 0; transition: background-color .15s ease, color .15s ease; }
.button:not(.ghost), .hero .cta .button:not(.ghost), .button:not(.ghost):hover, .button:not(.ghost):active { background: #0b0b0a; color: #fff; box-shadow: none !important; }
.button:not(.ghost):hover, .hero .cta .button:not(.ghost):hover { background: #2c2c2a; }
.button.ghost, .hero .cta .button.ghost, .button.ghost:hover, .hero .cta .button.ghost:hover { background: transparent !important; color: #0b0b0a; box-shadow: none !important; padding: 0 0.6rem !important; text-decoration: underline; text-decoration-color: rgba(11,11,10,0.25); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.button.ghost:hover, .hero .cta .button.ghost:hover { text-decoration-color: #0b0b0a; }
.button:focus-visible { outline: 2px solid #0b0b0a; outline-offset: 3px; }
.button.sm { min-height: 36px !important; padding: 0 0.9rem !important; font-size: 0.86rem !important; border-radius: 7px !important; }
@media (max-width: 760px) { .hero .cta .button { flex: 0 0 auto !important; min-height: 46px !important; } }

.brand img.brand-logo { width: auto; height: 24px; border-radius: 0; filter: none; display: block; }
@media (max-width: 640px) { .brand img.brand-logo { height: 19px; } }
