/* KANTIVANI CO., LTD. — corporate site. Deep charcoal, white type, restrained red.
   No framework. Premium, minimal, editorial. Responsive 360px → large desktop. */

:root {
  --bg: #0b0c0e;
  --bg-2: #0e0f12;
  --surface: #131519;
  --surface-2: #171a1f;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.05);
  --text: #f4f5f7;
  --muted: #9ba1ac;
  --faint: #6a7079;
  --red: #e5342b;
  --red-soft: rgba(229, 52, 43, 0.14);
  --red-glow: 0 0 22px rgba(229, 52, 43, 0.16);
  --maxw: 1180px;
  --radius: 16px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 16px; top: 16px; }

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

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px;
  font-weight: 600; font-size: 14.5px; letter-spacing: 0.01em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-outline { border-color: rgba(229, 52, 43, 0.55); background: rgba(229, 52, 43, 0.04); color: var(--text); }
.btn-outline:hover { border-color: var(--red); background: var(--red-soft); box-shadow: var(--red-glow); }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.03); }
.btn-sm { padding: 10px 16px; font-size: 13.5px; }
@media (prefers-reduced-motion: reduce) { .btn, .btn .arr { transition: none; } }

.eyebrow {
  margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--faint);
}
.eyebrow .dot { color: var(--red); margin: 0 4px; }
.dot { color: var(--red); }

.section-title { margin: 0; font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.section-title.sm { font-size: clamp(20px, 2.4vw, 24px); }

/* ------------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--bg); } }
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-mark { display: block; }
.brand-word { font-weight: 800; letter-spacing: 0.16em; font-size: 15px; line-height: 1; }
.brand-word small { display: block; font-weight: 500; letter-spacing: 0.2em; font-size: 9px; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 30px; margin-left: 26px; }
.nav-link {
  position: relative; text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 500;
  padding: 6px 0; transition: color 0.2s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link.is-current { color: var(--text); }
.nav-link.is-current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--red); border-radius: 2px;
}
.header-cta { margin-left: auto; }

/* --------------------------------------------------------------------- hero */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 72px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 85% 8%, rgba(229, 52, 43, 0.10), transparent 60%),
    radial-gradient(90% 70% at 12% 0%, #16181d 0%, var(--bg) 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-title {
  margin: 0 0 22px; font-weight: 800; letter-spacing: -0.035em;
  font-size: clamp(38px, 6.6vw, 68px); line-height: 1.02;
}
.hero-title .accent { color: var(--red); }
.lede { color: var(--muted); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.7; max-width: 56ch; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-panel {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #0b0c0e url("/assets/hero-scene.svg") center / cover no-repeat;
  min-height: 380px; padding: 34px;
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center; text-align: right;
}
/* The scene SVG carries its own dusk glow; the extra CSS glow is no longer needed. */
.hero-panel-glow { display: none; }
.hero-panel-mark { margin-bottom: 18px; opacity: 0.96; }
.hero-panel-word { font-weight: 800; letter-spacing: 0.2em; font-size: 22px; line-height: 1; }
.hero-panel-word small { display: block; font-weight: 500; letter-spacing: 0.24em; font-size: 10px; color: var(--muted); margin-top: 6px; }
.hero-panel-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 7px; }
.hero-panel-list li { font-size: 11px; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); }
.hero-panel-rule { width: 54px; height: 2px; background: var(--red); border-radius: 2px; margin: 20px 0 14px; box-shadow: var(--red-glow); }
.hero-panel-coords { margin: 0; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); line-height: 1.7; }
.hero-panel-coords span { color: var(--muted); }

/* ----------------------------------------------------------------- sections */
.section { padding: clamp(48px, 6vw, 88px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-note { color: var(--muted); font-size: 14.5px; max-width: 34ch; text-align: right; margin: 0; }

.what { border-top: 1px solid var(--line-soft); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 26px 22px; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}
.card:hover { border-color: rgba(229, 52, 43, 0.4); transform: translateY(-3px); background: var(--surface-2); }
.card-ico {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px;
  border-radius: 12px; border: 1px solid rgba(229, 52, 43, 0.5); color: var(--red);
  background: rgba(229, 52, 43, 0.05);
}
.card-ico svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 10px; font-size: 16.5px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.card a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(229, 52, 43, 0.6); text-underline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transform: none; transition: border-color 0.25s var(--ease); } }

/* ----------------------------------------------------------- brand section */
.brand-section { border-top: 1px solid var(--line-soft); }
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.bulgar-word {
  margin: 26px 0 18px; font-weight: 800; letter-spacing: -0.02em; font-size: clamp(48px, 8vw, 84px);
  line-height: 0.9; display: inline-block; position: relative;
}
.bulgar-word .bulgar-b { position: relative; }
.bulgar-word .bulgar-b::after {
  content: ""; position: absolute; left: 0; right: 8%; bottom: -6px; height: 8px;
  background: var(--red); border-radius: 2px;
}
.brand-lead { font-size: 18px; font-weight: 600; margin: 0 0 14px; letter-spacing: -0.01em; }

.link-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.link-card {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 24px 22px; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}
.link-card:hover { border-color: rgba(229, 52, 43, 0.45); transform: translateY(-3px); background: var(--surface-2); }
.link-card h3 { margin: 0; font-size: 20px; font-weight: 750; letter-spacing: 0.02em; display: flex; align-items: center; gap: 8px; }
.link-card h3 .soft { color: var(--muted); font-weight: 600; }
.link-card h3 .ext { color: var(--red); font-size: 15px; margin-left: 2px; }
.link-card > p { margin: 0; color: var(--muted); font-size: 14px; }
.link-card .link-url { color: var(--faint); font-size: 13px; letter-spacing: 0.02em; }
.link-card .btn { margin-top: 6px; align-self: flex-start; }
@media (prefers-reduced-motion: reduce) { .link-card, .link-card:hover { transform: none; } }

/* --------------------------------------------------------- company/contact */
.company { position: relative; overflow: hidden; border-top: 1px solid var(--line-soft); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
/* A faint coastline echo behind the contact column, as in the mockup. Decorative only. */
.company::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: min(46%, 560px); height: 78%;
  background: url("/assets/hero-scene.svg") right bottom / cover no-repeat;
  opacity: 0.16; pointer-events: none; -webkit-mask-image: linear-gradient(to left, #000 30%, transparent);
  mask-image: linear-gradient(to left, #000 30%, transparent);
}
.company .wrap { position: relative; z-index: 1; }
@media (max-width: 720px) { .company::after { display: none; } }
.company-grid { display: grid; grid-template-columns: 1.1fr 1.1fr 0.5fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.detail-list { margin: 22px 0 0; padding: 0; display: grid; gap: 4px; }
.detail { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.detail:first-child { border-top: none; }
/* No boxed tile here (Ivan, 16 Sep): just the icon glyph beside the text. A fixed slot
   keeps the labels aligned. The red-outline square stays only on the What-we-do cards,
   which match the reference. */
.detail-ico { display: grid; place-items: center; width: 26px; height: 26px; flex: none; color: var(--red); border: none; background: none; box-shadow: none; }
.detail-ico svg { width: 22px; height: 22px; }
.detail div { min-width: 0; }
.detail strong { display: block; font-size: 15.5px; font-weight: 650; letter-spacing: -0.005em; }
.detail span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

.company-contact { border-left: 1px solid var(--line-soft); padding-left: clamp(24px, 3vw, 44px); }
.contact-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.company-contact .lede { margin: 14px 0 20px; }
.contact-note { color: var(--faint); font-size: 13.5px; margin: 0; }
.legal { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 13.5px; line-height: 1.6; max-width: 44ch; }
.company-progress { justify-self: end; text-align: right; margin: 6px 0 0; font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--faint); line-height: 2.1; }
.company-progress::after { content: ""; display: block; width: 40px; height: 2px; background: var(--red); border-radius: 2px; margin: 14px 0 0 auto; }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 34px 0; }
.footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.footer-legal { margin: 8px 0 0; color: var(--faint); font-size: 12.5px; line-height: 1.6; }
.footer-links { display: flex; gap: 20px; margin-left: auto; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 13.5px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { width: 100%; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 12.5px; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { min-height: 240px; order: -1; }
  .cards { grid-template-columns: 1fr 1fr; }
  .brand-grid { grid-template-columns: 1fr; }
  .company-grid { grid-template-columns: 1fr 1fr; }
  .company-progress { display: none; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-note { text-align: left; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .cards { grid-template-columns: 1fr; }
  .link-cards { grid-template-columns: 1fr; }
  .company-grid { grid-template-columns: 1fr; }
  .company-contact { border-left: none; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: 24px; }
  .header-inner { height: 66px; gap: 12px; }
  .header-cta { padding: 10px 14px; font-size: 13px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .footer-links { margin-left: 0; width: 100%; }
}
@media (max-width: 380px) {
  .header-cta .arr { display: none; }
}
