/* ─── Pindiborka Labs — design tokens ─────────────────────────────── */
:root {
  --green:      #2E6350;
  --green-hi:   #3B7A63;
  --green-deep: #1E4638;
  --green-dark: #16352B;
  --gold:       #C9A227;
  --gold-hi:    #E8CD8C;
  --gold-dark:  #96751B;
  --cream:      #F2EAD9;
  --mist:       #BFD4C7;
  --w-red:    #C25050;
  --w-teal:   #46A08F;
  --w-purple: #9678D3;
  --w-blue:   #5E93C5;
  --w-amber:  #D89A3E;  /* Riddloc */
  --font-head: 'Cinzel', 'Noto Serif KR', 'Noto Serif JP', serif;
  --font-body: 'Montserrat', 'Noto Sans KR', 'Noto Sans JP', -apple-system, sans-serif;
  --font-quote: 'Cormorant Garamond', 'Noto Serif KR', 'Noto Serif JP', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--green-dark);
  color: var(--mist);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a:focus-visible, select:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ─── Gold text gradient ──────────────────────────────────────────── */
.goldtxt {
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 55%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─── Navigation ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 34px;
  background: rgba(22, 53, 43, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-word {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 2.5px;
  white-space: nowrap;
}

.brand-gold {
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 55%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-labs { color: var(--cream); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mist);
  transition: color 0.2s;
}

.nav-link:hover { color: var(--gold-hi); }

#lang-select {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--gold-hi);
  background: rgba(22, 53, 43, 0.6);
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
}

#lang-select option { background: var(--green-dark); color: var(--cream); }

/* ─── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse 58% 42% at 50% 34%, rgba(214,232,205,0.30) 0%, rgba(214,232,205,0) 62%),
    linear-gradient(168deg, #3B7A63 0%, #2E6350 44%, #24513F 78%, #1E4638 100%);
  overflow: hidden;
  padding: 110px 24px 90px;
}

.facets {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.hero-copy { text-align: center; }

.wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(46px, 7.2vw, 84px);
  letter-spacing: 0.10em;
  line-height: 1.05;
  white-space: nowrap;
}

.labs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 14px;
}

.labs {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(21px, 2.6vw, 30px);
  letter-spacing: 0.42em;
  padding-left: 0.42em; /* optically recentre the tracked text */
}

.labs-rule {
  height: 1px;
  width: clamp(48px, 8vw, 110px);
}
.labs-rule-l { background: linear-gradient(90deg, rgba(201,162,39,0) 0%, var(--gold) 100%); }
.labs-rule-r { background: linear-gradient(90deg, var(--gold) 0%, rgba(201,162,39,0) 100%); }

.tagline {
  margin-top: 26px;
  font-weight: 600;
  font-size: clamp(13px, 1.5vw, 16px);
  letter-spacing: 0.30em;
  color: var(--cream);
}

.tagline-hl { color: var(--gold-hi); }

.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 40px;
}

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 32px;
  border-radius: 10px;
  transition: transform 0.22s, box-shadow 0.22s, background 0.22s;
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 60%, var(--gold-dark) 100%);
  color: var(--green-dark);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(201, 162, 39, 0.38);
}

.btn-ghost {
  border: 1px solid var(--gold);
  color: var(--gold-hi);
}

.btn-ghost:hover { background: rgba(201, 162, 39, 0.14); }

.hero-art { position: relative; display: flex; justify-content: center; }

.hero-art::before {
  content: '';
  position: absolute;
  inset: -8%;
  background: radial-gradient(ellipse at 50% 42%, rgba(232,205,140,0.22) 0%, rgba(232,205,140,0) 62%);
  pointer-events: none;
}

.hero-art img {
  position: relative;
  width: min(400px, 34vw);
  border-radius: 18px;
  border: 1px solid rgba(201, 162, 39, 0.38);
  box-shadow: 0 30px 60px rgba(10, 25, 18, 0.55);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 3px;
  color: rgba(232, 205, 140, 0.75);
}

.scroll-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(201,162,39,0) 100%);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ─── Sections (shared) ───────────────────────────────────────────── */
.section { padding: 110px 24px; }
.section-dark { background: var(--green-dark); }
.section-deep { background: linear-gradient(175deg, var(--green-deep) 0%, #23523F 100%); }

.wrap { max-width: 1060px; margin: 0 auto; text-align: center; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
}

.section h2, .footer h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: 0.04em;
  margin-top: 14px;
  display: inline-block; /* keep the gradient clip tight to the text */
}

.section-intro {
  max-width: 720px;
  margin: 22px auto 0;
  font-size: 16.5px;
  font-weight: 300;
  line-height: 1.75;
}

.section-intro strong, .about-text strong { color: var(--cream); font-weight: 600; }

/* ─── Project cards ───────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 56px;
  text-align: left;
}

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(46,99,80,0.35) 0%, rgba(30,70,56,0.28) 100%);
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-top: 3px solid var(--accent);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(8, 22, 16, 0.5);
  border-color: rgba(201, 162, 39, 0.45);
  border-top-color: var(--accent);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}

.card-icon svg { width: 24px; height: 24px; stroke: var(--accent); }

.card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--cream);
  margin-top: 18px;
}

.card-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 6px;
}

.card-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  margin-top: 14px;
  flex-grow: 1;
}

.card-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-decoration: none;
  color: var(--gold);
  transition: color 0.2s;
}

.card-link:hover { color: var(--gold-hi); }

.card-link-sm { font-size: 10.5px; letter-spacing: 0.8px; white-space: nowrap; }

/* Kiemelt (teljes sorszéles) kártya — Riddloc */
.card-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
}

.card-wide-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.card-wide h3 { margin-top: 0; }

.card-wide .card-desc { max-width: 680px; }

/* ─── About ───────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 52px;
  text-align: left;
}

.about-text p {
  font-size: 16.5px;
  font-weight: 300;
  line-height: 1.8;
}

.about-text p + p { margin-top: 22px; }

.about-fig { display: flex; flex-direction: column; align-items: center; }

.about-fig img {
  max-width: 360px;
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  box-shadow: 0 24px 48px rgba(8, 22, 16, 0.45);
}

.about-fig figcaption {
  margin-top: 14px;
  font-size: 12.5px;
  font-style: italic;
  color: var(--mist);
  text-align: center;
}

.quote {
  position: relative;
  max-width: 820px;
  margin: 72px auto 0;
  padding: 44px 48px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 16px;
  background: rgba(22, 53, 43, 0.45);
}

.quote::before {
  content: '\201C';
  position: absolute;
  top: -58px;
  left: 18px;
  font-family: var(--font-quote);
  font-size: 110px;
  line-height: 1;
  color: var(--gold);
}

.quote-text {
  font-family: var(--font-quote);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 33px);
  line-height: 1.35;
  color: var(--cream);
}

.quote-src {
  display: block;
  margin-top: 18px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--gold-hi);
}

.quote-note {
  margin-top: 16px;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--mist);
}

/* ─── AI pillars ──────────────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
  text-align: left;
}

.pillar {
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: 14px;
  background: rgba(46, 99, 80, 0.25);
  padding: 30px 26px;
}

.pillar-icon svg { width: 34px; height: 34px; }

.pillar h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 1.5px;
  margin-top: 18px;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 55%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pillar p {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
}

/* ─── Footer ──────────────────────────────────────────────────────── */
.footer {
  background: linear-gradient(175deg, var(--green-deep) 0%, #132A21 100%);
  padding: 110px 24px 46px;
  text-align: center;
}

.footer-text {
  max-width: 560px;
  margin: 20px auto 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
}

.footer-mail {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(19px, 2.6vw, 26px);
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--gold-hi);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}

.footer-mail:hover { color: var(--cream); border-color: var(--gold-hi); }

.foot-paw { margin: 52px auto 0; display: block; }

.copyright {
  margin-top: 34px;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: rgba(191, 212, 199, 0.55);
}

/* ─── Reveal on scroll (only when JS runs — no-JS stays visible) ──── */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-line { animation: none; }
  .btn, .card { transition: none; }
}

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { padding: 10px 16px; flex-wrap: wrap; }
  .nav-right { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
  .nav-link { font-size: 11px; letter-spacing: 1.2px; }
  .brand-word { font-size: 13px; letter-spacing: 2px; }

  .hero { padding: 130px 20px 100px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-art img { width: min(340px, 78vw); }

  .wordmark { font-size: clamp(30px, 9.4vw, 64px); letter-spacing: 0.07em; }
  .labs { font-size: clamp(17px, 4.4vw, 30px); }
  .tagline { letter-spacing: 0.22em; font-size: clamp(11.5px, 3.2vw, 16px); }

  .section { padding: 80px 20px; }

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

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

  .card-wide { flex-direction: column; gap: 0; }
  .card-wide h3 { margin-top: 18px; }

  .quote { padding: 38px 26px; }
}

/* ─── Large / ultrawide screens ───────────────────────────────────────
   Above 1440px everything keeps growing with the viewport instead of
   freezing at the desktop caps, so the page doesn't shrink into a small
   island in the middle of a 4K/5K display. Every value starts at exactly
   its ≤1440px size (no jump at the breakpoint) and tops out around 2300px. */
@media (min-width: 1440px) {
  html { scroll-padding-top: clamp(74px, 5vw, 104px); }

  .nav { padding: clamp(14px, 0.9vw, 22px) clamp(34px, 2.6vw, 72px); }
  .nav-right { gap: clamp(26px, 1.8vw, 40px); }
  .nav-link { font-size: clamp(13px, 0.8vw, 17px); }
  .brand-word { font-size: clamp(15px, 0.95vw, 20px); }
  #lang-select { font-size: clamp(12px, 0.75vw, 16px); padding: clamp(6px, 0.5vw, 10px) clamp(8px, 0.6vw, 12px); }

  /* Hero — the container, the headline and the artwork grow together, so
     the wordmark (white-space: nowrap) always fits its grid column. */
  .hero-inner { max-width: clamp(1120px, 74vw, 1660px); gap: clamp(48px, 3vw, 80px); }
  .wordmark { font-size: clamp(84px, 5.7vw, 128px); }
  .labs { font-size: clamp(30px, 2vw, 44px); }
  .labs-rule { width: clamp(110px, 7vw, 160px); }
  .tagline { font-size: clamp(16px, 1.05vw, 22px); }
  .btn { font-size: clamp(13.5px, 0.85vw, 17px); padding: clamp(15px, 1vw, 20px) clamp(32px, 2.2vw, 46px); }
  .hero-art img { width: clamp(400px, 22vw, 520px); }
  .scroll-label { font-size: clamp(10.5px, 0.68vw, 14px); }

  /* Sections */
  .section { padding: clamp(110px, 7vw, 160px) 24px; }
  .wrap { max-width: clamp(1060px, 70vw, 1560px); }
  .eyebrow { font-size: clamp(12px, 0.72vw, 16px); }
  .section h2, .footer h2 { font-size: clamp(44px, 2.9vw, 64px); }
  .section-intro { font-size: clamp(16.5px, 1.05vw, 21px); max-width: clamp(720px, 45vw, 1000px); }

  /* Cards — pin to 4 columns; auto-fit would open a 5th/6th empty slot
     in the wider container (there are only 4 regular cards + 1 wide one). */
  .cards { grid-template-columns: repeat(4, 1fr); gap: clamp(22px, 1.4vw, 32px); }
  .card { padding: clamp(28px, 1.8vw, 40px) clamp(24px, 1.6vw, 34px); }
  .card-icon { width: clamp(46px, 2.9vw, 64px); height: clamp(46px, 2.9vw, 64px); }
  .card-icon svg { width: clamp(24px, 1.5vw, 32px); height: clamp(24px, 1.5vw, 32px); }
  .card h3 { font-size: clamp(18px, 1.15vw, 24px); }
  .card-sub { font-size: clamp(11px, 0.68vw, 14px); }
  .card-desc { font-size: clamp(14px, 0.9vw, 18px); }
  .card-link { font-size: clamp(12px, 0.75vw, 15px); }
  .card-link-sm { font-size: clamp(10.5px, 0.66vw, 13.5px); }
  .card-wide .card-desc { max-width: clamp(680px, 44vw, 980px); }

  /* About + quote */
  .about-grid { gap: clamp(64px, 4vw, 90px); }
  .about-text p { font-size: clamp(16.5px, 1.05vw, 21px); }
  .about-fig img { max-width: clamp(360px, 23vw, 520px); }
  .about-fig figcaption { font-size: clamp(12.5px, 0.78vw, 16px); }
  .quote { max-width: clamp(820px, 52vw, 1160px); padding: clamp(44px, 2.8vw, 60px) clamp(48px, 3.2vw, 68px); }
  .quote-text { font-size: clamp(33px, 2.2vw, 46px); }
  .quote-src { font-size: clamp(13px, 0.82vw, 17px); }
  .quote-note { font-size: clamp(12.5px, 0.78vw, 16px); }

  /* AI pillars */
  .pillars { gap: clamp(22px, 1.4vw, 32px); }
  .pillar { padding: clamp(30px, 1.9vw, 42px) clamp(26px, 1.7vw, 36px); }
  .pillar-icon svg { width: clamp(34px, 2.1vw, 46px); height: clamp(34px, 2.1vw, 46px); }
  .pillar h3 { font-size: clamp(15.5px, 1vw, 20px); }
  .pillar p { font-size: clamp(14px, 0.9vw, 18px); }

  /* Footer */
  .footer { padding: clamp(110px, 7vw, 160px) 24px 46px; }
  .footer-text { font-size: clamp(16px, 1vw, 20px); max-width: clamp(560px, 36vw, 800px); }
  .footer-mail { font-size: clamp(26px, 1.7vw, 36px); }
  .copyright { font-size: clamp(12px, 0.75vw, 15px); }
}
