/* ==========================================================================
   KAYANTARAN – home.css
   Styles used only by index.html. Shared components live in site.css.

   .hero        opening composition: text, arch photograph, inset render
   .name        the large statement about the studio's name
   .work        asymmetric project grid
   .compare     before/after band
   .services    "What we do" heading + process list
   .think       "How we think": photographs + principles list
   .clients     staggered testimonials
   ========================================================================== */


/* HERO ===================================================================== */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(1.25rem, 3vw, 2.5rem));
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
.hero__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: clamp(2.75rem, 8vw, 4rem);
}
.hero__text,
.hero__visual,
.hero__foot { grid-column: 1 / -1; min-width: 0; }

.hero__eyebrow {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  font-size: min(var(--fs-eyebrow), 2.85vw);
  letter-spacing: .13em;
  white-space: nowrap;
}
.hero__title { font-size: clamp(3.75rem, 18.5vw, 7.5rem); line-height: .9; }
.hero__lead { margin-top: clamp(1.5rem, 3vw, 2.25rem); max-width: 33rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.hero__actions .btn { flex: 1 1 12rem; }

/* Arch photograph with a smaller render tucked against its lower edge. */
.hero__visual {
  position: relative;
  justify-self: end;
  width: min(100%, 32rem);
  padding-left: 16%;
  padding-bottom: 2rem;
}
.hero__main { position: relative; isolation: isolate; margin: 0; }
.hero__main::before {
  content: "";
  position: absolute;
  top: -.875rem;
  right: -.875rem;
  left: .875rem;
  z-index: -1;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--hairline-gold);
  border-radius: 999rem 999rem 0 0;
  animation: enter-rise 1.4s var(--ease-out) .5s both;
}
.hero__main .caption { padding-left: 36%; text-align: right; }
.hero__inset {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 42%;
  margin: 0;
}
.hero__inset .media { --ratio: 2 / 1; box-shadow: 0 0 0 6px var(--bg); }
.hero__inset img { object-position: 50% 100%; }
.hero__inset .caption { white-space: nowrap; }

.hero__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
/* Kept on one line at every width, like the eyebrow above the title. */
.hero__meta {
  font-size: min(var(--fs-eyebrow), 2.85vw);
  letter-spacing: .13em;
  white-space: nowrap;
}
.hero__scroll {
  display: none;
  align-items: center;
  gap: 1rem;
  color: var(--fg-soft);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .3s var(--ease);
}
.hero__scroll:hover { color: var(--fg); }
.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 3.25rem;
  overflow: hidden;
  background: var(--hairline-strong);
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--terracotta);
  transform: translateY(-101%);
  animation: scroll-cue 2.8s var(--ease) 1.4s infinite;
}
@keyframes scroll-cue {
  0% { transform: translateY(-101%); }
  55%, 100% { transform: translateY(101%); }
}

@media (min-width: 480px) {
  .hero__eyebrow,
  .hero__meta { font-size: var(--fs-eyebrow); letter-spacing: .22em; }
  .hero__actions .btn { flex: 0 0 auto; }
}
@media (min-width: 900px) {
  .hero__inner {
    grid-template-rows: 1fr auto;
    row-gap: 2rem;
    align-items: center;
    min-height: min(calc(100svh - var(--header-h) - 7rem), 58rem);
  }
  .hero__text { grid-column: 1 / span 7; grid-row: 1; }
  .hero__title { font-size: clamp(3.75rem, min(10.4vw, 16svh), 9.75rem); }
  .hero__lead { max-width: min(33rem, 86%); }
  .hero__visual {
    grid-column: 8 / -1;
    grid-row: 1 / span 2;
    width: min(100%, max(23rem, calc((100svh - var(--header-h) - 11.5rem) * .75)));
    padding-left: 0;
  }
  .hero__main .caption { padding-left: 48%; }
  .hero__inset { left: -6%; width: 50%; }
  .hero__foot { grid-column: 1 / span 7; grid-row: 2; align-self: end; justify-content: flex-start; gap: 3rem; }
  .hero__scroll { display: inline-flex; }
}
@media (min-width: 900px) and (max-width: 1023.98px) {
  .hero__foot { gap: 2rem; }
  .hero__meta { letter-spacing: .14em; }
}
@media (min-width: 1200px) {
  .hero__main .caption { padding-left: 24%; }
  .hero__inset { left: -36%; width: 54%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-line::after { animation: none; transform: none; opacity: .5; }
}


/* THE NAME ================================================================= */

.name { padding-top: clamp(3rem, 7vw, 6rem); }
.name__statement {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.15rem + 2.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -.01em;
  text-wrap: pretty;
}
.name__statement em { font-style: italic; color: var(--accent); }
@media (min-width: 900px) {
  .name .eyebrow { padding-top: 1.1rem; }
}


/* SELECTED WORK ============================================================ */

.work__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: clamp(3rem, 8vw, 6.5rem);
}
/* a: the feature, a 5:4 photograph. b: a 16:9 render. c: an arch portrait.
   d: a 4:3 frame. Stacked on a phone, with the arch set narrower to the
   right; a, then b, then c beside d on a tablet; two rows of two on a desktop. */
.work__item { grid-column: 1 / -1; min-width: 0; }
.work__item--c { width: min(100%, 24rem); justify-self: end; }
.work__item .project-card__title { text-wrap: balance; }
.work__more { display: flex; justify-content: flex-end; margin-top: clamp(3rem, 7vw, 5.5rem); }

@media (min-width: 720px) {
  .work__item--a { grid-column: 1 / span 10; }
  .work__item--b { grid-column: 5 / -1; }
  .work__item--c { grid-column: 1 / span 5; width: auto; justify-self: stretch; }
  .work__item--d { grid-column: 7 / -1; align-self: end; }
}
@media (min-width: 1024px) {
  .work__item--a { grid-column: 1 / span 7; grid-row: 1; }
  .work__item--b { grid-column: 8 / -1; grid-row: 1; align-self: end; }
  .work__item--c { grid-column: 2 / span 4; grid-row: 2; align-self: start; }
  .work__item--d { grid-column: 7 / -1; grid-row: 2; align-self: start; margin-top: clamp(4rem, 8vw, 8rem); }
}


/* BEFORE AND AFTER ========================================================= */

.compare__head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.compare__head .eyebrow { margin-bottom: 1.5rem; }
.compare__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  margin-top: 1.5rem;
}
.compare__foot .caption { max-width: 34rem; margin-top: 0; }


/* WHAT WE DO =============================================================== */

@media (min-width: 900px) {
  .services__title { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}


/* HOW WE THINK ============================================================= */

.think__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: clamp(3rem, 8vw, 4.5rem);
  align-items: start;
}
.think__title,
.think__media,
.principles { grid-column: 1 / -1; min-width: 0; }
.think__media { position: relative; width: min(100%, 30rem); padding-bottom: 2.5rem; }
.think__photo { margin: 0; }
.think__photo--a { width: 74%; }
.think__photo--b {
  position: absolute;
  right: 0;
  bottom: 5.25rem;
  width: 48%;
  box-shadow: 0 0 0 6px var(--bg);
}
.think__media .caption { position: absolute; left: 0; bottom: 0; margin: 0; }

.principles { border-top: 1px solid var(--hairline-strong); }
.principle {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .5rem var(--grid-gap);
  padding-block: clamp(1.5rem, 2.6vw, 2.1rem);
  border-bottom: 1px solid var(--hairline);
}
.principle__title {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1.35rem + .9vw, 2.125rem);
  font-weight: 400;
  line-height: 1.12;
}
.principle p { color: var(--fg-soft); }

@media (min-width: 600px) {
  .principle { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; }
}
@media (min-width: 900px) {
  .think__inner { grid-template-rows: auto 1fr; row-gap: clamp(2rem, 4vw, 3.5rem); }
  .think__title { grid-column: 7 / -1; grid-row: 1; }
  .think__media { grid-column: 1 / span 5; grid-row: 1 / span 2; width: auto; position: sticky; top: calc(var(--header-h) + 1.5rem); }
  .principles { grid-column: 7 / -1; grid-row: 2; }
}


/* NUMBERS ================================================================== */

.numbers { padding-block: clamp(3.5rem, 7vw, 6.5rem) 0; }


/* CLIENTS ================================================================== */

.clients__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 3.5rem) var(--grid-gap);
}
.clients__grid > * { grid-column: 1 / -1; max-width: 36rem; }
@media (min-width: 900px) {
  .clients__grid > * { grid-column: span 4; max-width: none; }
  .clients__grid > :nth-child(2) { margin-top: clamp(3rem, 5vw, 5rem); }
  .clients__grid > :nth-child(3) { margin-top: clamp(6rem, 10vw, 10rem); }
}
