/* Treefort R&D — plain HTML/CSS/JS rebuild.
   No React. No contact popup. No bundled framework code. */

:root {
  --bg: #0b0d0f;
  --bg-soft: #12161a;
  --text: #f6f7f8;
  --muted: #b4bcc7;
  --dark-muted: #5d6673;
  --panel: #ffffff;
  --panel-soft: #f4f6f8;
  --ink: #12161a;
  --primary: #f28c28;
  --primary-dark: #c76d14;
  --accent: #35a7ff;
  --border: rgba(255,255,255,0.14);
  --shadow: 0 24px 80px rgba(0,0,0,0.22);
  --radius: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

body.menu-open,
body.video-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.shell {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(11, 13, 15, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-name {
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
}

.brand-name span,
.section-heading span,
.service-body h3,
.hero-categories span:first-child {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #111;
  background: var(--primary);
}

.button-primary:hover {
  background: #ff9c3d;
}

.button-secondary {
  color: var(--ink);
  background: #f5f7fa;
}

.button-secondary:hover {
  background: #ffffff;
}

.button-outline {
  color: var(--primary);
  border-color: rgba(242, 140, 40, 0.7);
  background: transparent;
}

.button-outline:hover {
  background: rgba(242, 140, 40, 0.12);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-image,
.hero-shade,
.work-bg,
.work-shade {
  position: absolute;
  inset: 0;
}

.hero-image,
.work-bg {
  background-size: cover;
  background-position: center;
}

.hero-shade {
  background:
    radial-gradient(circle at 50% 42%, rgba(242, 140, 40, 0.16), transparent 32%),
    linear-gradient(to bottom, rgba(0,0,0,0.58), rgba(0,0,0,0.78));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 14vw, 9.6rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  margin-top: 22px;
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.2em;
}

.hero-tagline {
  max-width: 760px;
  margin: 32px auto 12px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-weight: 300;
}

.hero-categories {
  margin: 0;
  font-size: clamp(1.15rem, 2.6vw, 2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-categories span:last-child {
  color: var(--accent);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 44px;
}

.scroll-marker {
  position: absolute;
  z-index: 2;
  bottom: 30px;
  left: 50%;
  width: 2px;
  height: 64px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: translateX(-50%) scaleY(0.75); }
  50% { opacity: 1; transform: translateX(-50%) scaleY(1); }
}

.section {
  position: relative;
  padding: 96px 0;
}

.section-white {
  color: var(--ink);
  background: #fff;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 58px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.section-heading p {
  margin: 0;
  color: var(--dark-muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.section-heading-dark p {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.service-card {
  display: grid;
  gap: 28px;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  background: #101418;
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb::after,
.video-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.38);
}

.play-button,
.large-play {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #111;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 16px 44px rgba(0,0,0,0.35);
}

.play-button {
  width: 68px;
  height: 68px;
  font-size: 1.6rem;
}

.large-play {
  width: 92px;
  height: 92px;
  font-size: 2.1rem;
}

.service-body {
  color: var(--ink);
}

.service-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 12px;
  color: var(--primary);
  background: rgba(242, 140, 40, 0.12);
  font-size: 1.4rem;
}

.service-icon-accent {
  color: var(--accent);
  background: rgba(53, 167, 255, 0.12);
}

.service-body h3 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-body p {
  margin: 0 0 20px;
  color: var(--dark-muted);
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 18px;
  color: var(--dark-muted);
  font-size: 0.96rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.work-section {
  overflow: hidden;
  background: var(--bg);
}

.work-shade {
  background: rgba(0,0,0,0.74);
}

.work-content {
  position: relative;
  z-index: 2;
}

.video-card {
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #101418;
  box-shadow: var(--shadow);
}

.video-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(242, 140, 40, 0.4);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(0,0,0,0.4);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.video-copy {
  padding: 30px;
  text-align: center;
}

.video-copy h3 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.video-copy p {
  margin: 0 auto;
  max-width: 640px;
  color: var(--muted);
}

.process-section {
  color: var(--ink);
  background: var(--panel-soft);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.process-card {
  min-height: 250px;
  padding: 28px 22px;
  border: 1px solid #e1e5eb;
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 40px rgba(18,22,26,0.06);
}

.process-card span {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 900;
}

.process-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.process-card p {
  margin: 0;
  color: var(--dark-muted);
  font-size: 0.95rem;
}

.contact-section {
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(242,140,40,0.13), transparent 42%),
    var(--bg-soft);
}

.contact-section .section-heading p {
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}

.contact-card {
  padding: 34px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  text-align: center;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 16px;
  color: var(--primary);
  background: rgba(242,140,40,0.12);
  font-size: 1.35rem;
}

.contact-card h3 {
  margin: 0 0 12px;
}

.contact-card p {
  margin: 4px 0;
  color: var(--muted);
}

.contact-card a {
  color: var(--primary);
  font-weight: 800;
}

.site-footer {
  padding: 26px 0;
  color: var(--muted);
  background: #080a0c;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.video-modal[hidden] {
  display: none;
}

.video-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
}

.video-dialog {
  position: relative;
  z-index: 2;
  width: min(100%, 1000px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #000;
  box-shadow: var(--shadow);
}

.video-dialog iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
}

.video-close {
  position: absolute;
  z-index: 3;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

@media (max-width: 940px) {
  .nav {
    min-height: 66px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    top: 66px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(11,13,15,0.97);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 16px;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: rgba(255,255,255,0.06);
  }

  .nav-button {
    display: none;
  }

  .service-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, var(--max-width));
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .video-close {
    top: -44px;
  }
}
