/* ============================================================
   The Glossy Studio — tokens
   ============================================================ */
:root {
  --cream: #f8f5ef;
  --cream-2: #f1ece2;
  --logo-beige: #e4d9c9;
  --ink: #1b2a22;
  --ink-soft: #5c675e;
  --green: #4b6c52;
  --green-deep: #33503a;
  --green-pale: #dbe6d9;
  --green-pale-2: #c9d8c6;
  --line: rgba(27, 42, 34, 0.12);
  --line-strong: rgba(27, 42, 34, 0.22);

  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", "Inter", sans-serif;

  --container: 1360px;
  --edge: clamp(24px, 5vw, 64px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }
::selection { background: var(--green-pale-2); color: var(--ink); }

:focus-visible {
  outline: 1.5px solid var(--green);
  outline-offset: 4px;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--green);
  pointer-events: none;
  z-index: 300;
  opacity: 0;
  transform: translate(-100px, -100px);
  transition: opacity 0.3s;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-dot.active { opacity: 1; }
}

.progress-rail {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  z-index: 250;
  background: transparent;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--green);
}

/* ============================================================
   Type scale
   ============================================================ */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
}

/* highlighter mark — the studio's signature: a swipe of colour behind key words */
em {
  font-style: italic;
  font-family: var(--font-display);
}
.mark {
  --mark-scale: 0;
  position: relative;
  display: inline;
  isolation: isolate;
}
.mark::before {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  bottom: 0.08em;
  height: 0.34em;
  background: var(--green-pale-2);
  z-index: -1;
  border-radius: 2px;
  transform-origin: left center;
  transform: scaleX(var(--mark-scale));
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
}
.btn--primary {
  background: var(--green);
  color: var(--cream);
  transition: background 0.35s var(--ease-out);
}
.btn--primary:hover { background: var(--green-deep); }

/* ============================================================
   Gloss hover sheen — softened for light backgrounds
   ============================================================ */
.gloss-hover {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.gloss-hover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,0.55) 50%, transparent 60%);
  transform: translateX(-140%) skewX(-12deg);
  transition: transform 0.7s var(--ease-out);
  pointer-events: none;
  z-index: 2;
}
@media (hover: hover) and (pointer: fine) {
  .gloss-hover:hover::after { transform: translateX(140%) skewX(-12deg); }
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--edge);
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(248, 245, 239, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__mark { display: flex; align-items: center; }
.nav__mark-img { height: 26px; width: auto; display: block; }

.nav__links { display: flex; gap: 36px; }
.nav__link {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.3s;
}
.nav__link span { position: relative; }
.nav__link span::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover span::after { transform: scaleX(1); }

.nav__cta {
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--green);
  color: var(--cream);
  transition: background 0.35s var(--ease-out);
}
.nav__cta:hover { background: var(--green-deep); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__burger span {
  width: 20px; height: 1px;
  background: var(--ink);
  transition: transform 0.3s, opacity 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(-3px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 0 var(--edge);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-out);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  color: var(--ink);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding: 150px var(--edge) 80px;
}

.hero__text { max-width: 620px; }

.hero__title {
  margin-top: 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line__inner { display: inline-block; will-change: transform; }
.hero__title em { font-style: italic; }

.hero__sub {
  margin-top: 28px;
  max-width: 460px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero__ctas {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero__visual { position: relative; }
.hero__frame {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 40px 80px -30px rgba(27, 42, 34, 0.25);
}
.hero__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.1);
}
.hero__chip {
  position: absolute;
  left: -20px;
  bottom: 32px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  font-weight: 500;
  padding: 14px 22px;
  border-radius: 100px;
  box-shadow: 0 20px 40px -16px rgba(27, 42, 34, 0.4);
  max-width: 220px;
}

/* ============================================================
   Marquee
   ============================================================ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  will-change: transform;
}
.marquee__track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0 20px;
}
.marquee__sep {
  color: var(--green);
  font-size: 16px !important;
  font-style: normal !important;
}

/* ============================================================
   Manifesto
   ============================================================ */
.manifesto {
  padding: 150px var(--edge);
  max-width: var(--container);
  margin: 0 auto;
}
.manifesto__inner { max-width: 980px; }
.manifesto__text {
  display: block;
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.32;
  letter-spacing: -0.01em;
}
.reveal-word { display: inline-block; }
.manifesto__text .dim { color: var(--ink-soft); }

.manifesto__row {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.manifesto__note {
  max-width: 480px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ============================================================
   Capabilities
   ============================================================ */
.capabilities {
  padding: 100px var(--edge) 150px;
  max-width: var(--container);
  margin: 0 auto;
}
.capabilities__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 56px;
}

.cap-row {
  display: grid;
  grid-template-columns: 110px 1fr 1fr 40px;
  align-items: center;
  gap: 24px;
  padding: 30px 20px;
  border-top: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease-out), background 0.4s var(--ease-out);
}
.cap-list .cap-row:last-child { border-bottom: 1px solid var(--line); }
.cap-row:hover { padding-left: 32px; background: var(--cream-2); }

.cap-row__index {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}
.cap-row__name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 500;
}
.cap-row__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.cap-row__arrow {
  justify-self: end;
  font-size: 18px;
  color: var(--ink-soft);
  transform: rotate(-45deg);
  transition: transform 0.4s var(--ease-out), color 0.4s;
}
.cap-row:hover .cap-row__arrow { transform: rotate(0deg); color: var(--ink); }

/* ============================================================
   Work
   ============================================================ */
.work {
  padding: 100px var(--edge) 140px;
  max-width: var(--container);
  margin: 0 auto;
}
.work__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.work__head .section-title { text-align: right; }

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

.work-card__link { display: block; }
.work-card__frame {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 3 / 4;
  background: var(--cream-2);
  isolation: isolate;
}
.work-card__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}
.work-card__sheen {
  position: absolute;
  inset: -10% -10%;
  background: linear-gradient(100deg, transparent 42%, rgba(255,255,255,0.55) 50%, transparent 58%);
  transform: translateX(-140%) skewX(-12deg);
  pointer-events: none;
  z-index: 2;
}
@media (hover: hover) and (pointer: fine) {
  .work-card:hover .work-card__sheen { transform: translateX(140%) skewX(-12deg); transition: transform 0.9s var(--ease-out); }
  .work-card:hover .work-card__frame img { transform: scale(1.14); }
  .work-card__frame img { transition: transform 0.6s var(--ease-out); }
}

.work-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.work-card__meta h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
}
.work-card__meta p {
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* ============================================================
   Atmosphere (signature statement section)
   ============================================================ */
.atmosphere {
  position: relative;
  background: var(--green-pale);
  padding: 140px var(--edge);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.atmosphere__leaf {
  position: absolute;
  top: 50%; left: 0;
  width: 42%;
  max-width: 520px;
  aspect-ratio: 3 / 4;
  transform: translateY(-50%) translateX(-18%);
  border-radius: 24px;
  overflow: hidden;
  opacity: 0.9;
}
.atmosphere__leaf img {
  width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}
.atmosphere__inner { position: relative; z-index: 1; text-align: center; }
.atmosphere__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 6vw, 84px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.atmosphere__text em { font-style: italic; }

/* ============================================================
   Contact
   ============================================================ */
.contact {
  padding: 170px var(--edge) 120px;
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact__title {
  margin-top: 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 74px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.contact__title em { font-style: italic; }
.contact__email {
  display: inline-block;
  margin-top: 48px;
  padding: 8px 4px;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
}

.contact__row {
  margin-top: 96px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.contact__block { display: flex; flex-direction: column; gap: 8px; }
.contact__label {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact__value { font-size: 14.5px; font-weight: 500; }
.contact__socials { display: flex; gap: 20px; }
.contact__socials .text-link { border-bottom: 1px solid var(--line-strong); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 28px var(--edge) 34px;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
}
.footer__mark {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
}
.footer__back { font-size: 13px; color: var(--ink-soft); padding: 6px 4px; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-soft);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   Reveal base states (GSAP animates from these)
   ============================================================ */
.reveal-up { opacity: 0; transform: translateY(24px); }
.reveal-card { opacity: 0; transform: translateY(40px); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .hero { grid-template-columns: 1fr; padding-top: 130px; }
  .hero__text { max-width: 100%; }
  .hero__visual { order: -1; max-width: 420px; margin: 0 auto 8px; }
  .hero__chip { left: 16px; bottom: -20px; }

  .manifesto, .capabilities, .work { padding-left: var(--edge); padding-right: var(--edge); }
  .manifesto { padding-top: 110px; padding-bottom: 110px; }

  .cap-row { grid-template-columns: 1fr auto; grid-template-areas: "index arrow" "name name" "desc desc"; row-gap: 8px; }
  .cap-row__index { grid-area: index; }
  .cap-row__arrow { grid-area: arrow; }
  .cap-row__name { grid-area: name; }
  .cap-row__desc { grid-area: desc; }

  .work__head { flex-direction: column; align-items: flex-start; }
  .work__head .section-title { text-align: left; }
  .work-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

  .atmosphere__leaf { display: none; }

  .contact__row { grid-template-columns: 1fr; gap: 28px; }
  .contact { padding-top: 140px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-up, .reveal-card, .reveal-word { opacity: 1 !important; transform: none !important; }
  .hero__title .line__inner { transform: none !important; }
  .mark::before { transform: scaleX(1) !important; }
  .gloss-hover::after { display: none; }
}
