/* ---------------------------------------------------------
   AB Studio — portfolio
   Tokens
--------------------------------------------------------- */
:root{
  --bg: #0b0b0d;
  --surface: #15151a;
  --surface-2: #1b1b21;
  --line: #2a2a31;
  --text: #f5f4f1;
  --text-muted: #97969f;
  --accent: #e8b23d;
  --accent-dim: #ad8330;

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --max-w: 1120px;
  --edge: clamp(20px, 5vw, 64px);
}

*{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a{ color: inherit; }

h1,h2,h3{
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.01em;
}

p{ margin: 0; }

.wrap{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--edge);
}

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------------------------------------------------------
   Nav
--------------------------------------------------------- */
.site-nav{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11,11,13,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img{ width: 30px; height: 30px; }

.brand-name{
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a{
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

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

.nav-cta{
  border: 1px solid var(--line);
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--text) !important;
  font-size: 0.88rem !important;
}

.nav-cta:hover{
  border-color: var(--accent);
  color: var(--accent) !important;
}

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */
.hero{
  padding: clamp(56px, 9vw, 108px) 0 clamp(48px, 7vw, 88px);
  position: relative;
  overflow: hidden;
}

.hero .wrap{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.eyebrow{
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1{
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1.06;
  font-weight: 700;
}

.hero p.lead{
  margin-top: 22px;
  max-width: 46ch;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.hero-actions{
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #14100a;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid var(--accent);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover{ background: #f2c05a; }
.btn:active{ transform: scale(0.98); }

.link-quiet{
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.link-quiet:hover{ color: var(--text); border-color: var(--text); }

.hero-mark{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mark::before{
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(232,178,61,0.22) 0%, rgba(232,178,61,0) 70%);
  filter: blur(4px);
}

.hero-mark img{
  width: clamp(160px, 22vw, 240px);
  position: relative;
  filter: drop-shadow(0 0 34px rgba(232,178,61,0.25));
}

.hero-stats{
  margin-top: 56px;
  display: flex;
  gap: clamp(28px, 5vw, 64px);
  border-top: 1px solid var(--line);
  padding-top: 26px;
  flex-wrap: wrap;
}

.stat b{
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.stat span{
  color: var(--text-muted);
  font-size: 0.86rem;
}

/* ---------------------------------------------------------
   Services strip
--------------------------------------------------------- */
.services{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 44px 0;
}

.services .wrap{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service h3{
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.service p{
  color: var(--text-muted);
  font-size: 0.94rem;
  max-width: 32ch;
}

.service .num{
  display: block;
  color: var(--accent-dim);
  font-family: var(--font-display);
  font-size: 0.8rem;
  margin-bottom: 14px;
}

/* ---------------------------------------------------------
   Portfolio sections
--------------------------------------------------------- */
.portfolio-section{
  padding: clamp(64px, 9vw, 100px) 0;
  border-bottom: 1px solid var(--line);
}

.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-head h2{
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.section-head p{
  color: var(--text-muted);
  max-width: 42ch;
  font-size: 0.98rem;
}

.grid-logos{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.grid-oc{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover{
  border-color: #3c3c45;
  transform: translateY(-2px);
}

.card .thumb{
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background: var(--surface-2);
}

.card .thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-label{
  padding: 14px 16px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.card-label b{
  font-size: 0.94rem;
  font-weight: 600;
}

.card-label span{
  font-size: 0.78rem;
  color: var(--text-muted);
}

.grid-banners{
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.banner-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 0.15s ease;
}

.banner-card:hover{ border-color: #3c3c45; }

.banner-card .thumb{
  width: 100%;
  aspect-ratio: 3 / 1;
  background: var(--surface-2);
  overflow: hidden;
}

.banner-card .thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------
   Contact
--------------------------------------------------------- */
.contact{
  padding: clamp(72px, 10vw, 120px) 0;
  text-align: center;
}

.contact h2{
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  max-width: 18ch;
  margin: 0 auto;
}

.contact p.lead{
  margin: 18px auto 0;
  color: var(--text-muted);
  max-width: 48ch;
  font-size: 1.02rem;
}

.contact-actions{
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.email-pill{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  font-size: 0.98rem;
}

.email-pill button{
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.email-pill button:hover{ border-color: var(--accent); color: var(--accent); }

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
footer{
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

footer .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.foot-brand{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.foot-brand img{ width: 18px; height: 18px; opacity: 0.8; }

footer .foot-links{
  display: flex;
  gap: 20px;
}

footer .foot-links a{
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.86rem;
}

footer .foot-links a:hover{ color: var(--text); }

/* ---------------------------------------------------------
   Lightbox
--------------------------------------------------------- */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(6,6,7,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px var(--edge);
}

.lightbox.open{ display: flex; }

.lightbox figure{
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  text-align: center;
}

.lightbox img{
  max-width: 100%;
  max-height: 78vh;
  border-radius: 8px;
  margin: 0 auto;
}

.lightbox figcaption{
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.lightbox-close{
  position: absolute;
  top: 24px;
  right: var(--edge);
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

.lightbox-close:hover{ border-color: var(--accent); color: var(--accent); }

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 860px){
  .hero .wrap{
    grid-template-columns: 1fr;
  }
  .hero-mark{ order: -1; }
  .hero-mark img{ width: 120px; }
  .hero-mark::before{ width: 220px; height: 220px; }
  .services .wrap{ grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 680px){
  .nav-links{
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px var(--edge) 26px;
    gap: 18px;
    display: none;
  }
  .nav-links.open{ display: flex; }
  .nav-toggle{ display: block; }
  .nav-cta{ margin-top: 4px; }
}
