@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,ital,wght@6..96,400;6..96,500;6..96,600&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');


/* =========================================================
   THE STUDIO BY PETRA
   styles.css
========================================================= */


:root {
  --cream: #e6ddcf;
  --mustard: #ddb982;
  --burgundy: #7a4c4d;
  --white: #f7f3ed;
  --blue: #69a8da;

  --display: "Bodoni Moda";
  --body: "Libre Baskerville";
}


* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;

  background: var(--cream);
  color: var(--burgundy);

  font-family: var(--body), Georgia, serif;
  font-weight: 400;
}


body.menu-open {
  overflow: hidden;
}


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


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


button {
  font: inherit;
}


.wrap {
  width: min(84%, 1180px);
  margin: 0 auto;
}


/* =========================================================
   TYPOGRAPHY
========================================================= */


.section-label {
  margin-bottom: 42px;

  font-family: var(--display), Georgia, serif;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 400;

  line-height: 1;
  letter-spacing: -0.025em;
}


.case-copy p,
.about-body p,
.projects-body p,
.statement-services p,
.case-card-copy p,
.case-feature-copy p {
  margin-top: 0;
}


.case-copy p:last-child,
.about-body p:last-child,
.projects-body p:last-child,
.statement-services p:last-child,
.case-card-copy p:last-child,
.case-feature-copy p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   MENU BUTTON
========================================================= */


.menu-button {
  position: fixed;
  z-index: 1001;

  top: 32px;
  right: 4vw;

  min-width: 82px;
  height: 42px;

  padding: 0 20px;

  border: 1px solid rgba(122, 76, 77, 0.38);
  border-radius: 999px;

  background: rgba(230, 221, 207, 0.92);
  color: var(--burgundy);

  font-family: var(--body), Georgia, serif;
  font-size: 11px;

  text-transform: uppercase;
  letter-spacing: 0.1em;

  cursor: pointer;

  backdrop-filter: blur(10px);

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}


.menu-button:hover {
  transform: translateY(-2px);
  background: var(--cream);
}


/* =========================================================
   FULLSCREEN MENU
========================================================= */


.menu-overlay {
  position: fixed;
  z-index: 1000;

  inset: 0;

  background: var(--cream);
  color: var(--burgundy);

  transform: translateY(-105%);

  transition:
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}


.menu-overlay.open {
  transform: translateY(0);
}


.menu-inner {
  min-height: 100%;

  padding: 40px 6vw;

  display: flex;
  flex-direction: column;
}


.menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.menu-brand {
  font-family: var(--display), Georgia, serif;
  font-size: clamp(23px, 2vw, 31px);
}


.menu-close {
  margin-right: 110px;

  border: 0;
  background: transparent;

  color: var(--burgundy);

  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;

  cursor: pointer;
}


.menu-nav {
  flex: 1;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 8px;

  padding: 50px 0;
}


.menu-nav a {
  font-family: var(--display), Georgia, serif;
  font-size: clamp(62px, 8vw, 116px);
  font-weight: 400;

  line-height: 0.94;
  letter-spacing: -0.04em;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}


.menu-nav a:hover {
  opacity: 0.48;
  transform: translateX(8px);
}


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


.hero {
  min-height: 100svh;

  position: relative;
  overflow: hidden;

  background-color: var(--blue);
  background-size: cover;
  background-position: center;

  color: var(--cream);
}


.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.02),
      rgba(0, 0, 0, 0.08)
    );
}


.hero-inner {
  min-height: 100svh;

  position: relative;
  z-index: 2;
}


.hero-brand {
  position: absolute;

  top: 42px;
  left: 0;

  font-family: var(--display), Georgia, serif;
  font-size: clamp(22px, 1.8vw, 30px);
  font-weight: 400;
}


.hero-copy {
  position: absolute;

  left: 4vw;
  bottom: 13vh;

  max-width: 900px;
}


.hero-copy h1 {
  margin: 0;

  font-family: var(--display), Georgia, serif;
  font-size: clamp(72px, 9vw, 132px);
  font-weight: 400;

  line-height: 0.88;
  letter-spacing: -0.045em;
}


.hero-copy p {
  max-width: 500px;

  margin: 18px 0 0 46%;

  font-family: var(--display), Georgia, serif;
  font-size: clamp(24px, 2.5vw, 38px);

  line-height: 1.1;
}


/* =========================================================
   STATEMENT
========================================================= */


.statement {
  min-height: 72vh;

  display: flex;
  align-items: center;

  padding: 110px 0;

  background: var(--mustard);
}


.statement-inner {
  text-align: center;
}


.statement h2 {
  max-width: 1000px;

  margin: 0 auto 42px;

  font-family: var(--display), Georgia, serif;
  font-size: clamp(50px, 6vw, 84px);
  font-weight: 400;

  line-height: 0.98;
  letter-spacing: -0.04em;
}


.statement-services {
  max-width: 780px;

  margin: 0 auto;

  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.75;
}


/* =========================================================
   PROJECTS
========================================================= */


.projects {
  padding: 125px 0 140px;

  background: var(--cream);
}


.section-heading {
  max-width: 900px;
  margin-bottom: 70px;
}


.section-heading h2 {
  margin: 0 0 34px;

  font-family: var(--display), Georgia, serif;
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 400;

  line-height: 0.98;
  letter-spacing: -0.035em;
}


.projects-intro {
  max-width: 850px;

  margin: 0 0 24px;

  font-family: var(--display), Georgia, serif;
  font-size: clamp(25px, 2.6vw, 38px);

  line-height: 1.28;
}


.projects-body {
  max-width: 820px;

  font-size: 16px;
  line-height: 1.8;
}


.projects-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 26px;
}


.project-card {
  min-width: 0;
}


.project-card-link {
  display: block;
}


.project-image {
  aspect-ratio: 4 / 5;

  overflow: hidden;

  background: var(--mustard);
}


.project-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.55s ease;
}


.project-card:hover .project-image img {
  transform: scale(1.025);
}


.project-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  gap: 28px;

  padding: 22px 4px 0;
}


.project-info h3 {
  margin: 0 0 9px;

  font-family: var(--display), Georgia, serif;
  font-size: clamp(29px, 3vw, 44px);
  font-weight: 400;

  line-height: 1;
}


.project-info p {
  margin: 0;

  font-size: 10px;

  text-transform: uppercase;
  letter-spacing: 0.1em;

  line-height: 1.6;
}


.project-arrow {
  flex: none;

  font-family: var(--display), Georgia, serif;
  font-size: 32px;
}


/* =========================================================
   ABOUT
========================================================= */


.about {
  padding: 125px 0;

  background: var(--white);
}


.about-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    280px;

  gap: 80px;

  align-items: center;
}


.about-copy h2 {
  max-width: 780px;

  margin: 0 0 30px;

  font-family: var(--display), Georgia, serif;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 400;

  line-height: 1.2;
  letter-spacing: -0.025em;
}


.about-body {
  max-width: 760px;

  font-size: 16px;
  line-height: 1.8;
}


.about-image {
  width: 280px;
  height: 280px;

  justify-self: end;

  overflow: hidden;
}


.about-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: 20% center;
}


/* =========================================================
   CONTACT
========================================================= */


.contact {
  padding: 125px 0 110px;

  background: var(--cream);
}


.contact-copy {
  max-width: 850px;
}


.contact-copy h2 {
  margin: 0;

  font-family: var(--display), Georgia, serif;
  font-size: clamp(36px, 4.5vw, 66px);
  font-weight: 400;

  line-height: 1.05;
  letter-spacing: -0.03em;
}


.contact-icons {
  display: flex;
  align-items: center;

  gap: 26px;

  margin-top: 38px;
}


.contact-icons a {
  width: 38px;
  height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}


.contact-icons a:hover {
  transform: translateY(-3px);
  opacity: 0.55;
}


.contact-icons svg {
  width: 31px;
  height: 31px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.contact-icons .fill {
  fill: currentColor;
  stroke: none;
}


.contact-img {
  width: 100%;
  max-width: 480px;
  height: auto;

  margin: 50px auto 0;

  object-fit: contain;
}


/* =========================================================
   FOOTER
========================================================= */


.footer {
  padding: 60px 0;

  background: var(--cream);
}


.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;

  gap: 30px;

  padding-top: 24px;

  border-top:
    1px solid
    rgba(122, 76, 77, 0.3);

  font-size: 11px;
}


/* =========================================================
   PROJECT PAGE
========================================================= */


.case-study {
  background: var(--cream);
}


.case-hero {
  padding: 115px 0 65px;
}


.case-back {
  display: inline-block;

  margin-bottom: 45px;

  font-size: 11px;

  text-transform: uppercase;
  letter-spacing: 0.1em;
}


.case-category {
  margin-bottom: 18px;

  font-size: 11px;

  text-transform: uppercase;
  letter-spacing: 0.11em;

  line-height: 1.6;
}


/* PROJECT TITLE */

.case-hero h1 {
  max-width: 920px;

  margin: 0 0 30px;

  font-family: var(--display), Georgia, serif;
  font-size: clamp(50px, 5.8vw, 84px);
  font-weight: 400;

  line-height: 0.94;
  letter-spacing: -0.035em;
}


/* PROJECT INTRODUCTION — JUSTIFIED */

.case-intro {
  max-width: 700px;

  font-family: var(--display), Georgia, serif;
  font-size: clamp(19px, 1.65vw, 25px);

  line-height: 1.5;

  text-align: justify;
  text-justify: inter-word;

  hyphens: auto;
  -webkit-hyphens: auto;
}


.case-intro p {
  margin: 0;
}


.case-cover {
  width: min(92%, 1450px);

  margin: 0 auto;
}


.case-cover img {
  width: 100%;

  max-height: 850px;

  object-fit: cover;
}


/* =========================================================
   CASE STUDY GENERAL
========================================================= */


.case-content {
  overflow: hidden;
}


.case-section {
  width: min(84%, 1180px);

  margin: 0 auto;

  padding: 105px 0;
}


.case-section h2 {
  margin: 0 0 30px;

  font-family: var(--display), Georgia, serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 400;

  line-height: 0.98;
  letter-spacing: -0.035em;
}


.case-section h3 {
  margin: 0 0 18px;

  font-family: var(--display), Georgia, serif;
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 400;

  line-height: 1.05;
}


/* MAIN CASE-STUDY TEXT — JUSTIFIED */

.case-copy {
  font-size: 16px;
  line-height: 1.85;

  text-align: justify;
  text-justify: inter-word;

  hyphens: auto;
  -webkit-hyphens: auto;
}


.case-copy strong {
  font-weight: 700;
}


.case-narrow {
  max-width: 790px;
}


.case-section-heading {
  max-width: 780px;

  margin-bottom: 48px;
}


.case-section-intro {
  max-width: 820px;

  margin-bottom: 52px;
}


/* =========================================================
   TEXT SECTION
========================================================= */


.case-text {
  padding-top: 115px;
  padding-bottom: 115px;
}


/* =========================================================
   TEXT + IMAGE
========================================================= */


.case-text-image-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 0.88fr)
    minmax(0, 1.12fr);

  gap: clamp(45px, 7vw, 100px);

  align-items: center;
}


.case-text-image.image-left .case-image-block {
  order: -1;
}


.case-text-block {
  min-width: 0;
}


.case-image-block {
  min-width: 0;
}


.case-image-block img {
  width: 100%;

  max-height: 720px;

  object-fit: cover;
}


/* =========================================================
   FULL WIDTH IMAGE
========================================================= */


.case-full-image {
  width: min(92%, 1450px);
}


.case-full-image figure {
  margin: 0;
}


.case-full-image img {
  width: 100%;

  max-height: 900px;

  object-fit: cover;
}


.case-full-image figcaption,
.case-gallery-item figcaption {
  margin-top: 12px;

  font-size: 10px;

  text-transform: uppercase;
  letter-spacing: 0.09em;

  line-height: 1.6;
}


/* =========================================================
   TWO COLUMNS
========================================================= */


.case-two-columns-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 28px;
}


.case-column {
  min-width: 0;

  padding: 40px;

  border-top:
    1px solid
    rgba(122, 76, 77, 0.45);

  background:
    rgba(247, 243, 237, 0.42);
}


.case-column-image {
  width: 100%;

  aspect-ratio: 4 / 3;

  margin-bottom: 30px;

  object-fit: cover;
}


/* =========================================================
   CARDS
========================================================= */


.case-cards {
  width: min(90%, 1320px);
}


.case-card-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 18px;
}


.case-card {
  min-width: 0;

  min-height: 360px;

  padding: 30px;

  display: flex;
  flex-direction: column;

  border-top:
    1px solid
    rgba(122, 76, 77, 0.48);

  background: var(--white);
}


.case-card-image {
  margin: -30px -30px 30px;
}


.case-card-image img {
  width: 100%;

  aspect-ratio: 4 / 3;

  object-fit: cover;
}


.case-card-number {
  margin-bottom: auto;

  padding-bottom: 60px;

  font-family: var(--display), Georgia, serif;
  font-size: 18px;
}


.case-card h3 {
  margin-top: auto;
}


/* Card copy stays left aligned because the columns are narrow */

.case-card-copy {
  font-size: 14px;
  line-height: 1.75;

  text-align: left;
}


/* =========================================================
   GALLERY
========================================================= */


.case-gallery {
  width: min(92%, 1450px);
}


.case-gallery-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 18px;
}


.case-gallery-item {
  margin: 0;
}


.case-gallery-item img {
  width: 100%;

  aspect-ratio: 4 / 3;

  object-fit: cover;
}


.case-gallery-item:nth-child(3):last-child {
  grid-column: 1 / -1;
}


.case-gallery-item:nth-child(3):last-child img {
  aspect-ratio: 16 / 7;
}


/* =========================================================
   FEATURE SECTION
========================================================= */


.case-feature {
  width: 100%;

  margin: 40px 0;

  padding: 120px 8vw;

  background: var(--burgundy);
  color: var(--cream);
}


.case-feature-inner {
  width: min(100%, 1280px);

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    minmax(0, 0.95fr)
    minmax(0, 1.05fr);

  gap: clamp(50px, 8vw, 110px);

  align-items: center;
}


.case-feature-inner:not(:has(.case-feature-image)) {
  grid-template-columns: 1fr;
}


.case-feature-content {
  max-width: 760px;
}


.case-feature-eyebrow {
  margin-bottom: 34px;

  font-size: 10px;

  text-transform: uppercase;
  letter-spacing: 0.14em;
}


.case-feature h2 {
  max-width: 800px;

  margin-bottom: 34px;

  font-size: clamp(56px, 7vw, 100px);

  line-height: 0.88;
}


/* Feature paragraph — JUSTIFIED */

.case-feature-copy {
  max-width: 700px;

  font-size: 16px;
  line-height: 1.8;

  text-align: justify;
  text-justify: inter-word;

  hyphens: auto;
  -webkit-hyphens: auto;
}


.case-feature-image img {
  width: 100%;

  max-height: 720px;

  object-fit: cover;
}


/* =========================================================
   END OF PROJECT
========================================================= */


.case-end {
  padding: 90px 0 120px;
}


.case-end-link {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 30px;

  padding: 30px 0;

  border-top:
    1px solid
    rgba(122, 76, 77, 0.4);

  border-bottom:
    1px solid
    rgba(122, 76, 77, 0.4);

  font-family: var(--display), Georgia, serif;
  font-size: clamp(30px, 4vw, 54px);
}


.case-end-link span {
  font-size: 34px;
}


/* =========================================================
   ERROR / LOADING
========================================================= */


.loading,
.project-not-found {
  min-height: 100vh;

  display: grid;
  place-items: center;

  padding: 40px;

  text-align: center;

  font-family: var(--display), Georgia, serif;
}


.loading {
  font-size: 32px;
}


.project-not-found h1 {
  font-size: clamp(48px, 7vw, 90px);
  font-weight: 400;
}


/* =========================================================
   TABLET
========================================================= */


@media (max-width: 960px) {

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


  .project-image {
    aspect-ratio: 16 / 11;
  }


  .about-grid {
    grid-template-columns:
      minmax(0, 1fr)
      240px;

    gap: 50px;
  }


  .about-image {
    width: 240px;
    height: 240px;
  }


  .case-text-image-grid,
  .case-feature-inner {
    grid-template-columns: 1fr;
  }


  .case-text-image.image-left .case-image-block {
    order: 0;
  }


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


  .case-feature-image {
    max-width: 720px;
  }

}


/* =========================================================
   MOBILE
========================================================= */


@media (max-width: 720px) {

  .wrap,
  .case-section {
    width: 88%;
  }


  /* MENU */

  .menu-button {
    top: 22px;
    right: 6%;

    min-width: 72px;
    height: 38px;

    padding: 0 16px;
  }


  .menu-inner {
    padding: 28px 6%;
  }


  .menu-close {
    margin-right: 88px;
  }


  .menu-nav a {
    font-size: clamp(56px, 17vw, 82px);
  }


  /* HERO */

  .hero,
  .hero-inner {
    min-height: 100svh;
  }


  .hero-brand {
    top: 28px;

    font-size: 21px;
  }


  .hero-copy {
    left: 0;
    right: 0;

    bottom: 13%;
  }


  .hero-copy h1 {
    font-size: clamp(58px, 18vw, 82px);
  }


  .hero-copy p {
    max-width: 250px;

    margin:
      14px
      0
      0
      38%;

    font-size: 22px;
  }


  /* STATEMENT */

  .statement {
    min-height: 65vh;

    padding: 90px 0;
  }


  .statement h2 {
    font-size: 45px;
  }


  .statement-services {
    font-size: 14px;
  }


  /* PROJECTS */

  .projects {
    padding: 90px 0 100px;
  }


  .section-heading {
    margin-bottom: 50px;
  }


  .section-heading h2 {
    font-size: 42px;
  }


  .projects-intro {
    font-size: 25px;
  }


  .projects-grid {
    gap: 48px;
  }


  .project-image {
    aspect-ratio: 4 / 5;
  }


  .project-info h3 {
    font-size: 32px;
  }


  /* ABOUT */

  .about {
    padding: 90px 0;
  }


  .about-grid {
    display: block;
  }


  .about-image {
    width: 200px;
    height: 200px;

    margin-top: 40px;
  }


  .about-copy h2 {
    font-size: 28px;
  }


  /* CONTACT */

  .contact {
    padding: 90px 0;
  }


  .contact-copy h2 {
    font-size: 38px;
  }


  .contact-img {
    max-width: 400px;

    margin-top: 38px;
  }


  /* FOOTER */

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }


  /* PROJECT PAGE */

  .case-hero {
    padding: 95px 0 52px;
  }


  .case-back {
    margin-bottom: 36px;
  }


  .case-category {
    margin-bottom: 14px;
  }


  .case-hero h1 {
    max-width: 100%;

    margin-bottom: 24px;

    font-size: 43px;
    line-height: 1;
  }


  /*
     On mobile we return to left alignment.
     Justified text in a narrow column can create
     ugly gaps between words.
  */

  .case-intro,
  .case-copy,
  .case-feature-copy {
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
  }


  .case-intro {
    max-width: 100%;

    font-size: 18px;
    line-height: 1.55;
  }


  .case-cover {
    width: 100%;
  }


  .case-section {
    padding: 75px 0;
  }


  .case-section h2 {
    font-size: 38px;
  }


  .case-copy {
    font-size: 15px;
    line-height: 1.75;
  }


  /* TEXT + IMAGE */

  .case-text-image-grid {
    gap: 36px;
  }


  /* TWO COLUMNS */

  .case-two-columns-grid {
    grid-template-columns: 1fr;

    gap: 18px;
  }


  .case-column {
    padding: 28px;
  }


  /* CARDS */

  .case-cards {
    width: 88%;
  }


  .case-card-grid {
    grid-template-columns: 1fr;
  }


  .case-card {
    min-height: 300px;

    padding: 26px;
  }


  .case-card-image {
    margin:
      -26px
      -26px
      26px;
  }


  /* GALLERY */

  .case-gallery {
    width: 88%;
  }


  .case-gallery-grid {
    grid-template-columns: 1fr;
  }


  .case-gallery-item:nth-child(3):last-child {
    grid-column: auto;
  }


  .case-gallery-item:nth-child(3):last-child img {
    aspect-ratio: 4 / 3;
  }


  /* FEATURE */

  .case-feature {
    padding:
      85px
      6%;
  }


  .case-feature-inner {
    gap: 42px;
  }


  .case-feature h2 {
    font-size: 54px;
  }


  /* END */

  .case-end {
    padding: 70px 0 90px;
  }


  .case-end-link {
    font-size: 30px;
  }

}
