@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans-semibold.ttf") format("truetype");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbfbf9;
  --surface: #f1f3f3;
  --surface-raised: #ffffff;
  --text: #1c282d;
  --muted: #566369;
  --subtle: #64737b;
  --line: #d8dfe0;
  --accent: #235cf1;
  --accent-soft: #e9efff;
  --accent-line: #b9caf0;
  --on-accent: #ffffff;
  --header-bg: rgb(251 251 249 / 93%);
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b1117;
  --surface: #121c23;
  --surface-raised: #18242d;
  --text: #edf1f1;
  --muted: #a5b2ba;
  --subtle: #a0aeb7;
  --line: #2b3943;
  --accent: #94b2ff;
  --accent-soft: #1c2b43;
  --accent-line: #40577c;
  --on-accent: #10171c;
  --header-bg: rgb(11 17 23 / 93%);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 500;
  line-height: 1.16;
}

h1,
h2 {
  letter-spacing: -0.05em;
}

h3 {
  font-size: 25px;
  letter-spacing: -0.03em;
}

a {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
}

summary {
  cursor: pointer;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(1280px, calc(100% - 112px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  padding: 12px 22px;
  transform: translateY(-150%);
  background: var(--text);
  color: var(--bg);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 44px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: invert(1);
  mix-blend-mode: multiply;
}

:root[data-theme="dark"] .brand-logo {
  filter: none;
  mix-blend-mode: screen;
}

.brand-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.header-nav a {
  font-size: 14px;
  color: var(--muted);
  padding: 12px 0;
}

.header-nav a:hover {
  color: var(--text);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 10px;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  transition: color 160ms ease;
}

.theme-toggle:hover {
  color: var(--text);
}

.theme-toggle svg {
  display: none;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

[data-theme-preference="system"] .theme-icon-system,
[data-theme-preference="light"] .theme-icon-light,
[data-theme-preference="dark"] .theme-icon-dark {
  display: block;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  background: transparent;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.5;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  min-height: 680px;
  gap: 10px;
  padding-block: 20px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-bottom: 4px;
}

.hero h1 {
  font-size: clamp(60px, 6.8vw, 98px);
  font-weight: 400;
  letter-spacing: -0.067em;
  line-height: 1.05;
}

.accent-word {
  color: var(--accent);
}

.hero-description {
  max-width: 420px;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: -0.015em;
  color: var(--muted);
  margin-top: 29px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 33px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  transition: color 160ms ease;
}

.hero-link:hover {
  color: var(--accent);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  line-height: 1.5;
  padding: 6px 0;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.text-link:hover {
  color: var(--accent);
}

.link-arrow {
  display: inline-block;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1;
  opacity: 0.55;
  vertical-align: 0.08em;
}

.product-title,
.founder-name-link,
.foundation-item h3 a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  transition: color 160ms ease;
}

.product-title:hover,
.founder-name-link:hover,
.foundation-item h3 a:hover {
  color: var(--accent);
}

.society-visual {
  position: relative;
  width: calc(100% + 30px);
  height: 620px;
  min-width: 0;
  margin-left: -5px;
}

#society-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
  border-radius: 50%;
}

#society-canvas:active {
  cursor: grabbing;
}

.section {
  padding-block: 95px;
}

h2 {
  font-size: clamp(34px, 3.5vw, 48px);
  line-height: 1.16;
}

.section-title-lines > span {
  display: block;
}

.section-heading {
  margin-bottom: 40px;
}

.section-heading:has(> div) {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: end;
}

.lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 640px;
  letter-spacing: -0.01em;
}

.section-heading > .lead {
  margin-top: 23px;
}

.section-heading > div > .text-link {
  margin-top: 18px;
}

#platform {
  border-top: 1px solid var(--line);
}

.technology-section {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.technology-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.technology-card {
  min-width: 0;
  padding-block: 30px;
  border-top: 1px solid var(--line);
}

.technology-card h3 {
  font-size: 31px;
  margin-bottom: 17px;
}

.technology-card > p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 530px;
  margin-bottom: 15px;
}

.foundation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 30px;
  padding-top: 35px;
  border-top: 1px solid var(--line);
}

.foundation-grid h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.foundation-grid p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
}

.exploration-note {
  margin-top: 35px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  max-width: 100%;
}

.exploration-note p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 940px;
}

.exploration-note strong {
  font-weight: 500;
  color: var(--text);
}

.exploration-note a {
  color: var(--text);
}

.operational-evidence {
  margin: 0 0 40px;
}

.leadership {
  margin-top: 65px;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 36px;
}

.metric {
  padding-inline: 35px;
  border-right: 1px solid var(--line);
}

.metric:first-child {
  padding-left: 0;
}

.metric:last-child {
  border: 0;
  padding-right: 0;
}

.metric-value {
  font-size: 70px;
  line-height: 1.1;
  letter-spacing: -0.065em;
  font-weight: 400;
}

.metric-value > span {
  font-size: 49px;
  color: var(--subtle);
  margin-left: 4px;
}

.metric h3 {
  font-size: 16px;
  margin-top: 16px;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.metric > p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

.metrics-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.6875rem;
  line-height: 1.7;
}

.company-section {
  border-block: 1px solid var(--line);
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 85px;
}

.split-section > .section-heading {
  display: block;
  margin: 0;
}

.body-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 21px;
}

.body-copy p:last-child {
  margin-bottom: 0;
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.founder-card {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.founder-portrait {
  width: 140px;
  height: 140px;
  overflow: hidden;
  border-radius: 3px;
}

.founder-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-portrait-edward img {
  transform: scale(1.85);
  transform-origin: 50% 12%;
}

.founder-info {
  padding-top: 25px;
}

.founder-info h3 {
  font-size: 29px;
  margin-bottom: 7px;
}

.founder-role {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 22px;
}

.founder-info > p:not(.founder-role) {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 16px;
}

.founder-info .text-link {
  margin-top: 7px;
}

.company-facts {
  margin: 0;
}

.company-facts > div {
  display: grid;
  grid-template-columns: 106px 1fr;
  gap: 20px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.company-facts > div:first-child {
  padding-top: 0;
}

.company-facts dt {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.company-facts dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.legal-name {
  display: block;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
}

.legal-name span {
  display: inline-block;
  font-weight: 400;
  margin-left: 6px;
}

.registration-number {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.company-facts address {
  margin-top: 8px;
  font-size: 14px;
  font-style: normal;
  line-height: 1.65;
}

.registry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 7px;
}

.registry-links .text-link {
  font-size: 13px;
  padding-block: 3px;
  gap: 7px;
}

#history,
#company-information {
  border-top: 1px solid var(--line);
}

.site-footer {
  padding-top: 75px;
  border-top: 1px solid var(--line);
}

.footer-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 45px;
  padding-bottom: 65px;
}

.footer-contact h2 {
  font-size: 60px;
}

.footer-contact > div:last-child {
  max-width: 400px;
}

.footer-contact p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 20px;
}

.footer-email {
  font-size: 24px;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
}

.footer-email:hover {
  color: var(--accent);
}

.footer-bottom {
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.footer-bottom p {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}

html:not(.js) .theme-toggle {
  display: none;
}

@media (min-width: 1600px) {
  .hero {
    min-height: 760px;
  }

  .hero h1 {
    font-size: 106px;
  }

  .society-visual {
    height: 690px;
  }
}

@media (max-width: 1150px) {
  .shell {
    width: calc(100% - 72px);
  }

  .header-inner {
    gap: 25px;
  }

  .header-nav {
    gap: 22px;
  }

  .hero {
    min-height: 580px;
  }

  .hero h1 {
    font-size: 76px;
  }

  .hero-description {
    font-size: 17px;
  }

  .society-visual {
    height: 530px;
  }

  .hero-actions {
    gap: 20px;
  }

  .section-heading:has(> div) {
    gap: 55px;
  }

  .split-section {
    gap: 50px;
  }

  .metric {
    padding-inline: 26px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 76px;
    gap: 18px;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    padding: 20px 36px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }

  .header-nav.is-open,
  html:not(.js) .header-nav {
    display: flex;
  }

  .header-nav a {
    font-size: 17px;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 60px;
  }

  .hero h1 {
    font-size: 64px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 14px;
  }

  .society-visual {
    height: 510px;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
  }

  .section {
    padding-block: 75px;
  }

  .section-heading:has(> div) {
    gap: 35px;
  }

  .section-heading .lead {
    font-size: 16px;
  }

  .foundation-grid {
    gap: 35px;
  }

  .metric-value {
    font-size: 58px;
  }

  .metric h3 {
    font-size: 15px;
  }

  .metric > p {
    font-size: 13px;
  }

  .split-section {
    gap: 40px;
  }

  .founder-grid {
    gap: 40px;
  }

  .company-facts > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-contact h2 {
    font-size: 50px;
  }

  .footer-contact > div:last-child {
    max-width: 340px;
  }
}

@media (max-width: 650px) {
  .section-title-lines {
    font-size: clamp(1.625rem, 7.4vw, 2.25rem);
  }

  html {
    scroll-padding-top: 86px;
  }

  .shell {
    width: calc(100% - 40px);
  }

  .header-inner {
    min-height: 70px;
    gap: 9px;
  }

  .brand {
    gap: 2px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 17px;
  }

  .menu-toggle {
    width: 31px;
  }

  .header-nav {
    top: 70px;
    padding-inline: 20px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    padding: 65px 0 10px;
  }

  .hero h1 {
    font-size: clamp(56px, 12vw, 76px);
    line-height: 1.05;
  }

  .hero-description {
    font-size: 16px;
    line-height: 1.8;
    max-width: 420px;
    margin-top: 23px;
  }

  .hero-actions {
    margin-top: 27px;
    gap: 22px;
  }

  .society-visual {
    width: 100%;
    height: 400px;
    max-width: 460px;
    margin: 12px auto 0;
  }

  .section {
    padding-block: 62px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading:has(> div) {
    display: block;
  }

  h2 {
    font-size: 36px;
    line-height: 1.16;
  }

  .section-heading .lead {
    margin-top: 22px;
  }

  .technology-grid,
  .foundation-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .technology-card {
    padding-block: 26px;
  }

  .technology-card h3 {
    font-size: 29px;
  }

  .foundation-grid {
    padding-top: 30px;
    margin-top: 0;
    gap: 30px;
  }

  .exploration-note {
    margin-top: 32px;
    padding-top: 25px;
  }

  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-block: 26px;
  }

  .metric {
    padding: 0 10px;
  }

  .metric-value {
    font-size: clamp(27px, 7.9vw, 41px);
  }

  .metric-value > span {
    font-size: 0.65em;
  }

  .metric h3 {
    font-size: 12px;
    line-height: 1.5;
    margin-top: 11px;
  }

  .metric > p {
    font-size: 13px;
    max-width: 155px;
  }

  .split-section {
    grid-template-columns: 1fr;
    gap: 27px;
  }

  .body-copy p {
    font-size: 16px;
  }

  .founder-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .founder-portrait {
    width: 130px;
    height: 130px;
  }

  .company-facts > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .company-facts dt {
    font-size: 13px;
  }

  .company-facts dd {
    font-size: 14px;
  }

  .site-footer {
    padding-top: 50px;
  }

  .footer-contact {
    display: block;
    padding-bottom: 40px;
  }

  .footer-contact h2 {
    font-size: 49px;
  }

  .footer-contact > div:last-child {
    max-width: none;
    margin-top: 27px;
  }

  .footer-contact p {
    font-size: 15px;
    max-width: 350px;
  }

  .footer-email {
    font-size: 23px;
  }
}

@media (max-width: 360px) {
  .shell {
    width: calc(100% - 32px);
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero-actions {
    gap: 18px;
  }

  .society-visual {
    height: 350px;
  }

  .company-facts > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header,
  .theme-toggle,
  .menu-toggle,
  .hero-actions,
  .society-visual {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .shell {
    width: 100%;
  }

  .hero,
  .section {
    padding-block: 25px;
    min-height: 0;
  }

  .hero {
    display: block;
  }

  .hero h1 {
    font-size: 48px;
  }

  .founder-card,
  .technology-card {
    break-inside: avoid;
  }

  .site-footer {
    padding-top: 25px;
  }
}
