/* ==========================================================================
   Nakul Chandra — personal site
   Implemented from "Nakul Chandra.dc.html" (Claude Design project).
   ========================================================================== */

:root {
  --ink: #0D2129;
  --accent: #33BDF0;
  --accent-text: #0076A1;
  --teal: #297485;
  --line: #DFE9ED;
  --tint: #F2FAFD;
  --white: #FFFFFF;

  --ink-62: rgba(13, 33, 41, .72);
  --ink-60: rgba(13, 33, 41, .70);
  --ink-55: rgba(13, 33, 41, .68);
  --ink-50: rgba(13, 33, 41, .65);
  --ink-65: rgba(13, 33, 41, .75);

  --shell: 1280px;
  --pad-x: 48px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* --------------------------------------------------------------- base ---- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color .25s ease, background .25s ease, border-color .25s ease;
}

a:hover {
  color: var(--accent-text);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
  color: var(--white);
}

.accent {
  color: var(--accent-text);
}

main {
  max-width: var(--shell);
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

/* ------------------------------------------------------------ buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  transition:
    transform .28s var(--ease),
    background .28s ease,
    color .28s ease,
    border-color .28s ease,
    box-shadow .28s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -10px rgba(51, 189, 240, .7);
}

.btn:active {
  transform: translateY(-1px);
}

.btn--accent {
  background: var(--accent);
  color: var(--ink);
  font-size: 13.5px;
  padding: 11px 22px;
}

.btn--accent:hover {
  background: var(--ink);
  color: var(--white);
}

.btn--solid {
  background: var(--ink);
  color: var(--white);
  font-size: 14.5px;
  padding: 15px 28px;
}

.btn--solid:hover {
  background: var(--accent);
  color: var(--ink);
}

.btn--outline {
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 14.5px;
  padding: 15px 28px;
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
  padding: 17px 34px;
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}

.btn--pill {
  border-radius: 999px;
}

.btn--pill.btn--solid {
  font-size: 15.5px;
  padding: 17px 34px;
}

/* -------------------------------------------------------------- links ---- */

.inline-link {
  color: inherit;
  font-weight: 600;
}

.inline-link:hover {
  color: var(--accent-text);
}

.underline-link {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  padding-bottom: 2px;
  transition: background-size .3s var(--ease), color .25s ease;
}

.underline-link:hover {
  background-size: 100% 2px;
}

/* ---------------------------------------------------------------- nav ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav__bar {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__brand img {
  height: 34px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 13.5px;
  font-weight: 500;
}

.navlink {
  position: relative;
  color: var(--ink-65);
}

.navlink::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
  transition: right .28s var(--ease);
}

.navlink:hover::after {
  right: 0;
}

/* --------------------------------------------------------------- hero ---- */

.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  border-bottom: 1px solid var(--line);
}

.hero__body {
  padding: 72px var(--pad-x) 64px;
  position: relative;
  overflow: hidden;
}

.hero__watermark {
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 300px;
  opacity: .07;
  pointer-events: none;
}

.hero__title {
  font-weight: 900;
  font-size: 64px;
  line-height: .97;
  letter-spacing: -.03em;
  margin: 0 0 26px;
  text-transform: uppercase;
  max-width: 640px;
}

.hero__lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-62);
  margin: 0 0 20px;
  max-width: 520px;
}

.hero__lede+.hero__lede {
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  position: relative;
  flex-wrap: wrap;
}

.hero__photo {
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.hero__photo-frame {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: var(--tint);
}

.hero__photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -------------------------------------------------------------- stats ---- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 24px 32px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: none;
}

.stat__num {
  display: block;
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -.02em;
  color: var(--accent-text);
}

.stat__label {
  display: block;
  font-size: 12.5px;
  color: var(--ink-55);
  margin-top: 2px;
}

/* ----------------------------------------------------------- sections ---- */

.section {
  padding: 72px var(--pad-x);
  border-bottom: 1px solid var(--line);
}

.section__head {
  margin-bottom: 40px;
}

.section__head--tight {
  margin-bottom: 24px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow__rule {
  width: 40px;
  height: 3px;
  background: var(--accent);
  flex: none;
}

.eyebrow--wide {
  display: block;
  font-size: 11.5px;
  letter-spacing: .22em;
  margin-bottom: 24px;
}

.eyebrow--center {
  justify-content: center;
  margin-bottom: 26px;
}

.section__title {
  font-weight: 900;
  font-size: 58px;
  line-height: 1.12;
  letter-spacing: -.025em;
  margin: 0;
  text-transform: uppercase;
}

.section__lede {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-62);
  margin: 0 0 36px;
  max-width: 640px;
}

.section__more {
  margin: 24px 0 0;
}

.section__more a {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--teal);
}

[data-headfx="highlight"] {
  background-image: linear-gradient(rgba(51, 189, 240, .32), rgba(51, 189, 240, .32));
  background-repeat: no-repeat;
  background-position: 0 78%;
  background-size: 100% 30%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

[data-headfx="underline"]::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--accent);
  margin-top: 16px;
}

/* -------------------------------------------------------------- cards ---- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: var(--white);
  padding: 28px;
  transition: background .25s ease;
}

.card:hover {
  background: var(--tint);
}

.card__icon {
  display: block;
  margin-bottom: 16px;
  color: var(--accent-text);
}

.card__title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}

.card__text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-62);
}

/* --------------------------------------------------------------- rows ---- */

.rows {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
  padding: 36px 40px;
  background: var(--white);
  transition: background .25s ease;
}

.row:hover {
  background: var(--tint);
}

.row--flip {
  grid-template-columns: 1fr 280px;
}

.row--flip .row__logo {
  order: 2;
}

.row--flip .row__body {
  order: 1;
}

.row__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  border: 1px solid var(--line);
  padding: 20px;
}

.row__logo--pad {
  padding: 12px;
}

.row__logo--dark {
  background: var(--ink);
  border-color: var(--ink);
  padding: 24px;
}

.row__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  transition: transform .28s var(--ease);
}

/* The logo panel links to the same place as the company name beside it. It is
   aria-hidden + tabindex="-1" so assistive tech and keyboard users get one
   link per row rather than two identical ones. */
a.row__logo {
  transition: border-color .25s ease, box-shadow .25s ease;
}

a.row__logo:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 20px -12px rgba(51, 189, 240, .8);
}

a.row__logo:hover img {
  transform: scale(1.04);
}

.row__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.row__title a {
  color: inherit;
}

.row__title a:hover {
  color: var(--accent-text);
}

.tag-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.row__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-62);
  margin: 0 0 16px;
  max-width: 640px;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chips li {
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 11px;
  border: 1px solid var(--line);
  color: var(--teal);
}

/* ----------------------------------------------------------- carousel ---- */

.carousel__viewport {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 72px;
  text-align: center;
  opacity: 0;
  transform: translateX(44px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
  pointer-events: none;
}

.slide[data-active] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.slide__mark {
  font-size: 64px;
  font-weight: 900;
  color: var(--accent-text);
  line-height: 1;
  margin-bottom: 20px;
}

.slide__quote {
  font-size: 25px;
  line-height: 1.5;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -.01em;
  margin: 0 0 30px;
  max-width: 880px;
}

.slide__by {
  font-size: 13.5px;
}

.slide__by strong {
  font-weight: 800;
}

.slide__by span {
  color: var(--ink-50);
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 8px;
}

.carousel__arrow {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 17px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}

.carousel__arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
}

.carousel__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition: background .3s, width .3s;
  position: relative;
}

.carousel__dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
}

.carousel__dot:hover {
  background: var(--teal);
}

.carousel__dot[data-active] {
  background: var(--accent);
  width: 26px;
}

/* -------------------------------------------------------------- video ---- */

.video {
  max-width: 880px;
  margin: 0 auto;
  border: 1px solid var(--line);
}

.video__frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: var(--ink);
}

.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video__poster {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: block;
  width: 100%;
}

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

.video__scrim {
  position: absolute;
  inset: 0;
  background: rgba(13, 33, 41, .25);
}

.video__btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  background: var(--accent);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform .28s var(--ease), box-shadow .28s ease;
}

.video__btn svg {
  margin-left: 4px;
}

.video__poster:hover .video__btn {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 10px 24px -10px rgba(51, 189, 240, .7);
}

/* ------------------------------------------------------------ contact ---- */

.contact {
  padding: 110px var(--pad-x) 90px;
  text-align: center;
}

.contact__title {
  font-weight: 900;
  font-size: 96px;
  line-height: 1;
  letter-spacing: -.03em;
  margin: 0 0 28px;
  text-transform: uppercase;
}

.contact__lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-60);
  margin: 0 0 44px;
}

.contact__actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------- footer ---- */

.footer {
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.footer__col {
  background: var(--white);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer__head {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.footer__copy {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-55);
}

.footer__copy img {
  height: 20px;
  width: auto;
}

.footer__place {
  font-size: 12.5px;
  color: var(--ink-55);
}

/* ------------------------------------------------------------- motion ---- */

@keyframes ncFloat {

  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-12px) rotate(3deg);
  }
}

@keyframes ncTilt {

  0%,
  100% {
    transform: rotate(-6deg) scale(1);
  }

  50% {
    transform: rotate(6deg) scale(1.05);
  }
}

/* --------------------------------------------------------- responsive ---- */

@media (max-width: 1000px) {
  :root {
    --pad-x: 40px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero__photo {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .hero__photo-frame {
    min-height: 520px;
  }

  .hero__photo-frame img {
    object-fit: contain;
    object-position: center bottom;
    background: var(--tint);
  }

  .hero__title {
    font-size: 52px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .row,
  .row--flip {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .row__logo {
    order: -1;
    max-width: 280px;
  }

  .row--flip .row__logo {
    order: -1;
  }

  .row--flip .row__body {
    order: 0;
  }

  .section__title {
    font-size: 42px;
  }

  .contact__title {
    font-size: 72px;
  }

  .slide {
    padding: 32px 28px;
  }

  .slide__quote {
    font-size: 21px;
  }

  .carousel__viewport {
    height: 360px;
  }

  .stat {
    padding: 20px 22px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --pad-x: 18px;
  }

  main {
    border-left: none;
    border-right: none;
  }

  .nav__bar {
    padding: 12px 16px;
  }

  .nav__links {
    display: none;
  }

  .hero__body {
    padding: 44px 20px 40px;
  }

  .hero__title {
    font-size: 40px;
  }

  .hero__photo-frame {
    min-height: 460px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 18px 20px;
  }

  .section {
    padding: 48px 18px;
  }

  .contact {
    padding: 70px 18px 60px;
  }

  .section__title {
    font-size: 31px;
  }

  .contact__title {
    font-size: 46px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .row,
  .row--flip {
    padding: 26px 20px;
  }

  .slide {
    padding: 14px 6px;
  }

  .slide__quote {
    font-size: 17px;
    line-height: 1.55;
  }

  .carousel__viewport {
    height: 375px;
  }

  .footer__bar {
    flex-direction: column;
    gap: 8px;
    padding: 18px 16px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .slide {
    transform: none;
  }
}