/* ==========================================================================
   ANA™ One-pager
   ==========================================================================
   The page Anamitra sends with outreach messages: a quick look at the Yanta
   work. It lives in its own repository, apart from the portfolio, and is
   built on the portfolio's design system: the tokens in css/tokens.css (load
   that first), its mono tag (.cs-tag) and its two buttons, rebuilt here from
   their Webflow values.

   New here, from the design file: the "Looking for my next role" pill, the
   work mosaic and the testimonial deck (js/hello.js moves it).
   ========================================================================== */

.hello-page { margin: 0; background: var(--ds-black); }
.hello {
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  min-height: 100vh;
  background: var(--ds-black);
  color: var(--ds-white);
  font-family: var(--ds-font-primary);
}
.hello *, .hello *::before, .hello *::after { box-sizing: border-box; }
.hello :where(h1, h2, p, figure, blockquote) { margin: 0; }
.hello a { color: var(--ds-white); text-decoration: none; }

/* Same width as the portfolio's pages (.mid-body): up to 1728px, 40px from
   the edges, 20px on phones. */
.hello-wrap {
  width: 100%;
  max-width: 1728px;
  margin: 0 auto;
  padding: 0 40px;
}
.hello-section { padding-bottom: 88px; display: flex; flex-direction: column; gap: 24px; }

/* Section heading with the brand arrow, as the homepage's section labels.
   The arrow sits inline, so it follows the last word when the title wraps. */
.hello-h2 {
  font-family: var(--ds-font-display);
  font-weight: var(--ds-weight-medium);
  font-size: var(--ds-text-2xl);
  line-height: var(--ds-leading-heading);
}
.hello-h2 img { display: inline; width: 16px; height: 15px; margin-left: 2px; vertical-align: .1em; }

.hello-lead {
  font-size: var(--ds-text-base);
  line-height: var(--ds-leading-body);
  color: var(--ds-text-body);
}
.hello-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */
/* The nav button (.grad-bg + .text-block-black-bg) */
.hello-btn {
  display: inline-flex;
  padding: 2px;
  border-radius: var(--ds-radius-sm);
  background-image: var(--ds-gradient-cta);
}
.hello-btn:hover { background-image: var(--ds-gradient-cta-hover); }
.hello-btn > span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px;
  border-radius: var(--ds-radius-xs);
  background: var(--ds-black);
  font-size: var(--ds-text-sm);
  line-height: 28px;
  text-transform: uppercase;
}
.hello-btn svg { width: 16px; height: 16px; color: var(--ds-orange); }

/* Let's talk (.button-1): pill and arrow circle merge through #hello-goo;
   on hover the arrow slides out and turns to point ahead. The margin keeps
   that 1rem free, so the arrow never covers the button beside it. */
.hello-cta {
  display: inline-flex;
  margin-right: 1rem;
  white-space: nowrap;
  filter: url("#hello-goo");
}
.hello .hello-cta { color: var(--ds-black); }
.hello-cta-label {
  padding: .6rem 1.5rem .5rem;
  border-radius: 3rem;
  background: var(--ds-orange);
  font-family: var(--ds-font-secondary);
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-semibold);
  line-height: 1.5;
}
.hello-cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: -.25rem;
  border-radius: 10rem;
  background: var(--ds-orange);
  transition: transform .9s cubic-bezier(.135, .9, .15, 1);
}
.hello-cta-arrow svg { width: 1.5rem; height: 1.5rem; }
.hello-cta:hover .hello-cta-arrow,
.hello-cta:focus-visible .hello-cta-arrow { transform: translateX(1rem) rotate(45deg); }
.hello-goo { position: absolute; width: 0; height: 0; }

/* Round arrow buttons (testimonials) */
.hello-round {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ds-orange);
  border-radius: var(--ds-radius-circle);
  background: var(--ds-black);
  color: var(--ds-white);
  cursor: pointer;
  transition: background-color .2s;
}
.hello-round:hover,
.hello-round:focus-visible { background: var(--ds-orange); outline: none; }
.hello-round svg { width: 18px; height: 18px; }

/* Mono tag — the portfolio's .cs-tag (design-system/case-study.css) */
.cs-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-medium);
  letter-spacing: .5px;
  line-height: 18px;
  text-transform: uppercase;
  color: var(--ds-text-muted);
  border: 2px solid var(--ds-border-strong);
  padding: 3px 8px;
  text-decoration: none;
  white-space: nowrap;
}
.cs-tag--accent { border-color: var(--ds-orange-deep); }
a.cs-tag { transition: color .2s, border-color .2s; }
.hello a.cs-tag { color: var(--ds-text-muted); }
.hello a.cs-tag:hover { color: var(--ds-white); border-color: var(--ds-orange); }

/* ------------------------------------------------------------------
   Top: logo and buttons, then the opening
   ------------------------------------------------------------------ */
.hello-nav {
  padding-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.hello-nav img { display: block; height: 26px; width: auto; }
.hello-nav .hello-actions { gap: 12px; }

.hello-open {
  padding-top: 96px;
  padding-bottom: 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  /* 64px on small laptops, up to 128px on wide screens (about 115 at 1440) */
  column-gap: clamp(64px, 8vw, 128px);
  row-gap: 28px;
}
/* The intro's pill, title, text and button share the grid with the card, so
   the card can start level with the title (the pill sits above both). */
.hello-open-main { display: contents; }
.hello-open-main > * { grid-column: 1; min-width: 0; }
.hello-open .hello-pill { justify-self: start; }
/* The title's letters start 10px below the top of its line, so the card
   does too, to line up with them. */
.hello-companies { grid-column: 2; grid-row: 2 / span 3; margin-top: 10px; }

/* Building products at: a v25 card, its muted title in the homepage's
   section label type (.v25-h3), one logo per row, all centred. */
.hello-companies {
  /* lines at 1px and half strength, lighter than the v25 card's frame */
  --line: 1px solid color-mix(in srgb, var(--ds-border-strong) 50%, transparent);
  background: var(--ds-surface-card);
  border: var(--line);
  border-radius: var(--ds-radius-sm);
}
.hello-companies-title {
  padding: 14px 20px;
  text-align: center;
  color: var(--ds-text-muted);
  border-bottom: var(--line);
  font-size: var(--ds-text-base);
  line-height: 1.5;
}
.hello-companies ul { margin: 0; padding: 0; list-style: none; }
.hello-companies li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 20px;
}
.hello-companies li + li { border-top: var(--line); }
.hello-companies li img { display: block; max-width: 100%; height: 28px; width: auto; }
/* Featurely's logo is a taller mark with smaller letters; a little more
   height makes the two logos read the same size. */
.hello-companies li img.hello-logo-featurely { height: 36px; }
/* Toyota Mobility Foundation's logo is stacked on three lines. */
.hello-companies li img.hello-logo-tmf { height: 52px; }
.hello-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 8px 16px;
  border: 1px solid var(--ds-orange-deep);
  border-radius: var(--ds-radius-pill);
  font-size: var(--ds-text-sm);
}
.hello-pill::before { content: ""; width: 8px; height: 8px; border-radius: var(--ds-radius-circle); background: var(--ds-orange); }
.hello-title {
  max-width: 980px;
  font-family: var(--ds-font-display);
  font-weight: var(--ds-weight-medium);
  font-size: var(--ds-text-5xl);
  line-height: 1.25;
}
.hello-title em { font-style: normal; color: var(--ds-coral); }

/* ------------------------------------------------------------------
   Numbers — the v25 card
   ------------------------------------------------------------------ */
.hello-cards { display: flex; flex-wrap: wrap; gap: 20px; }
.hello-card {
  flex: 1 1 200px;
  min-width: 0;
  padding: 24px;
  background: var(--ds-surface-card);
  border: 2px solid var(--ds-border-strong);
  border-radius: var(--ds-radius-sm);
}
.hello-figure {
  font-family: var(--ds-font-display);
  font-weight: var(--ds-weight-medium);
  font-size: var(--ds-text-5xl);
  line-height: 1.1;
  color: var(--ds-coral);
}
.hello-card p + p {
  margin-top: 14px;
  font-size: var(--ds-body-size);
  line-height: var(--ds-body-leading);
  color: var(--ds-body-color);
}

/* ------------------------------------------------------------------
   Work mosaic: rows of tiles, each as wide as its proportions allow
   (flex-grow = width / height), so every row lines up at both ends.
   ------------------------------------------------------------------ */
.hello-mosaic { display: flex; flex-direction: column; gap: 12px; }
.hello-row { display: flex; align-items: flex-start; gap: 12px; }
.hello-tile {
  display: block;
  flex: var(--ratio) 1 0;
  min-width: 0;
  width: 100%;
  aspect-ratio: var(--ratio);
  overflow: hidden;
  background: var(--ds-surface-card);
  border: 2px solid var(--ds-border-strong);
  border-radius: var(--ds-radius-sm);
}
.hello-tile:focus-visible { outline: 2px solid var(--ds-orange); outline-offset: 4px; }
.hello-tile > img,
.hello-tile > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hello-tile > video { pointer-events: none; }
.hello-tile > video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }

/* Preview: the About page's Webflow lightbox (.w-lightbox), rebuilt with its
   values. A tile opens large over a 90% black backdrop that fades in over
   .3s, up to 96% of the screen (all of it on phones), with the close cross
   top right. hello.js opens and closes it. */
.hello-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .9);
  opacity: 0;
  transition: opacity .3s;
}
.hello-lightbox[hidden] { display: none; }
.hello-lightbox.is-open { opacity: 1; }
.hello-lightbox-media { display: block; width: auto; height: auto; max-width: 100vw; max-height: 100vh; }
.hello-lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 68px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 0 18 17' width='18' height='17'%3E%3Cg transform='rotate(45)'%3E%3Cpath d='m0 0h7v-7h5v7h7v5h-7v7h-5v-7h-7z' opacity='.4'/%3E%3Cpath d='m1 1h7v-7h3v7h7v3h-7v7h-3v-7h-7z' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E") center / 18px no-repeat;
  cursor: pointer;
  transition: opacity .3s;
}
.hello-noscroll { overflow: hidden; }
@media screen and (min-width: 768px) {
  .hello-lightbox-media { max-width: 96vw; max-height: 96vh; }
  .hello-lightbox-close { opacity: .8; }
  .hello-lightbox-close:hover { opacity: 1; }
}

.hello-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--ds-divider);
}
.hello-links p { margin-right: 12px; font-size: var(--ds-text-sm); line-height: 1.5; color: var(--ds-text-body); }

/* ------------------------------------------------------------------
   Testimonial deck: the cards share one grid cell (so the deck is as tall
   as the longest quote) and fan out behind the front one. hello.js sets
   each card's place in data-pos: 0 is the front, 3 the back; "out" is the
   front card leaving to the left, "hold" the same spot one layer down,
   just before it slides to the back.
   ------------------------------------------------------------------ */
.hello-deck-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.hello-deck-head > div { display: flex; gap: 10px; }
.hello-deck {
  --fan: 1;
  display: grid;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 0 76px;
}
.hello-quote {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 500px;
  padding: 40px 40px 32px;
  background: var(--ds-surface-1);
  border: 2px solid var(--ds-border-strong);
  border-radius: var(--ds-radius-lg);
  box-shadow: 0 28px 56px rgba(0, 0, 0, .65);
  transform-origin: 50% 50%;
  transition: transform .45s cubic-bezier(.45, 0, .25, 1), opacity .35s ease;
}
.hello-quote[data-pos="0"] { transform: translate(0, 0) rotate(0) scale(1); z-index: 4; }
.hello-quote[data-pos="1"] { transform: translate(calc(14px * var(--fan)), calc(10px * var(--fan))) rotate(calc(2deg * var(--fan))) scale(.97); z-index: 3; }
.hello-quote[data-pos="2"] { transform: translate(calc(28px * var(--fan)), calc(20px * var(--fan))) rotate(calc(4deg * var(--fan))) scale(.94); opacity: .9; z-index: 2; }
.hello-quote[data-pos="3"] { transform: translate(calc(42px * var(--fan)), calc(30px * var(--fan))) rotate(calc(6deg * var(--fan))) scale(.91); opacity: .75; z-index: 1; }
.hello-quote[data-pos="out"] { transform: translate(-102%, 6px) rotate(-3deg) scale(1); z-index: 5; }
.hello-quote[data-pos="hold"] { transform: translate(-102%, 6px) rotate(-3deg) scale(1); z-index: 1; }

.hello-quote-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hello-dots { display: flex; align-items: center; gap: 6px; }
.hello-dots span { width: 8px; height: 8px; border-radius: var(--ds-radius-circle); background: var(--ds-text-muted); opacity: .4; }
.hello-dots span.is-on { background: var(--ds-orange); opacity: 1; }
.hello-quote-mark {
  margin: 8px 0 -8px;
  font-family: var(--ds-font-display);
  font-size: var(--ds-text-7xl);
  line-height: 1;
  color: var(--ds-coral);
}
.hello-quote blockquote {
  font-size: var(--ds-text-md);
  line-height: 1.65;
  color: var(--ds-body-color);
}
.hello-quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; }
/* The person's photo from the case studies' team (or the Crayon page) */
.hello-avatar {
  flex: none;
  display: block;
  width: 48px;
  height: 48px;
  border-radius: var(--ds-radius-circle);
  object-fit: cover;
  background: var(--ds-border-strong);
}
.hello-person { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hello-name { font-family: var(--ds-font-display); font-weight: var(--ds-weight-medium); font-size: var(--ds-text-md); }
.hello-role { font-family: var(--ds-font-mono); font-size: var(--ds-text-xs); letter-spacing: .5px; color: var(--ds-text-muted); }

/* ------------------------------------------------------------------
   Closing
   ------------------------------------------------------------------ */
.hello-ask { border-top: 2px solid var(--ds-border-strong); background: var(--ds-surface-card); }
.hello-ask .hello-wrap { padding-top: 88px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
.hello-ask .hello-title { max-width: none; }
.hello-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--ds-divider);
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-xs);
  letter-spacing: .5px;
  color: var(--ds-text-muted);
}
.hello-foot div { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.hello .hello-foot a {
  color: var(--ds-text-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--ds-orange-deep);
}
.hello .hello-foot a:hover { color: var(--ds-coral); text-decoration-color: var(--ds-orange); }

/* ------------------------------------------------------------------
   Breakpoints (the site's set)
   ------------------------------------------------------------------ */
@media screen and (min-width: 1280px) {
  .hello-btn > span { letter-spacing: 1px; }
  .hello-btn:hover > span { background-image: linear-gradient(180deg, var(--ds-black), var(--ds-orange-darkest) 70%); }
}
@media screen and (max-width: 991px) {
  .hello-btn { padding: 3px 3px 2px 2px; }
  .hello-open { grid-template-columns: minmax(0, 1fr); }
  .hello-companies { grid-column: 1; grid-row: auto; max-width: 480px; margin-top: 20px; }
}
@media screen and (max-width: 767px) {
  .hello-wrap { padding: 0 20px; }
  .hello-btn { padding: 3px; }
  .hello-open { padding-top: 64px; padding-bottom: 72px; }
  .hello-companies li { min-height: 76px; padding: 16px; }
  .hello-companies li img { height: 24px; }
  .hello-companies li img.hello-logo-featurely { height: 30px; }
  .hello-companies li img.hello-logo-tmf { height: 44px; }
  .hello-section { padding-bottom: 72px; }
  .hello-title { font-size: var(--ds-text-xl); }
  .hello-ask .hello-title { font-size: var(--ds-text-2xl); }
  .hello-figure { font-size: var(--ds-text-3xl); }
  .hello-row { flex-direction: column; }
  .hello-tile { flex: none; }
  .hello-deck { --fan: .5; padding: 40px 0 56px; }
  .hello-quote { min-height: 0; padding: 28px 24px 24px; gap: 16px; }
  .hello-quote-mark { font-size: var(--ds-text-6xl); }
  .hello-quote blockquote { font-size: var(--ds-text-base); }
}

@media (prefers-reduced-motion: reduce) {
  .hello-quote, .hello-cta-arrow, .hello-lightbox { transition: none; }
}
