/* ==========================================================================
   KEEN — independent trade brokerage
   Static stylesheet. Mirrors the original Claude Design layout 1:1.
   Palette: ink #17161c · purple #5220c4 · paper #faf9f7 · highlight #f2e37c
   ========================================================================== */

:root {
  --ink: #17161c;
  --ink-soft: #26242e;
  --purple: #5220c4;
  --purple-dark: #3d1594;
  --paper: #faf9f7;
  --highlight: #f2e37c;
  --muted: #63606b;
  --muted-2: #8b8892;
  --muted-3: #8f8a9c;
  --line: #e3e0da;
  --line-2: #ded9d2;
  --stone: #e7e4de;
  --pad-x: clamp(16px, 4vw, 52px);
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
}

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

html {
  scroll-behavior: smooth;
  /* the sticky header must not hide anchor targets */
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-dark); }

img { max-width: 100%; }

::selection { background: var(--highlight); color: var(--ink); }

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

/* Readable by screen readers and crawlers, invisible on screen. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

.wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 13px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  text-decoration: none;
}
.brand:hover { color: inherit; }

.brand__mark {
  font-size: 23px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--purple);
}

.brand__eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Language switcher ------------------------------------------------------- */

.lang { position: relative; }

.lang__button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 6px;
  padding: 8px 11px;
  font: inherit;
  font-size: 12.5px;
  color: #3a3844;
  cursor: pointer;
  transition: border-color 0.2s;
}
.lang__button:hover { border-color: var(--ink); }

.lang__flag { font-size: 14px; line-height: 1; }
.lang__short { font-weight: 700; letter-spacing: 0.05em; }
.lang__caret { font-size: 8px; color: var(--muted-2); }

.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  z-index: 80;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 20px 46px rgba(23, 22, 28, 0.13);
  padding: 7px;
  display: grid;
  gap: 1px;
  min-width: 192px;
  margin: 0;
  list-style: none;
}
.lang__menu[hidden] { display: none; }

.lang__label {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a7a4ad;
  padding: 7px 10px 6px;
}

.lang__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 9px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s;
}
.lang__item:hover { background: #f2efe9; color: var(--ink-soft); }

.lang__item-name { flex: 1; }

.lang__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--highlight);
  padding: 2px 5px;
  border-radius: 3px;
}

.lang__scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
}
.lang__scrim[hidden] { display: none; }

/* Buttons ----------------------------------------------------------------- */

.btn-dark {
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-dark:hover { background: var(--purple); color: #fff; }

.btn-dark--lg {
  padding: 16px 32px;
  font-size: 16px;
  transition: background 0.2s, transform 0.2s;
}
.btn-dark--lg:hover { transform: translateY(-1px); }

.btn-light {
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  padding: 16px 30px;
  font-size: 16px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn-light:hover { background: var(--purple); color: #fff; transform: translateY(-1px); }

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: 6px;
  padding: 13px 24px;
  font-size: 14.5px;
  font-weight: 700;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-top: clamp(44px, 8vw, 112px);
  padding-bottom: clamp(36px, 5vw, 68px);
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: clamp(14px, 2vw, 26px);
}

.wordmark {
  margin: 0;
  font-size: clamp(88px, 24vw, 336px);
  line-height: 0.78;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.05em;
  color: var(--purple);
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-top: clamp(30px, 4.5vw, 60px);
}

.hero__lead {
  margin: 0;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 18ch;
}

.hl {
  background: linear-gradient(180deg, transparent 62%, var(--highlight) 62%, var(--highlight) 95%, transparent 95%);
  padding: 0 0.05em;
}

.hero__sub {
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.62;
  color: var(--muted);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}

.meta-caps {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* Markets card ------------------------------------------------------------ */

.market-card {
  border-radius: 4px;
  background: var(--purple);
  color: #fff;
  padding: clamp(22px, 2.6vw, 36px);
  display: grid;
  gap: clamp(18px, 2.4vw, 30px);
  align-content: space-between;
  min-height: clamp(300px, 30vw, 420px);
}

.market-card__top { display: grid; gap: clamp(14px, 2vw, 22px); }

.rule { width: 56px; height: 3px; background: #fff; }

.card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.markets {
  display: grid;
  gap: 2px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  font-size: clamp(34px, 4.4vw, 60px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.markets .sep { color: rgba(255, 255, 255, 0.45); }
.mark { background: var(--highlight); color: var(--ink); padding: 0 0.08em; }

.retail-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
  padding: clamp(14px, 1.8vw, 22px);
  display: grid;
  gap: 12px;
}

.retail-card__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.retail-card__list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(14px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(16px, 1.8vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.retail-card__list .dot { color: #cfcac2; }

/* ==========================================================================
   Services ("What KEEN does")
   ========================================================================== */

.section {
  padding-top: clamp(40px, 6vw, 88px);
  padding-bottom: clamp(40px, 6vw, 88px);
}
.section--ruled { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(22px, 3vw, 40px);
}

.h-xl {
  margin: 0;
  font-size: clamp(32px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.h-lg {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 60px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.note-serif {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: #6d6a75;
}

.note-caps {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-3);
}

.rows {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink);
  margin: 0;
  padding: 0;
  list-style: none;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 36px;
  padding: clamp(18px, 2.4vw, 30px) 0;
  border-bottom: 1px solid var(--line);
}

.row__head { display: flex; gap: 14px; align-items: baseline; }

.row__num { font-size: 12.5px; font-weight: 700; color: var(--purple); }

.row__title {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.row__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 58ch;
}

/* ==========================================================================
   Approach (dark band)
   ========================================================================== */

.band-dark {
  background: var(--ink);
  color: #fff;
  padding: clamp(40px, 6vw, 88px) var(--pad-x);
}

.band-dark__inner { max-width: 1360px; margin: 0 auto; }

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 clamp(24px, 3.5vw, 52px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.principle {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: clamp(18px, 2.4vw, 30px) 0;
}

.principle__title { margin: 0 0 10px; font-size: 19px; font-weight: 700; }

.principle__text { margin: 0; font-size: 15.5px; line-height: 1.6; color: #b7b3c2; }

/* ==========================================================================
   Gallery
   ========================================================================== */

.section-head--sm {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.h-md {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.note-caps--sm {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 360px));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 3 / 4;
  background: var(--stone);
  filter: grayscale(1) contrast(1.04);
  transition: filter 0.55s ease, transform 0.45s ease;
}
.card:hover { filter: grayscale(0) contrast(1); transform: translateY(-3px); }

.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
  display: grid;
  gap: 2px;
}

.card__title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.card__sub {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

/* ==========================================================================
   About
   ========================================================================== */

.section--flush-top { padding-top: 0; }

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.portrait {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 5;
  background: var(--stone);
  filter: grayscale(1) contrast(1.04);
  transition: filter 0.55s ease;
}
.portrait:hover { filter: grayscale(0) contrast(1); }

.portrait__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.portrait__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
  display: grid;
  gap: 3px;
}

.portrait__name { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; color: #fff; }

.portrait__role {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.about__kicker {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}

.about__title { margin-bottom: 20px; }

.about__lead {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.34;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.about__body {
  margin: 20px 0 0;
  font-size: 16.5px;
  line-height: 1.66;
  color: var(--muted);
  max-width: 58ch;
}

.about__quote {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--purple);
  max-width: 46ch;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-box {
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: clamp(28px, 5vw, 68px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
}

.contact-box__lead {
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.62;
  color: #b7b3c2;
  max-width: 42ch;
}

.contact-actions {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.contact-actions__row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-place {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-3);
  margin-top: 4px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { border-top: 1px solid var(--line); }

.site-footer__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 22px var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-footer__note { font-size: 12.5px; color: var(--muted-2); }

.site-footer__links {
  display: flex;
  gap: 20px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__links a { color: var(--purple); }
.site-footer__links a:hover { color: var(--purple-dark); }

.site-footer__links .muted { color: var(--muted-2); }
.site-footer__links .muted:hover { color: var(--purple); }

/* ==========================================================================
   404
   ========================================================================== */

.error-page {
  min-height: 70vh;
  display: grid;
  align-content: center;
  gap: 20px;
  padding-top: clamp(44px, 8vw, 112px);
  padding-bottom: clamp(44px, 8vw, 112px);
}

/* ==========================================================================
   Motion / print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header, .lang, .skip-link { display: none !important; }
  body { background: #fff; }
  .card, .portrait { filter: none; }
}
