/* Noxu Technology — Graphite & Signal Orange */
@import url("https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --ink: #12141a;
  --ink-soft: #2a2e38;
  --muted: #5e6573;
  --surface: #f2f3f5;
  --surface-2: #e6e8ec;
  --paper: #ffffff;
  --accent: #e85d04;
  --accent-deep: #c24a00;
  --accent-soft: #ffe8d6;
  --panel: #16181f;
  --panel-soft: #22252e;
  --line: #d5d8de;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Public Sans", sans-serif;
  --max: 1180px;
  --header-h: 70px;
  --ease: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--surface);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover {
  color: var(--accent);
}

/* —— Header: slim bar over light/dark —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(18, 20, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  color: #fff;
  text-transform: uppercase;
}

.logo:hover {
  color: var(--accent);
}

.logo-mark {
  width: 18px;
  height: 18px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.logo-text {
  letter-spacing: 0.02em;
}

.logo-sub {
  display: none;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-main a {
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  transition: color var(--ease), border-color var(--ease);
}

.nav-main a:hover,
.nav-main a.active {
  color: #fff;
  background: transparent;
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

/* —— Hero: full-bleed image —— */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: var(--panel);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.72) contrast(1.05);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(18, 20, 26, 0.92) 0%, rgba(18, 20, 26, 0.55) 48%, rgba(18, 20, 26, 0.25) 100%),
    linear-gradient(0deg, rgba(18, 20, 26, 0.85) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
}

.hero-copy {
  animation: rise 0.75s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 8.5rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.88;
  margin-bottom: 20px;
  color: #fff;
}

.hero-brand span {
  color: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  max-width: 16ch;
  margin-bottom: 18px;
  color: #fff;
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36ch;
  margin-bottom: 32px;
}

.hero-side {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  padding: 8px 0 8px 28px;
  animation: rise 0.75s 0.12s ease both;
}

.hero-side p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.hero-side dl {
  display: grid;
  gap: 14px;
}

.hero-side dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 2px;
}

.hero-side dd {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cookie-actions .btn-outline {
  color: var(--ink);
  border-color: var(--ink);
}

.cookie-actions .btn-outline:hover {
  background: var(--surface-2);
  color: var(--ink);
}

/* —— Sections —— */
main {
  flex: 1;
}

.section {
  padding: 0;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* About: text strip + full-bleed image band */
.about-band {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  min-height: 560px;
  background: var(--paper);
}

.about-panel {
  padding: 72px 40px 72px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 420px;
  margin-left: max(0px, calc((100vw - var(--max)) / 2));
  padding-left: max(24px, calc((100vw - var(--max)) / 2 + 24px));
}

.about-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
}

.about-panel p {
  color: var(--muted);
  margin-bottom: 14px;
}

.about-panel strong {
  color: var(--ink);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.about-stats div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.about-stats strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
}

.about-stats span {
  font-size: 0.85rem;
  color: var(--muted);
}

.about-visual {
  position: relative;
  min-height: 420px;
  background: var(--panel);
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* Capabilities: stacked full-width rows */
.work-head {
  padding: 80px 24px 40px;
  background: var(--panel);
  color: #fff;
}

.work-head .inner {
  max-width: var(--max);
  margin: 0 auto;
}

.work-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.04em;
  max-width: 14ch;
}

.work-head p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 42ch;
}

.work-rows {
  background: var(--panel);
}

.work-row {
  display: grid;
  grid-template-columns: 120px 1fr 1.4fr;
  gap: 24px;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background var(--ease);
}

.work-row:hover {
  background: var(--panel-soft);
}

.work-row .num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}

.work-row h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.work-row p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.98rem;
}

/* Page hero (inner) */
.page-hero {
  padding: 88px 24px 56px;
  background: var(--panel);
  color: #fff;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  max-width: var(--max);
  margin: 0 auto 12px;
}

.page-hero p {
  max-width: var(--max);
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.05rem;
}

.page-hero .section-label {
  max-width: var(--max);
  margin: 0 auto 12px;
}

/* Legal */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 88px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 36px 0 12px;
  color: var(--ink);
}

.legal-content h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
  color: var(--ink-soft);
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.legal-content .updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 28px;
}

/* Contact: stacked map-first */
.contact-stack {
  display: grid;
  grid-template-rows: auto auto;
}

.contact-map {
  min-height: 420px;
  background: var(--surface-2);
}

.contact-map iframe {
  width: 100%;
  height: 420px;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}

.contact-details {
  background: var(--paper);
  padding: 64px 24px;
}

.contact-details-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-details h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 8px;
}

.contact-details > .contact-details-inner > div > p {
  color: var(--muted);
  margin-bottom: 28px;
}

.contact-info-list {
  list-style: none;
}

.contact-info-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
}

.contact-info-list strong {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
}

.contact-info-list span,
.contact-info-list a {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.contact-icon {
  display: none;
}

.map-link {
  margin-top: 20px;
  font-size: 0.92rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #8b919c;
  padding: 48px 24px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.site-footer .logo {
  color: #fff;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin-bottom: 14px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #c4c8d0;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
}

.footer-bottom a {
  color: #6b7280;
}

.footer-bottom a:hover {
  color: #fff;
}

/* Cookie */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
  padding: 18px 24px;
  z-index: 2000;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-inner p {
  flex: 1;
  min-width: 240px;
  font-size: 0.88rem;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-actions .btn {
  padding: 10px 16px;
  font-size: 0.78rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-side {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding: 24px 0 0;
  }

  .about-band {
    grid-template-columns: 1fr;
  }

  .about-panel {
    max-width: none;
    margin: 0;
    padding: 56px 24px;
  }

  .about-visual {
    min-height: 320px;
    order: -1;
  }

  .work-row {
    grid-template-columns: 64px 1fr;
  }

  .work-row p {
    grid-column: 1 / -1;
  }

  .contact-details-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-main {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--panel);
    flex-direction: column;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--ease);
  }

  .nav-main.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-main a {
    width: 100%;
    text-align: center;
    padding: 14px;
    border-bottom: none;
  }

  .nav-main a.active {
    background: rgba(232, 93, 4, 0.15);
    color: var(--accent);
  }

  .hero {
    min-height: 85vh;
  }

  .contact-info-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
