:root {
  color-scheme: dark;
  --ink: #171717;
  --ink-soft: #232323;
  --paper: #f3f0e9;
  --paper-dim: #bebbb4;
  --line: rgba(243, 240, 233, 0.16);
  --muted: #99958c;
  --acid: #d5ef79;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.site-shell { max-width: 1600px; margin: 0 auto; padding: 0 44px; overflow: hidden; }

.topbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 32px;
  justify-content: space-between;
  min-height: 92px;
}

.brand-lockup { align-items: center; display: flex; gap: 12px; min-width: 196px; }
.brand-mark { border-radius: 50%; height: 39px; object-fit: cover; width: 39px; }
.brand-name { font-size: 13px; font-weight: 700; letter-spacing: .13em; line-height: .95; }
.brand-name em { color: var(--paper-dim); font-size: 10px; font-style: normal; letter-spacing: .22em; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a, .topbar-note { color: var(--paper-dim); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.nav-links a:hover, .text-link:hover, .outline-link:hover { color: var(--acid); }
.topbar-note { align-items: center; display: flex; gap: 8px; min-width: 196px; justify-content: flex-end; }
.live-dot { background: var(--acid); border-radius: 50%; box-shadow: 0 0 0 5px rgba(213,239,121,.12); height: 7px; width: 7px; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .82fr); min-height: 590px; }
.hero-copy { align-self: center; padding: 72px 30px 84px 0; }
.eyebrow { color: var(--paper-dim); font-size: 11px; letter-spacing: .15em; margin: 0 0 22px; text-transform: uppercase; }
.eyebrow span { color: var(--acid); padding: 0 5px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(58px, 7.7vw, 122px); font-weight: 500; letter-spacing: -.065em; line-height: .91; margin: 0 0 33px; max-width: 890px; }
h1 span, h2 span { color: var(--acid); font-family: var(--serif); font-weight: 500; letter-spacing: -.055em; }
.hero-intro { color: var(--paper-dim); font-size: 17px; line-height: 1.55; max-width: 370px; }
.text-link { border-bottom: 1px solid var(--paper-dim); display: inline-flex; font-size: 12px; gap: 18px; letter-spacing: .14em; margin-top: 22px; padding-bottom: 9px; text-transform: uppercase; }
.text-link span, .outline-link span { color: var(--acid); font-size: 18px; line-height: 10px; }
.hero-art { border-left: 1px solid var(--line); min-height: 500px; overflow: hidden; position: relative; }
.art-ring { border: 1px solid rgba(213, 239, 121, .58); border-radius: 50%; position: absolute; }
.art-ring-one { height: 430px; left: 6%; top: 18%; width: 430px; }
.art-ring-two { border-color: rgba(243,240,233,.21); height: 670px; left: -21%; top: -8%; width: 670px; }
.art-line { background: rgba(243,240,233,.2); height: 1px; position: absolute; transform-origin: left center; width: 95%; }
.art-line-one { left: 10%; top: 61%; transform: rotate(-37deg); }
.art-line-two { left: 12%; top: 39%; transform: rotate(24deg); }
.art-block { align-items: center; border: 1px solid var(--acid); color: var(--acid); display: flex; font-family: var(--serif); font-size: 50px; height: 100px; justify-content: center; position: absolute; width: 100px; }
.art-block-one { left: 32%; top: 31%; }
.art-block-two { background: var(--acid); color: var(--ink); left: 55%; top: 57%; }
.art-note { bottom: 28px; color: var(--paper-dim); font-size: 10px; letter-spacing: .16em; line-height: 1.7; position: absolute; right: 30px; text-align: right; text-transform: uppercase; }

.portfolio-section { border-top: 1px solid var(--line); padding: 68px 0 110px; }
.section-heading { align-items: end; display: flex; gap: 30px; justify-content: space-between; margin-bottom: 34px; }
.section-heading .eyebrow { margin-bottom: 13px; }
h2 { font-size: clamp(30px, 4.3vw, 62px); font-weight: 500; letter-spacing: -.055em; line-height: .99; margin: 0; }
.section-tools { align-items: center; display: flex; gap: 18px; }
.search-field { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 8px; padding: 9px 0; width: 188px; }
.search-icon { color: var(--acid); font-size: 22px; line-height: 12px; transform: rotate(-20deg); }
.search-field input { background: transparent; border: 0; color: var(--paper); font-size: 13px; outline: 0; width: 100%; }
.search-field input::placeholder { color: var(--muted); }
.count-label, .progress-label { color: var(--paper-dim); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.carousel-wrap { align-items: center; display: flex; gap: 18px; position: relative; }
.carousel { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; padding: 10px 2px 22px; scroll-behavior: smooth; scrollbar-width: none; scroll-snap-type: x mandatory; width: 100%; }
.carousel::-webkit-scrollbar { display: none; }
.carousel-control { align-items: center; background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; display: flex; flex: 0 0 42px; font-size: 20px; height: 42px; justify-content: center; transition: background .2s, color .2s, border-color .2s; width: 42px; }
.carousel-control:hover { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.project-card { background: var(--ink-soft); border: 1px solid var(--line); cursor: pointer; flex: 0 0 224px; height: 258px; overflow: hidden; padding: 20px; position: relative; scroll-snap-align: start; text-align: left; transition: border-color .22s, transform .22s; }
.project-card:hover, .project-card.is-active { border-color: var(--card-accent); transform: translateY(-5px); }
.project-card::after { background: var(--card-accent); content: ''; height: 4px; left: 0; position: absolute; right: 0; top: 0; }
.card-number { color: var(--paper-dim); font-size: 10px; letter-spacing: .14em; }
.card-logo { align-items: center; display: flex; height: 130px; justify-content: center; margin-top: 15px; width: 100%; }
.card-logo img { display: block; max-height: 89px; max-width: 92%; object-fit: contain; }
.card-logo img.logo-wide { max-height: 76px; }
.card-logo img.logo-square { max-height: 105px; max-width: 105px; }
.logo-clockoutime, .logo-dis4dat, .logo-lastprys, .logo-power-players, .logo-mortgages { filter: brightness(0) invert(1); }
.logo-purple { mix-blend-mode: screen; }
.logo-cityskape { mix-blend-mode: screen; }
.logo-jay-care { filter: brightness(0) invert(1); }
.logo-jtb, .logo-nnkf, .logo-pantakers, .logo-migeria { border-radius: 14px; }
.logo-findam { mix-blend-mode: screen; }
.logo-mutakuzi { filter: brightness(0) invert(1); }
.logo-mining, .logo-secademy { filter: brightness(0) invert(1); max-height: 77px !important; }
.typed-mark { color: var(--card-accent); font-family: var(--serif); font-size: clamp(23px, 3vw, 34px); font-weight: 600; letter-spacing: -.045em; line-height: .96; max-width: 180px; text-align: center; }
.typed-mark.long { font-size: 22px; }
.typed-mark.small { font-size: 25px; }
.card-footer { bottom: 18px; left: 20px; position: absolute; right: 20px; }
.card-name { font-size: 13px; font-weight: 600; line-height: 1.1; max-width: 170px; }
.card-tag { color: var(--paper-dim); font-size: 10px; letter-spacing: .07em; margin-top: 5px; text-transform: uppercase; }
.carousel-footer { align-items: center; display: flex; gap: 18px; margin-top: 4px; }
.swipe-note { color: var(--paper-dim); flex: 0 0 auto; font-size: 11px; letter-spacing: .04em; margin: 0; }
.swipe-glyph { color: var(--acid); margin-right: 8px; }
.progress-line { background: var(--line); height: 1px; margin-left: auto; max-width: 320px; position: relative; width: 30%; }
.progress-line span { background: var(--acid); display: block; height: 2px; left: 0; position: absolute; top: -1px; transition: width .25s; }

.project-detail { background: #202020; border: 1px solid var(--line); display: grid; gap: 30px; grid-template-columns: 1.08fr 1.4fr 1fr; margin-top: 45px; padding: 32px; }
.detail-identity { align-items: center; display: flex; gap: 20px; }
.detail-logo { align-items: center; background: var(--card-accent, #d7c7ff); color: var(--ink); display: flex; flex: 0 0 88px; height: 88px; justify-content: center; overflow: hidden; padding: 11px; }
.detail-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.detail-logo img.logo-wide { max-height: 56px; }
.detail-logo img.logo-square { max-height: 70px; }
.detail-logo .typed-mark { color: var(--ink); font-size: 18px; max-width: 80px; }
.detail-kicker, .download-label, .detail-meta span { color: var(--acid); font-size: 10px; letter-spacing: .15em; margin: 0 0 7px; text-transform: uppercase; }
h3 { font-size: clamp(24px, 3vw, 38px); font-weight: 500; letter-spacing: -.045em; line-height: 1; margin: 0; }
.detail-copy > p { color: var(--paper-dim); font-size: 14px; line-height: 1.55; margin: 3px 0 22px; max-width: 570px; }
.detail-meta { border-top: 1px solid var(--line); display: grid; gap: 22px; grid-template-columns: 1fr 1fr; padding-top: 15px; }
.detail-meta span { color: var(--paper-dim); display: block; }
.detail-meta p { font-size: 12px; line-height: 1.45; margin: 0; }
.download-panel { border-left: 1px solid var(--line); padding-left: 30px; }
.download-panel > p { color: var(--paper-dim); font-size: 12px; margin: 0 0 18px; }
.download-actions { display: grid; gap: 9px; }
.download-button { align-items: center; background: transparent; border: 1px solid var(--line); cursor: not-allowed; display: flex; justify-content: space-between; opacity: .76; padding: 12px 13px; text-align: left; }
.download-button span { font-size: 12px; }
.download-button small { color: var(--muted); font-size: 9px; }

.closing-section { align-items: center; border-top: 1px solid var(--line); display: grid; gap: 32px; grid-template-columns: 1fr 2fr 1fr; padding: 80px 0; }
.closing-mark { border: 1px solid var(--acid); color: var(--acid); font-family: var(--serif); font-size: 26px; height: 68px; line-height: 66px; text-align: center; width: 68px; }
.closing-mark span { color: var(--paper); font-family: var(--sans); font-size: 13px; }
.closing-section .eyebrow { margin-bottom: 14px; }
.closing-section h2 { font-size: clamp(34px, 4.3vw, 62px); }
.outline-link { align-self: end; border-bottom: 1px solid var(--paper-dim); display: inline-flex; font-size: 12px; gap: 16px; justify-self: end; letter-spacing: .08em; padding-bottom: 8px; }
.footer { border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: 10px; gap: 26px; justify-content: space-between; letter-spacing: .09em; padding: 18px 0 26px; text-transform: uppercase; }
.footer-group { align-items: center; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-links { justify-content: flex-end; }
.footer a:hover { color: var(--acid); }
.sr-only { clip: rect(0,0,0,0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

.legal-page { background: var(--ink); min-height: 100vh; }
.legal-shell { margin: 0 auto; max-width: 860px; padding: 0 24px 90px; }
.legal-header { border-bottom: 1px solid var(--line); padding: 78px 0 40px; }
.legal-header h1 { font-size: clamp(48px, 8vw, 92px); margin-bottom: 20px; }
.legal-header p { color: var(--paper-dim); margin: 0; }
.legal-content { color: var(--paper-dim); padding-top: 46px; }
.legal-content h2 { color: var(--paper); font-size: 24px; letter-spacing: -.03em; margin: 35px 0 11px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { max-width: 700px; }
.legal-content ul { padding-left: 21px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--acid); text-decoration: underline; text-underline-offset: 3px; }
.legal-back { border-bottom: 1px solid var(--paper-dim); display: inline-flex; font-size: 11px; gap: 12px; letter-spacing: .1em; margin-top: 54px; padding-bottom: 8px; text-transform: uppercase; }
.legal-back span { color: var(--acid); }

@media (max-width: 900px) {
  .site-shell { padding: 0 24px; }
  .topbar-note { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 88px 0 52px; }
  .hero-art { border-left: 0; border-top: 1px solid var(--line); min-height: 370px; }
  .art-ring-one { height: 310px; left: 12%; top: 17%; width: 310px; }
  .art-ring-two { height: 500px; left: -8%; top: -7%; width: 500px; }
  .project-detail { grid-template-columns: 1fr 1.6fr; }
  .download-panel { border-left: 0; border-top: 1px solid var(--line); grid-column: 1 / -1; padding-left: 0; padding-top: 22px; }
  .download-actions { grid-template-columns: 1fr 1fr; }
  .closing-section { grid-template-columns: 90px 1fr; }
  .outline-link { grid-column: 2; justify-self: start; }
}

@media (max-width: 600px) {
  .site-shell { padding: 0 17px; }
  .topbar { min-height: 75px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 10px; }
  .hero-copy { padding-top: 68px; }
  h1 { font-size: clamp(53px, 16vw, 82px); }
  .hero-art { min-height: 310px; }
  .art-block { font-size: 35px; height: 72px; width: 72px; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-tools { justify-content: space-between; width: 100%; }
  .carousel-wrap { gap: 8px; }
  .carousel-control { flex-basis: 34px; height: 34px; width: 34px; }
  .project-card { flex-basis: 72vw; }
  .carousel-footer { align-items: start; flex-wrap: wrap; }
  .progress-line { flex-basis: calc(100% - 76px); margin-left: 0; max-width: none; order: 3; width: auto; }
  .project-detail { display: block; padding: 22px; }
  .detail-copy { margin-top: 25px; }
  .detail-meta { display: block; }
  .detail-meta > div + div { margin-top: 16px; }
  .download-panel { margin-top: 24px; }
  .download-actions { grid-template-columns: 1fr; }
  .closing-section { display: flex; flex-direction: column; align-items: start; padding: 63px 0; }
  .outline-link { align-self: start; }
  .footer { flex-direction: column; gap: 18px; }
  .footer-links { justify-content: flex-start; }
}
