/* MAD Lion Tech — madliontech.com */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/inter-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --green: #00FF41;
  --onyx: #0A0B0A;
  --onyx-2: #101210;
  --line: #1E211E;
  --line-2: #2C302C;
  --ivory: #F5F5F2;
  --graphite: #A3A8A3;
  --muted: #8A8F8A;
  --sans: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1200px;
  --pad: clamp(24px, 5vw, 48px);
  --section: clamp(104px, 13vw, 176px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--onyx); color: var(--ivory);
  font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .3s ease, border-color .3s ease, background-color .3s ease; }
a:hover { color: var(--green); }
a:focus-visible, button:focus-visible { outline: 1px solid var(--green); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--green); color: var(--onyx); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -9999px; top: 12px; background: var(--green); color: var(--onyx); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; }

/* Labels */
.label {
  margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase; color: var(--green);
}
.label--quiet { color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 11, 10, .78);
  -webkit-backdrop-filter: saturate(140%) blur(18px); backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .4s ease;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 30px; height: auto; }
.brand span { font-size: 13px; font-weight: 400; letter-spacing: .34em; white-space: nowrap; }
.brand b { font-weight: 400; color: var(--green); }
.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); font-size: 13px; font-weight: 400; letter-spacing: .06em; }
.nav .lang { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--muted); }
.nav .lang:hover { color: var(--green); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 28px; border-radius: 999px; font-size: 14px; font-weight: 400; letter-spacing: .04em;
  border: 1px solid var(--line-2); white-space: nowrap;
}
.btn:hover { border-color: var(--green); color: var(--green); }
.btn--primary { background: var(--green); border-color: var(--green); color: var(--onyx); font-weight: 500; }
.btn--primary:hover { background: transparent; color: var(--green); }
.btn--small { min-height: 40px; padding: 0 20px; font-size: 13px; }

/* Hero */
.hero { padding-block: clamp(96px, 14vw, 184px) var(--section); text-align: center; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: clamp(168px, 20vw, 232px); margin-bottom: clamp(48px, 7vw, 80px); }
.hero h1 {
  margin: 28px 0 0; max-width: 940px;
  font-size: clamp(42px, 6.6vw, 84px); line-height: 1.02; font-weight: 300; letter-spacing: -.035em;
}
.hero .lede { margin: 32px 0 0; max-width: 620px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.65; color: var(--graphite); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 48px; }

/* Sections */
.section { padding-block: var(--section); border-top: 1px solid var(--line); }
.section--raised { background: var(--onyx-2); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 64px; margin-bottom: clamp(56px, 7vw, 88px); }
.section-head > div { max-width: 640px; }
h2 {
  margin: 20px 0 0; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; font-weight: 300; letter-spacing: -.03em;
}
.section-head p.intro { margin: 0; max-width: 400px; color: var(--graphite); font-size: 16px; line-height: 1.7; }

/* Services */
.services { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.services li {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px 48px; align-items: baseline;
  padding: 40px 0; border-top: 1px solid var(--line);
}
.services .num { font-family: var(--mono); font-size: 13px; color: var(--green); letter-spacing: .1em; }
.services h3 { margin: 0; font-size: clamp(22px, 2.2vw, 27px); font-weight: 400; letter-spacing: -.012em; line-height: 1.3; }
.services p { margin: 0; color: var(--graphite); font-size: 16px; line-height: 1.75; }

/* Work */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--onyx); padding: clamp(32px, 4vw, 52px); display: flex; flex-direction: column; gap: 18px; min-height: 340px; }
.card h3 { margin: 0; font-size: clamp(22px, 2.1vw, 26px); font-weight: 400; line-height: 1.3; letter-spacing: -.012em; }
.card p { margin: 0; color: var(--graphite); font-size: 16px; line-height: 1.75; }
.card .link { margin-top: auto; padding-top: 12px; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--green); }
.card .link:hover { color: var(--ivory); }

/* Approach */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); }
.step { padding-top: 32px; border-top: 1px solid var(--line-2); }
.step:first-child { border-top-color: var(--green); }
.step .label { margin-bottom: 20px; }
.step h3 { margin: 0 0 14px; font-size: 24px; font-weight: 400; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--graphite); font-size: 16px; line-height: 1.75; }

/* Principles */
.principle { padding-block: clamp(96px, 12vw, 160px); border-top: 1px solid var(--line); text-align: center; }
.principle blockquote { margin: 0 auto; max-width: 900px; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.3; font-weight: 300; letter-spacing: -.02em; }
.principle .label { margin-top: 36px; }

/* Family */
.family .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; }
.family p.big { margin: 20px 0 0; max-width: 680px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.4; font-weight: 300; letter-spacing: -.01em; }

/* Contact */
.contact { text-align: center; padding-block: clamp(120px, 15vw, 200px); border-top: 1px solid var(--line); }
.contact .wrap { display: flex; flex-direction: column; align-items: center; }
.contact img { width: 52px; margin-bottom: 40px; }
.contact h2 { max-width: 820px; font-size: clamp(36px, 5vw, 62px); margin-top: 0; }
.contact .lede { margin: 28px 0 0; max-width: 560px; color: var(--graphite); font-size: 18px; line-height: 1.65; }
.contact .mail { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.site-footer img { width: 132px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 28px; }
.site-footer .legal { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line); }

/* Legal page */
.doc { padding-block: clamp(80px, 10vw, 128px) var(--section); }
.doc .wrap { max-width: 760px; }
.doc h1 { margin: 20px 0 12px; font-size: clamp(36px, 5vw, 56px); font-weight: 300; letter-spacing: -.03em; line-height: 1.08; }
.doc h2 { font-size: 22px; font-weight: 400; letter-spacing: -.01em; margin: 56px 0 12px; }
.doc p, .doc li { color: var(--graphite); font-size: 16px; line-height: 1.8; }
.doc a { color: var(--ivory); border-bottom: 1px solid var(--line-2); }
.doc a:hover { color: var(--green); border-color: var(--green); }

/* Reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  .reveal-2 { animation-delay: .12s; } .reveal-3 { animation-delay: .24s; } .reveal-4 { animation-delay: .36s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* Responsive */
@media (max-width: 900px) {
  .services li { grid-template-columns: 56px minmax(0, 1fr); }
  .services li p { grid-column: 2; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .nav .hide-sm { display: none; }
  .brand span { letter-spacing: .26em; font-size: 12px; }
  .services li { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 32px 0; }
  .services li p { grid-column: 1; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
}
