/* =====================================================
   Brentor demo — inspired by brentor-template.framer.website
   Standalone CSS, no shared tokens with the main app.
   ===================================================== */

:root {
  /* Brand */
  --navy: #133475;
  --navy-700: #0f2a60;
  --navy-100: #1334751a;        /* navy @ 10% */
  --accent: #ff5100;
  --accent-700: #e64900;

  /* Neutrals */
  --ink: #0a0d14;
  --ink-700: #1d222d;
  --muted: #6c7689;
  --muted-2: #99a0ad;
  --line: #dde0e3;
  --line-2: #c8cbd2;
  --bg: #fafafa;
  --bg-2: #ffffff;
  --bg-deep: #050810;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Shadows */
  --sh-1: 0 1px 0 rgba(19, 52, 117, 0.04), 0 6px 18px rgba(19, 52, 117, 0.06);
  --sh-2: 0 12px 40px rgba(10, 13, 20, 0.12);

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Type */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typography ---------- */
.display {
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 24px;
  color: var(--ink);
}
.display em { font-style: italic; font-weight: 500; color: var(--navy); }
.display .accent { color: var(--accent); }
.display--light { color: #fff; }
.display--light em { color: #ffd5c4; }

h1, h2, h3, h4 { font-family: var(--font); letter-spacing: -0.01em; }

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 56ch;
}
.lead--max { max-width: 72ch; }
.lead--light { color: rgba(255, 255, 255, 0.78); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}
.eyebrow--dark { color: var(--navy); }
.eyebrow--light { color: #ff8a5a; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms, transform 200ms;
}
.link-arrow:hover { border-color: currentColor; transform: translateX(2px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  transition: transform 180ms ease, background 200ms, color 200ms, border-color 200ms;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-700); transform: translateY(-1px); }
.btn--accent  { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(255, 81, 0, 0.32); }
.btn--accent:hover { background: var(--accent-700); transform: translateY(-1px); }
.btn--ghost   { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: #fff; border-color: var(--ink); }
.btn--lg { padding: 18px 30px; font-size: 16px; }

/* ---------- Announcement ---------- */
.announce {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
}
.announce__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}
.announce__link {
  color: #ffd5c4;
  font-weight: 600;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 20px;
  color: var(--ink);
}
.brand__mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 60%, var(--accent) 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4), 0 4px 12px rgba(19, 52, 117, 0.25);
  position: relative;
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-left: 2px solid rgba(255, 255, 255, 0.95);
  border-top: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 1px;
}
.brand--light { color: #fff; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transition: right 220ms ease;
}
.nav a:hover::after { right: 0; }

@media (max-width: 860px) {
  .nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 8vw, 120px) 0 0;
  background:
    radial-gradient(900px 500px at 8% 0%, rgba(19, 52, 117, 0.07), transparent 60%),
    radial-gradient(900px 500px at 95% 10%, rgba(255, 81, 0, 0.06), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero__inner { text-align: center; }
.hero__title {
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 18px auto 28px;
  max-width: 16ch;
  color: var(--ink);
}
.hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--navy);
  position: relative;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0.06em;
  height: 0.12em;
  background: linear-gradient(90deg, transparent, rgba(255, 81, 0, 0.55), transparent);
  border-radius: 2px;
}
.hero__lede {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto 36px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hero__image {
  position: relative;
  margin: 64px calc(var(--gutter) * -0.5) 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-2);
  aspect-ratio: 16 / 9;
  background: #0a0d14;
}
.hero__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero__plate {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 32px));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-radius: var(--r-md);
  padding: 18px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  box-shadow: 0 14px 40px rgba(10, 13, 20, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.hero__plate strong {
  display: block;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero__plate span {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  display: inline-block;
}

@media (max-width: 600px) {
  .hero__image { aspect-ratio: 4 / 5; }
  .hero__plate { grid-template-columns: 1fr 1fr; }
  .hero__plate div:last-child { display: none; }
}

/* ---------- Marquee ---------- */
.marquee {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bg-2);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-size: clamp(20px, 2.6vw, 36px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--navy);
  padding-left: 28px;
}
.marquee__track .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- About ---------- */
.about {
  padding: clamp(80px, 10vw, 140px) 0;
}
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.about__right { padding-top: 12px; }
.about__right p { color: var(--muted); margin: 0 0 16px; max-width: 56ch; }
.about__right .lead { color: var(--ink); font-weight: 500; }
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* ---------- Focus ---------- */
.focus { padding: 0 0 clamp(80px, 10vw, 140px); }
.focus__head { max-width: 920px; }
.focus__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}
.focus__card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.focus__card:hover { transform: translateY(-4px); box-shadow: var(--sh-1); }
.focus__card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.focus__body { padding: 28px 28px 32px; }
.focus__body h3 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.focus__body p { color: var(--muted); margin: 0 0 18px; }

@media (max-width: 760px) {
  .focus__grid { grid-template-columns: 1fr; }
}

/* ---------- Services ---------- */
.services {
  padding: clamp(80px, 10vw, 140px) 0;
  background: linear-gradient(180deg, #fff, var(--bg));
  border-top: 1px solid var(--line);
}
.services__head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}
.services__head .display { margin-bottom: 0; }
@media (max-width: 860px) { .services__head { grid-template-columns: 1fr; align-items: start; } }

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .services__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .services__grid { grid-template-columns: 1fr; } }

.svc {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.svc:hover {
  transform: translateY(-4px);
  border-color: var(--navy);
  box-shadow: var(--sh-1);
}
.svc__img {
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 18px;
  aspect-ratio: 5 / 3;
  background: #eef0f4;
}
.svc__img img { width: 100%; height: 100%; object-fit: cover; }
.svc__num {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: #fff;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
}
.svc h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.svc p { color: var(--muted); font-size: 15px; margin: 0 0 18px; flex: 1; }

/* ---------- Stats ---------- */
.stats {
  background: var(--navy);
  color: #fff;
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  right: -200px;
  top: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(closest-side, rgba(255, 81, 0, 0.35), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.stats__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.stats__nums {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.stat {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 24px 0 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.stat strong {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.stat strong span { color: var(--accent); }
.stat > span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  text-align: right;
  max-width: 16ch;
}
@media (max-width: 860px) { .stats__grid { grid-template-columns: 1fr; } }

/* ---------- Testimonial ---------- */
.testimonial { padding: clamp(80px, 10vw, 140px) 0; }
.testimonial__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.testimonial__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  aspect-ratio: 4 / 5;
  background: #eef0f4;
}
.testimonial__media img { width: 100%; height: 100%; object-fit: cover; }
.testimonial blockquote {
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 500;
  margin: 24px 0;
  padding: 0;
  border-left: 3px solid var(--accent);
  padding-left: 22px;
}
.testimonial__attrib { margin: 0 0 28px; color: var(--muted); }
.testimonial__attrib strong { color: var(--ink); margin-right: 10px; }
.testimonial__attrib span { color: var(--muted); }
.testimonial__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.testimonial__stats strong {
  display: block;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
}
.testimonial__stats span { color: var(--muted); font-size: 13px; margin-top: 6px; display: inline-block; }
@media (max-width: 860px) { .testimonial__grid { grid-template-columns: 1fr; } .testimonial__media { aspect-ratio: 4 / 3; } }

/* ---------- Portfolio ---------- */
.portfolio { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 140px); }
.portfolio__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.portfolio__head .display { margin: 0; }
.portfolio__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.proj { display: flex; flex-direction: column; gap: 18px; }
.proj--wide { grid-column: 1 / -1; }
.proj__img {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eef0f4;
}
.proj--wide .proj__img { aspect-ratio: 21 / 9; }
.proj__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.proj:hover .proj__img img { transform: scale(1.04); }
.proj__meta {
  display: flex;
  gap: 24px;
  align-items: baseline;
  flex-wrap: wrap;
}
.proj__meta h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}
.proj__meta p { color: var(--muted); margin: 0; flex: 1; min-width: 200px; }
.proj__meta .link-arrow { flex: 0 0 auto; }
@media (max-width: 760px) {
  .portfolio__grid { grid-template-columns: 1fr; }
  .proj__meta h3 { flex-basis: 100%; }
}

/* ---------- CTA ---------- */
.cta {
  background: var(--ink);
  color: #fff;
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.cta::before, .cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}
.cta::before {
  left: -200px;
  top: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(closest-side, rgba(19, 52, 117, 0.55), transparent 70%);
}
.cta::after {
  right: -200px;
  bottom: -200px;
  width: 540px; height: 540px;
  background: radial-gradient(closest-side, rgba(255, 81, 0, 0.35), transparent 70%);
}
.cta__inner { position: relative; text-align: center; max-width: 880px; margin: 0 auto; }
.cta__top {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
}
.cta__30 {
  font-size: clamp(80px, 10vw, 140px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 0.9;
  margin: 8px 0 18px;
}
.cta__30 sup { font-size: 0.45em; vertical-align: super; }
.cta__headline { margin-bottom: 18px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: clamp(60px, 8vw, 100px) 0 28px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: clamp(32px, 6vw, 80px);
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__brand p { margin: 18px 0 0; }
.footer__contact { margin-top: 22px !important; }
.footer__contact a {
  color: #fff;
  font-weight: 600;
  display: inline-block;
  padding: 2px 0;
}
.footer__contact a:hover { color: var(--accent); }
.footer__addr { color: rgba(255, 255, 255, 0.55) !important; font-size: 14px; margin-top: 16px !important; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.footer__cols h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
}
.footer__cols a {
  display: block;
  font-size: 15px;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.68);
  transition: color 180ms;
}
.footer__cols a:hover { color: #fff; }

.footer__sub p { font-size: 14px; line-height: 1.5; margin: 0 0 14px; color: rgba(255, 255, 255, 0.55); }
.subscribe {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-pill);
  padding: 4px;
}
.subscribe input {
  background: transparent;
  border: 0;
  flex: 1;
  padding: 10px 14px;
  color: #fff;
  font: inherit;
  outline: none;
  min-width: 0;
}
.subscribe input::placeholder { color: rgba(255, 255, 255, 0.45); }
.subscribe button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: var(--r-pill);
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  transition: background 180ms;
}
.subscribe button:hover { background: var(--accent-700); }

.footer__bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
  flex-wrap: wrap;
}

@media (max-width: 1000px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__cols { grid-template-columns: 1fr; }
}

/* ---------- Selection & focus ---------- */
::selection { background: var(--accent); color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
