/* ============================================================
   TOMM GFX — main stylesheet
   Aesthetic: dark premium · Anton display + Geist body · acid yellow accent
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-elev: #131313;
  --bg-elev-2: #1a1a1a;
  --fg: #fafafa;
  --fg-dim: #a3a3a3;
  --fg-muted: #6b6b6b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #E8FF00;
  --accent-ink: #0a0a0a;

  --font-display: "Anton", "Arial Black", sans-serif;
  --font-body: "Geist", system-ui, -apple-system, sans-serif;

  --radius: 6px;
  --radius-lg: 14px;

  --maxw: 1320px;
  --maxw-wide: 1600px;

  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* Reset */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-weight: 400;
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Layout helpers */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.container--wide { max-width: var(--maxw-wide); }
.section { padding: 120px 0; position: relative; }
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__inner { display: flex; gap: 10px; }
.preloader__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  animation: bounce 1.2s infinite var(--ease);
}
.preloader__dot:nth-child(2) { animation-delay: .15s; }
.preloader__dot:nth-child(3) { animation-delay: .3s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.4); opacity: .4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease), backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.nav__container {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav__logo { display: inline-flex; align-items: baseline; gap: 6px; }
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.nav__logo-badge {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 3px 6px;
  border-radius: 3px;
  letter-spacing: 0.08em;
}
.nav__links {
  display: flex; gap: 36px;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em;
}
.nav__links a {
  position: relative;
  color: var(--fg-dim);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--fg); }
.nav__links a::after {
  content: ""; position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
  font-size: 13px; font-weight: 500;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: all 0.2s;
}
.nav__cta:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.nav__burger { display: none; width: 32px; height: 32px; flex-direction: column; gap: 5px; justify-content: center; align-items: center; }
.nav__burger span { width: 22px; height: 1.5px; background: var(--fg); transition: 0.3s; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__links {
    position: fixed; top: 0; right: 0;
    width: 80%; max-width: 340px; height: 100vh;
    background: var(--bg-elev);
    flex-direction: column; justify-content: center;
    gap: 32px; font-size: 22px;
    padding: 60px 40px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    border-left: 1px solid var(--line);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__cta { display: none; }
  .nav__burger { display: flex; z-index: 10; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 140px 28px 80px;
}
.hero__video-wrap {
  position: absolute; inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) contrast(1.05) brightness(0.55);
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(10,10,10,0.55) 65%, var(--bg) 100%),
    linear-gradient(to bottom, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.2) 30%, rgba(10,10,10,0.85) 100%);
}
.hero__grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero__content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 1100px;
  display: flex; flex-direction: column; align-items: center;
  gap: 28px;
}
.hero__tagline-top {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-dim);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.3s forwards;
}
.hero__name {
  display: flex; align-items: center; justify-content: center;
  gap: 22px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.5s forwards;
}
.hero__name-text {
  font-family: var(--font-display);
  font-size: clamp(80px, 18vw, 260px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero__badge {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 16px;
  border-radius: 6px;
  line-height: 1;
  letter-spacing: 0;
  align-self: flex-end;
  margin-bottom: 18px;
  transform: rotate(-4deg);
  box-shadow: 0 8px 32px rgba(232, 255, 0, 0.15);
}
.hero__badge--right { transform: rotate(4deg); }

.hero__tagline-bottom {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--fg-dim);
  max-width: 620px;
  line-height: 1.55;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.7s forwards;
}
.hero__ctas {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin-top: 12px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.9s forwards;
}

.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border: 1px solid var(--line-strong); border-radius: 14px;
  z-index: 2;
  display: grid; place-items: start center;
  padding-top: 8px;
}
.hero__scroll span {
  width: 2px; height: 8px; background: var(--accent);
  border-radius: 1px;
  animation: scrollIndicator 1.6s infinite var(--ease);
}
@keyframes scrollIndicator {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(14px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .hero__name { gap: 10px; }
  .hero__badge { padding: 5px 9px; margin-bottom: 8px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  padding: 14px 26px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn--large { padding: 18px 32px; font-size: 15px; }
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(232,255,0,0.25); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   SECTION HEAD (shared)
   ============================================================ */
.section__head {
  margin-bottom: 64px;
  max-width: 760px;
}
.section__kicker {
  display: inline-block;
  font-size: 12px; font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-left: 14px;
  position: relative;
}
.section__kicker::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 8px; height: 1px; background: var(--accent);
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.section__subtitle {
  font-size: 17px;
  color: var(--fg-dim);
  margin-top: 18px;
  max-width: 560px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--bg); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-card {
  background: var(--bg);
  padding: 36px 28px;
  display: flex; flex-direction: column;
  gap: 14px;
  min-height: 240px;
  transition: background 0.3s var(--ease);
  position: relative;
}
.service-card:hover { background: var(--bg-elev); }
.service-card__num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.service-card__title {
  font-family: var(--font-display);
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
}
.service-card__desc {
  font-size: 14.5px;
  color: var(--fg-dim);
  line-height: 1.55;
  margin-top: auto;
}

@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MARQUEE (kakao-style scrolling banner)
   ============================================================ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 28px 0;
  background: var(--bg);
}
.marquee__track {
  display: flex; gap: 60px;
  animation: marquee 38s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 60px;
}
.marquee__item::after {
  content: "●";
  color: var(--accent);
  font-size: 0.4em;
  margin-left: 10px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   WORK / PORTFOLIO
   ============================================================ */
.work { background: var(--bg); }
.work__filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  font-size: 13px; font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--fg-dim);
  letter-spacing: 0.02em;
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--fg); border-color: var(--fg-dim); }
.filter-btn.active {
  background: var(--accent); color: var(--accent-ink);
  border-color: var(--accent); font-weight: 600;
}
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project-card {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-elev);
  transition: transform 0.5s var(--ease-out);
}
.project-card:hover { transform: translateY(-4px); }
.project-card__thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.4s;
  filter: brightness(0.85);
}
.project-card:hover .project-card__thumb {
  transform: scale(1.06);
  filter: brightness(1);
}
.project-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px;
  opacity: 0; transition: opacity 0.4s;
}
.project-card:hover .project-card__overlay { opacity: 1; }
.project-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 6px;
}
.project-card__client {
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.project-card__play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 70px; height: 70px;
  background: var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
  opacity: 0; transition: all 0.4s var(--ease-out);
}
.project-card:hover .project-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.project-card__play::after {
  content: ""; display: block;
  width: 0; height: 0;
  border-left: 18px solid var(--accent-ink);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}

@media (max-width: 980px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .work__grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ============================================================
   CLIENTS CAROUSEL
   ============================================================ */
.clients { background: var(--bg); padding-bottom: 80px; }
.clients__marquee {
  overflow: hidden;
  padding: 20px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.clients__track {
  display: flex; gap: 40px;
  animation: marquee 50s linear infinite;
  width: max-content;
}
.client-card {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  transition: all 0.3s;
}
.client-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.client-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-elev-2);
  object-fit: cover;
  border: 1px solid var(--line);
}
.client-card__info { display: flex; flex-direction: column; gap: 2px; }
.client-card__name { font-size: 14px; font-weight: 600; }
.client-card__subs { font-size: 12px; color: var(--fg-dim); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 140px 0;
}
.contact__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.contact__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 120px);
  line-height: 0.92;
  text-transform: uppercase;
  margin: 16px 0 18px;
}
.contact__subtitle {
  font-size: 17px; color: var(--fg-dim);
  margin-bottom: 50px;
  max-width: 500px; margin-left: auto; margin-right: auto;
}

.contact__form {
  display: flex; flex-direction: column;
  gap: 18px;
  text-align: left;
  margin-bottom: 36px;
}
.contact__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
@media (max-width: 600px) { .contact__row { grid-template-columns: 1fr; } }
.contact__field { display: flex; flex-direction: column; gap: 8px; }
.contact__field span {
  font-size: 12px; font-weight: 500;
  color: var(--fg-dim); letter-spacing: 0.08em; text-transform: uppercase;
}
.contact__field input, .contact__field textarea {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--fg);
  transition: border-color 0.2s;
  font-family: var(--font-body);
  resize: vertical;
}
.contact__field input:focus, .contact__field textarea:focus {
  outline: none; border-color: var(--accent);
}
.contact__form .btn { align-self: center; margin-top: 6px; }
.contact__status {
  text-align: center;
  font-size: 14px;
  min-height: 20px;
  margin-top: 8px;
}
.contact__status.success { color: var(--accent); }
.contact__status.error { color: #ff5470; }

.contact__alt {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.contact__alt-link {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 28px;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.contact__alt-link:hover { background: var(--bg-elev); }
.contact__alt-label {
  font-size: 11px; color: var(--fg-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.contact__alt-value {
  font-size: 16px; font-weight: 500; color: var(--fg);
}

/* ============================================================
   WHATSAPP FAB
   ============================================================ */
.whatsapp-fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 8px 30px rgba(37,211,102,0.45);
  z-index: 90;
  transition: transform 0.25s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 28px; height: 28px; }
.whatsapp-fab.hidden { opacity: 0; pointer-events: none; transform: translateY(20px); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: 28px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__close {
  position: absolute; top: 24px; right: 28px;
  width: 44px; height: 44px;
  font-size: 32px; color: var(--fg);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: all 0.2s;
}
.lightbox__close:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lightbox__inner {
  width: 100%; max-width: 1200px;
  aspect-ratio: 16/9;
  position: relative;
}
.lightbox__player { width: 100%; height: 100%; border-radius: var(--radius-lg); overflow: hidden; }
.lightbox__player iframe, .lightbox__player video {
  width: 100%; height: 100%; border: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
}
.footer__inner {
  display: grid; gap: 40px;
  grid-template-columns: 1.5fr 1fr 1fr;
  align-items: start;
}
@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 28px; letter-spacing: 0.02em;
}
.footer__logo span {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  background: var(--accent); color: var(--accent-ink);
  padding: 3px 6px; border-radius: 3px;
  margin-left: 6px; vertical-align: middle;
}
.footer__tag {
  margin-top: 12px;
  font-size: 14px; color: var(--fg-dim);
  max-width: 320px;
}
.footer__nav {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
}
.footer__nav a { color: var(--fg-dim); transition: color 0.2s; }
.footer__nav a:hover { color: var(--accent); }
.footer__social { display: flex; gap: 12px; flex-wrap: wrap; }
.footer__social a {
  width: 38px; height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; color: var(--fg-dim);
  text-transform: uppercase; font-weight: 600;
  transition: all 0.2s;
}
.footer__social a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.footer__copy {
  grid-column: 1 / -1;
  font-size: 12px; color: var(--fg-muted);
  padding-top: 30px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

/* ============================================================
   REVEAL ANIMATIONS (Intersection Observer)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.project-card.reveal { transition-delay: calc(var(--i, 0) * 60ms); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .marquee__track, .clients__track { animation: none; }
}
