/* ============================================
   STUDIO — Design System
   Bold editorial · Type-driven · Dynamic
   ============================================ */

:root {
  --ivory: #F5F1EA;
  --ivory-deep: #EDE6D8;
  --ink: #0E0E0E;
  --ink-soft: #2B2B2B;
  --ink-mute: #6B6660;
  --orange: #FF3D71;
  --orange-deep: #E02560;
  --line: #0E0E0E1A;
  --line-dark: #F5F1EA1F;

  --serif: "Plus Jakarta Sans", "Inter Tight", -apple-system, sans-serif;
  --display: "Space Grotesk", -apple-system, sans-serif;
  --hero: "Plus Jakarta Sans", "Inter Tight", -apple-system, sans-serif;
  --sans: "Inter Tight", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--orange); color: var(--ivory); }

html { scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.05 0 0 0 0 0.05 0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.55;
  mix-blend-mode: multiply;
}

main, header, footer, nav { position: relative; z-index: 2; }

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

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

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   NAV
   ============================================ */
body > nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(245, 241, 234, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .dot {
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--orange);
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }

/* Portfolio link gets a subtle orange dot highlight */
.nav-links a.nav-portfolio {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nav-links a.nav-portfolio::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.nav-links a.nav-portfolio:hover::before { transform: scale(1.3); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  border-radius: 100px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.nav-cta:hover { background: var(--orange); transform: translateY(-1px); }
.nav-cta::after {
  content: "→";
  transition: transform 0.3s ease;
  font-size: 14px;
}
.nav-cta:hover::after { transform: translateX(3px); }

/* Hidden on desktop, shown only inside the open burger menu on mobile */
.nav-cta-mobile { display: none; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.3s;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--ink);
  color: var(--ivory);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary > span { position: relative; z-index: 1; }
.btn-primary .arrow { display: inline-block; transition: transform 0.4s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--ivory); }

.btn-link {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.btn-link:hover { color: var(--orange); border-color: var(--orange); }
.link-orange {
  color: var(--orange);
  border-bottom: 1.5px solid currentColor;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.link-orange:hover { opacity: 0.7; }

/* ============================================
   COMMON SECTION ELEMENTS
   ============================================ */
section { padding: 140px 0; position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 32px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--orange);
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 84px);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 18ch;
}
.section-title em {
  font-style: italic;
  color: var(--orange);
  font-weight: 500;
}

/* Decorative big numbers */
.big-num {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(60px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--orange);
}

/* ============================================
   MARQUEE (defilant tech)
   ============================================ */
.marquee {
  background: var(--ink);
  color: var(--ivory);
  padding: 28px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.marquee-track {
  display: inline-flex;
  gap: 60px;
  animation: scroll-marquee 28s linear infinite;
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.marquee-track .dot-orange {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes scroll-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--ink);
  color: var(--ivory);
  padding: 100px 0 32px;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand-logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand-logo .dot {
  width: 10px; height: 10px;
  background: var(--orange);
  border-radius: 50%;
}

.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.3;
  max-width: 28ch;
  color: rgba(245, 241, 234, 0.85);
}

.footer-col h5 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col li {
  font-size: 14px;
  color: rgba(245, 241, 234, 0.7);
  line-height: 1.5;
}
.footer-col li a {
  font-size: 14px;
  color: rgba(245, 241, 234, 0.7);
  transition: color 0.3s ease;
}
.footer-col li a:hover { color: var(--orange); }
.footer-address {
  line-height: 1.4;
}

.footer-mega {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(56px, 13vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-align: center;
  padding: 80px 0 40px;
  color: var(--ivory);
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}
.footer-mega em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--orange);
}

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: rgba(245, 241, 234, 0.55);
  font-family: var(--display);
}
.footer-bottom a { color: rgba(245, 241, 234, 0.55); transition: color 0.3s ease; }
.footer-bottom a:hover { color: var(--orange); }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  body > nav { padding: 14px 20px; }
  section { padding: 90px 0; }

  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--ivory);
    flex-direction: column;
    padding: 32px 20px;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-200%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    align-items: flex-start;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 18px; }

  /* Mobile-only CTA shown inside the open burger panel */
  .nav-links .nav-cta-mobile {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--ink);
    color: var(--ivory);
    font-family: var(--display);
    font-size: 15px;
    font-weight: 500;
    border-radius: 100px;
    margin-top: 12px;
    transition: background 0.3s ease;
  }
  .nav-links .nav-cta-mobile:hover { background: var(--orange); }
  .nav-links .nav-cta-mobile::after { display: none; }

  .menu-toggle { display: block; }

  /* The desktop CTA is hidden on mobile (replaced by .nav-cta-mobile inside the menu) */
  .nav-cta { display: none; }

  .footer-top { grid-template-columns: 1fr; gap: 40px; padding-bottom: 60px; }
}

@media (max-width: 520px) {
  .btn { padding: 16px 26px; font-size: 13px; }
}

