/* ============================================
   Nordic Intent — Brutalist Minimal
   ============================================ */

:root {
  --black:    #0A0A0A;
  --white:    #FAFAFA;
  --gray:     #888;
  --gray-light: #E0E0E0;
  --accent:   #0055FF;
  --font:     'Space Grotesk', sans-serif;
  --mono:     'Space Mono', monospace;
  --max-w:    1200px;
  --px:       clamp(1.5rem, 4vw, 3rem);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

/* --- Typography --- */
h1 {
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.accent { color: var(--accent); }

/* --- Reveal --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Button --- */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--black);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.85rem;
  border: 2px solid var(--black);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.btn--full { width: 100%; text-align: center; }

.form-success {
  padding: 24px;
  border: 1px solid var(--c-dark);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  margin-top: 16px;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem var(--px);
  background: var(--white);
  border-bottom: 1px solid var(--black);
}

.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo-img {
  height: 40px;
  width: auto;
  filter: brightness(0);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.nav__links a { transition: color 0.2s; }
.nav__links a:hover { color: var(--accent); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--black); }

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: var(--px);
  gap: 1.5rem;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a:hover { color: var(--accent); }

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 8rem var(--px) 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero__label {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
}

.hero__sub {
  max-width: 420px;
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.6;
}

.hero__stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--black);
  margin-top: 3rem;
}

.stat {
  flex: 1;
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--gray-light);
}
.stat:last-child { border-right: none; }
.stat__number {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat__label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gray);
  margin-top: 0.25rem;
}

/* ============================================
   Marquee
   ============================================ */
.marquee {
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  gap: 0;
  animation: marquee 20s linear infinite;
  font-family: var(--mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
}
.marquee__track span { padding: 0 1.5rem; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 5rem var(--px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.section--last { padding-bottom: 6rem; }

.section__label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gray);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section__grid--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.section__right p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray);
  margin-bottom: 1rem;
}

.divider {
  border: none;
  border-top: 1px solid var(--gray-light);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ============================================
   Services
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--black);
  border-left: 1px solid var(--black);
}

.service {
  padding: 2rem;
  border-right: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  transition: background 0.2s;
}
.service:hover {
  background: var(--black);
  color: var(--white);
}
.service:hover .service__num { color: var(--accent); }
.service:hover p { color: rgba(255,255,255,0.6); }

.service__num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}
.service h3 { margin-bottom: 0.5rem; }
.service p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.5;
}

/* ============================================
   AI Block
   ============================================ */
.ai-block {
  background: var(--white);
  padding: 6rem var(--px);
  border-top: 3px solid var(--accent);
}
.ai-block__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.ai-block__heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 1rem;
  margin-bottom: 4rem;
  max-width: 700px;
}
.ai-block__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--black);
  border-left: 1px solid var(--black);
}
.ai-block__item {
  padding: 2.5rem;
  border-right: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  transition: background 0.2s, color 0.2s;
}
.ai-block__item:hover {
  background: var(--black);
  color: var(--white);
}
.ai-block__item:hover p {
  color: rgba(255,255,255,0.6);
}
.ai-block__item h3 {
  margin-bottom: 0.75rem;
}
.ai-block__item p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gray);
}

@media (max-width: 768px) {
  .ai-block__grid { grid-template-columns: 1fr; }
}

/* ============================================
   Manifesto
   ============================================ */
.manifesto {
  background: var(--black);
  color: var(--white);
  padding: 6rem var(--px);
}
.manifesto__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.manifesto .section__label { color: var(--gray); }
.manifesto__heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 1rem;
  margin-bottom: 4rem;
  max-width: 700px;
}
.manifesto__beliefs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-left: 1px solid rgba(255,255,255,0.15);
}
.belief {
  padding: 2.5rem;
  border-right: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.belief__num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}
.belief p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.7);
}

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

/* ============================================
   Contact
   ============================================ */
.contact-details {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.6;
}
.contact-details a { color: var(--accent); }
.contact-details a:hover { text-decoration: underline; }

.contact-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.contact-social a { transition: color 0.2s; }
.contact-social a:hover { color: var(--accent); }

/* Form */
.form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
}
.form-group input,
.form-group textarea {
  padding: 0.9rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gray-light);
  font-size: 1rem;
  color: var(--black);
  outline: none;
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; }

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--black);
  padding: 1.5rem var(--px);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gray);
}
.footer__logo {
  font-weight: 700;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  .hero { min-height: auto; padding-top: 6rem; }
  h1 { font-size: clamp(2.8rem, 10vw, 4rem); }

  .hero__bottom { flex-direction: column; align-items: flex-start; }

  .hero__stats { flex-wrap: wrap; }
  .stat { flex: 0 0 50%; border-right: none; }
  .stat:nth-child(odd) { border-right: 1px solid var(--gray-light); }

  .section__grid--2col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-item__name { flex: 0 0 auto; margin-right: 1rem; }
  .portfolio-item__desc { display: none; }

  .footer__inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}
