/* IKHBUGAT home page */
:root {
  --paper: #F3F3F1;
  --paper-2: #ECECE9;
  --white: #FFFFFF;
  --ink: #14161A;
  --ink-2: #4A5059;
  --steel: #5A6069;
  --line: #D9DAD6;
  --line-2: #D3D4CF;
  --field: #B8BBB6;
  --accent: #DFA01C;
  --accent-text: #8A5D0A;
  --band-text: #B9BDC3;
  --band-line: #3A3E45;

  --font-display: 'Unbounded', 'Arial Black', sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter: clamp(16px, 5vw, 64px);
  --section: clamp(72px, 9vw, 120px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; text-wrap: pretty; }
ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:focus { left: 8px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.stack-56 { display: flex; flex-direction: column; gap: 56px; }
.stack-48 { display: flex; flex-direction: column; gap: 48px; }

/* Type */
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; }
.h1 { font-size: clamp(36px, 5vw, 72px); line-height: 1.06; letter-spacing: -0.02em; max-width: 13ch; text-wrap: balance; }
.h2 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.12; max-width: 18ch; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 52ch; }
.muted { color: var(--ink-2); max-width: 40ch; }
.eyebrow, .kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel);
}
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow__bar { width: 28px; height: 2px; background: var(--accent); flex: none; }
.kicker--accent { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px; border-radius: 2px;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #2A2E35; }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #F0B232; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.textlink { font-weight: 600; font-size: 15px; padding: 12px 0; text-underline-offset: 4px; }
.textlink:hover { color: var(--steel); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(243, 243, 241, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar__in { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; }
.brand { display: flex; align-items: center; color: var(--ink); padding: 12px 0; }
.brand svg { height: 20px; width: auto; }
.brand--lg svg { height: 28px; }
.nav { display: flex; align-items: center; gap: 4px 28px; font-size: 14px; font-weight: 500; }
.nav a:not(.btn) { text-decoration: none; padding: 12px 0; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.menu-btn { display: none; }

@media (max-width: 760px) {
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 0 10px; background: none; border: 0; cursor: pointer; }
  .menu-btn span { display: block; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--line); font-size: 16px; display: none; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; min-height: 52px; }
}

/* Hero */
.hero { border-bottom: 1px solid var(--line); }
.hero__in { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(40px, 5vw, 72px); }
.hero__copy { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 64px; }
.hero__row .h1 { flex: 1 1 560px; max-width: 15ch; }
.hero__side { flex: 0 1 440px; display: flex; flex-direction: column; gap: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.hero__media { margin: 0; width: 100%; height: clamp(300px, 50vw, 760px); overflow: hidden; background: var(--paper-2); border-top: 1px solid var(--line); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.06); animation: hero-zoom 1.8s var(--ease) .1s forwards; }
@keyframes hero-zoom { to { transform: scale(1); } }

/* Principles */
.principles { border-bottom: 1px solid var(--line); }
.principles__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.principle { padding: 36px 28px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--line); }
.principle:first-child { padding-left: 0; }
.principle:last-child { border-right: 0; }
.principle__n { font-family: var(--font-mono); font-size: 12px; color: var(--accent-text); }
.principle__t { font-size: 22px; line-height: 1.2; }
.principle p { font-size: 14px; color: var(--steel); }
@media (max-width: 1100px) {
  .principle { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .principle:last-child { border-bottom: 0; }
}
@media (min-width: 560px) and (max-width: 1100px) {
  .principles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .principle:nth-last-child(2) { border-bottom: 0; }
}

/* Sections */
.section { padding: var(--section) 0; }
.section--rule { border-bottom: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; }
.sec-head__title { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; }
.sec-head__text { flex: 1 1 360px; color: var(--ink-2); max-width: 48ch; }
.sec-head__side { flex: 1 1 360px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.sec-head__side .sec-head__text { flex: none; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); padding: clamp(28px, 3.5vw, 48px); display: flex; flex-direction: column; gap: 20px; transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(20, 22, 26, .35); }
.card__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.card__t { font-size: 26px; }
.card p { color: var(--ink-2); }

/* Equipment band */
.band { background: var(--ink); color: var(--paper); }
.band .sec-head__text { color: var(--band-text); }
.sec-head--band { gap: 32px 64px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); border-top: 2px solid var(--ink); }
.step { padding: 28px 28px 8px 0; display: flex; flex-direction: column; gap: 12px; }
.step__n { font-family: var(--font-mono); font-size: 13px; color: var(--steel); }
.step__t { font-size: 21px; }
.step p { color: var(--ink-2); font-size: 15px; }

/* Mission */
.sec-head--link { align-items: flex-end; }
.mission {
  min-height: 460px; background: var(--ink); color: var(--paper);
  padding: clamp(36px, 6vw, 88px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  border-bottom: 4px solid var(--accent);
  background-image: linear-gradient(#1C1F24 1px, transparent 1px), linear-gradient(90deg, #1C1F24 1px, transparent 1px);
  background-size: 64px 64px;
}
.mission__statement { max-width: 24ch; font-size: clamp(28px, 4.4vw, 60px); line-height: 1.12; text-wrap: balance; }
.mission__vision { color: var(--band-text); font-size: 15px; max-width: 46ch; }
.mission__vision strong { color: var(--paper); font-weight: 600; }
.goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 0 40px; }
.goal { display: flex; flex-direction: column; gap: 10px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.goal > div { display: flex; flex-direction: column; gap: 6px; }
.goal__when { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.goal__t { font-size: 20px; }
.goal p { color: var(--ink-2); font-size: 15px; }

/* Contact */
.contact { background: var(--paper-2); border-top: 1px solid var(--line); }
.contact__in { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.contact__info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact__title { max-width: 14ch; }
.details { margin: 12px 0 0; border-top: 1px solid var(--line-2); }
.details div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.details dt { width: 96px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel); padding-top: 3px; }
.details dd { margin: 0; }

.form { flex: 1 1 460px; min-width: 0; background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 3.5vw, 44px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full, .form__foot { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--field); border-radius: 2px;
  font: inherit; background: var(--white); color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(223, 160, 28, .35); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__status { font-size: 13px; color: var(--steel); }
.form__status.is-ok { color: #1E6B3A; font-weight: 600; }
.form__status.is-err { color: #B3261E; font-weight: 600; }
.form button[disabled] { opacity: .6; cursor: progress; }

/* Footer */
.footer { background: var(--ink); color: var(--band-text); }
.footer__in { padding-top: 56px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.footer .brand { color: var(--paper); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 14px; }
.footer__nav a { color: #D5D8DC; text-decoration: none; padding: 12px 0; }
.footer__nav a:hover { color: var(--paper); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--band-line); font-size: 13px; color: #9EA3AA; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .hero__media img, .btn, .btn svg { transition: none; }
  .hero__media img { animation: none; transform: none; }
}
.details dd a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.details dd a:hover { border-color: var(--ink); }
