/* ============================================================
   SILVER WINGS — DESIGN SYSTEM
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:          #0C0C0C;
  --bg-2:        #121212;
  --bg-card:     #161616;
  --bg-elevated: #1C1C1C;
  --border:      rgba(255,255,255,0.08);
  --border-hover:rgba(255,255,255,0.18);

  --amber:       #FFFD74;
  --amber-light: #FFFF9E;
  --amber-dim:   rgba(255,253,116,0.10);
  --amber-glow:  rgba(255,253,116,0.22);

  --white:       #FFFFFF;
  --grey-100:    #F0F0F0;
  --grey-400:    #888888;
  --grey-600:    #444444;
  --grey-700:    #2A2A2A;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h:       72px;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-pill: 999px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; }

/* ── CUSTOM CURSOR ───────────────────────────────────────── */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--amber);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s var(--ease-out),
              width 0.3s var(--ease-out),
              height 0.3s var(--ease-out),
              background 0.3s;
  mix-blend-mode: normal;
}
.cursor-follower {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(232,134,42,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease-out),
              width 0.4s var(--ease-out),
              height 0.4s var(--ease-out),
              border-color 0.3s,
              opacity 0.3s;
}
.cursor.hovering { width: 6px; height: 6px; background: var(--amber-light); }
.cursor-follower.hovering {
  width: 56px; height: 56px;
  border-color: var(--amber);
}

/* ── TYPOGRAPHY SCALE ────────────────────────────────────── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.display-sm {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.heading {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.body-lg  { font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.7; }
.body-md  { font-size: 1rem; line-height: 1.65; }
.body-sm  { font-size: 0.875rem; line-height: 1.6; color: var(--grey-400); }
.label    {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-400);
}
.amber    { color: var(--amber); }

/* ── LAYOUT ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}
.container--wide {
  max-width: 1440px;
}
.section {
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.section--tight {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

/* ── GRID ────────────────────────────────────────────────── */
.grid-2  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* Responsive split grid — collapses to one column on mobile */
.resp-grid       { display: grid; gap: clamp(3rem, 6vw, 8rem); align-items: start; }
.resp-grid--2    { grid-template-columns: 1fr 1fr; }
.resp-grid--1-2  { grid-template-columns: 1fr 2fr; }
.resp-grid--center { align-items: center; }
@media (max-width: 768px) {
  .resp-grid { grid-template-columns: 1fr; }
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-pill);
  padding: 0.85em 1.8em;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: none;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--amber);
  color: #000;
}
.btn-primary:hover {
  background: var(--amber-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--amber-glow);
}
.btn-outline {
  border: 1.5px solid var(--border-hover);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-2px);
}
.btn-ghost {
  color: var(--white);
  padding-left: 0;
  padding-right: 0;
  border-radius: 0;
}
.btn-ghost .btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: 1.5px solid var(--border-hover);
  border-radius: 50%;
  transition: all 0.3s var(--ease-out);
}
.btn-ghost:hover .btn-arrow {
  border-color: var(--amber);
  background: var(--amber);
  color: #000;
  transform: translateX(4px);
}

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  width: 100%;
}

/* ── NAVIGATION ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(12,12,12,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav__logo img {
  height: 32px;
  width: auto;
  opacity: 0.92;
  transition: opacity 0.2s;
}
.nav__logo:hover img { opacity: 1; }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.nav__link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--grey-400);
  transition: color 0.2s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--amber);
  transition: width 0.3s var(--ease-out);
}
.nav__link:hover,
.nav__link.active { color: var(--white); }
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

.nav__link--ai {
  color: var(--amber) !important;
}
.nav__link--ai::after { background: var(--amber); }

.nav__cta { margin-left: 1rem; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav__hamburger span {
  display: block;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem clamp(1.5rem, 5vw, 3rem);
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
}
.nav__mobile.open { transform: translateX(0); }
.nav__mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 3rem;
}
.nav__mobile-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--grey-600);
  transition: color 0.2s;
}
.nav__mobile-link:hover { color: var(--white); }
.nav__mobile-footer { color: var(--grey-400); font-size: 0.875rem; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: clamp(4rem, 8vw, 7rem) 0 2.5rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.footer__brand-logo {
  height: 28px;
  opacity: 0.9;
  margin-bottom: 1.25rem;
}
.footer__tagline {
  font-size: 0.9375rem;
  color: var(--grey-400);
  line-height: 1.6;
  max-width: 260px;
  margin-bottom: 1.75rem;
}
.footer__col-title {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-600);
  margin-bottom: 1.25rem;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer__link {
  font-size: 0.9375rem;
  color: var(--grey-400);
  transition: color 0.2s;
}
.footer__link:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__copy { font-size: 0.8125rem; color: var(--grey-600); }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { font-size: 0.8125rem; color: var(--grey-600); transition: color 0.2s; }
.footer__legal a:hover { color: var(--grey-400); }
.footer__contact-list { display: flex; flex-direction: column; gap: 0.375rem; }
.footer__contact-list a { font-size: 0.875rem; color: var(--grey-400); transition: color 0.2s; }
.footer__contact-list a:hover { color: var(--amber); }

/* ── SCROLL ANIMATIONS ───────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }
[data-reveal-delay="6"] { transition-delay: 0.6s; }

.reveal-line {
  overflow: hidden;
  display: block;
}
.reveal-line__inner {
  display: block;
  transform: translateY(110%);
  transition: transform 0.75s var(--ease-out);
}
.revealed .reveal-line__inner,
.reveal-line.revealed .reveal-line__inner {
  transform: translateY(0);
}

/* ── PAGE TRANSITION ─────────────────────────────────────── */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9998;
  transform: translateY(100%);
  pointer-events: none;
}

/* ── NOISE TEXTURE ───────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9997;
  opacity: 0.4;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  body, button, .btn, a, .work-card, .work-index-card { cursor: auto; }
  .cursor, .cursor-follower { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* Touch / no-hover devices (tablets, touch laptops): the custom cursor
   replaces the system pointer, so without a mouse there would be none. */
@media (hover: none), (pointer: coarse) {
  body, button, .btn, a, .work-card, .work-index-card { cursor: auto; }
  .cursor, .cursor-follower { display: none; }
}

/* Very small phones — keep oversized display type from clipping */
@media (max-width: 480px) {
  .display-xl { font-size: clamp(2.75rem, 13vw, 4rem); }
  .display-lg { font-size: clamp(2.25rem, 10vw, 3rem); }
  .container { padding: 0 1.25rem; }
}
