/* Lotux.vc — styles. Colors live in :root; change --yellow to retint the whole site. */

@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --black: #0B0B0A;
  --white: #FFFFFF;
  --yellow: #FFFF00;
  --paper: #F4F4F1;
  --line-dark: #2E2E2B;
  --line-light: #E2E2DE;
  --text-dim-dark: #B8B8B3;   /* body text on black */
  --text-mute-dark: #8F8F8A;  /* labels on black */
  --text-dim-light: #3A3A37;  /* body text on white */
  --text-mute-light: #5C5C58; /* labels on white */
  --pad: clamp(20px, 5.6vw, 80px);
  --section-y: clamp(72px, 9.5vw, 140px);
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--white); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, blockquote { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.on-light :focus-visible { outline-color: var(--black); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { width: 100%; max-width: calc(1280px + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section-y); }
.on-light { background: var(--white); color: var(--black); }
.on-paper { background: var(--paper); color: var(--black); }
.on-yellow { background: var(--yellow); color: var(--black); }

/* ---------- Type ---------- */
.eyebrow { font-family: var(--mono); font-size: clamp(11px, 0.9vw, 13px); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute-dark); }
.on-light .eyebrow, .on-paper .eyebrow { color: var(--text-mute-light); }
.eyebrow.accent { color: var(--yellow); display: flex; align-items: center; gap: 14px; }
.eyebrow.accent::before { content: ""; width: 36px; height: 2px; background: var(--yellow); }
.display-1 { font-family: var(--display); font-stretch: 116%; font-weight: 800; font-size: clamp(42px, 7.2vw, 104px); line-height: 1.03; letter-spacing: -0.03em; }
.display-2 { font-family: var(--display); font-stretch: 116%; font-weight: 800; font-size: clamp(34px, 4.45vw, 64px); line-height: 1.05; letter-spacing: -0.03em; }
.lead { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; color: var(--text-dim-dark); }
.on-light .lead, .on-paper .lead { color: var(--text-dim-light); }
.accent-text { color: var(--yellow); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 16px; line-height: 1.2; transition: transform .15s ease, opacity .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-black { background: var(--black); color: var(--white); }
.btn-ghost { border: 1px solid #4A4A46; color: var(--white); font-weight: 500; }
.btn-outline { border: 1px solid var(--white); color: var(--white); }
.icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 10, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid #242422; }
.site-header .wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 500; color: #D6D6D2; }
.nav a:not(.btn):hover { color: var(--white); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid #3A3A37; background: transparent; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.menu-toggle svg { width: 18px; height: 18px; }
.header-cta { display: none; }
.header-actions { display: none; }

@media (max-width: 959px) {
  .site-header .wrap { height: 64px; }
  .logo img { height: 28px; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: inline-flex; min-height: 44px; padding: 0 16px; font-size: 14px; }
  .header-actions { display: flex; align-items: center; gap: 8px; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad) 24px; background: var(--black); border-bottom: 1px solid #242422; display: none; font-size: 20px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid #1E1E1C; }
  .nav .btn { margin-top: 16px; min-height: 52px; font-size: 16px; }
}
@media (min-width: 960px) { .header-actions .header-cta, .header-actions .menu-toggle { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 8.5vw, 120px) clamp(48px, 6.5vw, 96px); display: grid; gap: clamp(28px, 2.8vw, 40px); }
.hero h1 { min-height: 3.12em; max-width: 12.2em; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.hero-row .lead { max-width: 640px; }
.hero-actions { display: flex; gap: 12px; flex-shrink: 0; }
.facts { margin: 16px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.fact { border-top: 1px solid #3A3A37; padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.fact-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute-dark); }
.fact-value { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: clamp(19px, 1.95vw, 28px); line-height: 1.2; }
.rotating { transition: opacity .35s ease; }
.rotating.fade { opacity: 0; }

@media (max-width: 1099px) {
  .hero-row { flex-direction: column; align-items: stretch; gap: 28px; }
}
@media (max-width: 899px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .hero h1 { min-height: 4.24em; }
}
@media (max-width: 559px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Section heads ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: clamp(32px, 4.4vw, 64px); }
.section-head .titles { display: grid; gap: clamp(16px, 2vw, 28px); }
.section-head .lead { max-width: 420px; font-size: clamp(16px, 1.25vw, 18px); }
@media (max-width: 899px) { .section-head { flex-direction: column; align-items: flex-start; gap: 20px; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: start; }
.about-copy { display: grid; gap: 24px; padding-top: 52px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--text-dim-light); }
.industries { display: flex; align-items: center; gap: 32px; margin-top: clamp(40px, 5vw, 72px); padding: clamp(24px, 2.5vw, 36px) clamp(20px, 2.8vw, 40px); background: var(--paper); border-radius: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 9px 20px; border: 1.5px solid var(--black); border-radius: 999px; font-size: clamp(15px, 1.2vw, 17px); font-weight: 600; }
@media (max-width: 899px) {
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-copy { padding-top: 0; }
  .industries { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ---------- Portfolio ---------- */
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.portfolio-grid { gap: 16px; }
.pcard { min-height: 200px; padding: 28px; background: var(--white); border-radius: 4px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; transition: box-shadow .15s ease; }
.pcard:hover { box-shadow: inset 0 0 0 2px var(--black); }
.pcard-name { font-family: var(--display); font-stretch: 116%; font-weight: 800; font-size: clamp(19px, 2.1vw, 30px); line-height: 1.08; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.pcard-name.long { font-stretch: 100%; font-size: clamp(16px, 1.6vw, 23px); }
.pcard-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--text-mute-light); }
.pcard-meta span { overflow-wrap: anywhere; }

/* ---------- Team ---------- */
.team-grid { gap: 48px 24px; }
.tcard { display: grid; gap: 16px; align-content: start; }
.tphoto { aspect-ratio: 1 / 1; background: #1C1C1A; border-radius: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; font-family: var(--display); font-stretch: 116%; font-weight: 800; font-size: clamp(40px, 4.4vw, 64px); color: #4A4A46; transition: outline-color .15s ease; outline: 2px solid transparent; outline-offset: -2px; }
.tphoto img { width: 100%; height: 100%; object-fit: cover; }
.tcard:hover .tphoto { outline-color: var(--yellow); }
.tname { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: clamp(17px, 1.55vw, 22px); line-height: 1.2; }
.ttitle { font-family: var(--mono); font-size: clamp(10px, 0.85vw, 12px); letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow); margin-top: 6px; }
.tlink { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-mute-dark); margin-top: 6px; }
.tlink .icon { width: 13px; height: 13px; }

@media (max-width: 1199px) { .grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 959px)  { .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px)  {
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-grid { gap: 10px; }
  .pcard { min-height: 116px; padding: 16px; }
  .pcard-meta { font-size: 11px; }
  .pcard-meta .icon { display: none; }
  .team-grid { gap: 28px 12px; }
  .tcard { gap: 12px; }
}

/* ---------- Resources cards (home) ---------- */
.res-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.res-card { min-height: clamp(220px, 28vw, 400px); padding: clamp(28px, 3.4vw, 48px) clamp(24px, 3.4vw, 48px); border-radius: 4px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; transition: transform .15s ease; }
.res-card:hover { transform: translateY(-2px); }
.res-card .top { display: flex; justify-content: space-between; align-items: flex-start; }
.res-card .top .icon { width: clamp(28px, 2.8vw, 40px); height: clamp(28px, 2.8vw, 40px); }
.res-card .title { font-family: var(--display); font-stretch: 116%; font-weight: 800; font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -0.03em; line-height: 1; }
.res-card .sub { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.5; margin-top: 16px; }
.res-card.dark .sub { color: var(--text-dim-dark); }
.res-card.dark .eyebrow { color: var(--yellow); }
.res-card.yellow .eyebrow { color: var(--black); }
.res-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: end; margin-bottom: clamp(32px, 4.4vw, 64px); }
@media (max-width: 899px) { .res-intro { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 799px) { .res-cards { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.contact-box { border: 1px solid var(--line-dark); border-radius: 4px; padding: clamp(28px, 3.4vw, 48px) clamp(24px, 3.4vw, 48px); display: grid; gap: clamp(18px, 2vw, 28px); align-content: start; }
.contact-box .eyebrow { color: var(--yellow); }
.contact-box h2 { font-family: var(--display); font-stretch: 116%; font-weight: 800; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
.contact-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.contact-actions .mail { font-family: var(--mono); font-size: 15px; color: #D6D6D2; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 559px) {
  .contact-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .contact-actions .mail { text-align: center; }
}

/* ---------- Quote ---------- */
.quote { padding-block: clamp(72px, 8.9vw, 128px); }
.quote svg { width: clamp(40px, 3.9vw, 56px); height: auto; margin-bottom: clamp(24px, 2.5vw, 36px); }
.quote blockquote { max-width: 1180px; font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: clamp(28px, 3.75vw, 54px); line-height: 1.14; letter-spacing: -0.02em; }
.quote cite { display: block; margin-top: clamp(24px, 2.5vw, 36px); font-style: normal; font-family: var(--mono); font-size: clamp(12px, 1vw, 14px); letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(40px, 3.9vw, 56px); border-top: 1px solid #242422; color: var(--text-mute-dark); }
.site-footer .row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer .row + .row { margin-top: clamp(28px, 2.8vw, 40px); font-size: 14px; }
.site-footer .logo img { height: 34px; }
.social { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 15px; color: #D6D6D2; }
.social a:hover { color: var(--white); }
@media (max-width: 639px) { .site-footer .row { flex-direction: column; align-items: flex-start; } .site-footer .logo img { height: 28px; } }

/* ---------- Resource pages ---------- */
.page-hero { padding-block: clamp(56px, 6.7vw, 96px) clamp(48px, 6.1vw, 88px); display: grid; gap: clamp(20px, 2.2vw, 32px); }
.back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute-dark); }
.back:hover { color: var(--white); }
.page-hero .lead { max-width: 640px; }
.res-list { padding-block: clamp(32px, 4.4vw, 64px) clamp(72px, 8.3vw, 120px); }
.res-group { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 64px; padding-block: clamp(32px, 3.3vw, 48px); border-top: 1px solid var(--line-light); }
.res-group-head { display: grid; gap: 14px; align-content: start; }
.res-num { justify-self: start; font-family: var(--mono); font-size: 13px; font-weight: 500; padding: 3px 8px; background: var(--yellow); color: var(--black); }
.res-group-head h2 { font-family: var(--display); font-stretch: 114%; font-weight: 800; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.02em; line-height: 1.1; }
.res-count { font-family: var(--mono); font-size: 13px; color: var(--text-mute-light); }
.res-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rlink { min-height: 88px; padding: 20px 24px; background: var(--paper); border-radius: 4px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; transition: box-shadow .15s ease; }
.rlink:hover { box-shadow: inset 0 0 0 2px var(--black); }
.rlink .t { display: block; font-size: 17px; font-weight: 600; line-height: 1.35; }
.rlink .k { display: block; margin-top: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mute-light); }
.rlink .icon { margin-top: 3px; }
.cta-band { padding-block: clamp(64px, 6.7vw, 96px); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 48px; }
.cta-band h2 { max-width: 820px; font-family: var(--display); font-stretch: 116%; font-weight: 800; font-size: clamp(30px, 3.9vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.cta-band .actions { display: grid; gap: 16px; justify-items: start; flex-shrink: 0; }
.cta-band .mail { font-family: var(--mono); font-size: 15px; }
@media (max-width: 899px) {
  .res-group { grid-template-columns: 1fr; gap: 20px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; gap: 28px; }
}
@media (max-width: 639px) {
  .res-items { grid-template-columns: 1fr; gap: 10px; }
  .rlink { min-height: 0; padding: 18px 20px; }
  .cta-band .actions { width: 100%; justify-items: stretch; }
  .cta-band .mail { text-align: center; }
}

/* ---------- Legal page ---------- */
.legal { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: clamp(40px, 6vw, 96px); padding-block: clamp(48px, 6vw, 96px) clamp(72px, 8.3vw, 120px); }
.legal-toc { position: sticky; top: 104px; align-self: start; display: grid; gap: 16px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.legal-toc a { color: var(--text-dim-light); }
.legal-toc a:hover { color: var(--black); text-decoration: underline; }
.legal-body > section { padding-block: 40px; border-top: 1px solid var(--line-light); scroll-margin-top: 90px; }
.legal-body > section:first-child { padding-top: 0; border-top: 0; }
.legal-body h2 { font-family: var(--display); font-stretch: 114%; font-weight: 800; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.02em; line-height: 1.1; margin: 14px 0 20px; }
.legal-body h3 { font-size: 17px; font-weight: 600; margin: 24px 0 6px; }
.legal-body p, .legal-body li { font-size: 16px; line-height: 1.7; color: var(--text-dim-light); }
.legal-body p + p { margin-top: 14px; }
.legal-body ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 10px; }
.legal-body a { text-decoration: underline; text-underline-offset: 3px; color: var(--black); }
.legal-body strong { color: var(--black); font-weight: 600; }
.legal-body mark { background: var(--yellow); color: var(--black); padding: 0 4px; }
.legal-note { font-family: var(--mono); font-size: 13px !important; color: var(--text-mute-light) !important; }
@media (max-width: 899px) {
  .legal { grid-template-columns: 1fr; }
  .legal-toc { position: static; padding-bottom: 24px; border-bottom: 1px solid var(--line-light); }
}

/* Team photos: black & white, color on hover (delete these two lines to keep original colors) */
.tphoto img { filter: grayscale(1) contrast(1.05); transition: filter .25s ease; }
.tcard:hover .tphoto img, .tcard:focus-visible .tphoto img { filter: none; }

/* Portfolio card: industry + country */
.pcard-top { display: grid; gap: 12px; align-content: start; }
.pcard-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute-light); }
.pcard-industry { background: var(--yellow); color: var(--black); padding: 3px 7px; }
@media (max-width: 639px) { .pcard-tags { font-size: 10px; gap: 6px 8px; } .pcard-industry { padding: 2px 6px; } }
