/* Anjoman Max is proprietary; keep FontLicense.txt next to the font file. */
@font-face {
  font-family: "Anjoman Max";
  src: url("../fonts/AnjomanMaxVF.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #FCF8F1;
  --surface: #FFFDF9;
  --surface-deep: #F5EDE2;
  --line: #E7D9C8;
  --text: #242534;
  --muted: #5F5C5B;
  --orange: #A84F00;
  --orange-bright: #F7931A;
  --orange-hover: #FFAA3F;
  --hero-image: url("../img/hero-bitceptron-light.webp");
  --hero-wash: linear-gradient(270deg, rgba(252, 248, 241, .48), rgba(252, 248, 241, .12) 43%, transparent 62%);
  --hero-lede: #4D4B4D;
  --statement: #484348;
  --identity: #F7EAD8;
  --teaser: #F8F1E8;
  --teaser-stroke: #BB702B;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --section-space: clamp(42px, 4.5vw, 64px);
  --heading-space: clamp(22px, 2.4vw, 32px);
  --font: "Anjoman Max", Tahoma, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #100F0F;
  --surface: #201B18;
  --surface-deep: #181512;
  --line: #40352B;
  --text: #F6F0E8;
  --muted: #C5B8A8;
  --orange: #F6AA55;
  --hero-image: url("../img/hero-bitceptron-night.webp");
  --hero-wash: linear-gradient(270deg, rgba(13, 12, 12, .62), rgba(13, 12, 12, .18) 43%, transparent 62%);
  --hero-lede: #E6D9CB;
  --statement: #E0D1C1;
  --identity: #2B231C;
  --teaser: #221C17;
  --teaser-stroke: #C6863F;
}

.theme-logo-dark { display: none; }
:root[data-theme="dark"] .theme-logo-light { display: none; }
:root[data-theme="dark"] .theme-logo-dark { display: block; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
  border-radius: 3px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 16px;
  z-index: 10;
  padding: 8px 16px;
  background: var(--orange-bright);
  color: #24202A;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }
.section-shell {
  width: min(calc(100% - 2 * var(--gutter)), var(--max));
  margin-inline: auto;
}
section[id] { scroll-margin-top: 32px; }

/* Header */
.site-header {
  width: min(calc(100% - 2 * var(--gutter)), var(--max));
  min-height: 80px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.brand { flex: none; }
.brand img { width: clamp(160px, 17vw, 218px); height: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
}
.site-nav a {
  color: var(--muted);
  font-size: .96rem;
  font-weight: 650;
  text-decoration: none;
  transition: color .2s ease;
}
.site-nav a:hover { color: var(--orange); }
.site-nav a { padding-block: 8px; }
.theme-toggle {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: none;
  width: 56px;
  height: 30px;
  padding: 1px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-deep);
  direction: rtl;
}
.theme-toggle::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px #0002;
  transition: transform .18s ease;
  pointer-events: none;
}
:root[data-theme="dark"] .theme-toggle::after { transform: translateX(-26px); }
.theme-toggle button {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.theme-toggle img { width: 14px; height: 14px; opacity: .45; filter: brightness(0); }
.theme-toggle button[aria-pressed="true"] img { opacity: 1; }
.theme-toggle button:hover img { opacity: 1; }
:root[data-theme="dark"] .theme-toggle img { filter: brightness(0) invert(1); }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: clamp(490px, 40vw, 600px);
  overflow: hidden;
  background: var(--background);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-wash);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(43vw, 560px);
  margin-inline-start: max(var(--gutter), calc((100vw - var(--max)) / 2));
  padding-block: 44px;
}
.hero-kicker, .section-kicker, .product-type {
  color: var(--orange);
  font-size: .91rem;
  font-weight: 800;
}
.hero-kicker { margin-bottom: 12px; }
.hero h1 {
  max-width: 11em;
  font-size: clamp(2.6rem, 4.1vw, 4rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: normal;
}
.hero h1 span { display: block; }
.hero-lede {
  max-width: 29em;
  margin-top: 20px;
  color: var(--hero-lede);
  font-size: clamp(1.04rem, 1.35vw, 1.2rem);
  font-weight: 500;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin-top: 24px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 7px;
  transition: background-color .2s ease, color .2s ease;
}
.button-primary { background: var(--orange-bright); color: #24202A; }
.button-primary:hover { background: var(--orange-hover); }
.text-link, .product-link {
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
  text-underline-offset: 6px;
}
.text-link:hover, .product-link:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.text-link span, .product-link span { color: var(--orange); margin-inline-start: 8px; }
.hero-art {
  position: absolute;
  z-index: 0;
  inset-block: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  user-select: none;
  pointer-events: none;
}

/* Editorial statement */
.manifesto {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 42px);
  padding-block: clamp(26px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}
.manifesto-label {
  padding-top: 9px;
  color: var(--orange);
  font-size: .93rem;
  font-weight: 800;
}
.manifesto > p:last-child {
  max-width: 39em;
  color: var(--statement);
  font-size: clamp(1.13rem, 1.65vw, 1.45rem);
  font-weight: 600;
  line-height: 1.65;
}
.manifesto strong { color: var(--orange); font-weight: 850; }

/* Shared section headings */
.section-heading { max-width: 760px; margin-bottom: var(--heading-space); }
.section-kicker { margin-bottom: 7px; }
.section-heading h2, .custody h2, .contact h2 {
  font-size: clamp(1.65rem, 2.45vw, 2.25rem);
  font-weight: 800;
  line-height: 1.35;
}
.section-heading > p:last-child, .custody-intro > p:last-child, .contact > div > p:last-child {
  max-width: 46em;
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.8;
}

/* What we do */
.expertise {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
  padding-block: var(--section-space);
}
.expertise .section-heading { margin-bottom: 0; }
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.expertise-item {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.expertise-item:first-child { border-top-color: var(--orange-bright); }
.expertise-item h3 {
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.4;
}
.expertise-item p {
  max-width: 27em;
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.8;
}

.service-link { display: inline-flex; gap: 10px; align-items: center; margin-top: 18px; color: var(--orange); font-size: .9rem; font-weight: 750; text-decoration: none; }
.service-link:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Custody architecture */
.custody { background: var(--surface-deep); border-block: 1px solid var(--line); }
.custody-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  padding-block: var(--section-space);
}
.custody-intro { max-width: 33rem; }
.custody-points {
  padding: 8px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.custody-points article:last-child { border-bottom: 0; }
.custody-points article {
  display: flex;
  gap: 20px;
  padding-block: 17px 19px;
  border-bottom: 1px solid var(--line);
}
.point-marker {
  width: 9px;
  height: 9px;
  flex: none;
  margin-top: 12px;
  background: var(--orange);
  border-radius: 50%;
}
.custody-points h3 { font-size: 1.2rem; font-weight: 800; }
.custody-points p {
  max-width: 32em;
  margin-top: 5px;
  color: var(--muted);
  font-size: .98rem;
}

/* Audience */
.audience {
  display: grid;
  grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr);
  gap: 36px;
  align-items: start;
  padding-block: var(--section-space);
}
.audience .section-heading { margin-bottom: 0; }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-block: 1px solid var(--line);
}
.audience-grid article {
  min-height: 0;
  padding: 22px 24px;
}
.audience-grid article + article {
  border-inline-start: 1px solid var(--line);
}
.audience-grid h3 {
  margin-bottom: 9px;
  color: var(--orange);
  font-size: 1.45rem;
  font-weight: 800;
}
.audience-grid p { max-width: 34em; color: var(--muted); }

/* Product */
.products { padding-bottom: var(--section-space); }
.product-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}
.product-copy {
  padding: clamp(24px, 3vw, 42px);
  align-self: center;
}
.product-copy h3 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  font-weight: 900;
}
.product-copy > p:not(.product-type) {
  max-width: 31em;
  margin-top: 10px;
  color: var(--muted);
  font-size: 1.05rem;
}
.product-link { display: inline-block; margin-top: 18px; }
.product-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 26px;
  background-color: var(--identity);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border-inline-start: 1px solid var(--line);
  text-align: center;
}
.product-identity img { width: min(100%, 290px); height: auto; }
.product-identity p { color: var(--muted); font-size: .95rem; }
.product-teasers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.product-teaser {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-deep);
  border: 1px solid var(--line);
}
.teaser-art {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 16px;
  background: var(--teaser);
  border-inline-end: 1px solid var(--line);
}
.teaser-art svg {
  width: min(100%, 210px);
  height: auto;
  stroke: var(--teaser-stroke);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.teaser-art circle { fill: var(--teaser); }
.teaser-copy {
  align-self: center;
  padding: 24px;
}
.teaser-status {
  color: var(--orange);
  font-size: .82rem;
  font-weight: 800;
}
.teaser-copy h3 {
  margin-top: 7px;
  font-size: 1.28rem;
  font-weight: 800;
}
.teaser-copy > p:last-child {
  max-width: 28em;
  margin-top: 9px;
  color: var(--muted);
  font-size: .95rem;
}

.product-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.product-topics li { border: 1px solid var(--line); border-radius: 100px; padding: 3px 15px; font-size: .85rem; color: var(--text); }
.product-identity::before { content: ""; position: absolute; width: 290px; height: 290px; border: 1px solid var(--line); transform: rotate(45deg); border-radius: 36px; z-index: -1; opacity: .5; }

/* Closing invitation */
.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 3.5vw, 46px);
  margin-bottom: var(--section-space);
  background: var(--identity);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.contact h2 { max-width: 22em; font-size: clamp(1.5rem, 2.15vw, 2rem); }
.contact > div > p:last-child { max-width: 43em; }
.contact-method {
  display: grid;
  justify-items: start;
  gap: 12px;
  flex: none;
}
.contact-email {
  color: var(--muted);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: .92rem;
  text-decoration-color: var(--orange);
  text-underline-offset: 5px;
}
.contact-email:hover { color: var(--text); }

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  width: min(calc(100% - 2 * var(--gutter)), var(--max));
  margin-inline: auto;
  padding-block: 25px 30px;
  border-top: 1px solid var(--line);
}
.footer-logo { width: 170px; height: auto; }
.footer-main p { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.copyright { color: var(--muted); font-size: .9rem; }
.copyright small { font-size: inherit; }

@media (max-width: 900px) {
  .hero { min-height: 520px; }
  .hero-copy { width: 49vw; }
  .custody-layout { gap: 30px; }
  .expertise, .audience { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  :root { --hero-image: url("../img/hero-bitceptron-light-960.webp"); }
  :root[data-theme="dark"] { --hero-image: url("../img/hero-bitceptron-night-960.webp"); }
  .site-header { min-height: 0; padding-block: 16px; flex-wrap: wrap; gap: 14px; }
  .site-nav { order: 3; width: 100%; gap: 16px 24px; flex-wrap: wrap; }
  .site-nav a { font-size: .9rem; }
  .hero {
    display: block;
    min-height: 0;
    padding: min(60vw, 300px) var(--gutter) 48px;
  }
  .hero::before { display: none; }
  .hero-copy { width: 100%; margin: 0; padding: 16px 0 0; }
  .hero-art {
    top: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: min(60vw, 300px);
    background-position: 34% center;
  }
  .hero h1 { max-width: 12em; font-size: clamp(2rem, 7.5vw, 3.1rem); }
  .hero h1 span { display: block; }
.hero-lede { margin-top: 16px; }
  .manifesto { grid-template-columns: 1fr; gap: 12px; }
  .manifesto-label { padding-top: 0; }
  .expertise-grid, .custody-layout, .audience-grid, .product-feature { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .audience-grid article + article { border-inline-start: 0; border-top: 1px solid var(--line); }
  .product-identity { min-height: 180px; border-inline-start: 0; border-top: 1px solid var(--line); }
  .product-teasers { grid-template-columns: 1fr; }
  .contact { flex-direction: column; align-items: stretch; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
  .product-teaser { grid-template-columns: 78px minmax(0, 1fr); }
  .teaser-art { padding: 10px; }
  .teaser-copy { padding: 20px 16px; }
  .expertise-grid { grid-template-columns: 1fr; }
  .custody-points { padding-inline: 18px; }
}
@media (max-width: 420px) {
  .hero-actions { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle::after { transition: none; }
}
