/* Production layout and content are the authority. This file changes appearance only. */
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #101216;
  --surface: #0d1116;
  --surface-raised: #151a20;
  --ink: #f4f5f7;
  --ink-soft: #b6bbc3;
  --ink-mute: #979da7;
  --line: rgba(225, 233, 239, 0.17);
  --line-soft: rgba(225, 233, 239, 0.105);
  --glass: rgba(16, 21, 25, 0.65);
  --glass-2: rgba(28, 35, 39, 0.78);
  /* Keep the production gradient colors used by the two hero animations. */
  --accent: #8fb6ff;
  --accent-2: #c7a8ff;
  --accent-3: #7ee0c8;
  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: var(--sans);
  --r: 2px;
  --radius: 2px;
  --radius-sm: 2px;
}

body.restyle {
  --landscape-height: 1050px;
  --landscape-min-height: 1050px;
  position: relative;
  isolation: isolate;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: -0.012em;
}

/* One landscape behind the opening; a sparse night sky continues through the site. */
.restyle .ambient {
  position: absolute;
  inset: 0 0 auto;
  height: var(--landscape-height);
  z-index: -2;
  background: var(--bg) url("/assets/orlando-night-dark.webp") no-repeat;
  background-position: var(--landscape-position, center bottom);
  background-size: var(--landscape-size, cover);
  filter: brightness(0.4);
  opacity: 1;
  /* Fade only the lower water; the city and fountain remain fully opaque. */
  mask-image: linear-gradient(to bottom, #000 calc(100% - min(320px, 28%)), transparent);
}
.restyle .ambient::before, .restyle .ambient::after {
  content: none;
}
.restyle .grain {
  position: absolute;
  inset: var(--landscape-height) 0 0;
  opacity: 0.42;
  background: url("/assets/night-stars.svg") 0 45px / 720px 640px repeat;
  mask-image: linear-gradient(transparent, #000 160px, #000);
}
.restyle .grain.has-parallax { background: none; }
.restyle .grain.has-parallax::before {
  content: "";
  position: fixed;
  /* One extra tile at each edge covers a full repeating scroll offset. */
  inset: -640px 0;
  background: url("/assets/night-stars.svg") 0 45px / 720px 640px repeat;
  transform: translate3d(0, var(--star-parallax-offset, 0px), 0);
  pointer-events: none;
}
body.restyle::after {
  content: "";
  position: absolute;
  inset: var(--landscape-height) 0 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 4% 55%, rgba(82,151,125,0.065), transparent 42%),
    radial-gradient(ellipse at 95% 84%, rgba(101,111,168,0.06), transparent 43%);
}
body.restyle-library, body.restyle-study, body.restyle-work {
  --landscape-height: 780px;
  --landscape-min-height: 780px;
}

/* Keep the navigation's existing placement and destinations; simplify its silhouette. */
.restyle > nav, .restyle .site-nav {
  border-radius: 2px;
  padding: 0 0 0 20px;
  min-height: 58px;
  background: rgba(6,8,11,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.restyle > nav.scrolled, .restyle .site-nav.is-scrolled {
  background: rgba(6,8,11,0.98);
  box-shadow: none;
}
.restyle .brand { font-weight: 500; gap: 10px; flex-shrink: 0; }
.restyle .brand span { font-size: 0.84rem; font-weight: 400; }
.restyle .nav-links { gap: 0; }
.restyle .nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 11px;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 0.81rem;
  font-weight: 400;
  letter-spacing: 0;
}
.restyle .nav-links .nav-cta {
  margin: 0 0 0 8px;
  padding-inline: 20px;
  background: #ededee;
  border: 0;
  color: #16191d !important;
  font-weight: 500;
}
.restyle .nav-links .nav-cta:hover { background: #fff !important; }
.restyle .nav-toggle { min-width: 54px; min-height: 56px; align-items: center; justify-content: center; }

/* The hero gradients and word-swipe animation remain in the production styles/scripts. */
.restyle h1, .restyle .page-hero h1, .restyle .library-hero h1, .restyle .study-title {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.09;
}
.restyle-home h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
.restyle .hero-promise { font-weight: 400; line-height: 1.15; }
.restyle .hero-grid > *, .restyle .page-hero-grid > * { min-width: 0; }
.restyle .lede, .restyle .hero-lede { line-height: 1.7; }
.restyle .portrait .photo {
  --portrait-fade-start: 90%;
  aspect-ratio: 1062 / 983;
  padding: 3px;
  border-radius: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 var(--portrait-fade-start), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 var(--portrait-fade-start), transparent 100%);
}
.restyle .portrait .photo img {
  object-fit: contain;
  filter: url("#portrait-edge-feather");
}
.restyle .eyebrow {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
  backdrop-filter: none;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  line-height: 1.6;
}
.restyle .dot { box-shadow: none; width: 5px; height: 5px; }
.restyle .sec-title, .restyle .section-title,
.restyle .contact h2, .restyle .contact-intro h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.restyle h3, .restyle .work-card h2, .restyle .tl-co,
.restyle .case-title, .restyle .study-section h2 { font-weight: 500; }
.restyle .sec-title { font-size: clamp(1.75rem, 3.4vw, 2.65rem); }
.restyle .stat .big, .restyle .proof-stat strong, .restyle .evidence-item strong {
  font-weight: 400;
  background: none;
  color: var(--ink);
  -webkit-text-fill-color: currentColor;
}
.restyle .stat .lbl, .restyle .proof-stat span,
.restyle .case-tag, .restyle .case-meta .k, .restyle .tl-when,
.restyle .tool-category-label, .restyle .field label {
  letter-spacing: 0.065em;
}

/* Existing grids, media, and content order stay intact. */
.restyle .glass, .restyle .work-card, .restyle .access-card,
.restyle .contact, .restyle .contact-shell, .restyle .conversion-panel,
.restyle .study-note, .restyle .study-evidence, .restyle .proof-strip,
.restyle .ref-feature, .restyle .empty, .restyle .fatal {
  border-radius: 2px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.restyle .work-card { background: var(--glass); }
.restyle .stat, .restyle .skill, .restyle .engagement { border-color: var(--line); }
.restyle .stat:hover, .restyle .skill:hover, .restyle .work-card:hover,
.restyle .case-card:hover { transform: none; border-color: rgba(225,233,239,0.32); }
.restyle .skill-ic {
  background: none;
  border: 0;
  border-radius: 0;
  justify-content: start;
}
.restyle .skill-ic svg { stroke: var(--ink-soft); }
.restyle .tool-agent, .restyle .tool-item, .restyle .tool-logo-wrap,
.restyle .signal, .restyle .response, .restyle .portfolio-head-actions,
.restyle .work-preview, .restyle .case-art, .restyle .study-hero-art,
.restyle .study-figure, .restyle .capability-icon { border-radius: 2px; }
.restyle .tool-agent:hover .tool-logo-wrap, .restyle .tool-item:hover .tool-logo-wrap { box-shadow: none; }
.restyle .tool-category-label::before { box-shadow: none; }
.restyle .diagnostic { background: rgba(9,15,18,0.74); }
.restyle .diagnostic::before { background: none; }
.restyle .signal, .restyle .response { background: rgba(7,11,14,0.66); }
.restyle .diagnostic-head, .restyle .diagnostic-foot { letter-spacing: 0.015em; }
.restyle .diagnostic-live { gap: 5px; }
.restyle .proof-stat, .restyle .evidence-item { background: rgba(7,11,14,0.85); }
.restyle .meta-pill, .restyle .pill, .restyle .skill-pill { border-radius: 2px; }
.restyle .case-media-label, .restyle .case-card-demo-link { border-radius: 2px; }
.restyle .study-heading > .eyebrow { border-radius: 2px; }
.restyle .contact-shell > *, .restyle .field-row > *, .restyle .turnstile-field { min-width: 0; }
.restyle .tl-item::before { box-shadow: none; }
.restyle .portfolio-head-actions { backdrop-filter: none; -webkit-backdrop-filter: none; }
.restyle .glass, .restyle .glass:hover {
  background: transparent;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.restyle .ref-feature.glass::before, .restyle .contact.glass::before { background: none; }

/* Quiet, square actions with clear focus and usable mobile touch targets. */
.restyle .btn {
  border-radius: 2px;
  min-height: 46px;
  font-family: var(--sans);
  font-size: 0.87rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.restyle .btn-primary { background: #ededee; color: #16191d; }
.restyle .btn-primary:hover { background: #fff; }
.restyle .btn-ghost { background: rgba(6,8,11,0.66); backdrop-filter: none; }
.restyle .btn-primary:hover, .restyle .btn-ghost:hover { transform: none; }
.restyle .work-preview .btn:hover { transform: translate(-50%, -50%); }
.restyle .field input, .restyle .field textarea,
.restyle .access-card input, .restyle-access input {
  border-radius: 2px;
  font-size: 1rem;
  background: rgba(7,11,14,0.7);
}
.restyle .field input::placeholder, .restyle .field textarea::placeholder { color: #9098a3; }
.restyle .field label .optional { opacity: 1; }
.restyle :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.restyle .field input:focus-visible, .restyle .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none; }
.restyle .access-card button, .restyle-access button,
.restyle .back-link, .restyle .control, .restyle .retry, .restyle .viewer-modal-close { border-radius: 2px; }
.restyle .access-card button, .restyle-access button { min-height: 46px; background: #ededee; color: #16191d; }
.restyle .control { min-width: 44px; min-height: 44px; }
.restyle .toast { border-radius: 2px; }
/* Preserve the production scroll reveals, including their hidden starting state. */

/* Access and reading surfaces share the type/controls, with a quieter backdrop. */
body.restyle-access::before {
  background: url("/assets/orlando-night-dark.webp") center / cover;
}
.restyle-access .card {
  border-radius: 2px;
  background: rgba(7,11,14,0.88);
  backdrop-filter: none;
}
body.restyle-viewer::after { content: none; }
.restyle .viewer-header { background: rgba(6,8,11,0.98); backdrop-filter: none; }
.restyle .viewer-header h1 { font-weight: 500; }
.restyle .access-gate { background: rgba(6,8,11,0.94); backdrop-filter: none; }

@media (max-width: 1100px) {
  .restyle .brand span { display: none; }
}
@media (max-width: 960px) {
  .restyle .contact-shell { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .restyle > nav, .restyle .site-nav { padding-left: 16px; }
  .restyle .nav-links a { justify-content: flex-start; padding-inline: 16px; min-height: 46px; }
  .restyle .nav-links.open { border-radius: 2px; background: #0b0e12; backdrop-filter: none; }
  .restyle .nav-links.open .nav-cta { margin: 6px 0 0; justify-content: center; }
  body.restyle { --landscape-height: 1150px; --landscape-min-height: 1150px; }
  .restyle .ambient { background-position: var(--landscape-position, 58% bottom); }
  body.restyle-library, body.restyle-study, body.restyle-work { --landscape-height: 760px; --landscape-min-height: 760px; }
}
@media (max-width: 620px) {
  .restyle .hero-promise { font-size: 0.55em; }
  .restyle .diagnostic-head { gap: 12px; flex-wrap: wrap; }
  .restyle .diagnostic-foot { gap: 12px; flex-wrap: wrap; }
  .restyle .eyebrow { font-size: 0.64rem; letter-spacing: 0.07em; }
  .restyle .hero-actions .btn { justify-content: center; }
}
@media (max-width: 380px) {
  .restyle-home .contact { padding: 28px 20px; }
  /* Scale the fixed-width third-party widget together with its hit targets. */
  .restyle .cf-turnstile { zoom: 0.8; }
}
@media (prefers-reduced-motion: reduce) {
  .restyle, .restyle * { scroll-behavior: auto; }
  .restyle .reveal { opacity: 1; transform: none; transition: none; }
  .restyle .grain.has-parallax { background: url("/assets/night-stars.svg") 0 45px / 720px 640px repeat; }
  .restyle .grain.has-parallax::before { content: none; }
}

/* Consulting readability: 1rem labels, larger prose, existing title sizes. */
.restyle-consulting {
  --consulting-label-size: 1rem;
  --consulting-body-size: 1.125rem;
  font-size: var(--consulting-body-size);
}
.restyle-consulting .brand { font-size: var(--consulting-body-size); }
.restyle-consulting .brand span,
.restyle-consulting .nav-links a,
.restyle-consulting .skip-link,
.restyle-consulting .eyebrow,
.restyle-consulting .meta-pill,
.restyle-consulting .status-pill,
.restyle-consulting .btn,
.restyle-consulting .diagnostic-head,
.restyle-consulting .signal small,
.restyle-consulting .response small,
.restyle-consulting .diagnostic-foot,
.restyle-consulting .proof-stat span,
.restyle-consulting .section-number,
.restyle-consulting .process-index,
.restyle-consulting .case-meta,
.restyle-consulting .case-card-link,
.restyle-consulting .case-card-demo-link,
.restyle-consulting .testimonial cite span,
.restyle-consulting .field label,
.restyle-consulting .booking-status,
.restyle-consulting .turnstile-error,
.restyle-consulting .form-note,
.restyle-consulting .footer-links,
.restyle-consulting .toast {
  font-size: var(--consulting-label-size);
}
.restyle-consulting .section-copy,
.restyle-consulting .signal span,
.restyle-consulting .response span,
.restyle-consulting .case-card-copy,
.restyle-consulting .process-step p,
.restyle-consulting .capability p,
.restyle-consulting .engagement p,
.restyle-consulting .contact-prompt,
.restyle-consulting .field input,
.restyle-consulting .field textarea,
.restyle-consulting .testimonial cite strong,
.restyle-consulting .footer-inner {
  font-size: var(--consulting-body-size);
}
.restyle-consulting .hero-lede { font-size: clamp(1.1875rem, 1.5vw, 1.3rem); }
.restyle-consulting .proof-stat strong { font-size: 1.5rem; }
.restyle-consulting .eyebrow,
.restyle-consulting .meta-pill,
.restyle-consulting .status-pill { line-height: 1.4; }
.restyle-consulting .dot { flex-shrink: 0; }
.restyle-consulting .hero-promise > span { white-space: normal; }
.restyle-consulting .diagnostic-head,
.restyle-consulting .diagnostic-foot { flex-wrap: wrap; gap: 8px 16px; }
.restyle-consulting .diagnostic-column {
  min-width: 0;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
}
