/* ============================================================
   IMAGEN — styles.css
   Dark award-style agency site. Original design system.
   ============================================================ */

:root {
  --black: #0a0a0a;
  --white: #f2f0ec;
  --gray: #4a4a4a;
  --lime: #d1fd57;
  --sans: "Space Grotesk", "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: auto; }

body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; cursor: none; }
ul { list-style: none; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------- line-mask text reveal scaffolding ---------- */
.line-mask { display: block; overflow: hidden; }
.line { display: block; will-change: transform; }
.line--indent { padding-left: 8vw; }
.line--indent-2 { padding-left: 16vw; }

.statement {
  font-size: clamp(2.5rem, 6.5vw, 5.75rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--black);
  display: flex; align-items: flex-end;
}
.preloader__inner {
  width: 100%;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 4vw;
}
.preloader__brand { font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: 0.06em; }
.preloader__brand sup { font-size: 0.5em; }
.preloader__count {
  font-size: clamp(5rem, 14vw, 12rem);
  line-height: 0.85;
  font-weight: 600;
  letter-spacing: -0.04em;
}

/* ============ CURSOR ============ */
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; border-radius: 50%; z-index: 999; }
.cursor { width: 8px; height: 8px; background: var(--lime); transform: translate(-50%, -50%); }
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(242, 240, 236, 0.8);
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), border-color 0.35s;
}
.cursor-ring.is-hover { width: 72px; height: 72px; border-color: var(--lime); }
@media (hover: none) { .cursor, .cursor-ring { display: none; } body, a { cursor: auto; } }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 1.6rem 2.4rem;
  mix-blend-mode: difference;
}
.nav__brand { font-weight: 600; letter-spacing: 0.08em; font-size: 1.15rem; }
.nav__brand sup { font-size: 0.5em; }
.nav__links { display: flex; gap: 2.2rem; }
.nav__links a { font-size: 0.95rem; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 22vh 4vw 8vh;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.hero__glyph {
  position: absolute; font-size: 3rem; font-weight: 300; opacity: 0.7; z-index: 2;
}
.hero__glyph--tl { top: 6rem; left: 2.4rem; }
.hero__glyph--br { bottom: 2rem; right: 2.4rem; }

.hero__title { position: relative; z-index: 2; }
.hero__title-line {
  font-size: clamp(4.5rem, 15vw, 14rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.hero__sub {
  position: relative; z-index: 2;
  margin-top: 2.5rem;
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  align-self: flex-end;
  text-align: left;
  max-width: 60vw;
}
.hero__sub .serif { font-size: 1.1em; }

.hero__blurb {
  position: absolute; right: 4vw; top: 24vh; z-index: 2;
  max-width: 300px;
  font-family: "Inter", sans-serif;
  font-size: 1rem; line-height: 1.6; font-weight: 300;
  color: rgba(242, 240, 236, 0.85);
}

.hero__contact {
  position: absolute; left: 2.4rem; bottom: 2rem; z-index: 2;
  display: flex; flex-direction: column; gap: 0.2rem;
  font-size: 0.95rem;
}
.hero__contact-label { opacity: 0.7; }
.hero__contact a { border-bottom: 1px solid rgba(242,240,236,0.3); width: fit-content; transition: border-color 0.3s; }
.hero__contact a:hover { border-color: var(--lime); }

.hero__scroll-hint {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); z-index: 2;
  font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.6;
  display: flex; gap: 0.6rem; align-items: center;
}
.hero__scroll-arrow { display: inline-block; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ============ MANIFESTO ============ */
.manifesto {
  min-height: 120vh;
  padding: 24vh 4vw;
  position: relative;
}
.manifesto__aside {
  max-width: 420px;
  margin: 8vh 0 0 auto;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 1.1rem; line-height: 1.65;
}
.manifesto__cta {
  display: flex; align-items: baseline; gap: 0.8rem;
  margin: 12vh 0 0 auto; width: fit-content;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}
.manifesto__cta .serif { font-size: 1.15em; }
.manifesto__cta-arrow { transition: transform 0.4s var(--ease-out); }
.manifesto__cta:hover .manifesto__cta-arrow { transform: translateX(10px); }

/* ============ FEATURED ============ */
.featured {
  padding: 14vh 4vw;
  display: grid; grid-template-columns: minmax(260px, 1fr) 2.2fr; gap: 4vw;
}
.featured__label { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 500; line-height: 1; }
/* line-masks clip at the baseline — give the italic serif room to overhang */
.featured__label .line { padding-bottom: 0.08em; }
.featured__label .serif { font-size: 1.1em; }
.featured__desc { margin-top: 3rem; font-family: "Inter", sans-serif; font-weight: 300; line-height: 1.65; max-width: 320px; }
.featured__meta { margin-top: 3rem; display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1.4rem; font-size: 0.95rem; }
.featured__meta .serif { opacity: 0.65; }
.featured__media {
  display: block;
  position: relative; overflow: hidden; border-radius: 4px;
  aspect-ratio: 16 / 10; will-change: transform;
}
.featured__visit { color: inherit; border-bottom: 2px solid var(--lime); transition: border-color 0.3s; }
.featured__visit:hover { border-color: currentColor; }
.featured__media canvas { width: 100%; height: 100%; display: block; }

/* ============ WORKS ============ */
.works { padding: 14vh 4vw; }
.works__count { font-size: 0.55em; vertical-align: super; }
.works__filters { display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; margin: 2.5rem 0 5rem; opacity: 0.7; font-size: 0.95rem; }
.works__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 5vw 4vw;
}
.work-card:nth-child(even) { transform: translateY(8vh); }
.work-card__media {
  aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden;
  transition: transform 0.7s var(--ease-out);
  will-change: transform, clip-path;
}
.work-card:hover .work-card__media { transform: scale(0.97); }
.work-card__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  display: block; transition: transform 0.7s var(--ease-out); will-change: transform;
}
.work-card:hover .work-card__media img { transform: scale(1.06); }
.work-card__info { display: flex; align-items: baseline; gap: 1rem; margin-top: 1.2rem; }
.work-card__idx { opacity: 0.5; }
.work-card__info h4 { font-size: 1.35rem; font-weight: 500; }
.work-card__info p { margin-left: auto; font-size: 0.9rem; opacity: 0.6; }
a.work-card { display: block; }
/* works sits in the white bg zone — lime as text is illegible there, so the
   accent moves to the underline and the label rides the morphed text color */
.work-card__live { color: inherit; margin-left: 0.5rem; border-bottom: 2px solid var(--lime); }

/* gradient placeholders (swap for real imagery) */
.grad-3 { background: linear-gradient(135deg, #14141c, #2c3e66, #91a8d0); }
.grad-4 { background: linear-gradient(135deg, #1a1512, #55402a, #c0a080); }
.grad-5 { background: linear-gradient(135deg, #121418, #35555e, #9fc4cc); }
.grad-6 { background: linear-gradient(135deg, #0f0f12, #3d2c4f, #a68fc0); }
.grad-7 { background: linear-gradient(160deg, #3a3a44, #6a6a80, #d8d8e8); }
.grad-8 { background: linear-gradient(160deg, #36443c, #5a7a66, #cfe8d6); }

/* ============ SERVICES ============ */
.services { padding: 18vh 4vw; }
.services__intro {
  max-width: 420px; margin-left: 8vw; margin-bottom: 10vh;
  font-family: "Inter", sans-serif; font-weight: 300; font-size: 1.05rem; line-height: 1.65;
}
.services__list { display: flex; flex-direction: column; }
.service-line {
  font-size: clamp(3rem, 8.5vw, 7.5rem);
  font-weight: 600; line-height: 1.12; letter-spacing: -0.02em;
  width: fit-content;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 240, 236, 0.65);
  transition: color 0.5s var(--ease-out);
  will-change: transform;
}
.service-line:hover { color: var(--white); }
.service-line--i1 { margin-left: 9vw; }
.service-line--i2 { margin-left: 17vw; }
.service-line--i3 { margin-left: 22vw; }

/* ============ MARQUEE ============ */
.marquee { overflow: hidden; white-space: nowrap; opacity: 0.85; }
.marquee__track { display: inline-flex; animation: marquee 22s linear infinite; }
.marquee__track span { font-size: clamp(1rem, 2vw, 1.5rem); letter-spacing: 0.14em; padding-right: 1rem; }
.marquee--big .marquee__track span { font-size: clamp(3rem, 8vw, 7rem); font-weight: 600; letter-spacing: -0.01em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SHOP ============ */
.shop { padding: 10vh 0 16vh; }
.shop .marquee { border-top: 1px solid rgba(242,240,236,0.15); border-bottom: 1px solid rgba(242,240,236,0.15); padding: 1rem 0; margin-bottom: 12vh; }
.shop__title, .shop__sub, .shop__grid { padding: 0 4vw; }
.shop__sub { margin-top: 2.5rem; max-width: 460px; font-family: "Inter", sans-serif; font-weight: 300; line-height: 1.65; }
.shop__grid {
  margin-top: 8vh;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2vw;
}
.product {
  border: 1px solid rgba(242, 240, 236, 0.18);
  border-radius: 6px;
  padding: 2.4rem 2rem 2rem;
  display: flex; flex-direction: column; gap: 1.2rem;
  min-height: 340px;
  transition: transform 0.5s var(--ease-out), border-color 0.5s, background 0.5s;
  will-change: transform;
}
.product:hover { transform: translateY(-10px); border-color: var(--lime); background: rgba(242,240,236,0.03); }
.product--featured { border-color: rgba(209, 253, 87, 0.55); }
.product__tag { opacity: 0.6; }
.product h3 { font-size: 1.7rem; font-weight: 500; }
.product p { font-family: "Inter", sans-serif; font-weight: 300; line-height: 1.6; opacity: 0.8; }
.product__price { margin-top: auto; color: var(--lime); font-size: 1.5rem; font-weight: 600; }

/* ============ FOUNDERS ============ */
.founders { padding: 8vh 4vw 16vh; }
.founders__grid {
  margin-top: 8vh;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4vw;
}
.founder { display: flex; flex-direction: column; gap: 1.4rem; }
.founder__portrait {
  aspect-ratio: 4 / 5; border-radius: 4px;
  filter: grayscale(1);
  transition: filter 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  will-change: transform;
}
.founder:hover .founder__portrait { filter: grayscale(0); transform: scale(0.98); }
.founder__info { display: flex; align-items: baseline; gap: 1.2rem; flex-wrap: wrap; }
.founder__info h3 { font-size: 1.6rem; font-weight: 500; }
.founder__info .serif { opacity: 0.6; }
.founder__link { margin-left: auto; font-size: 0.95rem; border-bottom: 1px solid rgba(242,240,236,0.3); }
.founder__arrow { display: inline-block; transition: transform 0.4s var(--ease-out); }
.founder:hover .founder__arrow { transform: translate(3px, -3px); }

/* ============ CONTACT ============ */
.contact {
  padding: 14vh 4vw 12vh;
  display: flex; flex-direction: column; align-items: center; gap: 3rem;
  text-align: center;
}
.contact .marquee { width: 100vw; margin-bottom: 4vh; }
.contact__lead { font-family: "Inter", sans-serif; font-weight: 300; font-size: 1.15rem; opacity: 0.8; }
.contact__email {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 500; letter-spacing: -0.02em;
  position: relative;
}
.contact__email::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: var(--lime);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.6s var(--ease-out);
}
.contact__email:hover::after { transform: scaleX(1); transform-origin: left; }
.contact__pill {
  border: 1px solid rgba(242,240,236,0.4);
  border-radius: 99px;
  padding: 0.9rem 2.4rem;
  font-size: 1rem;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.contact__pill:hover { background: var(--lime); color: var(--black); border-color: var(--lime); }

/* ============ FOOTER ============ */
.footer { padding: 8vh 4vw 3vh; border-top: 1px solid rgba(242,240,236,0.12); }
.footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4vw; }
.footer__brand { font-weight: 600; letter-spacing: 0.08em; font-size: 1.3rem; }
.footer__brand sup { font-size: 0.5em; }
.footer__cols p { margin-top: 0.6rem; opacity: 0.6; }
.footer__cols nav { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__cols nav a { width: fit-content; opacity: 0.8; transition: opacity 0.3s; }
.footer__cols nav a:hover { opacity: 1; }
.footer__base {
  margin-top: 8vh; display: flex; justify-content: space-between;
  font-size: 0.85rem; opacity: 0.6;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; }
  .works__grid { grid-template-columns: 1fr; }
  .work-card:nth-child(even) { transform: none; }
  .shop__grid { grid-template-columns: 1fr; }
  .founders__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding-bottom: 5vh; }
  .hero__blurb { position: static; margin-top: 3rem; max-width: 100%; }
  .hero__contact { position: static; margin-top: 2.5rem; }
  .hero__sub { max-width: 100%; align-self: flex-start; }
  .nav__links { gap: 1.2rem; flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-width: 768px) {
  .hero__canvas { opacity: 0.45; }
  .hero__scroll-hint { display: none; }
  .hero__glyph { font-size: 2rem; }
  .service-line {
    font-size: clamp(1.9rem, 10vw, 3rem);
    -webkit-text-stroke-width: 0.5px;
  }
  .service-line--i1 { margin-left: 5vw; }
  .service-line--i2 { margin-left: 9vw; }
  .service-line--i3 { margin-left: 12vw; }
  .services__intro { margin-left: 0; }
  .line--indent { padding-left: 5vw; }
  .line--indent-2 { padding-left: 10vw; }
  .featured__meta { grid-template-columns: auto 1fr; }
  .contact__email { font-size: clamp(1.2rem, 6.2vw, 5rem); }
  .nav { padding: 1.2rem 1.4rem; }
  .nav__links { gap: 1rem; }
  .nav__links a { font-size: 0.85rem; }
  .hero__contact { left: 1.4rem; }
  .hero__glyph--tl { left: 1.4rem; }
  .hero__glyph--br { right: 1.4rem; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .hero__scroll-arrow { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
