/* ---------- Fonts ---------- */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/oswald-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/open-sans-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0a;
  --bg-2: #0d0d0d;
  --surface: #111111;
  --footer: #060606;
  --line: #2a2a2a;
  --line-2: #1a1a1a;
  --accent: #d4881c;
  --white: #ffffff;
  --text: #cccccc;
  --muted: #999999;
  --dim: #444444;
  --font-heading: "Oswald", "Oswald Fallback", sans-serif;
  --font-body: "Open Sans", "Open Sans Fallback", sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { color: var(--bg); background: var(--accent); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

main { background: var(--bg); min-height: 100vh; overflow-x: hidden; }

.container { position: relative; z-index: 10; margin: 0 auto; padding: 0 24px; }
.container--800 { max-width: 800px; }
.container--1100 { max-width: 1100px; }
.container--1300 { max-width: 1300px; }
@media (min-width: 768px) { .container { padding: 0 48px; } }

/* ---------- Section headings ---------- */
.section-head { text-align: center; margin-bottom: 64px; }
.section-head--lg { margin-bottom: 80px; }
.eyebrow {
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.title {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-transform: uppercase;
}
.title--mb { margin-bottom: 24px; }
@media (min-width: 768px) { .title { font-size: 3.5rem; } }
.rule { width: 50px; height: 2px; background: var(--accent); margin: 24px auto 0; }
.rule--contact { margin: 16px auto 48px; }

/* ---------- Reveal animations ---------- */
.reveal, .reveal-sub, .reveal-left, .reveal-card {
  opacity: 0;
  transition-property: opacity, transform, background-color, border-color, padding;
  transition-timing-function: var(--ease);
}
.reveal { transform: translateY(40px); transition-duration: 1000ms; }
.reveal-sub { transform: translateY(32px); transition-duration: 700ms; }
.reveal-left { transform: translateX(-32px); transition-duration: 700ms; }
.reveal-card { transform: translateY(48px); transition-duration: 700ms; }
.is-visible .reveal,
.is-visible .reveal-sub,
.is-visible .reveal-left,
.reveal-card.is-visible { opacity: 1; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 50;
  background: transparent;
  transition: all 500ms var(--ease);
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.95);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.nav__bar {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
}
@media (min-width: 1024px) { .nav__bar { padding: 20px 48px; } }
.nav__logo { flex-shrink: 0; display: block; }
.nav__logo img { height: 50px; width: auto; object-fit: contain; mix-blend-mode: screen; }
@media (min-width: 768px) { .nav__logo img { height: 60px; } }

.nav__links { display: none; align-items: center; gap: 40px; }
@media (min-width: 1024px) { .nav__links { display: flex; } }
.nav__link {
  position: relative;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 300ms var(--ease);
}
.nav__link span {
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: all 300ms var(--ease);
}
.nav__link:hover { color: var(--accent); }
.nav__link:hover span { width: 100%; }

.nav__toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: transparent; border: none; cursor: pointer; padding: 8px;
}
@media (min-width: 1024px) { .nav__toggle { display: none; } }
.nav__toggle span {
  display: block; width: 24px; height: 1.5px; background: var(--white);
  transition: all 300ms var(--ease);
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  overflow: hidden; max-height: 0; opacity: 0;
  transition: all 500ms var(--ease);
}
.nav.is-open .nav__mobile { max-height: 400px; opacity: 1; }
@media (min-width: 1024px) { .nav__mobile { display: none; } }
.nav__mobile-inner {
  background: rgba(10, 10, 10, 0.98);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 0 32px 32px;
  display: flex; flex-direction: column; gap: 24px;
}
.nav__mobile-inner a {
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 300;
  letter-spacing: 0.2em; text-transform: uppercase;
  transition: color 300ms var(--ease);
}
.nav__mobile-inner a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative; width: 100%; height: 100vh; min-height: 700px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.7); }
.hero__fade {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 300px;
  background: linear-gradient(to top, var(--bg), transparent);
}
.hero__content { position: relative; z-index: 10; text-align: center; padding: 0 24px; max-width: 900px; }
.hero__rule {
  height: 2px; background: var(--accent); margin: 0 auto;
  width: 0; opacity: 0;
  transition: all 1000ms var(--ease);
}
.hero__rule--top { margin-bottom: 32px; transition-delay: 300ms; }
.hero__rule--bottom { margin-top: 24px; margin-bottom: 40px; transition-delay: 700ms; }
.hero__logo {
  display: flex; justify-content: center; margin-bottom: 24px;
  opacity: 0; transform: translateY(32px);
  transition: all 1000ms var(--ease) 500ms;
}
.hero__logo img { width: 280px; height: auto; object-fit: contain; mix-blend-mode: screen; }
@media (min-width: 768px) { .hero__logo img { width: 380px; } }
@media (min-width: 1024px) { .hero__logo img { width: 460px; } }

.hero__scroll {
  position: absolute; bottom: 40px; left: 50%; z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--text);
  opacity: 0; transform: translate(-50%, 16px);
  transition: all 700ms var(--ease) 1000ms;
}
.hero__scroll:hover { color: var(--accent); }
.hero__scroll span {
  font-family: var(--font-body); font-size: 10px; font-weight: 300;
  letter-spacing: 0.3em; text-transform: uppercase;
}
.hero__scroll-line { position: relative; width: 1px; height: 40px; background: rgba(212, 136, 28, 0.5); overflow: hidden; }
.hero__scroll-line div {
  position: absolute; top: 0; left: 0; width: 100%; height: 15px; background: var(--accent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { opacity: 0; transform: translateY(-100%); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(300%); }
}
.hero.is-loaded .hero__rule { width: 60px; opacity: 1; }
.hero.is-loaded .hero__logo { opacity: 1; transform: translateY(0); }
.hero.is-loaded .hero__scroll { opacity: 1; transform: translate(-50%, 0); }

/* ---------- About ---------- */
.about { position: relative; padding: 112px 0; overflow: hidden; }
@media (min-width: 768px) { .about { padding: 144px 0; } }
.about__bg { position: absolute; inset: 0; z-index: 0; }
.about__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; }
.about__bg div { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.85); }
.about__text { max-width: 800px; margin: 0 auto; text-align: center; }
.about__lead {
  color: var(--text); font-size: 16px; line-height: 1.9; font-weight: 300; margin-bottom: 32px;
}
.about__body { color: var(--muted); font-size: 15px; line-height: 1.9; font-weight: 300; }
@media (min-width: 768px) {
  .about__lead { font-size: 17px; }
  .about__body { font-size: 16px; }
}

/* ---------- Services ---------- */
.services { padding: 112px 0; background: var(--bg); }
@media (min-width: 768px) { .services { padding: 144px 0; } }
.services__grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 768px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }
.services__wide { margin-top: 28px; }

.card { position: relative; overflow: hidden; background: var(--surface); }
.card__media { position: relative; height: 240px; overflow: hidden; }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease);
}
.card:hover .card__media img { transform: scale(1.1); }
.card__shade {
  position: absolute; inset: 0; background: rgba(10, 10, 10, 0.4);
  transition: background-color 500ms var(--ease);
}
.card:hover .card__shade { background: rgba(10, 10, 10, 0.2); }
.card__bar {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 500ms var(--ease);
}
.card:hover .card__bar { transform: scaleX(1); }
.card__body { padding: 28px; }
@media (min-width: 768px) { .card__body { padding: 32px; } }
.card__body h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.25rem; font-weight: 300;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 16px;
  transition: color 300ms var(--ease);
}
.card:hover .card__body h4 { color: var(--accent); }
.card__body p { color: var(--muted); font-size: 14px; line-height: 1.85; font-weight: 300; }

/* ---------- Approach ---------- */
.approach { position: relative; padding: 112px 0; overflow: hidden; }
@media (min-width: 768px) { .approach { padding: 144px 0; } }
.approach__bg { position: absolute; inset: 0; background: var(--bg-2); }
.approach__glow {
  position: absolute; top: 0; right: 0; width: 400px; height: 400px;
  background: rgba(212, 136, 28, 0.03); filter: blur(100px);
}
.approach__block { margin-bottom: 80px; }
.approach__intro {
  color: var(--text); font-size: 17px; font-weight: 300; line-height: 1.625;
  text-align: center; margin-bottom: 40px;
}
@media (min-width: 768px) { .approach__intro { font-size: 18px; } }

.pillars { display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 900px; margin: 0 auto; }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  text-align: center; padding: 32px 24px;
  border: 1px solid var(--line); background: rgba(17, 17, 17, 0.5);
}
.pillar:hover { border-color: rgba(212, 136, 28, 0.4); background: var(--surface); }
.pillar div { width: 30px; height: 2px; background: var(--accent); margin: 0 auto 20px; }
.pillar p {
  color: var(--white); font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 300; letter-spacing: 0.15em; text-transform: uppercase;
}

.questions { display: flex; flex-direction: column; gap: 20px; max-width: 600px; margin: 0 auto; }
.question {
  display: flex; align-items: center; gap: 20px;
  padding: 16px 24px;
  border-left: 2px solid var(--accent);
  background: rgba(17, 17, 17, 0.3);
}
.question:hover { background: rgba(17, 17, 17, 0.6); padding-left: 32px; }
.question span { color: var(--accent); font-family: var(--font-heading); font-size: 18px; font-weight: 300; }
.question p { color: var(--text); font-size: 16px; font-weight: 300; letter-spacing: 0.025em; }

.approach__outro { text-align: center; max-width: 700px; margin: 0 auto; }
.approach__outro-rule { width: 40px; height: 1px; background: var(--line); margin: 0 auto 32px; }
.approach__note {
  color: var(--muted); font-size: 16px; line-height: 1.9; font-weight: 300; font-style: italic;
  margin-bottom: 16px;
}
.approach__statement {
  color: var(--white); font-family: var(--font-heading);
  font-size: 1.3rem; font-weight: 300; letter-spacing: 0.15em; text-transform: uppercase;
}
@media (min-width: 768px) { .approach__statement { font-size: 1.5rem; } }

/* ---------- Contact ---------- */
.contact { position: relative; padding: 112px 0; background: var(--bg); }
@media (min-width: 768px) { .contact { padding: 144px 0; } }
.contact__rule {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 80px; height: 1px; background: var(--line);
}
.contact__inner { text-align: center; }
.contact__label {
  color: var(--muted); font-size: 13px; font-weight: 300;
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 12px;
}
.contact__email {
  display: inline-block;
  color: var(--white); font-size: 1.1rem; font-weight: 300; letter-spacing: 0.05em;
  transition: color 300ms var(--ease);
}
.contact__email:hover { color: var(--accent); }
@media (min-width: 768px) { .contact__email { font-size: 1.3rem; } }

/* ---------- Footer ---------- */
.footer { padding: 40px 0; background: var(--footer); border-top: 1px solid var(--line-2); }
.footer__inner {
  max-width: 1300px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px;
}
@media (min-width: 768px) { .footer__inner { flex-direction: row; padding: 0 48px; } }
.footer__inner img { height: 45px; width: auto; object-fit: contain; mix-blend-mode: screen; }
.footer__inner p { color: var(--dim); font-size: 11px; font-weight: 300; letter-spacing: 0.1em; }

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