/* Meklara public company site — 2026 editorial direction. */

:root {
  --company-night: #11130f;
  --company-night-soft: #181b16;
  --company-night-line: #2a2e26;
  --company-paper: #f4f1e9;
  --company-paper-deep: #e8e4d9;
  --company-ink: #151712;
  --company-muted: #777b70;
  --company-accent: #d8ff5f;
  --company-accent-ink: #293500;
}

.company-site {
  overflow-x: clip;
  background: var(--company-paper);
  color: var(--company-ink);
  font-family: "Aptos", "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

.company-site::before {
  display: none;
}

.company-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--company-night-line);
  background: var(--company-night);
  color: var(--company-paper);
}

.header-inner {
  width: min(1400px, calc(100% - 4rem));
  min-height: 6.5rem;
}

.company-brand {
  display: inline-block;
  color: inherit;
  font-size: clamp(1.75rem, 2.4vw, 2.5rem);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 1;
  text-decoration: none;
}

.company-nav {
  gap: clamp(1.5rem, 3.2vw, 3.4rem);
}

.company-nav a {
  padding: 0.65rem 0;
  color: #999e91;
  font-size: 0.78rem;
  font-weight: 560;
  letter-spacing: 0.015em;
}

.company-nav a::after {
  height: 2px;
  background: var(--company-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 180ms ease, transform 180ms ease;
}

.company-nav a:hover,
.company-nav a[aria-current="page"] {
  color: var(--company-paper);
}

.company-main {
  width: min(1260px, calc(100% - 4rem));
  min-height: 60vh;
}

.home-page .company-main {
  width: 100%;
  background: var(--company-night);
}

.interior-page .company-main {
  width: 100%;
}

.company-site h1,
.company-site h2,
.company-site h3 {
  color: inherit;
  font-family: inherit;
  font-weight: 520;
  text-wrap: balance;
}

.company-site h1 {
  max-width: none;
  font-size: clamp(4.5rem, 7.5vw, 7.25rem);
  line-height: 0.87;
  letter-spacing: -0.078em;
}

.company-site h2 {
  font-size: clamp(2.6rem, 5vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.status-line,
.section-index,
.page-note,
.policy-nav > p {
  color: inherit;
  font-size: 0.65rem;
  font-weight: 680;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.company-hero {
  position: relative;
  display: grid;
  width: min(1400px, calc(100% - 4rem));
  min-height: calc(100svh - 6.5rem);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0 1.25rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vh, 4.5rem) 0 clamp(2.5rem, 5vh, 4rem);
  color: var(--company-paper);
}

.home-page .company-main::before {
  display: none;
}

.hero-status {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  padding-bottom: clamp(2rem, 4vh, 3.5rem);
  border-bottom: 1px solid var(--company-night-line);
}

.hero-status p {
  margin: 0;
}

.hero-status .status-line {
  display: flex;
  align-items: center;
  color: #a9ad9f;
}

.status-dot {
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.8rem;
  border-radius: 50%;
  background: var(--company-accent);
  box-shadow: 0 0 0 5px rgb(216 255 95 / 7%);
  animation: status-breathe 3.8s ease-in-out infinite;
}

.hero-edition {
  color: #6f7468;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.company-hero h1 {
  z-index: 4;
  grid-column: 1 / 10;
  align-self: center;
  margin: clamp(2.5rem, 7vh, 6.5rem) 0;
}

.company-hero h1 span {
  display: block;
}

.company-hero h1 span:nth-child(2) {
  color: #b7bbaf;
}

.hero-lede {
  z-index: 4;
  grid-column: 1 / 5;
  align-self: end;
  max-width: 36ch;
  margin: 0;
  padding: 0 0 0 1.4rem;
  border-left: 2px solid var(--company-accent);
  color: #b9bdb2;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.55;
}

.system-field {
  position: relative;
  z-index: 2;
  display: grid;
  grid-column: 8 / -1;
  grid-row: 2 / 4;
  min-height: 31rem;
  align-self: stretch;
  overflow: hidden;
  border: 1px solid var(--company-night-line);
  background:
    radial-gradient(circle at 70% 25%, rgb(216 255 95 / 5%), transparent 34%),
    var(--company-night-soft);
}

.system-field::after {
  position: absolute;
  top: 2.5rem;
  bottom: 2.5rem;
  left: 0;
  width: 1px;
  background: linear-gradient(transparent, var(--company-accent), transparent);
  content: "";
  opacity: 0.45;
  animation: field-scan 8s ease-in-out infinite;
}

.field-header,
.field-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  color: #73786d;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.field-header {
  min-height: 2.5rem;
  border-bottom: 1px solid var(--company-night-line);
}

.field-footer {
  min-height: 2.5rem;
  border-top: 1px solid var(--company-night-line);
}

.field-sequence {
  color: var(--company-accent);
}

.system-map {
  display: block;
  width: 100%;
  height: 100%;
}

.system-grid path {
  fill: none;
  stroke: #20231e;
  stroke-width: 1;
}

.system-paths path {
  fill: none;
  stroke: #656b5f;
  stroke-width: 1;
  stroke-dasharray: 3 5;
  vector-effect: non-scaling-stroke;
  animation: path-flow 12s linear infinite;
}

.system-nodes circle {
  fill: #808678;
}

.system-nodes .node-active {
  fill: var(--company-accent);
}

.system-labels {
  fill: #777c71;
  font-family: inherit;
  font-size: 8px;
  letter-spacing: 1.3px;
}

.system-pulse {
  fill: none;
  stroke: var(--company-accent);
  stroke-width: 1;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: node-pulse 4s ease-out infinite;
}

.pulse-two,
.node-active-delay {
  animation-delay: 1.85s;
}

.hero-caption {
  z-index: 4;
  grid-column: 9 / -1;
  align-self: end;
  margin: 1rem 0 0;
  color: #71766b;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-align: right;
  text-transform: uppercase;
}

.statement-stream {
  margin-top: 0;
  background: var(--company-paper);
}

.statement {
  position: relative;
  display: grid;
  width: min(1320px, calc(100% - 4rem));
  min-height: min(76svh, 760px);
  grid-template-columns: 1fr 8fr 1.6fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-inline: auto;
  padding: clamp(6rem, 12vw, 11rem) 0;
  border-bottom: 1px solid #d7d3c8;
}

.statement-index,
.statement-label,
.statement-aside {
  color: var(--company-muted);
  font-size: 0.63rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  line-height: 1.8;
  text-transform: uppercase;
}

.statement-index {
  align-self: start;
  margin: 0;
}

.statement > div:not(.statement-signal) {
  max-width: 970px;
}

.statement-label {
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
  color: var(--company-accent-ink);
}

.statement h2 {
  margin: 0;
}

.statement-one h2 {
  max-width: 13ch;
}

.statement-two {
  grid-template-columns: 1fr 1.5fr 7.5fr;
}

.statement-two > div:not(.statement-signal) {
  grid-column: 3;
}

.statement-two h2 {
  max-width: 12ch;
}

.statement-three h2 {
  max-width: 13ch;
}

.statement-aside {
  align-self: end;
  margin: 0;
  padding-left: 1rem;
  border-left: 1px solid #cac6ba;
}

.statement-aside-right {
  text-align: left;
}

.statement-signal {
  display: grid;
  width: min(7rem, 100%);
  grid-template-columns: repeat(4, 1fr);
  align-self: center;
  gap: 0.8rem;
}

.statement-signal span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #a8aa9e;
  animation: signal-sequence 3s ease-in-out infinite;
}

.statement-signal span:nth-child(2) { animation-delay: 0.25s; }
.statement-signal span:nth-child(3) { animation-delay: 0.5s; }
.statement-signal span:nth-child(4) { animation-delay: 0.75s; }

.company-statement,
.editorial-grid,
.company-details-section,
.contact-band {
  grid-template-columns: minmax(6rem, 1fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 6rem);
}

.home-page .company-statement {
  width: min(1320px, calc(100% - 4rem));
  min-height: 44rem;
  align-items: center;
  margin-inline: auto;
  padding: clamp(7rem, 12vw, 11rem) 0;
  border-top: 0;
  background: var(--company-paper);
  box-shadow: 0 0 0 100vmax var(--company-paper);
  clip-path: inset(0 -100vmax);
  color: var(--company-ink);
}

.company-statement > div {
  max-width: 980px;
}

.company-statement h2 {
  max-width: 13ch;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.company-statement div > p,
.prose > p {
  color: var(--company-muted);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
}

.company-statement div > p {
  max-width: 58ch;
}

.page-heading {
  position: relative;
  width: 100%;
  min-height: min(64svh, 650px);
  margin-left: 0;
  padding: clamp(5rem, 10vw, 9rem) max(2rem, calc((100vw - 1260px) / 2)) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  border: 0;
  background: var(--company-night);
  color: var(--company-paper);
}

.page-heading::after {
  position: absolute;
  right: max(2rem, calc((100vw - 1260px) / 2));
  bottom: 0;
  width: min(34vw, 30rem);
  height: 1px;
  background: var(--company-accent);
  content: "";
}

.page-heading .status-line {
  color: var(--company-accent);
}

.page-heading h1 {
  max-width: 12ch;
  margin-top: clamp(4rem, 8vw, 7rem);
}

.page-heading .page-note {
  margin-top: clamp(3rem, 6vw, 5rem);
  color: #777c71;
}

.editorial-grid,
.company-details-section,
.contact-band {
  width: min(1260px, calc(100% - 4rem));
  margin-inline: auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
  border-top-color: #d5d1c5;
}

.editorial-grid:first-of-type {
  border-top: 0;
}

.editorial-grid h2,
.company-details-section h2,
.contact-band h2 {
  max-width: 17ch;
  margin-bottom: 2.5rem;
  font-size: clamp(2.2rem, 4.5vw, 4.6rem);
}

.prose-lead > p:first-of-type {
  color: var(--company-ink);
  font-family: inherit;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.32;
  letter-spacing: -0.035em;
}

.details-list {
  border-top-color: #c9c5b9;
}

.details-list > div {
  border-bottom-color: #d8d4c9;
}

.details-list dt,
.details-list dd,
.contact-band p:last-child,
.policy-content p {
  color: var(--company-muted);
}

.details-list a,
.company-statement a,
.prose a,
.contact-band a,
.policy-content a {
  color: #385a25;
  text-decoration-color: #9baa7c;
}

.contact-company {
  font-size: clamp(3rem, 6vw, 6rem) !important;
}

.policy-layout {
  width: min(1260px, calc(100% - 4rem));
  margin-inline: auto;
  grid-template-columns: minmax(9rem, 1fr) minmax(0, 4fr);
  gap: clamp(3rem, 6vw, 7rem);
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.policy-nav a:hover {
  color: #385a25;
}

.policy-content {
  max-width: 780px;
}

.policy-content-standalone {
  width: min(780px, calc(100% - 4rem));
  max-width: 780px;
  margin-inline: auto;
}

.policy-content section + section {
  border-top-color: #d8d4c9;
}

.policy-content h2 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.company-footer {
  border-top: 1px solid var(--company-night-line);
  background: var(--company-night);
  color: var(--company-paper);
}

.footer-grid,
.footer-bottom {
  width: min(1320px, calc(100% - 4rem));
}

.footer-grid {
  grid-template-columns: 1.7fr 1fr 0.7fr;
  gap: clamp(3rem, 7vw, 8rem);
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.footer-brand-block .company-brand {
  font-size: clamp(3rem, 6.5vw, 6.5rem);
}

.footer-brand-block p {
  max-width: 32ch;
  margin-top: 2.5rem;
  color: #858a7e;
  font-family: inherit;
  font-size: 1rem;
}

.footer-details p,
.footer-links a,
.social-links a,
.footer-bottom p {
  color: #7e8377;
}

.footer-details p:first-child {
  color: var(--company-paper);
}

.footer-details a:hover,
.footer-links a:hover,
.social-links a:hover {
  color: var(--company-accent);
}

.footer-bottom {
  border-top-color: var(--company-night-line);
}

@keyframes status-breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes field-scan {
  0%, 15% { transform: translateX(-1px); opacity: 0; }
  30%, 70% { opacity: 0.5; }
  85%, 100% { transform: translateX(540px); opacity: 0; }
}

@keyframes path-flow {
  to { stroke-dashoffset: -80; }
}

@keyframes node-pulse {
  0% { opacity: 0; transform: scale(0.25); }
  12% { opacity: 0.65; }
  42%, 100% { opacity: 0; transform: scale(1.55); }
}

@keyframes signal-sequence {
  0%, 70%, 100% { background: #a8aa9e; transform: scale(0.8); }
  18% { background: var(--company-accent-ink); transform: scale(1.2); }
}

@media (max-width: 1000px) {
  .company-site h1 {
    font-size: clamp(4rem, 9vw, 6rem);
  }

  .company-hero h1 {
    grid-column: 1 / 11;
  }

  .system-field {
    grid-column: 7 / -1;
  }

  .hero-lede {
    grid-column: 1 / 6;
  }

  .statement {
    grid-template-columns: 0.7fr 7fr 1.5fr;
  }

  .statement-two {
    grid-template-columns: 0.7fr 1fr 7fr;
  }
}

@media (max-width: 760px) {
  .header-inner,
  .company-main,
  .company-hero,
  .statement,
  .home-page .company-statement,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 2rem, 1320px);
  }

  .interior-page .company-main {
    width: 100%;
  }

  .editorial-grid,
  .company-details-section,
  .contact-band,
  .policy-layout,
  .policy-content-standalone {
    width: min(100% - 2rem, 1260px);
  }

  .header-inner {
    min-height: 5.2rem;
    gap: 1rem;
  }

  .company-brand {
    font-size: 1.35rem;
  }

  .company-nav {
    gap: clamp(0.85rem, 4vw, 1.5rem);
  }

  .company-nav a {
    font-size: 0.7rem;
  }

  .company-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 1.5rem 0 2.5rem;
  }

  .hero-status,
  .company-hero h1,
  .hero-lede,
  .system-field,
  .hero-caption {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-status {
    padding-bottom: 1.5rem;
  }

  .company-hero h1 {
    margin: 4rem 0 3rem;
    font-size: clamp(3.4rem, 15.2vw, 5rem);
    line-height: 0.9;
  }

  .hero-lede {
    max-width: 32ch;
    margin-bottom: 3.5rem;
  }

  .system-field {
    min-height: 22rem;
  }

  .hero-caption {
    margin-top: 1rem;
  }

  .statement,
  .statement-two {
    min-height: 39rem;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-content: center;
    padding: 6rem 0;
  }

  .statement-index,
  .statement-two > div:not(.statement-signal),
  .statement-aside,
  .statement-signal {
    grid-column: 1;
  }

  .statement-index {
    align-self: auto;
  }

  .statement-aside {
    display: none;
  }

  .statement-label {
    margin-bottom: 2.5rem;
  }

  .statement h2 {
    font-size: clamp(3rem, 13vw, 4.8rem);
  }

  .statement-signal {
    width: 5rem;
  }

  .company-statement,
  .editorial-grid,
  .company-details-section,
  .contact-band,
  .policy-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home-page .company-statement {
    min-height: 40rem;
    padding: 6rem 0;
  }

  .page-heading {
    min-height: 33rem;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .page-heading::after {
    right: 1rem;
    width: calc(100% - 2rem);
  }

  .policy-nav {
    display: none;
  }

  .policy-content-standalone {
    margin-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .footer-links {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand-block .company-brand {
    font-size: clamp(3rem, 16vw, 5.5rem);
  }
}

@media (max-width: 430px) {
  .header-inner {
    flex-wrap: nowrap;
    padding: 0;
  }

  .company-nav {
    width: auto;
    padding: 0;
    border: 0;
  }

  .company-nav a {
    font-size: 0.65rem;
  }

  .company-hero h1 {
    font-size: clamp(3rem, 15vw, 4.25rem);
  }

  .system-field {
    min-height: 19rem;
  }

  .field-header,
  .field-footer {
    font-size: 0.48rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .company-nav a::after,
  .status-dot,
  .system-field::after,
  .system-paths path,
  .system-pulse,
  .statement-signal span {
    animation: none;
    transition: none;
  }
}
