/* ===== Tokens (from Figma) ===== */
:root {
  --ink: #2d2d2d;
  --lavender: #e9e6f9;
  --field: #f3f3f3;
  --line: rgba(0, 0, 0, 0.2);
  --card-edge: #1a1a1a;
  --body: "Epilogue", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Abril Fatface", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 27px;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h2 {
  font-size: 32px;
  line-height: 42px;
  font-weight: 600;
}

/* ===== Navigation ===== */
.site-nav {
  position: relative;
  height: 80px;
  padding: 0 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}

.logo {
  font-weight: 600;
  font-size: 20px;
  line-height: 30px;
}

.nav-links {
  display: flex;
  gap: 50px;
  line-height: 28px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.menu-toggle {
  display: none;
  width: 25px;
  height: 23px;
  padding: 0;
  border: 0;
  background: url("../images/menu.svg") no-repeat center / contain;
  cursor: pointer;
}

/* ===== Home: hero ===== */
.hero {
  padding: 100px;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero-text {
  flex: 1 1 557px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.eyebrow {
  font-weight: 600;
  font-size: 20px;
  line-height: 30px;
}

.hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 80px;
  line-height: 90px;
}

.hero-img {
  flex: 0 1 495px;
  width: 495px;
  height: 424px;
  object-fit: cover;
  object-position: bottom;
}

/* ===== Home: skills ===== */
.skills {
  background: var(--ink);
  padding: 180px 140px;
  color: #fff;
}

.skills-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 125px;
}

.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  text-align: center;
}

.skill img {
  width: 200px;
  height: 200px;
  object-fit: cover;
}

.skill h3 {
  font-size: 27px;
  line-height: 42px;
  font-weight: 600;
  max-width: 178px;
}

/* ===== Home: projects ===== */
.projects {
  padding: 20px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.projects h2 {
  text-align: center;
}

.cards {
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 67.5px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.card-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-title {
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
}

/* ===== Home: clients ===== */
.clients {
  padding: 100px 100px 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 55px;
}

.clients h2 {
  text-align: center;
}

.testimonial {
  width: 100%;
  max-width: 1080px;
  border: 1.5px solid var(--card-edge);
  padding: 30px 50px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 53px;
  text-align: center;
}

.testimonial blockquote p {
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
}

.testimonial figcaption {
  font-size: 17px;
  line-height: 27px;
}

/* ===== About ===== */
.about-head {
  background: var(--lavender);
  padding: 120px clamp(30px, 25vw, 320px);
}

.about-head-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 70px;
}

.persona {
  flex: 0 0 195px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portrait {
  position: relative;
  width: 195px;
  height: 195px;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--ink);
  pointer-events: none;
}

.persona-name {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-skip-ink: none;
}

.bio {
  flex: 1 1 515px;
}

.bio strong {
  font-weight: 700;
}

.about-body {
  padding: 120px clamp(30px, 25vw, 320px);
}

.about-body p {
  max-width: 880px;
  margin: 0 auto;
  font-weight: 500;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: 1px;
  color: #2b2b2b;
}

/* ===== Footer / contact (shared) ===== */
.site-footer {
  padding: 0 100px 70px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  border-top: 2px solid var(--line);
  padding-top: 70px;
  display: flex;
  gap: clamp(40px, 14.8vw, 190px);
  align-items: flex-start;
}

.contact {
  flex: 0 0 360px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.contact-message {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.socials {
  display: flex;
  gap: 13px;
}

.socials img {
  width: 36px;
  height: 36px;
}

.fields {
  flex: 1 1 530px;
  max-width: 530px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fields input,
.fields textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  padding: 21px 30px;
}

.fields input::placeholder,
.fields textarea::placeholder {
  color: var(--ink);
  opacity: 1;
}

.fields textarea {
  height: 231px;
  resize: vertical;
}

.fields input:focus-visible,
.fields textarea:focus-visible,
.btn:focus-visible,
.socials a:focus-visible,
.nav-links a:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  align-self: flex-start;
  margin-top: 20px;
  /* 20 gap + 20 = 40 between fields and button, as designed */
  width: 235px;
  height: 80px;
  background: var(--ink);
  color: #fff;
  border: 0;
  cursor: pointer;
  font: 600 20px/30px var(--body);
}

.btn:hover {
  background: #000;
}

.cs-btn {
  margin-top: 0;
}

/* ===== Tablet: let the 1080px content shrink gracefully ===== */
@media (max-width: 1180px) {

  .hero,
  .projects,
  .clients,
  .site-footer {
    padding-left: 50px;
    padding-right: 50px;
  }

  .skills {
    padding-left: 50px;
    padding-right: 50px;
  }

  .skills-grid {
    gap: 60px;
  }

  .cards {
    gap: 40px;
  }

  .hero-title {
    font-size: 64px;
    line-height: 72px;
  }
}

/* ===== Mobile (matches the 375px frames) ===== */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 10;
    flex-direction: column;
    gap: 0;
    background: #fff;
    padding: 0 50px 16px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open .nav-links {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 50px 30px 60px;
  }

  .hero-inner {
    flex-direction: column;
    gap: 60px;
  }

  .hero-text {
    text-align: center;
    gap: 20px;
    width: 100%;
    flex: none;
  }

  .hero-text .eyebrow {
    margin-bottom: 4px;
  }

  .hero-title {
    font-size: 48px;
    line-height: normal;
  }

  .hero-img {
    width: 100%;
    flex: none;
    height: 270px;
  }

  .skills {
    padding: 150px 62px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 125px;
  }

  .projects {
    padding: 40px 30px;
  }

  .cards {
    grid-template-columns: minmax(0, 315px);
    justify-content: center;
    gap: 60px;
  }

  .clients {
    padding: 60px 30px 90px;
    gap: 40px;
  }

  .testimonial {
    gap: 80px;
    text-align: left;
    max-width: 315px;
  }

  .about-head {
    padding: 120px 30px;
  }

  .about-head-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 78px;
    justify-content: flex-start;
  }

  .bio {
    flex: none;
    width: 100%;
  }

  .about-body {
    padding: 120px 30px;
  }

  .site-footer {
    padding: 0 30px 70px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 80px;
    max-width: 315px;
  }

  .contact {
    flex: none;
    width: 100%;
  }

  .fields {
    flex: none;
    width: 100%;
    max-width: none;
  }
}

/* ===== Linked project cards ===== */
.cards>a {
  display: block;
}

.cards>a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}

.cards>a:hover .card-title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== Case study pages (addaura.html) ===== */
.cs-section {
  padding: 100px;
}

.cs-section.lav {
  background: var(--lavender);
}

.cs-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.cs-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs-eyebrow {
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cs-lead {
  font-weight: 500;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: 0.04em;
}

.cs-cols {
  display: grid;
  gap: 40px;
  align-items: start;
}

.cs-cols.gap-60 {
  gap: 60px;
}

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

.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cs-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-item h3 {
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
}

.cs-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.cs-img {
  display: block;
  width: 100%;
  height: auto;
}

.cs-link {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cs-link:hover {
  text-decoration-thickness: 2px;
}

.cs-overview-text {
  max-width: 720px;
}

/* intro */
.cs-intro .cs-inner {
  flex-direction: row;
  align-items: center;
  gap: 28px;
}

.cs-intro-text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cs-hero-img {
  flex: 0 1 493px;
  width: 493px;
}

/* process */
.cs-process {
  gap: 96px;
}

.cs-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cs-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5.75%;
  align-items: start;
}

/* final design: two phones + one wide shot, proportioned like the Figma frame */
.cs-final {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.cs-final .f1 {
  flex: 255 1 0;
  min-width: 0;
}

.cs-final .f2 {
  flex: 217 1 0;
  min-width: 0;
}

.cs-final .f3 {
  flex: 620 1 0;
  min-width: 0;
}

/* testimonial */
.cs-testimonial {
  padding-bottom: 150px;
}

.cs-testimonial .cs-inner {
  gap: 55px;
}

.cs-testimonial h2 {
  text-align: center;
}

.cs-quote {
  border: 1px solid var(--card-edge);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  text-align: center;
}

.cs-quote blockquote p {
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
}

.cs-intro {
  min-height: 80vh;
  min-height: 80svh;
  display: flex;
  align-items: center;
}

/* ===== Hero decorative stars ===== */
.hero {
  overflow-x: clip;
}

.hero-media {
  position: relative;
  flex: 0 1 495px;
  width: 495px;
}

.hero-media .hero-img {
  width: 100%;
  flex: none;
}

.hero-star {
  position: absolute;
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.star-a {
  width: 100px;
  top: -26px;
  right: -32px;
  transform: rotate(10deg);
}

/* solid purple, top-right */
.star-b {
  width: 130px;
  bottom: -48px;
  left: -42px;
  transform: rotate(-10deg)
}

/* peach sparkles, bottom-left */
.star-c {
  width: 88px;
  bottom: 16%;
  right: -50px;
  transform: rotate(-8deg);
}

/* outlined purple, right edge */

/* ===== Spotlight: more breathing room, one recording per row ===== */
.spotlight .cs-section {
  padding-top: 160px;
  padding-bottom: 180px;
}

.spotlight .cs-intro {
  padding-top: 160px;
  padding-bottom: 160px;
}

.spotlight .cs-inner {
  gap: 72px;
}

.spotlight .cs-intro .cs-inner {
  gap: 60px;
}

.spotlight .cs-intro-text {
  gap: 32px;
}

.spotlight .cs-head {
  gap: 20px;
}

.spotlight .cs-item {
  gap: 16px;
}

.spotlight .cs-cols {
  gap: 64px;
}

.spotlight .cs-cols.gap-60 {
  gap: 80px;
}

.cs-features-list {
  display: flex;
  flex-direction: column;
  gap: 200px;
}

.cs-feature {
  display: flex;
  align-items: center;
  gap: 80px;
}

.cs-feature .cs-video,
.cs-feature .cs-feature-img,
.cs-feature .cs-img,
.cs-feature img {
  flex: 0 1 640px;
  width: 640px;
  max-width: 100%;
  min-width: 0;
  height: auto;
}

.cs-feature .cs-item {
  flex: 1 1 0;
  min-width: 0;
}

.cs-feature:nth-child(even) {
  flex-direction: row-reverse;
}

.cs-feature h3 {
  font-size: 28px;
  line-height: 38px;
}

@media (max-width: 900px) {
  .spotlight .cs-section {
    padding: 80px 30px;
  }

  .spotlight .cs-intro {
    padding: 70px 30px 90px;
  }

  .spotlight .cs-inner,
  .spotlight .cs-intro .cs-inner {
    gap: 48px;
  }

  .spotlight .cs-cols,
  .spotlight .cs-cols.gap-60 {
    gap: 40px;
  }

  .cs-features-list {
    gap: 120px;
  }

  .cs-feature,
  .cs-feature:nth-child(even) {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .cs-feature .cs-video,
  .cs-feature .cs-feature-img,
  .cs-feature .cs-img,
  .cs-feature img {
    flex: none;
    width: 100%;
    height: auto;
  }

  .cs-feature h3 {
    font-size: 22px;
    line-height: 30px;
  }
}

@media (max-width: 900px) {
  .hero-media {
    flex: none;
    width: 100%;
  }

  .star-a {
    width: 76px;
    top: -28px;
    right: -12px;
  }

  .star-b {
    width: 84px;
    bottom: -30px;
    left: -12px;
  }

  .star-c {
    width: 56px;
    bottom: 18%;
    right: -12px;
  }
}

.cs-intro .cs-inner {
  width: 100%;
}

@media (max-width: 1180px) {
  .cs-section {
    padding-left: 50px;
    padding-right: 50px;
  }
}

@media (max-width: 900px) {
  .cs-section {
    padding: 60px 30px;
  }

  .cs-intro {
    padding: 50px 30px 60px;
  }

  .cs-intro .cs-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .cs-hero-img {
    flex: none;
    width: 100%;
  }

  .cs-inner {
    gap: 32px;
  }

  .cs-section h2 {
    font-size: 26px;
    line-height: 34px;
  }

  .cs-lead {
    font-size: 20px;
    line-height: 30px;
  }

  .cs-cols,
  .cs-cols.gap-60 {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cs-process {
    gap: 64px;
  }

  .cs-keys {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .cs-final {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .cs-final .f3 {
    grid-column: 1 / -1;
  }

  .cs-testimonial {
    padding-bottom: 90px;
  }

  .cs-testimonial .cs-inner {
    gap: 40px;
  }

  .cs-quote {
    gap: 40px;
    text-align: left;
  }

  .cs-quote blockquote p {
    font-size: 17px;
    line-height: 27px;
  }
}