/* ============================================================
   ÄNIMAZED STUDIOS — Design System
   Brand: Montserrat · Orange/Yellow + Greys · Neumorphism + Glass
   ============================================================ */

:root {
  /* Brand colors (from brand guidelines) */
  --orange: #ff9900;
  --yellow: #ffbc00;
  --orange-deep: #fc6c1e;
  --light-grey: #c9c9c9;
  --mid-grey: #8e8d8d;
  --dark-grey: #444444;

  /* Secondary accents */
  --red: #ff0021;
  --purple: #ac1cff;
  --cyan: #00fff0;

  /* Surfaces (neumorphic base) */
  --bg: #e9eaee;
  --bg-2: #eef0f3;
  --surface: #e9eaee;
  --ink: #2c2c2e;
  --ink-soft: #6c6c70;

  /* Gradients */
  --grad-accent: linear-gradient(135deg, var(--yellow), var(--orange));
  --grad-iris: linear-gradient(135deg, #ff9d4d, #ac1cff 55%, #00cfe0);

  /* Neumorphic shadows */
  --neu-out: 8px 8px 18px #c5c7cc, -8px -8px 18px #ffffff;
  --neu-out-sm: 5px 5px 12px #c8cacf, -5px -5px 12px #ffffff;
  --neu-in: inset 5px 5px 11px #c8cacf, inset -5px -5px 11px #ffffff;

  --radius: 26px;
  --radius-sm: 16px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 600px at 80% -10%, #fff5e6 0%, transparent 55%),
    radial-gradient(900px 600px at -10% 20%, #eef3fb 0%, transparent 50%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.section__title {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--dark-grey);
}
.section__head { max-width: 720px; margin-bottom: 56px; }

.grad-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: inherit; font-weight: 700; font-size: .95rem;
  padding: 14px 28px; border-radius: 100px; border: 0;
  cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s var(--ease);
  white-space: nowrap;
}
.btn--accent {
  background: var(--grad-accent); color: #3a2a00;
  box-shadow: 6px 6px 16px #d2b27a55, -4px -4px 12px #ffffff, inset 0 1px 0 #ffffff80;
}
.btn--accent:hover { transform: translateY(-3px); filter: brightness(1.04); box-shadow: 8px 10px 22px #d2a05c66, -4px -4px 12px #fff; }
.btn--ghost {
  background: var(--surface); color: var(--dark-grey);
  box-shadow: var(--neu-out-sm);
}
.btn--ghost:hover { transform: translateY(-3px); box-shadow: var(--neu-out); }
.btn--block { width: 100%; padding: 16px; }

/* ---------- Brand / Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--dark-grey); }
.brand__logo { height: 34px; width: auto; display: block; transition: filter .3s var(--ease); }
.brand--sm .brand__logo { height: 26px; }
.btn__play { font-size: .8em; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: padding .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled {
  padding: 10px 0;
  background: rgba(233, 234, 238, .72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 6px 24px rgba(80, 80, 90, .08);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__link {
  font-weight: 500; font-size: .95rem; color: var(--ink-soft);
  padding: 8px 16px; border-radius: 100px; transition: color .25s, background .25s;
}
.nav__link:hover { color: var(--dark-grey); }
.nav__link.is-active { color: var(--dark-grey); font-weight: 600; }
.nav__cta { margin-left: 10px; padding: 11px 22px; font-size: .9rem; }

/* Nav theming over the bright silver PCB plate (BG5) hero, before scroll */
.nav:not(.is-scrolled) .nav__link { color: var(--ink-soft); }
.nav:not(.is-scrolled) .nav__link:hover,
.nav:not(.is-scrolled) .nav__link.is-active { color: var(--dark-grey); }
.nav:not(.is-scrolled) .nav__cta { background: var(--grad-accent); color: #3a2a00; box-shadow: var(--neu-out-sm); }
.nav:not(.is-scrolled) .nav__cta:hover { filter: brightness(1.04); }
.nav:not(.is-scrolled) .nav__toggle { background: rgba(0,0,0,.06); box-shadow: none; }
.nav:not(.is-scrolled) .nav__toggle span { background: #2c2c2e; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: var(--surface); border: 0; cursor: pointer;
  width: 46px; height: 46px; border-radius: 14px; align-items: center; justify-content: center;
  box-shadow: var(--neu-out-sm);
}
.nav__toggle span { width: 20px; height: 2px; background: var(--dark-grey); border-radius: 2px; transition: .3s var(--ease); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 120px; overflow: hidden; background: var(--bg); color: var(--dark-grey); }
.hero__inner { position: relative; z-index: 2; }
.hero__copy { max-width: 600px; } /* text on the left; logo lockup sits on the right of BG */
.hero__title {
  font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 800;
  line-height: 1.02; letter-spacing: -.03em; color: var(--dark-grey);
  margin-bottom: 24px;
}
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft); max-width: 520px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }

.hero__stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat strong { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--dark-grey); line-height: 1; }
.stat strong span { color: var(--orange); }
.stat__label { font-size: .85rem; color: rgba(68,68,68,.72); }

/* Hero accents over the bright silver PCB plate (BG5) */
.hero .eyebrow { color: var(--orange); }
.hero .grad-text { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero .btn--accent { background: var(--grad-accent); color: #3a2a00; box-shadow: 6px 6px 16px #c5c7cc, -4px -4px 12px #ffffff, inset 0 1px 0 #ffffff80; }
.hero .btn--accent:hover { transform: translateY(-3px); filter: brightness(1.04); box-shadow: 8px 10px 22px #c0c2c7, -4px -4px 12px #fff; }
.hero .btn--ghost { background: var(--surface); color: var(--dark-grey); border: 0; box-shadow: var(--neu-out-sm); }
.hero .btn--ghost:hover { background: var(--surface); transform: translateY(-3px); box-shadow: var(--neu-out); }

/* Hero background: bright silver PCB plate with glass Änimazed mark on the right (BG5) */
.hero__bg { position: absolute; inset: 0; z-index: 1; background: #eef0f3 url("../img/hero-electronics.png") center / cover no-repeat; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(233,234,238,.95) 0%, rgba(233,234,238,.88) 30%, rgba(233,234,238,.48) 54%, rgba(233,234,238,.08) 76%, rgba(233,234,238,0) 100%),
    linear-gradient(0deg, rgba(233,234,238,.5) 0%, rgba(233,234,238,0) 26%);
}
/* Warm yellow/orange blurred glows blended over the silver plate */
.hero__glow { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero__glow::before,
.hero__glow::after { content: ""; position: absolute; border-radius: 50%; }
.hero__glow::before {
  width: 540px; height: 540px; left: -120px; top: 6%;
  background: radial-gradient(circle, rgba(255,188,0,.65) 0%, rgba(255,153,0,0) 68%);
  filter: blur(70px);
}
.hero__glow::after {
  width: 420px; height: 420px; left: 26%; bottom: -150px;
  background: radial-gradient(circle, rgba(252,108,30,.45) 0%, rgba(252,108,30,0) 70%);
  filter: blur(80px);
}

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(68,68,68,.5); border-radius: 14px;
  display: flex; justify-content: center; z-index: 2;
}
.scroll-cue span { width: 4px; height: 8px; background: var(--dark-grey); border-radius: 4px; margin-top: 7px; animation: cue 1.6s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.about__lead p { color: var(--ink-soft); font-size: 1.06rem; margin-bottom: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--orange); margin-top: 10px; transition: gap .25s var(--ease); }
.link-arrow:hover { gap: 14px; }

.about__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.neu-card {
  background: var(--surface); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--neu-out); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.neu-card:hover { transform: translateY(-6px); }
.neu-card__icon {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  font-size: 1.4rem; color: #fff; margin-bottom: 18px; box-shadow: var(--neu-out-sm);
}
.neu-card h3 { font-size: 1.12rem; font-weight: 700; color: var(--dark-grey); margin-bottom: 8px; }
.neu-card p { font-size: .94rem; color: var(--ink-soft); }

/* Gradient fills */
.grad-orange { background: linear-gradient(135deg, var(--yellow), var(--orange)); }
.grad-yellow { background: linear-gradient(135deg, #ffd166, var(--yellow)); color: #5a4200 !important; }
.grad-iris   { background: var(--grad-iris); }
.grad-cyan   { background: linear-gradient(135deg, #00cfe0, var(--purple)); }

/* ============================================================
   TEAM
   ============================================================ */
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member {
  background: var(--surface); border-radius: var(--radius); padding: 34px 26px; text-align: center;
  box-shadow: var(--neu-out); transition: transform .35s var(--ease);
}
.member:hover { transform: translateY(-6px); }
.member__avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: #fff;
  box-shadow: var(--neu-out-sm);
}
.member__name { font-size: 1.15rem; font-weight: 700; color: var(--dark-grey); }
.member__role { font-size: .85rem; font-weight: 600; color: var(--orange); margin-bottom: 12px; }
.member__bio { font-size: .9rem; color: var(--ink-soft); }

/* ============================================================
   WORKS
   ============================================================ */
.works__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.work {
  display: block; text-align: left; width: 100%; font-family: inherit;
  border: 0; padding: 0; border-radius: 18px; overflow: hidden; position: relative;
  cursor: pointer; background: #101114; aspect-ratio: 16 / 9;
  box-shadow: 0 8px 26px rgba(40,40,55,.16);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.work--lg { grid-column: span 1; }
/* gold hover ring */
.work::before {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  border-radius: inherit; border: 2px solid transparent;
  transition: border-color .4s var(--ease);
}
.work__thumb {
  position: absolute; inset: 0; display: block; overflow: hidden; background: var(--grad-iris);
}
.work__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.8);
  width: 56px; height: 56px; border-radius: 50%; z-index: 3;
  display: grid; place-items: center; color: #3a2a00; font-size: 1.1rem; padding-left: 3px;
  background: var(--grad-accent); box-shadow: 0 10px 24px rgba(0,0,0,.4);
  opacity: 0; transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.work__meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: block;
  padding: 48px 18px 16px;
  background: linear-gradient(0deg, rgba(8,9,11,.92) 0%, rgba(8,9,11,.55) 45%, rgba(8,9,11,0) 100%);
  transform: translateY(6px); transition: transform .45s var(--ease);
}
.work:hover, .work:focus-visible { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(30,30,45,.30); outline: none; }
.work:hover::before, .work:focus-visible::before { border-color: rgba(255,153,0,.85); }
.work:hover .work__thumb img, .work:focus-visible .work__thumb img { transform: scale(1.07); }
.work:hover .work__play, .work:focus-visible .work__play { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.work:hover .work__meta, .work:focus-visible .work__meta { transform: translateY(0); }
.work__tag { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.work__title { display: block; font-size: 1rem; font-weight: 700; color: #fff; margin-top: 4px; line-height: 1.3; }
.works__note { text-align: center; margin-top: 36px; font-size: .9rem; color: var(--mid-grey); }
.works__note a { color: var(--orange); font-weight: 600; }
.works__more { text-align: center; margin-top: 40px; }
.works__more .btn[hidden] { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
  background: rgba(30,28,34,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__frame { width: min(1100px, 100%); }
.lightbox__player {
  position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden;
  background: #000; box-shadow: 0 40px 100px rgba(0,0,0,.5);
  transform: translateY(14px) scale(.98); transition: transform .35s var(--ease);
}
.lightbox.is-open .lightbox__player { transform: none; }
.lightbox__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox__title { color: #fff; text-align: center; margin-top: 16px; font-weight: 600; font-size: 1rem; }
.lightbox__close {
  position: absolute; top: 20px; right: 24px; width: 46px; height: 46px; border: 0; cursor: pointer;
  border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.2rem;
  display: grid; place-items: center; transition: background .25s, transform .25s;
}
.lightbox__close:hover { background: var(--grad-accent); color: #3a2a00; transform: rotate(90deg); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  padding: 56px; border-radius: 34px;
}
.glass {
  background: linear-gradient(135deg, rgba(255,255,255,.65), rgba(255,255,255,.35));
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 30px 80px rgba(110,110,130,.18), inset 0 1px 0 rgba(255,255,255,.8);
}
.contact__text { color: var(--ink-soft); margin: 16px 0 28px; }
.contact__list { list-style: none; display: grid; gap: 16px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--dark-grey); }
.contact__list a:hover { color: var(--orange); }
.contact__ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-size: 1rem; box-shadow: var(--neu-out-sm); }
.contact__qr { display: flex; align-items: center; gap: 16px; margin-top: 30px; }
.contact__qr img { width: 92px; height: 92px; border-radius: 14px; background: #fff; padding: 6px; box-shadow: var(--neu-out-sm); }
.contact__qr span { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }

.contact__form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); padding-left: 4px; }
.field input, .field textarea {
  font-family: inherit; font-size: .98rem; color: var(--ink);
  background: var(--surface); border: 0; border-radius: 14px; padding: 14px 16px;
  box-shadow: var(--neu-in); resize: vertical; transition: box-shadow .25s;
}
.field input:focus, .field textarea:focus { outline: none; box-shadow: var(--neu-in), 0 0 0 2px var(--orange)55; }
.field input::placeholder, .field textarea::placeholder { color: #a6a6aa; }
.form__status { font-size: .9rem; font-weight: 600; min-height: 1.2em; }
.form__status.ok { color: #18a558; }
.form__status.err { color: var(--red); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 40px 0; border-top: 1px solid rgba(140,140,150,.18); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer__copy { font-size: .85rem; color: var(--mid-grey); }
.footer__links { display: flex; gap: 22px; }
.footer__links a { font-size: .88rem; color: var(--ink-soft); }
.footer__links a:hover { color: var(--orange); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .works__grid { grid-template-columns: repeat(2, 1fr); }
  .work, .work--lg { grid-column: span 1; }
  .contact__panel { grid-template-columns: 1fr; padding: 38px; }
  .glass-sphere { opacity: .5; right: -10%; }
}

@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px;
    padding: 40px; background: rgba(233,234,238,.92);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: -20px 0 60px rgba(80,80,90,.18);
    transform: translateX(100%); transition: transform .4s var(--ease);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__link { font-size: 1.1rem; }
  .nav__cta { margin-left: 0; margin-top: 8px; }
  .nav__toggle { display: flex; }
  .section { padding: 80px 0; }
  .hero__stats { gap: 28px; }
  .about__cards { grid-template-columns: 1fr; }
  /* Text spans full width on phones — lift contrast with a near-uniform light veil */
  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(233,234,238,.84) 0%, rgba(233,234,238,.66) 55%, rgba(233,234,238,.78) 100%);
  }
}

@media (max-width: 520px) {
  .team__grid, .works__grid { grid-template-columns: 1fr; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
