/* =============================================================
   ALEX COWLES — PORTFOLIO SITE
   -------------------------------------------------------------
   Structure of this file:
     1. Reset & base
     2. Design tokens (colours, type scale, spacing)
     3. Layout helpers (containers, dividers)
     4. Header
     5. Hero
     6. Selected projects
     7. "Bit I like most"
     8. Services ("Whatever the idea needs")
     9. Side projects
     10. "Building at the beginning"
     11. Footer
     12. Responsive breakpoints

   Base font-size is 16px (100%), so 1rem = 16px throughout.
   To convert any px value from the design to rem: px / 16.
   ============================================================= */


/* -------------------------------------------------------------
   1. RESET & BASE
   ------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%; /* 16px */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Hanken Grotesk', Arial, sans-serif;
  font-weight: 400;
  color: var(--color-dark);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

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

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


/* -------------------------------------------------------------
   2. DESIGN TOKENS
   ------------------------------------------------------------- */
:root {
  /* --- Colours --- */
  --color-bg:     #F5F2F2; /* page background */
  --color-dark:   #42403A; /* primary text / dark sections */
  --color-red:    #FC3100; /* accent / highlights / links */
  --color-white:  #FFFFFF;
  --color-light:  #D7D1CC; /* secondary text on dark, light fills */
  --color-yellow: #EEC604; /* logo mark */
  --color-grey:   #D9D9D9; /* placeholder fills, hairlines */
  --color-mid:    #7E7A6D;
  --color-black:  #000000;

  /* --- Type scale (all rem, base 16px) ---
     16px  -> 1rem      body copy
     18px  -> 1.125rem  nav / labels
     23px  -> 1.4375rem "commonly used larger" text (intro / body-lg)
     28px  -> 1.75rem   card titles
     40px  -> 2.5rem    section titles
     80px  -> 5rem      hero title (scaled down on smaller screens)
  */
  --fs-body:    1rem;
  --fs-nav:     1.125rem;
  --fs-lg:      1.4375rem;   /* 23px */
  --lh-lg:      2.125rem;    /* 34px */
  --ls-lg:      -0.04em;     /* -4% letter-spacing */
  --fs-card:    1.75rem;
  --fs-section: 2.5rem;
  --fs-hero:    5rem;

  /* --- Spacing --- */
  --space-section: 8rem;   /* vertical rhythm between major sections */
  --space-gap-lg:  3rem;

  /* --- Container widths --- */
  --container-width:      1200px;
  --container-width-wide: 1800px;
  --container-padding:    2rem;
}


/* -------------------------------------------------------------
   3. LAYOUT HELPERS
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container--wide {
  max-width: var(--container-width-wide);
}

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

.text-lg {
  font-size: var(--fs-lg);
  line-height: var(--lh-lg);
  letter-spacing: var(--ls-lg);
}

.section-title {
  font-size: var(--fs-section);
  font-weight: 700;
  letter-spacing: var(--ls-lg);
  line-height: 1.1;
  margin-bottom: 3rem;
}

/* Grey "drop an image in here" placeholder used across the site.
   Swap the parent .img-placeholder <div> for an <img> tag once you
   have real assets — see the HTML comments above each one. */
.img-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--color-grey);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.img-placeholder span {
  font-size: 0.875rem;
  color: var(--color-dark);
  opacity: 0.6;
}

/* Decorative divider used between main sections: 100px of space,
   the 100px-tall arrow.svg, then a further 100px of space —
   300px total between one section's content and the next. */
.divider {
  display: flex;
  justify-content: center;
  padding: 100px 0;
}

.divider__arrow-img {
  display: block;
  width: 15px;
  height: 100px;
}

.divider--cta {
  padding: 10rem 0 3rem 0;
}

.divider__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.divider__cta-label {
  font-size: var(--fs-nav);
  color: var(--color-dark);
  opacity: 0.55;
}

.divider__cta-name {
  font-size: var(--fs-nav);
  font-weight: 700;
  color: var(--color-dark);
}

/* Short red line with an arrowhead, e.g. ————→ */
.divider__cta-line {
  position: relative;
  display: inline-block;
  width: 5rem;
  height: 2px;
  background-color: var(--color-red);
  margin-left: 0.25rem;
}

.divider__cta-line::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--color-red);
}
.mid {
  color: var(--color-mid);
}

/* -------------------------------------------------------------
   4. HEADER
   ------------------------------------------------------------- */
.site-header {
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-light);
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg); /* so page content doesn't show through when scrolled under it */
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo img {
  display: block;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-link {
  font-size: var(--fs-nav);
}

.nav-link__label-short {
  display: none;
}

.nav-link--cta {
  color: var(--color-red);
  font-weight: 700;
}

.nav-link--work {
  color: var(--color-red);
  font-weight: 400;
}

.nav-link--work[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* Plain text, not a link — just states the address */
.nav-email {
  font-size: var(--fs-nav);
  color: var(--color-dark);
}

/* Small bordered "in" badge linking out to LinkedIn */
.nav-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--color-red);
  border-radius: 0.25rem;
  color: var(--color-red);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}


/* -------------------------------------------------------------
   5. HERO
   ------------------------------------------------------------- */
.hero {
  padding-top: clamp(5rem, 11vw, 12.5rem);
  padding-bottom: 0; /* .divider right after this section owns the gap to Selected Projects */
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1150px;
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: var(--ls-lg);
  margin: 0;
}

.hero__lede {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero__lede p {
  margin: 0;
}

.hero__lede p:first-child {
  color: var(--color-dark);
}


/* -------------------------------------------------------------
   6. SELECTED PROJECTS
   ------------------------------------------------------------- */
.projects {
  padding-top: 0; /* the hero's trailing .divider owns the gap above */
  padding-bottom: 0; /* the .divider after "Need convincing?" owns the gap below */
}

.project {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 5rem;
}

.project:last-of-type {
  margin-bottom: 0;
}

.project__intro {
  max-width: 640px;
}

.project__meta {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.project__story {
  font-size: 1.25rem;
  color: var(--color-dark);
  opacity: 0.55;
}

.project__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: var(--ls-lg);
}

.project__desc {
  font-size: var(--fs-lg);
  line-height: var(--lh-lg);
  letter-spacing: var(--ls-lg);
}

.project__media {
  width: 100%;
}

.project__media > a {
  display: block;
}

/* Default project image ratio — edit per-project by adding an
   inline style="aspect-ratio: ..." on that project's .img-placeholder
   (or its future <img>) if one needs to differ from the rest. */
.project__media .img-placeholder {
  aspect-ratio: 2.5 / 1;
}

.projects .project__media img,
.work-list .project__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  object-position: center;
}

.projects .project__media .img-placeholder,
.work-list .project__media .img-placeholder {
  aspect-ratio: 16 / 9;
}

.project__details {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.project__detail {
  flex: 1 1 0;
  min-width: 220px;
}

.project__detail-label {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--color-red);
  margin-bottom: 0.5rem;
}

.project__detail-text {
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--color-dark);
}

.page-intro {
  padding-top: clamp(5rem, 11vw, 10rem);
  padding-bottom: 5rem;
}

.page-intro__content {
  max-width: 900px;
}

.page-intro__title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: var(--ls-lg);
  margin-bottom: 2rem;
}

.page-intro__lede {
  max-width: 720px;
}

.work-list {
  padding-bottom: 0;
}

.work-list .project {
  margin-bottom: 7rem;
}

.work-list--more .project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5rem 2rem;
  margin-bottom: 7rem;
}

.work-list--more .project-grid .project {
  gap: 1.5rem;
  margin-bottom: 0;
}

.project__link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  color: var(--color-red);
  font-size: var(--fs-nav);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.project__link::after {
  content: '';
  display: block;
  width: 1em;
  height: 1em;
  background: url("../images/arrow-right.svg") center / contain no-repeat;
}

.project__link--back::before {
  content: '';
  display: block;
  width: 1em;
  height: 1em;
  background: url("../images/arrow-right.svg") center / contain no-repeat;
  transform: rotate(180deg);
}

.project__link--back::after {
  display: none;
}

.case-study {
  padding-bottom: var(--space-section);
}

.case-study__hero {
  padding-top: clamp(4rem, 9vw, 9rem);
  padding-bottom: 5rem;
}

.case-study__meta {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.case-study__story {
  color: var(--color-dark);
  opacity: 0.55;
  font-size: 1.25rem;
}

.case-study__title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--ls-lg);
  margin-bottom: 1.25rem;
}

.case-study__intro {
  max-width: 760px;
  margin-bottom: 4rem;
}

.case-study__media {
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  border-radius: 0.25rem;
}

.case-study__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.case-study__section {
  padding-top: var(--space-section);
}

.case-study__section > .container {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
}

.case-study__section--reverse > .container {
  flex-direction: row-reverse;
}

.case-study__section-media,
.case-study__section-content {
  flex: 1 1 380px;
}

.case-study__section-media .img-placeholder {
  aspect-ratio: 4 / 3;
}

.case-study__section-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-self: center;
}

.case-study__section-title {
  font-size: var(--fs-section);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: var(--ls-lg);
}

.case-study__full {
  padding-top: var(--space-section);
}

.case-study__full-content {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.case-study__wide-media + .case-study__full-content {
  padding-top: var(--space-section);
}

.case-study__full-content ul,
.case-study__full-content ol {
  margin-bottom: 1.5rem;
}

.case-study__feature-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-left: 1.5rem;
  list-style: disc;
  font-size: var(--fs-lg);
  line-height: var(--lh-lg);
}

.mosaic-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.55fr);
  align-items: start;
  gap: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.mosaic-feature-layout .case-study__full-content {
  max-width: none;
}

.mosaic-feature-sidebar {
  padding: 1.5rem;
  border: 1px solid var(--color-grey);
  border-top: 4px solid var(--color-red);
}

.mosaic-feature-sidebar__title {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: var(--ls-lg);
}

.mosaic-feature-sidebar p {
  margin-top: 1rem;
  font-size: var(--fs-body);
  line-height: 1.5;
}

.mosaic-feature-sidebar .project__link {
  margin-top: 1.5rem;
}

.case-study__full-content .section-title {
  margin-bottom: 2rem;
}

.case-study__full-content p a {
  color: var(--color-red);
}

.case-study__full-content > .section-title ~ .section-title {
  margin-top: 3rem;
}

.case-study__full-content > .text-lg + .text-lg, 
.case-study__teaser-content > .text-lg + .text-lg {
  margin-top: 1.5rem;
}

.case-study__full-content img {
  width: 100%;
  display: block;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.case-study__full-content + .case-study__metadata {
  margin-top: var(--container-padding);
}

.case-study__metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-dark);
  border-bottom: 1px solid var(--color-dark);
}

.case-study__metadata-item {
  flex: 1 1 220px;
}

.case-study__metadata-label {
  display: block;
  color: var(--color-red);
  font-size: var(--fs-body);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.case-study__metadata-value {
  font-size: var(--fs-body);
  line-height: 1.5;
}

.case-study__wide-media {
  width: calc(100% + (2 * var(--container-padding)));
  margin-left: calc(-1 * var(--container-padding));
  padding-top: var(--space-section);
}

.case-study__wide-media > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.case-study__wide-media > video {
  display: block;
  width: 100%;
  height: auto;
}

.case-study__wide-media iframe[src*="youtube.com"],
.case-study__wide-media iframe[src*="youtube-nocookie.com"] {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

.case-study__wide-media iframe[src*="soundcloud.com"] {
  display: block;
  width: 100%;
  border: 0;
}

.case-study__wide-media .img-placeholder {
  aspect-ratio: 16 / 9;
}

.case-study__carousel {
  position: relative;
  margin-top: 0.5rem;
}

.carousel__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 0.25rem;
}

.carousel__track {
  display: flex;
  transition: transform 0.35s ease;
}

.carousel__slide {
  position: relative;
  min-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.carousel__slide .img-placeholder {
  aspect-ratio: 16 / 9;
}

.about-bit__media .carousel__slide {
  aspect-ratio: 1 / 1;
}

.carousel__slide > img,
.carousel__slide .img-placeholder img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(66, 64, 58, 0.35);
  border-radius: 999px;
  background: rgba(245, 242, 242, 0.9);
  color: var(--color-dark);
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

.carousel__nav--prev {
  left: 1rem;
}

.carousel__nav--next {
  right: 1rem;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 1rem;
}

.carousel__dot {
  width: 0.65rem;
  height: 0.65rem;
  border: none;
  border-radius: 50%;
  background: rgba(66, 64, 58, 0.25);
  padding: 0;
  cursor: pointer;
}

.carousel__dot.is-active {
  background: var(--color-red);
}

.case-study__placeholder-note {
  display: block;
  margin-top: 0.75rem;
  color: var(--color-mid);
  font-size: 0.875rem;
  line-height: 1.4;
}

.case-study__timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-dark);
  border-bottom: 1px solid var(--color-dark);
  color: var(--color-red);
  font-size: var(--fs-nav);
}

.case-study__timeline span:not(:last-child)::after {
  content: '\2192';
  margin-left: 1.5rem;
}

.case-study__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.case-study__gallery .img-placeholder {
  
}

.case-study__gallery img:first-child, 
.case-study__gallery img.larger {
  grid-column: 1 / -1;
}
img.border {
  border: 1px solid var(--color-light);
}

.other-work__opening {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  align-items: stretch;
}

.other-work__container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
}

.other-work__opening-item {
  aspect-ratio: 4 / 3;
}

.other-work__opening-item:first-child {
  aspect-ratio: 1 / 1;
}

.other-work__pair,
.other-work__trio {
  display: grid;
  gap: 1.5rem;
}

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

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

.other-work__item {
  min-width: 0;
}

.other-work__pair-image {
  aspect-ratio: 4 / 3;
}

.other-work__trio-image {
  aspect-ratio: 1 / 1;
}

.other-work__item-title {
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.other-work__spencerfield {
  aspect-ratio: 16 / 10;
}

.case-study__teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4rem;
}

.case-study__teaser-media,
.case-study__teaser-content {
  flex: 1 1 380px;
}

.case-study__teaser-media .img-placeholder {
  aspect-ratio: 4 / 3;
}


/* -------------------------------------------------------------
   7. "THE BIT I LIKE MOST"
   ------------------------------------------------------------- */
.about-bit {
  padding-top: 0; /* the projects section's trailing .divider owns the gap above */
  padding-bottom: var(--space-section);
}

.about-bit__row {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: flex-start;
}

.about-bit__media {
  flex: 1 1 380px;
}

.about-bit__content {
  flex: 1.4 1 460px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-bit__content .section-title {
  margin-bottom: 1rem;
}


/* -------------------------------------------------------------
   8. SERVICES — "WHATEVER THE IDEA NEEDS"
   ------------------------------------------------------------- */
.services {
  padding-top: var(--space-section);
  padding-bottom: 0; /* the .divider after this section owns the gap to side projects */
}

.services__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem 2rem;
}

.service {
  flex: 1 1 calc(33.333% - 2rem);
  min-width: 260px;
}

/* Pill-style badge behind each service title */
.service__title {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 700;
  background-color: var(--color-white);
  border: 1px solid var(--color-light);
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  margin-bottom: 1.25rem;
}

.service__desc {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-dark);
}


/* -------------------------------------------------------------
   9. SIDE PROJECTS
   ------------------------------------------------------------- */
.side-projects {
  padding-top: 0; /* the services section's trailing .divider owns the gap above */
  padding-bottom: 0; /* the .divider after this section owns the gap to "building at the beginning" */
}

/* One bordered group, split into equal columns by a divider line
   between each — rather than three separate cards. */
.side-projects__grid {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--color-dark);
}

.side-project {
  flex: 1 1 calc(33.333% - 1px);
  min-width: 240px;
  padding: 2.5rem;
  border-right: 1px solid var(--color-dark);
}

.side-project:last-child {
  border-right: none;
}

.side-project__icon {
  display: block;
  font-size: 1.75rem;
  color: var(--color-red);
  margin-bottom: 1.5rem;
}

.side-project__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.side-project__desc {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.side-project__desc:last-child {
  margin-bottom: 0;
}


/* -------------------------------------------------------------
   10. "I LIKE BUILDING THINGS AT THE BEGINNING"
   ------------------------------------------------------------- */
.beginning {
  padding-top: 0; /* the side-projects section's trailing .divider owns the gap above */
  padding-bottom: var(--space-section);
}

.beginning__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 860px;
}


/* -------------------------------------------------------------
   11. FOOTER / CONTACT
   ------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding-top: var(--space-section);
  padding-bottom: 3rem;
  margin-top: var(--space-section);
}

.footer__title {
  font-size: var(--fs-section);
  font-weight: 700;
  letter-spacing: var(--ls-lg);
  margin-bottom: 2rem;
}

.footer__text {
  font-size: var(--fs-lg);
  line-height: var(--lh-lg);
  letter-spacing: var(--ls-lg);
  color: var(--color-light);
  max-width: 640px;
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.footer__link {
  color: var(--color-yellow);
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.footer__link--email {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer__link--linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.125rem;
  font-weight: 400;
}

.footer__link-icon {
  flex-shrink: 0;
}

.site-footer__bottom {
  font-size: 0.875rem;
  color: var(--color-light);
  opacity: 0.6;
  margin-top: 6rem;
}


/* -------------------------------------------------------------
   12. RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --fs-hero: 3rem;
    --fs-section: 2rem;
    --space-section: 6rem;
  }

  .service {
    flex: 1 1 calc(50% - 2rem);
  }
}

@media (max-width: 768px) {
  :root {
    --fs-hero: 2.25rem;
    --fs-section: 1.75rem;
    --fs-lg: 1.25rem;
    --lh-lg: 1.75rem;
    --space-section: 4rem;
    --container-padding: 1.25rem;
  }

  .about-bit__row {
    flex-direction: column;
  }

  .about-bit__media,
  .about-bit__content {
    width: 100%;
    min-width: 0;
    flex-basis: auto;
  }

  .case-study__section > .container,
  .case-study__section--reverse > .container {
    flex-direction: column;
  }

  .mosaic-feature-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-header__nav {
    gap: 1.25rem;
  }

  .service {
    flex: 1 1 100%;
  }

  .work-list--more .project-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

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

  .other-work__pair,
  .other-work__trio {
    grid-template-columns: 1fr;
  }

  .other-work__trio-image {
    aspect-ratio: 4 / 3;
  }

  /* Side-project group: stack instead of columns, so the divider
     lines need to run along the bottom of each item instead of
     down the right-hand side. */
  .side-projects__grid {
    flex-direction: column;
  }

  .side-project {
    flex: 1 1 100%;
    border-right: none;
    border-bottom: 1px solid var(--color-dark);
  }

  .side-project:last-child {
    border-bottom: none;
  }

  .footer__link--email {
    font-size: 1.25rem;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: 1rem;
  }

  .site-header__nav {
    display: grid;
    grid-template-areas:
      "work cv"
      "email linkedin";
    grid-template-columns: auto auto;
    justify-content: end;
    justify-items: end;
    align-items: center;
    gap: 0.75rem 1rem;
  }

  .site-header__nav .nav-link--work {
    grid-area: work;
  }

  .site-header__nav .nav-link--cta {
    grid-area: cv;
  }

  .site-header__nav .nav-link__label {
    display: none;
  }

  .site-header__nav .nav-link__label-short {
    display: inline;
  }

  .site-header__nav .nav-email {
    grid-area: email;
  }

  .site-header__nav .nav-linkedin {
    grid-area: linkedin;
  }
}

@media (max-width: 480px) {
  .project__details {
    flex-direction: column;
    gap: 1.5rem;
  }
}

.case-study img.align_top,
.projects .project__media img.align_top,
.work-list .project__media img.align_top {
  object-position: center 35%;
}
