@font-face { font-family: "Juturu"; src: url("assets/fonts/Juturu-Thin.otf") format("opentype"); font-weight: 100; font-display: swap; }
@font-face { font-family: "Juturu"; src: url("assets/fonts/Juturu-Extralight.otf") format("opentype"); font-weight: 200; font-display: swap; }
@font-face { font-family: "Juturu"; src: url("assets/fonts/Juturu-Light.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Juturu"; src: url("assets/fonts/Juturu-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Juturu"; src: url("assets/fonts/Juturu-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Juturu"; src: url("assets/fonts/Juturu-Semibold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Juturu"; src: url("assets/fonts/Juturu-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Juturu"; src: url("assets/fonts/Juturu-Extrabold.otf") format("opentype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Juturu"; src: url("assets/fonts/Juturu-Black.otf") format("opentype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Nomixa"; src: url("assets/fonts/Nomixa-Italic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #4d4d4d;
  --nav-bg: #f4f4f4;
  --bg-a: #f6f6f6;
  --bg-b: #f0e1ff;
  --greeting-bg-a: #000;
  --greeting-bg-b: #def0af;

  --font-display: "Juturu", system-ui, sans-serif;
  --font-ui: "Didact Gothic", system-ui, sans-serif;
  --font-intl: "Rubik", "Noto Sans Devanagari", "Noto Sans SC", "Noto Sans JP", system-ui, sans-serif;

  /* Written every frame by main.js */
  --bg: var(--bg-a);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- Hero: a tall scroll track with a pinned stage ---------- */

.hero {
  position: relative;
  height: 280vh;
}

.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);
}

/* ---------- Navigation ---------- */

.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 65px;
  padding: 24px 32px;
  background: var(--nav-bg);
  will-change: transform, opacity;
}

/* Copy of the nav shown from the Work section onwards (added by main.js). */
.nav--floating {
  position: fixed;
  z-index: 50;
  background: rgba(244, 244, 244, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -100%, 0);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease, visibility 0s linear 0.5s;
}
.nav--floating.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease, visibility 0s;
}

.nav__logo {
  font-family: "Nomixa", var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.8px;
  white-space: nowrap;
  color: #000;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 18px;
  color: var(--ink);
  white-space: nowrap;
}

.nav__work {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 24px;
  border-radius: 100px;
  background: #000;
  color: #fff;
}

/* ---------- Image + frame ---------- */

.hero__image {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  border-radius: 21px;
  will-change: left, top, width, height;
}

.hero__image picture { display: contents; }

.hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__frame {
  position: absolute;
  z-index: 2;
  border: 4px solid #fff;
  border-radius: 16px;
  pointer-events: none;
}

/* ---------- Greeting ---------- */

.greeting {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  margin: 0;
  transform-origin: 0 0;
  will-change: transform;

  display: block;
  height: 55px;
  padding: 4px 12px;
  overflow: hidden;
  background: var(--greeting-bg-a);
  color: #fff;
  font-size: 31.62px;
  line-height: 47px;
  white-space: nowrap;
  transition: width 0.8s cubic-bezier(0.65, 0, 0.25, 1);
}

.greeting__track { display: block; position: relative; height: 47px; }

.greeting__line {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  gap: 7.906px;
}

.greeting__word { display: inline-flex; }
.greeting__word--latin { font-family: var(--font-display); font-weight: 400; }
.greeting__word--intl { font-family: var(--font-intl); font-weight: 400; }

.greeting__glyph {
  display: inline-block;
  white-space: pre;
  will-change: transform, opacity, filter;
}

/* ---------- Statement ---------- */

.statement {
  position: absolute;
  z-index: 3;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
  color: #000;
  opacity: 0;
  will-change: transform, opacity, filter;
}

/* ---------- Shared bits for the sections below the hero ---------- */

main { background: #fff; }

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.4;
  color: #222120;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 12px;
  border-radius: 100px;
  background: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  color: #000;
  white-space: nowrap;
}
.chip--muted { background: #f8f7f7; }
.chip--grey { background: #f6f6f6; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 14px;
  white-space: nowrap;
}
button.pill { border: 0; cursor: pointer; }
/* The Figma arrow points down; it is rotated to point right. */
.pill img { transform: rotate(-90deg); }
.pill--black { background: #000; color: #fff; }
.pill--green { background: #def0af; color: #000; }
.pill--blue { background: #0a77ff; color: #fff; }

/* ---------- Work ---------- */

.work {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
  min-height: 1200px;
  padding: 100px 168px;
  background: #fff;
}

.work__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.4;
  color: #000;
}

.work__body { display: flex; flex-direction: column; gap: 20px; }

.work__shot {
  align-self: flex-start;
  padding: 20px;
  border-radius: 10px;
  background: #f3f3f3;
}
.work__shot img { display: block; width: 900px; max-width: 100%; height: auto; }

.work__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

/* ---------- Case studies ---------- */

.case {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  min-height: 700px;
  padding: 100px 150px;
}
.case--lavender { background: #f0e1ff; padding-inline: 168px; }
.case--white { background: #fff; }
.case--blue { background: #eaeff7; }

.case__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 450px;
  flex-shrink: 0;
}

.case__text {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.14px;
  color: #000;
}

.case__shot {
  flex-shrink: 0;
  padding: 20px;
  border-radius: 10px;
  background: #fff;
}
.case__shot--tint { background: rgba(233, 233, 233, 0.27); }

/* Figma's export includes the mock's drop shadow, so it bleeds past the 451 × 337 slot. */
.case__mock { display: block; width: 476px; height: auto; margin: -12px; }
.case__mock--humanity { width: 481px; margin: -13.6px -15px; }

/* ---------- Opinion ---------- */

.opinion {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 888.89px;
  padding: 71.11px 266.67px;
  background: #181818;
}

.opinion__title { margin: 0; height: 101px; display: flex; align-items: center; }
.opinion__title img { display: block; }

/* Equal rows keep both article cards the same height at every width. */
.opinion__body { display: grid; grid-auto-rows: 1fr; gap: 20px; width: 746.67px; max-width: 100%; margin-top: 24px; }

/* Each article is a card; the newest (LinkedIn) one is set in the greeting green. */
.opinion__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 36px 40px;
  border-radius: 24px;
  background: #232323;
}
.opinion__tag {
  margin: 0;
  font-family: var(--font-display);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.opinion__card--green { background: var(--greeting-bg-b); }
.opinion__card--green .opinion__tag { color: rgba(0, 0, 0, 0.55); }
.opinion__card--green .opinion__text { color: #0a0a0a; }
.opinion__card--green .pill--small { background: #000; color: #fff; }

.opinion__row {
  display: flex;
  align-items: center;
  gap: 35.56px;
  width: 100%;
  min-height: 138.67px;
}

.opinion__text {
  flex: 1;
  margin: 0;
  max-width: 428px;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.38px;
  color: #fff;
}
.opinion__text span { color: #f0e1ff; }
.opinion__diagram { display: block; flex-shrink: 0; width: 124.44px; height: auto; margin-left: auto; }

.pill--small {
  height: 32px;
  gap: 7.11px;
  padding: 0 14.22px;
  background: #f0e1ff;
  color: #0a0a0a;
  font-family: var(--font-display);
  font-size: 14px;
}

/* ---------- Photo gallery ---------- */

/* The collage keeps Figma's 1280 × 925 proportions and never grows past the
   viewport height, so photos are never blown up beyond their real size. */
.gallery { background: #000; }

.gallery__frame {
  position: relative;
  width: min(100%, calc(100svh * 1280 / 925));
  aspect-ratio: 1280 / 925;
  margin: 0 auto;
  overflow: hidden;
}

/* Positions are the Figma coordinates within the 1280 × 925 frame. */
.gallery img {
  position: absolute;
  left: calc(var(--x) / 1280 * 100%);
  top: calc(var(--y) / 925 * 100%);
  width: calc(var(--w) / 1280 * 100%);
  height: calc(var(--h) / 925 * 100%);
  object-fit: cover;
}
.gallery img.bottom { object-position: bottom; }

.gallery__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
  pointer-events: none;
}
.gallery__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url("assets/img/gallery/noise.png") top left / 126px 146.1px;
  opacity: 0.3;
  pointer-events: none;
}

/* ---------- About ---------- */

.about {
  display: flex;
  align-items: center;
  gap: 100px;
  min-height: 600px;
  background: #000;
  color: #fff;
}

.about__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 669px;
  flex-shrink: 0;
  padding: 0 150px;
}

.about__text {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.14px;
  text-align: justify;
}
.about__text p { margin: 0; }

.about__meta { display: flex; flex-direction: column; gap: 32px; }
.about__group { display: flex; flex-direction: column; gap: 6px; }
.about__group--logos { gap: 4px; }

.about__label {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 12px;
  color: #a1a1a1;
}

.about__logos { display: flex; align-items: center; gap: 8px; }
.about__logos img { display: block; height: 10px; width: auto; }

.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: 12px;
}

.about__mark { display: flex; flex-direction: column; width: 362px; flex-shrink: 0; }

.about__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 93.42px;
  line-height: normal;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px #fff;
}

/* The export carries the cursor and "Karoke" tag hanging below the 32.85px toolbar; keep them out of the layout. */
.about__toolbar { display: block; width: 373px; height: auto; margin: 0 0 -35.15px -5.5px; }

/* ---------- Narrow screens ---------- */

@media (max-width: 1100px) {
  .work { min-height: 0; padding: 80px 24px; }
  .work__shot { align-self: stretch; padding: 12px; }
  .case, .case--lavender { flex-direction: column; align-items: flex-start; min-height: 0; padding: 80px 24px; gap: 40px; }
  .case__copy { width: 100%; max-width: 450px; }
  .case__shot { max-width: 100%; }
  .case__mock, .case__mock--humanity { width: calc(100% + 24px); max-width: none; }
  .opinion { min-height: 0; padding: 100px 24px; }
  .about { flex-direction: column; align-items: flex-start; gap: 56px; padding: 80px 24px; }
  .about__copy { width: 100%; max-width: 420px; padding: 0; }
}

@media (max-width: 520px) {
  .headline { font-size: 26px; }
  .headline br { display: none; }
  .opinion__row { flex-direction: column; align-items: flex-start; gap: 32px; }
  .opinion__card { padding: 28px 24px; }
  .about__mark { width: 100%; max-width: 362px; }
  .about__title { font-size: min(93.42px, 24vw); }
  .about__toolbar { width: 100%; }
}

/* Upright phones: keep the subject centred in the tall crops. */
@media (max-width: 720px) and (orientation: portrait) {
  .hero__image img { object-position: 42% 40%; }
}

/* ---------- Phone navigation: menu button + full-screen menu (nav.js) ---------- */

.menu__toggle { display: none; }

@media (max-width: 720px) {
  .nav { justify-content: space-between; gap: 0; padding: 14px 20px; }
  .nav__links { display: none; }
  .menu__toggle {
    position: relative;
    display: block;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: none;
    color: #000;
    cursor: pointer;
  }
  .menu__toggle span {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), top 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .menu__toggle span:first-child { top: 17px; }
  .menu__toggle span:last-child { top: 25px; }
  .menu__toggle.is-open span:first-child { top: 21px; transform: rotate(45deg); }
  .menu__toggle.is-open span:last-child { top: 21px; transform: rotate(-45deg); }
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: var(--nav-bg);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.menu.is-visible { opacity: 1; }
.menu[hidden] { display: none; }

.menu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.menu__links {
  margin: 0;
  padding: 24px 20px;
  list-style: none;
}
.menu__links li {
  border-bottom: 1px solid #e3e3e6;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i) * 45ms + 60ms);
}
.menu.is-visible .menu__links li { opacity: 1; transform: none; }
.menu__links a {
  display: block;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #000;
}

html.menu-open { overflow: hidden; }

/* ---------- Footer (contact) ---------- */

/* Leave room for the pinned nav when jumping to a section. */
#work, #articles, #about, #contact { scroll-margin-top: 80px; }

.footer {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 120px 150px 48px;
  border-top: 1px solid #1f1f1f;
  background: #000;
  color: #fff;
}

.footer__label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  color: #8e8e93;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links a {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.2s;
}
.footer__links a span { color: #8e8e93; transition: color 0.2s; }
.footer__links a:hover,
.footer__links a:hover span { color: #def0af; }

.footer__direct {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__direct a {
  font-family: var(--font-display);
  font-size: 20px;
  color: #c7c7cc;
  transition: color 0.2s;
}
.footer__direct a:hover { color: #def0af; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid #1f1f1f;
}
.footer__legal {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 14px;
  color: #8e8e93;
}

.footer__logo {
  margin: 0;
  font-family: "Nomixa", var(--font-display);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.8px;
  color: #8e8e93;
}

@media (max-width: 1100px) {
  .footer { padding: 96px 48px 40px; }
}

@media (max-width: 520px) {
  .footer { padding: 72px 20px 32px; gap: 24px; }
  .footer__links { flex-direction: column; }
  .footer__links a { font-size: 34px; }
  .footer__bottom { margin-top: 48px; }
  .footer__direct { flex-direction: column; }
  .footer__direct a { font-size: 18px; }
}

/* ---------- Request Demo modal ---------- */

.modal {
  width: min(440px, calc(100% - 32px));
  padding: 40px;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}
.modal::backdrop {
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal[open] { animation: modal-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f5f5f7;
  color: #1d1d1f;
  cursor: pointer;
}
.modal__close:hover { background: #ebebf0; }

.modal__form { display: flex; flex-direction: column; align-items: flex-start; }

.modal__title {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.modal__label {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  color: #6e6e73;
}

.modal__input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  background: #fff;
  font-family: var(--font-ui);
  font-size: 14px;
  color: #1d1d1f;
}
.modal__input:focus { outline: none; border-color: #0a77ff; box-shadow: 0 0 0 3px rgba(10, 119, 255, 0.15); }
.modal__input:user-invalid { border-color: #e5484d; }

.modal__submit { margin-top: 20px; height: 44px; padding: 0 24px; font-size: 15px; }
.modal__submit:disabled { opacity: 0.5; cursor: default; }

.modal__status {
  margin: 14px 0 0;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.6;
  color: #6e6e73;
}
.modal__status:empty { display: none; }

@media (max-width: 520px) {
  .modal { padding: 32px 24px; }
}

/* ---------- Phones: one button size, readable bio, photo grid ---------- */

@media (max-width: 720px) {
  /* Every button: same height (a comfortable touch target), padding and type. */
  .pill,
  .pill--small {
    height: 44px;
    gap: 10px;
    padding: 0 20px;
    font-size: 15px;
  }
  .pill img { width: 16px; height: 16px; }

  .about__text { text-align: left; }
  .about__text p + p { margin-top: 14px; }

  /* The collage becomes a two-column photo grid so each photo stays a usable size. */
  .gallery__frame {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    width: 100%;
    aspect-ratio: auto;
  }
  .gallery img {
    position: static;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 5;
  }
  .gallery img:nth-child(1) { grid-row: span 2; aspect-ratio: auto; }
  .gallery img:nth-child(6) { grid-column: span 2; aspect-ratio: 16 / 10; }
}
