/* =========================================================
   On Wing Technical — Static Landing Page
   Matches your reference vibe:
   - bold headings
   - black services section with white cards
   - projects carousel with arrows
   - patterned contact background
   ========================================================= */

/* ---------- CSS Reset ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

/* ---------- Theme ---------- */
:root{
  --bg: #ffffff;
  --ink: #0b0b0b;
  --muted: #6a6a6a;
  --dark: #0a0a0a;
  --card: #ffffff;
  --border: rgba(255,255,255,0.18);

  --wrap: 1100px;
  --gap: 22px;

  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --head: "Archivo Black", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body{
  background: var(--bg);
  color: var(--ink);
}

/* Layout container */
.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 18px;
}

/* Typography helpers */
.mono{ font-family: var(--mono); }
.muted{ color: var(--muted); }

/* Headings like your screenshots */
.big-title{
  font-family: var(--head);
  font-size: clamp(46px, 7vw, 76px);
  line-height: 0.95;
  margin: 0 0 18px 0;
  letter-spacing: -0.02em;
}
.big-title.black{ color: var(--ink); }

.mega-center{
  font-family: var(--head);
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.02;
  margin: 0 0 10px;
  text-align: center;
}

.center-sub{
  text-align: center;
  margin: 0 0 26px;
  color: var(--muted);
}

/* Sections */
.section{ padding: 54px 0; }

/* Black services section */
.section-dark{
  background:
    radial-gradient(1000px 500px at 20% 20%, rgba(255,255,255,0.06), transparent 60%),
    radial-gradient(900px 500px at 80% 70%, rgba(255,255,255,0.05), transparent 60%),
    var(--dark);
  color: #fff;
}

/* Contact section with pattern (no image needed) */
.section-contact{
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06) 0 10%, transparent 10% 100%),
    linear-gradient(45deg, rgba(255,255,255,0.04) 0 12%, transparent 12% 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 18px, transparent 18px 44px),
    #070707;
  color: #fff;
}

/* ---------- Topbar ---------- */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 14px;
}

.logo{
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark{ font-size: 18px; line-height: 1; }

.logo-text{
  font-family: var(--head);
  letter-spacing: -0.01em;
  font-size: 16px;
}

.nav{
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav a{
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  color: #222;
}

.menu-btn{
  display: none;
  border: 1px solid rgba(0,0,0,0.2);
  background: #fff;
  padding: 8px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px;
}

/* Buttons/pills */
.pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.25);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  background: #fff;
}

.pill-light{
  background: #fff;
  color: #000;
  border: 1px solid rgba(255,255,255,0.35);
}

.pill-ghost{
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  cursor: pointer;
}

.section-dark .pill-light{ margin-top: 18px; }

/* ---------- HERO ---------- */
.hero{ padding: 26px 0 10px; }

.frame{
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 14px 60px rgba(0,0,0,0.12);
}

.frame-bar{
  height: 38px;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cfcfcf;
}

.slider{
  position: relative;
  aspect-ratio: 16 / 7; /* cinematic like the screenshots */
  background: #0c0c0c;
}

.slider-track{
  height: 100%;
  display: flex;
  transition: transform 380ms ease;
}

.slide{
  min-width: 100%;
  height: 100%;
}

.slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.72);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.slider-btn.left{ left: 16px; }
.slider-btn.right{ right: 16px; }

.hero-caption{ margin: 14px 0 0; }
.hero-caption .mono{
  margin: 0;
  font-size: 13px;
  color: #222;
}

/* ---------- SERVICES ---------- */
.cards{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 20px;
}

.svc-card{
  background: var(--card);
  color: #0b0b0b;
  border-radius: 0; /* squared cards */
  padding: 18px;
  min-height: 210px;
  box-shadow: 0 14px 50px rgba(0,0,0,0.12);
}

.svc-card h3{
  font-family: var(--head);
  font-size: 18px;
  margin: 10px 0 10px;
}

.svc-card p{
  margin: 0;
  color: #1b1b1b;
  font-size: 13px;
  line-height: 1.6;
}

.icon{ width: 34px; height: 34px; color: #0b0b0b; }
.icon svg{ width: 100%; height: 100%; }

/* ---------- PROJECTS CAROUSEL ---------- */
.carousel{ position: relative; margin-top: 18px; }

.car-track{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 26px;

  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  padding: 10px 52px; /* arrow button space */
  border-top: 4px solid #000;
  border-bottom: 4px solid #000;
}

.car-track::-webkit-scrollbar{ height: 10px; }
.car-track::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,0.18);
  border-radius: 999px;
}

.proj{ scroll-snap-align: start; margin: 0; }
.proj img{
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: #eee;
}
.proj figcaption{
  font-family: var(--head);
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.car-btn{
  position: absolute;
  top: 48%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,0.72);
  color: #fff;
  cursor: pointer;
  z-index: 5;
}
.car-btn.left{ left: 6px; }
.car-btn.right{ right: 6px; }

/* ---------- ABOUT GRID ---------- */
.about-grid{
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr 1.25fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "small large"
    "text  large";
  align-items: start;
  margin-top: 22px;
}

.about-img.small{ grid-area: small; }
.about-img.large{ grid-area: large; }
.about-text{ grid-area: text; }

.about-img img{
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.about-img.large img{ height: 520px; }

.about-text p{
  margin: 0 0 12px;
  color: #1f1f1f;
  font-size: 13px;
  line-height: 1.75;
}

.bullets{ margin: 14px 0 0; padding-left: 18px; }
.bullets li{ margin: 8px 0; }

/* ---------- VIDEO ---------- */
.video{
  margin-top: 14px;
  border: 4px solid #000;
  background: #000;
  aspect-ratio: 16 / 9;
}
.video iframe{
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- CONTACT ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  margin-top: 18px;
}

.contact-info a.pill-light{
  color: #000 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-line{ margin: 0 0 12px; font-size: 13px; }

.contact-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.contact-card{
  border: 1px solid var(--border);
  padding: 16px;
  background: rgba(0,0,0,0.22);
}

.tiny{
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

.footer{
  margin-top: 34px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 12px;
  color: rgba(255,255,255,0.72);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid{
    grid-template-columns: 1fr;
    grid-template-areas:
      "large"
      "small"
      "text";
  }
  .about-img.large img{ height: 420px; }
  .about-img img{ height: 260px; }
  .contact-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .nav{ display: none; }
  .menu-btn{ display: inline-flex; }

  .nav.is-open{
    display: flex;
    position: absolute;
    right: 18px;
    top: 64px;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.12);
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  }

  .slider{ aspect-ratio: 16/9; }
  .car-track{ padding: 10px 44px; }
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #111;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* FORCE: Email button text visible */
.contact-actions > a.pill.pill-light {
  background: #fff !important;
  color: #000 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}