/* CONSTAT — constat.sk
   Colours and type follow CONSTAT brand sheet v00. */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("../fonts/space-grotesk-latin-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --petrol: #0E4F55;
  --deep-petrol: #0B3A3F;
  --bronze: #8A6440;
  --light-bronze: #C9A57A;
  --graphite: #1F2429;
  --steel: #5C6470;
  --light: #E6ECEB;
  --mist: #F2F5F4;           /* very light step of the brand "Light" for section backgrounds */
  --card: #F3F6F5;
  --paper: #FFFFFF;

  --font-head: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw + 12px, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--paper); color: var(--petrol); padding: 8px 14px; z-index: 10;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--light-bronze); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

/* small uppercase labels: brand font instead of a system monospace */
.eyebrow,
.pillar__num,
.status__pill,
.hero__caption,
.pillar__figure figcaption {
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--bronze);
  margin: 0 0 12px;
}
.eyebrow--on-dark { color: var(--light-bronze); }

/* ---------- Hero (dark) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--deep-petrol);
  color: var(--paper);
  isolation: isolate;
}

.hero__figure {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: max(-80px, calc((100vw - var(--wrap)) / 2 - 120px));
  width: min(560px, 46vw);
  transform: translateY(-46%);
  mix-blend-mode: lighten;              /* the figure's black background becomes exactly petrol */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28%, #000 88%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 28%, #000 88%, transparent 100%);
}

.hero__caption {
  position: absolute;
  bottom: 20px;
  right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  margin: 0;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(11, 58, 63, 0.8);    /* keeps the caption readable over the bright wave arc */
  padding: 4px 10px;
  border-radius: 999px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.topbar__logo { display: block; }
.topbar__logo img { height: 34px; width: auto; }   /* full equation logo, >= 220 px wide per brand sheet */

.lang {
  display: flex;
  gap: 18px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.lang a, .lang span {
  padding: 4px 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.lang a { color: rgba(255, 255, 255, 0.6); }
.lang a:hover { color: var(--paper); border-bottom-color: rgba(255, 255, 255, 0.4); }
.lang [aria-current] { color: var(--paper); border-bottom-color: var(--light-bronze); }

.hero__body {
  padding-top: clamp(56px, 10vw, 128px);
  padding-bottom: clamp(80px, 12vw, 160px);
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  margin-bottom: 26px;
}

.hero__lead {
  font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.25rem);
  color: rgba(255, 255, 255, 0.84);
  max-width: 34em;
  margin: 0;
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--light { background: var(--mist); }

.section__title {
  font-size: clamp(2rem, 3vw, 2.75rem);
  color: var(--petrol);
  margin-bottom: clamp(28px, 4vw, 44px);
}

/* ---------- What we do ---------- */

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pillar {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
}

.pillar__num {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bronze);
  margin-bottom: 12px;
}

.pillar h3 {
  font-size: clamp(1.2rem, 1.3vw + 0.8rem, 1.45rem);
  color: var(--petrol);
  margin-bottom: 10px;
}

.pillar p { margin: 0; color: var(--graphite); }

/* main pillar: text left, simulation right — the figure never sits behind text */
.pillar--main {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  overflow: hidden;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  background: var(--deep-petrol);
  color: var(--paper);
  padding: clamp(32px, 4.5vw, 56px);
}
.pillar--main .pillar__num { color: var(--light-bronze); }
.pillar--main h3 { font-size: 1.75rem; color: var(--paper); margin-bottom: 14px; }
.pillar--main p { font-size: 1.05em; color: rgba(255, 255, 255, 0.86); }

.pillar__figure { margin-right: calc(-1 * clamp(32px, 4.5vw, 56px)); }   /* bleed to the card edge */
.pillar__figure figcaption { padding-right: clamp(32px, 4.5vw, 56px); }
.pillar__figure img {
  width: 100%;
  height: auto;
  mix-blend-mode: lighten;              /* its near-black background becomes the card's petrol */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 85%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 85%, transparent 100%);
}
.pillar__figure figcaption {
  margin-top: 10px;
  text-wrap: balance;
  text-align: right;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- About ---------- */

.section--light .section__title { margin-bottom: 20px; }

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(16px, 2.5vw, 28px);
}

.stat { margin: 0; }
.stat__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(4.5rem, 11vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--petrol);
}
.stat__label {
  display: block;
  margin-top: 14px;
  color: var(--steel);
  max-width: 16em;
}

.about__text p { margin: 0 0 18px; }

.status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--steel);
}
.status__pill {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--bronze);
  border: 1px solid var(--light-bronze);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---------- Contact + footer (petrol) ---------- */

.contact {
  background: var(--petrol);
  color: var(--paper);
  padding: clamp(64px, 9vw, 104px) 0 0;
}

.contact h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  max-width: 22em;
  margin-bottom: 22px;
}

.contact__mail {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  color: var(--light-bronze);
  text-decoration: none;
  border-bottom: 2px solid rgba(201, 165, 122, 0.4);
  padding-bottom: 2px;
  word-break: break-word;
}
.contact__mail:hover { border-bottom-color: var(--light-bronze); }

.footer {
  margin-top: clamp(56px, 8vw, 88px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 28px 0 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 32px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer p { margin: 0; }
.footer strong { color: var(--paper); font-weight: 600; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .pillar--main { grid-template-columns: 1fr; }
  .pillar--main p { max-width: 40em; }
  .pillar__figure { margin-right: 0; }
  .pillar__figure figcaption { padding-right: 0; }
}


@media (max-width: 820px) {
  .hero__figure {
    width: 92vw;
    right: -55vw;
    opacity: 0.3;
  }
  .hero__caption { display: none; }

  .pillars, .about { grid-template-columns: 1fr; }

  .pillar--main { grid-template-columns: 1fr; }
  .pillar__figure { margin-right: 0; }
  .pillar__figure figcaption { padding-right: 0; }
  .pillar__figure img {
    height: 140px;
    object-fit: cover;
    object-position: 92% center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 97%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 97%, transparent 100%);
  }
}

@media (max-width: 480px) {
  .footer br { display: none; }
  .pillar__figure figcaption { font-size: 0.6rem; }
  .topbar { padding-top: 18px; padding-bottom: 18px; }
  .topbar__logo img { height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* brand claim under the hero headline */
.hero__claim {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.05rem, 0.8vw + 0.85rem, 1.35rem);
  letter-spacing: 0.02em;
  color: var(--light-bronze);
  margin: -8px 0 22px;
}

/* contact band without the company-details strip (details temporarily hidden) */
.contact--compact { padding-bottom: clamp(64px, 9vw, 104px); }

/* who answers the contact e-mail */
.contact__role {
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
}

/* Brand name: the HTML text is plain "CONSTAT" (search engines, screen readers, copy-paste);
   the C' play is drawn only visually. The "/ ''" part hides it from screen readers. */
.cprime::after {
  content: "'";
  content: "'" / "";
}
