/*
  Wick shared overrides
  ---------------------
  Page-specific CSS still lives inline in each HTML file while the site is in
  lofi/static mode. Put global visual tokens and shared chrome tweaks here so
  common edits do not need to be repeated by hand across every page.
*/

:root {
  --max: 1880px;
  --paper: #FAF6EF;
  --page: #FAF6EF;
  --surface: #FFFDF8;
  --surface-warm: #FCFAF5;
  --line: #DDD6CA;
  --line-soft: #E9E2D8;
  --field: #F1ECE3;
  --field-2: #E9E2D8;
  --inverse-heading: #FFFDF8;
  --inverse-body: rgba(252,250,245,0.84);
  --inverse-muted: rgba(252,250,245,0.66);
  --inverse-rose: #F5D2C8;
  --peach-super-strong: #C9573F;
  --peach-strong: #DD8A78;
  --peach: #F1A08F;
  --peach-soft: #F5D2C8;
  --peach-faint: #FFF0EA;
}

html {
  scroll-padding-top: var(--header, 78px);
}

.site-shell {
  padding-top: var(--header, 78px);
  background:
    linear-gradient(90deg, rgba(11,13,16,0.012) 1px, transparent 1px),
    linear-gradient(180deg, rgba(11,13,16,0.009) 1px, transparent 1px),
    var(--page);
  background-size: 96px 96px, 96px 96px, auto;
}

main {
  width: 100%;
  max-width: none;
  background: rgba(252,250,245,0.58);
  border-left-color: transparent;
  border-right-color: transparent;
  box-shadow: none;
}

.masthead {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 1000 !important;
}

.drawer-scrim {
  z-index: 1100 !important;
}

.drawer {
  z-index: 1110 !important;
}

.breadcrumb,
.crumbs {
  display: none !important;
}

.product-hero,
.article-hero {
  padding-top: 40px;
}

.services-hero,
.blog-hero,
.about-hero {
  padding-top: 42px;
}

.masthead .brand img {
  filter: invert(1) grayscale(1) brightness(1.1) sepia(0.04);
  opacity: 0.92;
}

.masthead .btn {
  border-color: rgba(221,138,120,0.92);
  background: rgba(221,138,120,0.026);
  color: var(--peach-strong);
  box-shadow: inset 0 1px 0 rgba(255,253,248,0.04);
}

.masthead .btn:hover,
.masthead .btn:focus-visible {
  background: rgba(221,138,120,0.105);
  border-color: var(--peach);
  color: var(--peach-soft);
  box-shadow: 0 0 0 1px rgba(221,138,120,0.10), 0 12px 24px rgba(0,0,0,0.18);
}

.masthead-login {
  min-height: 44px;
  border: 1px solid rgba(252,250,245,0.52);
  background: rgba(252,250,245,0.015);
  color: rgba(252,250,245,0.88);
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,253,248,0.045);
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.masthead-login:hover,
.masthead-login:focus-visible {
  background: rgba(252,250,245,0.07);
  border-color: rgba(252,250,245,0.78);
  color: rgba(255,253,248,0.98);
  box-shadow: 0 0 0 1px rgba(255,253,248,0.08), 0 12px 24px rgba(0,0,0,0.18);
  transform: translateY(-1px);
}

.masthead-login:focus-visible {
  outline: 1px solid rgba(255,253,248,0.62);
  outline-offset: 6px;
}

@media (max-width: 760px) {
  .masthead-login {
    display: none;
  }
}

.masthead .icon-button {
  color: rgba(252,250,245,0.86);
}

.masthead .icon-button:hover,
.masthead .icon-button:focus-visible {
  color: rgba(255,253,248,0.98);
}

.related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.related-card {
  min-height: 0;
  padding: 22px 24px;
  gap: 12px;
}

.related-card .meta-row {
  display: none;
}

.hero-card {
  min-height: 0;
  padding: 18px;
  gap: 0;
  align-content: center;
}

.hero-card-top {
  display: none;
}

.hero-diagram {
  min-height: 0;
  aspect-ratio: 16 / 10;
}

.hero-diagram svg,
.hero-diagram img {
  min-height: 0;
  height: 100%;
  object-fit: cover;
}

.article-back-link {
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted, #5E6470);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.article-back-link::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.article-back-link:hover,
.article-back-link:focus-visible {
  color: var(--ink, #0B0D10);
}

.article-hero h1,
.maine-poll-post .article-hero h1,
.michelin-post .article-hero h1 {
  max-width: 820px;
  font-size: clamp(34px, 3.75vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.article-hero .hero-card {
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.article-hero .hero-diagram {
  min-height: 0;
  aspect-ratio: auto;
  border: 1px solid var(--line, #D8D6D1);
  background: transparent;
  box-shadow: 0 18px 36px rgba(36,39,45,0.055);
}

.article-hero .hero-diagram img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.workshop-visual {
  background:
    radial-gradient(ellipse at 70% 74%, rgba(36,39,45,0.045), transparent 48%),
    radial-gradient(ellipse at 42% 35%, rgba(241,184,170,0.04), transparent 38%),
    radial-gradient(ellipse at 30% 68%, rgba(104,184,173,0.04), transparent 38%),
    radial-gradient(circle, rgba(11,13,16,0.026) 0 1px, transparent 1.15px) 0 0 / 24px 24px,
    linear-gradient(135deg, rgba(255,253,248,0.38), rgba(251,250,247,0));
}

.workshop-visual::before {
  left: 33%;
  background: linear-gradient(180deg, transparent, rgba(36,39,45,0.07), rgba(104,184,173,0.055), transparent);
}

.workshop-visual::after,
.workshop-rule-green,
.workshop-tick-two {
  display: none;
}

.workshop-mark {
  width: min(780px, 74vw);
  right: -190px;
  top: -24px;
  color: rgba(36,39,45,0.44);
  opacity: 0.66;
  filter: drop-shadow(0 18px 30px rgba(36,39,45,0.035));
}

.workshop-mark path {
  opacity: 0;
}

.workshop-mark path:nth-of-type(10),
.workshop-mark path:nth-of-type(11),
.workshop-mark path:nth-of-type(13),
.workshop-mark path:nth-of-type(14),
.workshop-mark path:nth-of-type(15),
.workshop-mark path:nth-of-type(17),
.workshop-mark path:nth-of-type(18) {
  opacity: 0.46;
}

.workshop-mark path:nth-of-type(13),
.workshop-mark path:nth-of-type(17) {
  opacity: 0.18;
}

.workshop-mark .workshop-wire,
.workshop-mark .workshop-wire-strong {
  stroke-opacity: 0.06;
}

.workshop-rule {
  opacity: 0.18;
}

.workshop-rule-pink {
  width: 330px;
  left: -6%;
  top: 37%;
  color: rgba(241,184,170,0.17);
}

.workshop-tick {
  color: rgba(36,39,45,0.16);
}

.workshop-label-stack {
  color: rgba(36,39,45,0.70);
}

.workshop-label-stack span {
  border-color: rgba(216,214,209,0.72);
  background: rgba(255,253,248,0.70);
  box-shadow: 0 8px 18px rgba(36,39,45,0.026);
}

.workshop-label-stack span:nth-child(2),
.workshop-label-stack span:nth-child(4) {
  border-color: rgba(216,214,209,0.76);
  background: rgba(255,253,248,0.78);
  color: rgba(36,39,45,0.72);
  box-shadow: 0 8px 18px rgba(36,39,45,0.026);
}

.workshop-label-stack span:nth-child(1) {
  left: 5%;
  top: 34%;
  --connector-width: 138px;
  --connector-color: rgba(241,184,170,0.11);
}

.workshop-label-stack span:nth-child(2) {
  left: 20%;
  top: 57%;
  --connector-width: 112px;
  --connector-color: rgba(36,39,45,0.12);
}

.workshop-label-stack span:nth-child(3) {
  left: 48%;
  top: 43%;
  --connector-width: 96px;
  --connector-color: rgba(47,95,115,0.13);
}

.workshop-label-stack span:nth-child(4) {
  right: 8%;
  top: 65%;
  --connector-width: 94px;
  --connector-color: rgba(36,39,45,0.12);
}

@media (max-width: 980px) {
  main {
    width: 100%;
    border-left-color: transparent;
    border-right-color: transparent;
    box-shadow: none;
  }
}

@media (max-width: 760px) {
  .article-hero h1,
  .maine-poll-post .article-hero h1,
  .michelin-post .article-hero h1 {
    font-size: clamp(34px, 10.5vw, 46px);
    line-height: 1.02;
  }

  .product-hero,
  .article-hero,
  .services-hero,
  .blog-hero,
  .about-hero {
    padding-top: 28px;
  }

  .foundry-visual,
  .workshop-visual,
  .gateway-visual {
    min-height: clamp(220px, 58vw, 280px);
    margin-top: 10px;
    margin-bottom: 0;
  }

  .gateway-visual {
    margin-right: -22px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

#data-reality,
#definition,
.dark-band,
.inverse-section {
  color: var(--inverse-body);
}

#data-reality,
#definition,
.dark-band,
.inverse-section.final-cta {
  background:
    radial-gradient(circle at 18% 18%, rgba(245,210,200,0.085), transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(245,250,248,0.045), transparent 34%),
    linear-gradient(135deg, #0B0D10, #141316);
}

#data-reality,
#definition,
.inverse-section.final-cta {
  box-shadow:
    inset 0 1px 0 rgba(255,253,248,0.07),
    inset 0 -1px 0 rgba(0,0,0,0.26);
}

#data-reality h1,
#data-reality h2,
#data-reality h3,
#definition h1,
#definition h2,
#definition h3,
.dark-band h1,
.dark-band h2,
.dark-band h3,
.inverse-section h1,
.inverse-section h2,
.inverse-section h3 {
  color: var(--inverse-heading);
}

#data-reality p,
#definition p,
.dark-band p,
.dark-band .section-heading p:not(.eyebrow),
.inverse-section p {
  color: var(--inverse-body);
}

#data-reality .eyebrow,
#definition .eyebrow,
.dark-band .eyebrow,
.inverse-section .eyebrow {
  color: var(--peach-strong);
}

#definition .muted,
.inverse-section .muted {
  color: var(--inverse-muted);
}

#data-reality .text-link,
#definition .text-link,
.dark-band .text-link,
.inverse-section .text-link {
  color: var(--inverse-heading);
}

.drawer-cta {
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 28%, rgba(241,184,170,0.05), transparent 36%),
    radial-gradient(circle at 74% 72%, rgba(104,184,173,0.04), transparent 36%),
    radial-gradient(circle, rgba(11,13,16,0.036) 0 1px, transparent 1.25px) 0 0 / 20px 20px,
    linear-gradient(135deg, rgba(255,255,255,0.78), rgba(255,240,234,0.36) 52%, rgba(245,250,248,0.32));
}

.drawer-cta::before,
.drawer-cta::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.drawer-cta::before {
  width: 1px;
  height: 82%;
  right: 30%;
  top: 9%;
  background: linear-gradient(180deg, transparent, rgba(241,184,170,0.08), rgba(104,184,173,0.07), transparent);
}

.drawer-cta::after {
  width: 82%;
  height: 1px;
  left: 9%;
  bottom: 28%;
  background: linear-gradient(90deg, transparent, rgba(241,184,170,0.09), rgba(104,184,173,0.07), transparent);
}

.drawer-cta > :not(.drawer-cta-mark) {
  position: relative;
  z-index: 2;
}

.drawer-cta-mark {
  position: absolute;
  z-index: 0;
  width: 330px;
  height: auto;
  right: -102px;
  top: -72px;
  opacity: 0.43;
  filter: drop-shadow(0 18px 34px rgba(11,13,16,0.045));
}

.drawer-cta-icon {
  width: 32px;
  height: 32px;
  position: relative;
  display: block;
  color: var(--ink);
}

.drawer-cta-icon::before,
.drawer-cta-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.drawer-cta-icon::before {
  width: 24px;
  height: 2px;
}

.drawer-cta-icon::after {
  width: 2px;
  height: 24px;
}

.mini-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.drawer-nav a {
  position: relative;
  background: transparent;
  border-left-color: transparent;
  transition: color 150ms ease;
}

.drawer-nav a::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 10px;
  bottom: 3px;
  height: 1px;
  background: rgba(11,13,16,0.16);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 150ms ease, background 150ms ease;
}

.drawer-nav a:hover,
.drawer-nav a:focus-visible {
  background: transparent;
  border-left-color: transparent;
  color: var(--ink, #0B0D10);
}

.drawer-nav a:hover::before,
.drawer-nav a:focus-visible::before {
  transform: scaleX(1);
  background: rgba(11,13,16,0.28);
}

.drawer-nav a:hover .nav-arrow,
.drawer-nav a:focus-visible .nav-arrow {
  transform: translateX(3px);
}

.trust-card {
  padding: 22px;
  gap: 14px;
}

.trust-card-thumb {
  margin: 0;
  border: 1px solid var(--line-soft, #E9E1D5);
  background: rgba(255,253,248,0.72);
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

.trust-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trust-card h3 {
  font-size: 20px;
  line-height: 1.12;
}

.trust-card p {
  font-size: 13px;
  line-height: 1.42;
}

.site-footer {
  border-top: 1px solid rgba(255,253,248,0.08);
  background:
    radial-gradient(circle at 18% 18%, rgba(245,210,200,0.055), transparent 34%),
    radial-gradient(circle at 84% 80%, rgba(245,250,248,0.035), transparent 34%),
    linear-gradient(135deg, #0B0D10, #141316);
  padding: 46px 76px 28px;
  display: grid;
  gap: 38px;
}

.site-footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(520px, 1.45fr);
  gap: 56px;
  align-items: start;
}

.site-footer-brand {
  width: 96px;
  display: inline-flex;
  align-items: center;
}

.site-footer-brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: invert(1) grayscale(1) brightness(1.16);
  opacity: 0.94;
}

.site-footer-copy {
  margin: 18px 0 0;
  max-width: 360px;
  color: rgba(252,250,245,0.72);
  font-size: 15px;
  line-height: 1.55;
}

.site-footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.site-footer-group {
  display: grid;
  gap: 11px;
  align-content: start;
}

.site-footer-group h2 {
  margin: 0 0 4px;
  color: #F5D2C8;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer-group a {
  width: fit-content;
  color: rgba(252,250,245,0.70);
  font-size: 14px;
  line-height: 1.3;
  transition: color 150ms ease;
}

.site-footer-group a:hover,
.site-footer-group a:focus-visible {
  color: #FFFDF8;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer-bottom {
  border-top: 1px solid rgba(255,253,248,0.10);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  color: rgba(252,250,245,0.50);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .site-footer {
    padding: 38px 34px 26px;
  }

  .site-footer-top {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 34px 22px 24px;
  }

  .site-footer-nav {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer-bottom {
    display: grid;
  }
}
