/* ================================================================
   KONTORA. — Female-founded rebuild in the original visual language
   Black + red + ivory, condensed sans, red-block "k" logo
   ================================================================ */

:root {
  --bg:         #0B0B0B;
  --bg-2:       #121212;
  --bg-3:       #171717;
  --ink:        #F2ECE2;    /* warm ivory, as on original */
  --ink-2:      #A6A19A;
  --muted:      #6A6560;
  --line:       #232120;

  --red:        #D91E2A;    /* KONTORA red */
  --red-dark:   #A81620;

  --f-display:  "Oswald", "Impact", "Arial Narrow", sans-serif;
  --f-body:     "Inter", ui-sans-serif, system-ui, sans-serif;
  --f-mono:     "JetBrains Mono", ui-monospace, monospace;

  --w-max: 1400px;

  --text-xs:  clamp(11px, 0.75vw, 12px);
  --text-sm:  clamp(13px, 0.9vw, 14px);
  --text-base: clamp(15px, 1.05vw, 17px);
  --text-lg:  clamp(18px, 1.4vw, 22px);
  --text-xl:  clamp(28px, 3vw, 42px);
  --text-2xl: clamp(44px, 6vw, 92px);
  --text-hero: clamp(56px, 10vw, 180px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
p { margin: 0 0 1em; }

.red { color: var(--red); }
.mono {
  font-family: var(--f-mono);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 400;
}
.small { font-size: 11px; }

.container {
  width: 100%;
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

/* ============ KICKER (red line + label) ============ */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.kicker__line {
  display: block;
  width: 44px;
  height: 3px;
  background: var(--red);
}
.kicker__text {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ============ BRAND ============ */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}
.brand__k {
  width: 38px;
  height: 38px;
  display: block;
}
.brand__k svg { width: 100%; height: 100%; }
.brand__word {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand__dot { color: var(--red); }

/* ============ HEADER ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 32px;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: var(--text-sm);
  color: var(--ink-2);
  font-weight: 400;
}
.nav a:hover { color: var(--red); }
.nav__cta {
  background: var(--red);
  color: var(--ink) !important;
  padding: 12px 22px;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: .02em;
}
.nav__cta:hover { background: var(--red-dark); }

.burger {
  display: none;
  background: none; border: none;
  flex-direction: column; gap: 5px;
  width: 32px; height: 32px;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--ink);
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; justify-content: center; align-items: center; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 100px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero__circle {
  position: absolute;
  right: -14%;
  top: 50%;
  transform: translateY(-50%);
  width: min(85vh, 900px);
  aspect-ratio: 1;
  z-index: 1;
  opacity: .95;
  pointer-events: none;
}
.hero__circle svg { width: 100%; height: 100%; }

.hero__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--text-hero);
  line-height: 0.9;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 clamp(28px, 3vw, 44px);
  color: var(--ink);
}
.hero__lede {
  max-width: 52ch;
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: clamp(28px, 3vw, 40px);
}
.hero__cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: clamp(48px, 8vw, 100px);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px;
  border-radius: 4px;
  font-family: var(--f-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: all .25s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--red {
  background: var(--red);
  color: var(--ink);
  box-shadow: 0 0 40px rgba(217, 30, 42, .35);
}
.btn--red:hover { background: var(--red-dark); box-shadow: 0 0 60px rgba(217, 30, 42, .5); }
.btn--ghost { color: var(--ink); border-color: var(--ink-2); }
.btn--ghost:hover { border-color: var(--red); color: var(--red); }

.hero__scroll {
  display: flex; align-items: center; gap: 16px;
  color: var(--muted);
}
.scroll-line {
  display: block;
  width: 60px; height: 1px;
  background: var(--muted);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute; left: -30px; top: 0;
  width: 30px; height: 1px;
  background: var(--red);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine { to { left: 60px; } }

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  overflow: hidden;
  background: var(--bg-2);
}
.marquee__track {
  display: flex; gap: 40px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 32px);
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink);
}
.marquee__track .dot { color: var(--red); font-size: .5em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECTIONS BASE ============ */
section { padding: clamp(80px, 10vw, 160px) 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 80px);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.section-head .kicker { grid-column: 1; align-self: start; margin-bottom: 0; }
.section-head .section-title { grid-column: 1; grid-row: 2; margin-top: 16px; }
.section-head .section-lede {
  grid-column: 1; grid-row: 3;
  margin-top: 20px;
  max-width: 640px;
  font-family: var(--f-body);
  color: var(--ink-2);
  font-size: var(--text-lg);
  line-height: 1.5;
}
.all-link {
  grid-column: 2; grid-row: 1 / span 2;
  align-self: end;
  font-family: var(--f-mono);
  font-size: var(--text-sm);
  color: var(--red);
  letter-spacing: .04em;
}
.all-link:hover { color: var(--ink); }

.section-title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ============ CASES ============ */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 480px;
  display: flex; flex-direction: column;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.case:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  background: var(--bg-3);
}
.case__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px;
}
.badge {
  display: inline-flex;
  padding: 6px 14px;
  border: 1px solid var(--ink-2);
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink);
}
.case--edu .badge     { border-color: var(--red);  color: var(--red);  }
.case--health .badge  { border-color: var(--ink);  color: var(--ink);  }
.case--fashion .badge { border-color: var(--red);  color: var(--red);  }

.case__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(38px, 3.6vw, 56px);
  letter-spacing: 0.01em;
  line-height: 0.92;
  text-transform: uppercase;
  margin: 0 0 20px;
  color: var(--ink);
}
.case__lede {
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 28px;
  flex: 1;
}
.case__stats {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.case__stats li { display: flex; flex-direction: column; gap: 4px; }
.case__stats b {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 26px);
  color: var(--ink);
  letter-spacing: .01em;
  text-transform: uppercase;
}
.case__stats span {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
@media (max-width: 900px) { .cases { grid-template-columns: 1fr; } }

/* ============ INDUSTRIES ============ */
.industries { background: var(--bg-2); }
.ind-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ind {
  padding: 40px 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  transition: border-color .3s ease;
}
.ind:hover { border-color: var(--red); }
.ind .mono { display: block; margin-bottom: 32px; color: var(--red); }
.ind h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(26px, 2.4vw, 34px);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin: 0 0 16px;
  color: var(--ink);
  line-height: 1;
}
.ind p { font-size: var(--text-sm); color: var(--ink-2); margin-bottom: 32px; }
.ind__count {
  font-family: var(--f-mono);
  font-size: var(--text-xs);
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .1em;
}
@media (max-width: 820px) { .ind-grid { grid-template-columns: 1fr; } }

/* ============ CRAFT TABLE ============ */
.tech {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.tech thead th {
  text-align: left;
  padding: 18px 24px;
  font-family: var(--f-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.tech tbody td {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-2);
}
.tech tbody tr:hover td { background: var(--bg-2); color: var(--ink); }
.tech tbody td:first-child {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  width: 30%;
}
@media (max-width: 700px) {
  .tech, .tech tbody, .tech thead, .tech tr, .tech td, .tech th { display: block; }
  .tech thead { display: none; }
  .tech tbody tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .tech tbody td { border: none; padding: 4px 0; }
  .tech tbody td:first-child { width: auto; margin-bottom: 8px; }
}

/* ============ MANIFESTO ============ */
.manifesto {
  background:
    radial-gradient(ellipse at top right, rgba(217, 30, 42, 0.12), transparent 55%),
    var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.manifesto__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.manifesto__grid .kicker { grid-column: 1; }
.manifesto__title {
  grid-column: 1;
  margin: 12px 0 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(56px, 8vw, 130px);
  line-height: 0.9;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
}
.manifesto__body {
  grid-column: 2; grid-row: 1 / span 2;
  padding-top: 40px;
}
.manifesto__body p {
  font-size: var(--text-lg);
  color: var(--ink-2);
  line-height: 1.55;
}
.manifesto__body b { color: var(--ink); font-weight: 600; }
.values {
  list-style: none; padding: 24px 0 0; margin: 32px 0 0;
  border-top: 1px solid var(--line);
}
.values li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 12px 0;
  font-size: var(--text-lg);
  color: var(--ink);
}
@media (max-width: 900px) {
  .manifesto__grid { grid-template-columns: 1fr; }
  .manifesto__body { grid-column: 1; grid-row: auto; padding-top: 0; }
}

/* ============ FOUNDER ============ */
.founder__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.founder__side .kicker { display: inline-flex; margin-bottom: 24px; }
.founder__portrait {
  position: relative;
  aspect-ratio: 1086 / 2000;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f0f0f;
  margin: 0;
  isolation: isolate;
  max-width: 420px;
}
.founder__portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: contrast(1.05) brightness(0.98) grayscale(1);
  display: block;
}
/* Duotone red-black wash + grain + scanline overlay */
.founder__portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(217, 30, 42, 0.28) 0%,
      rgba(217, 30, 42, 0.10) 35%,
      rgba(11, 11, 11, 0.15) 65%,
      rgba(11, 11, 11, 0.75) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}
.founder__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg,
      rgba(0,0,0,0.18) 0px,
      rgba(0,0,0,0.18) 1px,
      transparent 1px,
      transparent 3px),
    radial-gradient(120% 90% at 80% 20%, rgba(217, 30, 42, 0.35), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.55;
  pointer-events: none;
  z-index: 2;
}
.founder__frame {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(217, 30, 42, 0.35);
  pointer-events: none;
  z-index: 2;
}
.founder__frame::before,
.founder__frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--red);
}
.founder__frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.founder__frame::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.founder__tag {
  position: absolute;
  z-index: 3;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(11, 11, 11, 0.78);
  padding: 6px 10px;
  border: 1px solid rgba(242, 236, 226, 0.14);
  backdrop-filter: blur(4px);
}
.founder__tag--tl { top: 20px; left: 20px; }
.founder__tag--bl { bottom: 20px; left: 20px; color: var(--red); border-color: rgba(217, 30, 42, 0.5); }
.founder__text .section-title { margin-bottom: 32px; }
.founder__text p { font-size: var(--text-base); color: var(--ink-2); max-width: 56ch; margin-bottom: 16px; }
.founder__text p.founder__lede { font-size: var(--text-lg); color: var(--ink); font-weight: 500; margin-bottom: 24px; }
.founder__text b { color: var(--ink); }
.founder__facts {
  margin: 32px 0 0; padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.founder__facts dt {
  font-family: var(--f-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 8px;
}
.founder__facts dd {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
}
@media (max-width: 900px) { .founder__grid { grid-template-columns: 1fr; } }

/* ============ CONTACT ============ */
.contact {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.contact__title {
  margin: 20px 0 24px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
}
.contact__lede { color: var(--ink-2); font-size: var(--text-lg); max-width: 40ch; }
.contact__card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  overflow: hidden;
}
.contact__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
  gap: 20px;
}
.contact__row:last-child { border-bottom: none; }
.contact__row:hover { background: var(--bg-2); }
.contact__row--static { cursor: default; }
.contact__row--static:hover { background: transparent; }
.contact__row--muted .mono { color: var(--red); opacity: .85; }
.contact__row--muted .contact__val { color: var(--ink-2); }
.contact__val--soft {
  font-family: var(--f-body);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--ink-2);
  text-align: right;
}
.contact__val {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--text-base);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
@media (max-width: 820px) { .contact__grid { grid-template-columns: 1fr; } }

/* ============ FOOTER ============ */
.footer {
  padding: clamp(56px, 7vw, 100px) 0 32px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.footer__hero {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.brand--footer .brand__word { font-size: 28px; }
.footer__tag {
  font-family: var(--f-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  font-size: var(--text-lg);
  margin: 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px 24px;
  padding-bottom: 40px;
}
.footer__col h4 {
  margin: 0 0 14px;
  color: var(--red);
  font-weight: 400;
  letter-spacing: .14em;
}
.footer__col p {
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.7;
  margin: 0 0 8px;
}
.footer__col p.mono { font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: none; }
.footer__col a { color: var(--ink-2); border-bottom: 1px solid transparent; }
.footer__col a:hover { color: var(--red); border-bottom-color: var(--red); }

.footer__legal {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer__legal p { margin: 0; color: var(--muted); letter-spacing: .06em; }

@media (max-width: 1000px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}
