/* =========================================================================
   Akhil Ranjith — page layout & composition.
   Foundation files (tokens, base, components) from design-system/ are
   linked BEFORE this file. This file owns page-specific layout only.
   ========================================================================= */

/* ---------- Header (chrome positioning) ---------- */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad);
  min-height: var(--header-h);
}

/* ---------- Page shell ---------- */
.page {
  position: relative;
  z-index: 1;
  padding: var(--header-h) var(--pad) 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page > .content {
  flex: 1;
  display: flex;
  align-items: center;
}

/* ---------- HOME ---------- */
.home .content {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  gap: 0;
  width: 100%;
}
.home .star {
  display: flex;
  justify-content: center;
  align-items: center;
}
.home .star img {
  width: min(62vw, 890px);
  height: auto;
  max-width: 100%;
}
.home .hero-text {
  min-width: 0;
}
.home .hero-text .headline {
  font-size: var(--fs-display);
}
.home .hero-buttons {
  display: flex;
  gap: 32px;
  margin-top: 44px;
  flex-wrap: wrap;
}
/* uniform button width so Design / Art read as a matched pair */
.home .hero-buttons .btn-line {
  min-width: 160px;
}

/* ---------- SUBPAGE (design / art) ---------- */
.split .content {
  width: 100%;
  position: relative;
  align-items: center;
}
.split .col-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.split .headline {
  font-size: clamp(2.2rem, 5.6vw, 5rem);
}
.design .headline {
  font-size: clamp(2rem, 4.6vw, 5.25rem);
}
.split .col-text .sub-text {
  margin-top: 22px;
  max-width: none;
}
.split .industries {
  font-family: var(--ff-head);
  color: var(--white);
  font-weight: var(--fw-light);
  font-size: var(--fs-body-lg);
  line-height: 1.4;
  margin-top: 18px;
  max-width: 660px;
}
.split .lead {
  margin-top: 34px;
  max-width: 100%;
}
.split .btn-line {
  margin-top: 40px;
  align-self: flex-start;
}

/* collaborator logos (art) */
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  margin-top: 22px;
}
.logos img {
  height: 80px;
  width: auto;
  object-fit: contain;
}
.logos .india {
  height: 77px;
}
.logos .ey {
  height: 68px;
}

/* DESIGN: text + absolute full-height image flush to the right edge */
.design .col-text {
  flex: 0 1 auto;
  width: 100%;
  max-width: min(720px, calc(54vw - 90px));
}
.design .media {
  position: absolute;
  top: 0;
  bottom: 0;
  right: calc(-1 * var(--pad));
  width: 46vw;
}
.design .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ART: text + decorative bordered box */
.art .content {
  gap: clamp(32px, 4vw, 72px);
}
.art .col-text {
  flex: 1 1 0;
  max-width: 760px;
}
.art .media {
  flex: 0 0 auto;
  width: min(528px, 42vw);
  height: min(651px, 72vh);
}
.art .media .frame {
  width: 100%;
  height: 100%;
}

/* ---------- CONTACT ---------- */
.contact .content {
  justify-content: center;
}
.contact-inner {
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  text-align: center;
}
.contact .headline {
  font-weight: var(--fw-regular);
  text-transform: uppercase;
  font-size: var(--fs-h1);
  letter-spacing: 1px;
  line-height: 1.1;
}
.contact .sub {
  font-family: var(--ff-head);
  font-weight: var(--fw-light);
  color: var(--white);
  margin-top: 24px;
  font-size: var(--fs-body);
  letter-spacing: 1px;
}

.form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.form .btn-line {
  align-self: center;
  margin-top: 14px;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  margin-top: 32px;
  flex-shrink: 0;
}
.contact .footer {
  text-align: left;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  :root {
    --header-h: 72px;
  }
  .header {
    position: relative;
  }
  .brand {
    min-width: 44px;
    min-height: 44px;
  }
  .nav {
    gap: 4px;
  }
  .nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding-inline: 8px;
    font-size: 16px;
  }
  .field-input {
    font-size: 16px;
  }
  .page {
    padding-top: 32px;
    min-height: calc(100svh - var(--header-h));
  }
  .home .content {
    grid-template-columns: 1fr;
    align-content: start;
  }
  .home .star {
    margin-bottom: 30px;
  }
  .home .star img {
    width: min(78vw, 420px);
  }
  .split .content {
    flex-direction: column;
    align-items: stretch;
  }
  .split .col-text,
  .design .col-text,
  .art .col-text {
    width: 100%;
    max-width: none;
    flex: none;
  }
  .design .media {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    margin-top: 32px;
  }
  .design .media img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .art .content {
    gap: 40px;
  }
  .art .media {
    width: 100%;
    height: auto;
    aspect-ratio: 528 / 651;
    max-width: 420px;
    margin: 0 auto;
  }
  .form .row {
    grid-template-columns: 1fr;
  }
}

/* Phone composition: readable type, generous tap targets, and media sized
   from its width rather than the changing browser viewport height. */
@media (max-width: 600px) {
  :root {
    --pad: 20px;
    --fw-thin: 200;
    --fw-light: 300;
    --fs-input: 16px;
  }
  .header {
    padding-block: 14px;
    gap: 12px;
  }
  .brand .logo-word,
  .brand .divider {
    display: none;
  }
  .page {
    padding-top: 28px;
    padding-bottom: 20px;
  }
  .home .hero-text .headline {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
    line-height: 1.08;
  }
  .home .hero-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
  }
  .home .hero-buttons .btn-line {
    min-width: 0;
    padding-inline: 12px;
  }
  .home .star {
    margin-bottom: 32px;
  }
  .home .star img {
    width: min(76vw, 340px);
  }
  .split .headline {
    font-size: clamp(2rem, 8.5vw, 3rem);
    line-height: 1.08;
  }
  .design .headline {
    font-size: clamp(1.65rem, 7.6vw, 2.75rem);
  }
  .split .sub-text,
  .split .industries {
    font-size: 1.125rem;
    line-height: 1.5;
  }
  .split .lead {
    font-size: 1.5rem;
    line-height: 1.35;
    margin-top: 28px;
  }
  .split .btn-line {
    margin-top: 24px;
  }
  .btn-line {
    min-height: 48px;
  }
  .logos {
    gap: 24px;
  }
  .logos img {
    height: 64px;
  }
  .logos .india {
    height: 62px;
  }
  .logos .ey {
    height: 56px;
  }
  .art .media .frame {
    border-width: 8px;
  }
  .contact .content {
    align-items: flex-start;
  }
  .contact .headline {
    font-size: 2rem;
  }
  .contact .sub {
    margin-top: 20px;
    line-height: 1.5;
    letter-spacing: 0;
  }
  .form {
    gap: 20px;
  }
  .field-input {
    font-weight: var(--fw-medium);
    min-height: 48px;
  }
  textarea.field-input {
    min-height: 132px;
  }
  .form .btn-line {
    width: 100%;
    margin-top: 4px;
  }
  .footer {
    margin-top: 40px;
  }
  .copyright {
    font-size: 12px;
    line-height: 1.5;
  }
}
