/* ============================================
   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-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  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,
.form-group select {
  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;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; }

/* ============================================
   Careers
   ============================================ */

/* Hero */
.careers-hero {
  background: var(--black);
  color: var(--white);
  padding: 8rem var(--px) 3rem;
}
.careers-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.careers-hero h1 {
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-top: 1rem;
}
.careers-hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
}
.careers-hero__bottom p {
  max-width: 420px;
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}
.careers-hero .btn {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  white-space: nowrap;
}
.careers-hero .btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.careers-hero__stats {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 3rem;
}
.careers-hero__stats .stat {
  border-right-color: rgba(255,255,255,0.15);
}
.careers-hero__stats .stat__label {
  color: rgba(255,255,255,0.4);
}

/* Positions */
.careers-positions {
  padding: 5rem var(--px);
}
.careers-positions__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.careers-positions h2 {
  margin-top: 1rem;
  margin-bottom: 3rem;
}

.careers-dept {
  margin-bottom: 3rem;
}
.careers-dept__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.careers-dept__num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
}
.careers-dept__header h3 {
  font-size: 1.15rem;
}

.careers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--black);
  border-left: 1px solid var(--black);
}

.careers-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-right: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.careers-card:hover {
  background: var(--black);
  color: var(--white);
}
.careers-card__title {
  font-weight: 500;
  font-size: 0.95rem;
}
.careers-card__arrow {
  font-size: 1.1rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s, transform 0.2s;
}
.careers-card:hover .careers-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Apply section */
.careers-apply {
  background: var(--black);
  color: var(--white);
  padding: 6rem var(--px);
}
.careers-apply__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.careers-apply .section__label {
  color: var(--gray);
}
.careers-apply h2 {
  margin-top: 1rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
}
.careers-apply__text {
  margin-top: 2rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
}

/* Form overrides for dark background */
.careers-apply .form-group label {
  color: rgba(255,255,255,0.5);
}
.careers-apply .form-group input,
.careers-apply .form-group textarea,
.careers-apply .form-group select {
  color: var(--white);
  border-bottom-color: rgba(255,255,255,0.2);
}
.careers-apply .form-group input::placeholder,
.careers-apply .form-group textarea::placeholder {
  color: rgba(255,255,255,0.3);
}
.careers-apply .form-group input:focus,
.careers-apply .form-group textarea:focus,
.careers-apply .form-group select:focus {
  border-bottom-color: var(--accent);
}
.careers-apply .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
}
.careers-apply .btn {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.careers-apply .btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.careers-apply .form-success {
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
}

/* ============================================
   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; }

  .form-row { grid-template-columns: 1fr; }

  .careers-hero__inner { min-height: auto; }
  .careers-hero__bottom { flex-direction: column; align-items: flex-start; }
  .careers-hero__stats { flex-wrap: wrap; }
  .careers-hero__stats .stat { flex: 0 0 33.33%; }
  .careers-grid { grid-template-columns: 1fr; }
  .careers-apply__inner { grid-template-columns: 1fr; gap: 2rem; }

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