@charset "UTF-8";
/* ==========================================================================
   BRANDON EPPS PORTFOLIO - STYLES

   This file controls how the site LOOKS. Each section below is labeled with a
   number. Press Ctrl+F (Cmd+F on Mac) and search for the label to jump to it.

   CONTENTS
    1. Colors and settings    (change colors, sizes and speeds here first)
    2. Page basics
    3. Buttons
    4. Top bar and section labels
    5. Full-screen menu
    6. Hero (first screen)
    7. Intro (scrolling icons and words)
    8. Projects and slideshows
    9. Services
   10. About
   11. Contact
   12. Project form pop-up
   13. Footer
   14. Tablet and phone layout
   15. Reduced motion (for people who turn animations off)

   QUICK EDITS
   - Change a color:            section 1, the lines that start with --
   - Change slideshow shape:    section 1, --slide-ratio
   - Change icon size:          section 7, ".marquee__track > img"
   - Change scrolling speed:    section 7, "--dur" (bigger number = slower)
   - Change text on the page:   that lives in index.html, not here

   COLOR FLOW
   The page goes from near-black to paper white. Each section's background
   starts on the color the section above ends on, so there are no visible seams:
     hero      #05070D (video)
     intro     #05070D to #0B1222
     sgx       #0B1222 to #10182D
     darling   #10182D to #3A4656
     filthy    #3A4656 to #A9B6BE
     services  #A9B6BE to #CED8DF
     about     #CED8DF to #F3F0E7
     contact   #F3F0E7 to #FBFAF6
   ========================================================================== */

/* ---------- 1. Colors and settings ---------- */
:root {
  --void: #05070D;
  --ink: #10182D;
  --azure: #3157D5; /* main brand blue: buttons, scroll bar, highlights */
  --azure-deep: #2A4CC0; /* darker blue shown when you hover a blue button */
  --white: #FBFAF6; /* soft white used for the form and footer */
  --mint: #99F7AB; /* the green "open to work" dot */
  --font-body: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --nav-h: 72px; /* height of the top bar */
  --steps-h: 1.5rem; /* height of the step-label strip */
  --header-h: calc(var(--nav-h) + var(--steps-h) + 3px); /* progress bar (3px) + strip + navbar */
  --pad: clamp(20px, 5vw, 72px); /* space at the left and right edges of the page */
  --max: 1560px; /* widest the content gets on very large screens */
  /* Shape of every project slideshow box (width / height). Images with a
     different shape fit inside it without being cropped. Try 4 / 3 or 1 / 1. */
  --slide-ratio: 16 / 10;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
/* Dark sections use white text, light sections use dark text. Each section
   picks one by having "theme-dark" or "theme-light" in its class in index.html. */
.theme-dark {
  --fg: #FFFFFF;
  --fg-soft: rgba(255, 255, 255, .74);
  --line: rgba(255, 255, 255, .18);
  --line-strong: rgba(255, 255, 255, .42);
  --inv-bg: #FFFFFF;
  --inv-fg: var(--ink);
  --focus: #FFFFFF;
  color: var(--fg);
}
.theme-light {
  --fg: var(--ink);
  --fg-soft: rgba(16, 24, 45, .74);
  --line: rgba(16, 24, 45, .16);
  --line-strong: rgba(16, 24, 45, .45);
  --inv-bg: var(--ink);
  --inv-fg: #FFFFFF;
  --focus: var(--azure);
  color: var(--fg);
}
/* ---------- 2. Page basics ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity; /* on small screens, scrolling gently settles on the nearest section */
  scrollbar-gutter: stable;
  scrollbar-color: var(--azure) var(--ink); /* the blue scroll bar: handle color, then track color */
  -webkit-text-size-adjust: 100%;
  background: var(--void);
}
html::-webkit-scrollbar {
  width: 12px;
}
html::-webkit-scrollbar-track {
  background: var(--ink);
}
html::-webkit-scrollbar-thumb {
  background: var(--azure);
  border-radius: 999px;
  border: 3px solid var(--ink); /* a little space around the handle */
}
html::-webkit-scrollbar-thumb:hover {
  background: var(--azure-deep);
}
/* On laptops and desktops, scrolling always stops exactly on a section. */
@media (min-width: 901px) and (min-height: 640px) and (hover: hover) {
  html {
    scroll-snap-type: y mandatory;
  }
}
html.menu-open, html.modal-open { /* stops the page scrolling behind the menu or the form */
  overflow: hidden;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.55;
  color: #fff;
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, dl, dd, figure {
  margin: 0;
}
img, video, svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--focus, #FFFFFF);
  outline-offset: 3px;
}
.snap { /* every section with "snap" in its class becomes a stopping point */
  scroll-snap-align: start;
  scroll-snap-stop: always; /* one flick moves one section, never skips */
}
.footer {
  scroll-snap-align: end; /* lets the page settle cleanly at the bottom */
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: .7rem 1rem;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
/* The thin blue bar at the very top that fills as you scroll down the page. */
#progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--azure);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 1100;
  pointer-events: none;
}
@keyframes progress {
  to {
    transform: scaleX(1);
  }
}
@supports (animation-timeline: scroll()) {
  #progress {
    animation: progress linear both;
    animation-timeline: scroll(root block);
  }
}
/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn--lg {
  padding: 1.15rem 2rem;
  font-size: 1.125rem;
}
.btn--primary {
  background: var(--azure);
  color: #fff;
  box-shadow: 0 6px 18px rgba(49, 87, 213, .32);
}
.btn--primary:hover {
  background: var(--azure-deep);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(49, 87, 213, .42);
}
.btn--ghost, .btn--outline {
  color: var(--fg);
  border-color: var(--line-strong);
  background: transparent;
}
.btn--ghost:hover, .btn--outline:hover {
  background: var(--inv-bg);
  color: var(--inv-fg);
  border-color: var(--inv-bg);
  transform: translateY(-3px);
}
.btn__arrow {
  display: inline-block;
  transition: transform .25s var(--ease);
}
.btn:hover .btn__arrow {
  transform: translateY(3px);
}
/* ---------- 4. Top bar and section labels ---------- */
.navbar {
  --focus: #FFFFFF;
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* four equal columns, matching the section labels */
  align-items: center;
  padding: calc(var(--steps-h) + 3px) 0 0;
  color: #fff;
  background: rgba(16, 24, 45, .86); /* dark navy, see-through */
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  z-index: 1001;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s .45s;
}
.navbar.is-visible {
  transform: none;
  visibility: visible;
  transition: transform .45s var(--ease), visibility 0s;
}
/* Section labels (Projects, Services, About, Contact) in a thin strip at the top.
   The label for the section you are viewing is bright with a blue underline. */
.steps {
  --idle: .45; /* how faint the other labels are (0 = hidden, 1 = fully bright) */
  position: absolute;
  top: 3px; /* sits just below the blue scroll bar */
  left: 0;
  right: 0;
  height: var(--steps-h);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  pointer-events: none;
  transition: opacity .3s ease;
}
.steps li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .75rem;
  line-height: 1.2;
  letter-spacing: .02em;
  color: #fff;
  opacity: var(--idle);
  transition: opacity .35s ease;
}
.steps li::after { /* the blue underline */
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--azure);
  opacity: 0;
  transition: opacity .35s ease;
}
.steps li a {
  color: inherit;
  text-decoration: none;
  pointer-events: auto; /* makes the label text clickable */
}
.steps li:hover, .steps li.is-active {
  opacity: 1;
}
.steps li.is-active::after {
  opacity: 1;
}
html.menu-open .steps {
  opacity: 0;
}
.navbar__logo {
  grid-column: 1;
  justify-self: center;
  display: block;
  line-height: 0;
}
.navbar__logo img {
  height: 40px;
  width: auto;
  transition: transform .3s var(--ease), filter .3s ease;
}
.navbar__logo:hover img {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, .4));
}
.navbar__right {
  grid-column: 4;
  justify-self: center;
  position: relative;
  display: flex;
  align-items: center;
}
.navbar__cta {
  position: absolute; /* sits just left of the menu button */
  right: calc(100% + 1rem);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  padding: .55rem 1rem;
  border: 1.5px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  transition: background-color .25s, color .25s, border-color .25s;
}
.navbar__cta:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.menu-btn {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}
.menu-btn span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-btn span:first-child {
  top: 16px;
}
.menu-btn span:last-child {
  top: 26px;
}
.menu-btn[aria-expanded="true"] span:first-child {
  top: 21px;
  transform: rotate(45deg);
}
.menu-btn[aria-expanded="true"] span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}
/* ---------- 5. Full-screen menu ---------- */
.menu {
  --focus: #FFFFFF;
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: var(--header-h) var(--pad) 0;
  background: var(--void);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .55s cubic-bezier(.7, 0, .2, 1), visibility 0s .55s;
}
.menu.is-open {
  clip-path: inset(0);
  visibility: visible;
  transition: clip-path .55s cubic-bezier(.7, 0, .2, 1), visibility 0s;
}
.menu__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.menu__links a {
  padding: .06em 0;
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -.045em;
  line-height: 1.05;
  color: rgba(255, 255, 255, .45);
  text-decoration: none;
  box-shadow: inset 0 -.1em 0 transparent;
  transition: color .25s, box-shadow .3s;
}
.menu__links a:hover, .menu__links a:focus-visible {
  color: #fff;
  box-shadow: inset 0 -.1em 0 var(--azure);
}
/* ---------- 6. Hero (first screen) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--void);
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 7, 13, .3) 0%, rgba(5, 7, 13, 0) 34%, rgba(5, 7, 13, .82) 100%);
}
.hero__inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: var(--nav-h) var(--pad) clamp(56px, 10vh, 104px);
}
.hero__name {
  display: block;
  font-size: clamp(4rem, 8.4vw, 8rem);
  font-weight: 800;
  font-stretch: 104%;
  letter-spacing: -.04em;
  line-height: .84;
  text-shadow: 0 4px 28px rgba(0, 0, 0, .45);
}
.hero__role {
  display: block;
  margin-top: 1rem;
  font-size: clamp(2rem, 2vw, 3rem);
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--fg-soft);
}
.hero__lede {
  max-width: 34ch;
  margin: 1.6rem 0 1.8rem;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: rgba(255, 255, 255, .86);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
/* The hero text fades up one piece at a time when the page loads. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.js .hero__name, .js .hero__role, .js .hero__lede, .js .hero__actions {
  animation: rise 1s var(--ease) both;
}
.js .hero__role {
  animation-delay: .12s;
}
.js .hero__lede {
  animation-delay: .24s;
}
.js .hero__actions {
  animation-delay: .36s;
}
/* ---------- 7. Intro (scrolling icons and words) ---------- */
.intro {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 24px) 0 72px;
  background: linear-gradient(180deg, #05070D 0%, #0B1222 100%);
  overflow: hidden;
}
.intro__inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  gap: clamp(40px, 9vh, 96px);
}
.marquees {
  display: grid;
  gap: 18px;
}
.marquee {
  overflow: hidden;
  padding-block: 8px; /* extra room so items are not clipped when they lift on hover */
  margin-block: -8px; /* cancels the padding above so nothing moves */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee:not([data-animated]) {
  overflow-x: auto;
  scrollbar-width: none;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  margin: 0;
  padding: 0 var(--pad);
  list-style: none;
}
.marquee__track > img { /* EDIT HERE: icon size. The three numbers are smallest, preferred and largest. */
  width: clamp(84px, 11vw, 140px);
  height: clamp(84px, 11vw, 140px);
  flex: none;
  object-fit: contain;
}
@keyframes marquee {
  to {
    transform: translate3d(calc(var(--shift, 50%) * -1), 0, 0);
  }
}
.marquee[data-animated] .marquee__track {
  padding: 0;
  animation: marquee var(--dur, 32s) linear infinite; /* EDIT HERE: 32s is the speed. Bigger = slower. */
}
.marquee[data-dir="right"][data-animated] .marquee__track {
  animation-direction: reverse;
}
.marquee.is-paused .marquee__track {
  animation-play-state: paused;
}
.tag-list li {
  padding: .8rem 1.25rem;
  border-radius: 10px;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, .12);
  font-weight: 500;
  white-space: nowrap;
  user-select: none;
  transition: transform .3s var(--ease), border-color .3s;
}
.tag-list li:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .4);
}
.intro__copy {
  display: grid;
  justify-items: start;
  gap: 1.5rem;
  padding: 0 var(--pad);
}
.intro__statement {
  display: grid;
  gap: .40em;
  width: 100%;
  font-size: clamp(2.2rem, 6.2vw, 5.6rem);
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -.045em;
  line-height: .98;
}
.intro__line--right {
  justify-self: end;
  text-align: right;
}
.intro__body {
  max-width: 46ch;
  color: var(--fg-soft);
}
/* Text that fades in as you scroll to it (the intro lines). */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
.js-ready [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
/* ---------- 8. Projects and slideshows ---------- */
.project {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.project--sgx {
  background: linear-gradient(180deg, #0B1222 0%, #10182D 100%);
}
.project--darling {
  background: linear-gradient(180deg, #10182D 0%, #3A4656 100%);
}
.project--filthy {
  background: linear-gradient(180deg, #3A4656 0%, #A9B6BE 100%);
}
.project__ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .22;
  filter: saturate(.8);
}
.project__inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: calc(var(--header-h) + 24px) var(--pad) 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.project--flip .project__inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
}
.project--flip .project__media {
  order: 2;
}
/* The frosted-glass info box next to each slideshow */
.panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .9rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: rgba(16, 24, 45, .6);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.panel:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .34);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}
.panel__path {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--fg-soft);
}
.panel__title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: -.04em;
  line-height: 1;
}
.panel__kind {
  font-weight: 600;
  color: var(--fg-soft);
}
.panel__text {
  color: var(--fg-soft);
  max-width: 52ch;
}
.panel__facts, .about__facts {
  width: 100%;
}
.panel__facts {
  margin: .4rem 0 0;
}
.panel__facts > div, .about__facts > div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: .65rem 0;
  border-top: 1px solid var(--line);
}
.panel__facts dt, .about__facts dt {
  color: var(--fg-soft);
  font-size: .95rem;
}
.panel__facts dd, .about__facts dd {
  font-weight: 500;
}
/* The image slideshow */
.slider {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.slider__viewport, .slider__btn {
  grid-area: 1 / 1; /* the arrow buttons sit on top of the image box */
}
.slider__bar {
  grid-area: 2 / 1;
}
.slider__viewport {
  display: flex;
  aspect-ratio: var(--slide-ratio);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
}
.slider__viewport::-webkit-scrollbar {
  display: none;
}
.slider__slide {
  position: relative;
  flex: 0 0 100%;
  min-height: 0;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.slider__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* the whole image always fits inside the box, never cropped */
}
.slider__btn {
  z-index: 1;
  align-self: center; /* keeps the arrows vertically centered on the image */
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0 0 .15rem;
  border: 0;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  color: #fff;
  background: rgba(5, 7, 13, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease);
}
.slider__btn:hover {
  background: rgba(5, 7, 13, .85);
  transform: scale(1.06);
}
.slider__btn--prev {
  justify-self: start;
  margin-left: 12px;
}
.slider__btn--next {
  justify-self: end;
  margin-right: 12px;
}
.slider__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.5rem;
  margin-top: .9rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: rgba(255, 255, 255, .85);
  background: rgba(16, 24, 45, .66);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.slider__file {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slider__dots {
  display: flex;
  gap: .5rem;
}
.slider__dot {
  position: relative;
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.slider__dot::after {
  content: "";
  position: absolute;
  inset: -9px -4px;
}
.slider__dot[aria-current="true"] {
  background: var(--azure);
  transform: scale(1.3);
  box-shadow: 0 0 4px rgba(49, 87, 213, .9), 0 0 8px rgba(49, 87, 213, .55);
}
.slider__count {
  flex: none;
}
/* Big headings used by Services and About. */
.section-title {
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  font-weight: 850;
  font-stretch: 112%;
  letter-spacing: -.05em;
  line-height: .9;
}
/* ---------- 9. Services ---------- */
.services {
  padding: clamp(120px, 14vh, 160px) var(--pad) clamp(72px, 11vh, 128px);
  background: linear-gradient(180deg, #A9B6BE 0%, #CED8DF 55%);
}
.services__inner {
  max-width: var(--max);
  margin-inline: auto;
}
.services__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
}
.services__intro {
  max-width: 40ch;
  color: var(--fg-soft);
  justify-self: end;
}
.tiers {
  margin: clamp(2rem, 5vw, 4rem) 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}
.tier {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.7fr) 13rem;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
  --tier-pad: clamp(.75rem, 2vw, 1.5rem); /* space between the hover box edge and the text */
  position: relative;
  margin-inline: calc(var(--tier-pad) * -1); /* makes the box wider so the text stays lined up */
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--tier-pad);
  border-radius: 12px;
  transition: background-color .3s, transform .35s var(--ease), box-shadow .35s;
}
.tier::after { /* the thin line under each service */
  content: "";
  position: absolute;
  left: var(--tier-pad);
  right: var(--tier-pad);
  bottom: 0;
  border-bottom: 1px solid var(--line);
}
.tier:hover {
  background: rgba(251, 250, 246, .45);
  transform: translateY(-4px); /* lifts up, same as the project boxes */
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}
.tier__name h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -.035em;
  line-height: 1.05;
}
.tier__name p {
  margin-top: .3rem;
  color: var(--fg-soft);
  font-weight: 500;
}
.tier__body > p {
  max-width: 46ch;
  margin-bottom: .8rem;
}
.tier__body ul {
  display: grid;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--fg-soft);
}
.tier__body li {
  position: relative;
  padding-left: 1.1rem;
}
.tier__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  background: var(--azure);
}
.tier__price {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: -.04em;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
  transition: color .3s;
}
.tier__price span {
  display: block;
  margin-bottom: .4rem;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--fg-soft);
}
.tier:hover .tier__price {
  color: var(--azure);
}
/* On laptops and desktops, Services is sized to fit exactly one screen so the
   scroll stops cleanly. Text and spacing shrink on shorter screens. */
@media (min-width: 901px) and (min-height: 640px) {
  .services {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + clamp(.75rem, 2vh, 1.75rem)) var(--pad) clamp(1.25rem, 3vh, 2.5rem);
  }
  .services__inner {
    width: 100%;
  }
  .services .section-title {
    font-size: clamp(2.4rem, min(7vw, 9.5vh), 6.5rem);
  }
  .tiers {
    margin: clamp(.9rem, 3vh, 2.25rem) 0 clamp(.9rem, 2.6vh, 2rem);
  }
  .tier {
    grid-template-columns: minmax(0, .8fr) minmax(0, 2.4fr) 10rem;
    padding-block: clamp(.8rem, 2.3vh, 1.75rem);
  }
  .tier__name h3 {
    font-size: clamp(1.4rem, min(3vw, 3.6vh), 2.4rem);
  }
  .tier__price {
    font-size: clamp(1.5rem, min(3.4vw, 4vh), 2.8rem);
  }
  .tier__body {
    font-size: clamp(.85rem, 1.95vh, 1.05rem);
  }
  .tier__body > p {
    max-width: 64ch;
    margin-bottom: .45rem;
  }
  .tier__body ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .2rem 1.5rem;
  }
  .services__inner > .btn { /* the "Get a custom quote" button sits on the right */
    display: flex;
    width: fit-content;
    margin-left: auto;
  }
}
/* ---------- 10. About ---------- */
.about {
  background: linear-gradient(180deg, #CED8DF 0%, #F3F0E7 45%);
}
.about__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(120px, 12vh, 140px) var(--pad);
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.about__photo {
  position: relative;
  isolation: isolate;
}
.about__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
}
.about__photo::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  z-index: -1;
  border: 1.5px solid var(--azure);
  border-radius: 6px;
}
.about__copy {
  display: grid;
  gap: 1.1rem;
}
.about__copy .section-title {
  margin-bottom: .6rem;
}
.about__lead {
  max-width: 26ch;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 700;
  font-stretch: 104%;
  letter-spacing: -.025em;
  line-height: 1.15;
}
.about__copy > p:not(.about__lead) {
  max-width: 58ch;
  color: var(--fg-soft);
}
.about__facts {
  margin-top: 1rem;
}
.dot {
  display: inline-block;
  width: .6em;
  height: .6em;
  margin-right: .55em;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 1.5px var(--ink);
}
/* On laptops and desktops, About fills one screen with its content centered
   below the top bar, the same as Services and the projects. */
@media (min-width: 901px) and (min-height: 640px) {
  .about {
    min-height: 100svh;
    display: flex;
    align-items: center;
  }
  .about__inner {
    width: 100%;
    align-items: center;
    padding-block: calc(var(--header-h) + clamp(.75rem, 2vh, 1.75rem)) clamp(1.25rem, 3vh, 2.5rem);
  }
  .about__photo img { /* keeps the photo from being taller than the screen */
    max-height: calc(100svh - var(--header-h) - 7rem);
  }
  .about__copy {
    gap: clamp(.55rem, 1.5vh, 1.1rem);
  }
  .about__copy .section-title {
    font-size: clamp(2.4rem, min(7vw, 9.5vh), 6.5rem);
    margin-bottom: .3rem;
  }
  .about__lead {
    font-size: clamp(1.3rem, min(2.6vw, 3.6vh), 2.2rem);
  }
  .about__facts {
    margin-top: clamp(.25rem, 1vh, 1rem);
  }
}
/* ---------- 11. Contact ---------- */
.contact {
  min-height: calc(100svh - 4.6rem); /* Contact plus the footer fill one screen */
  display: flex;
  align-items: center;
  padding: clamp(120px, 16vh, 180px) var(--pad) clamp(72px, 12vh, 120px);
  background: linear-gradient(180deg, #F3F0E7 0%, #FBFAF6 100%);
}
.contact__inner {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
}
.contact__title {
  position: relative;
  display: inline-block;
  padding-bottom: .22em;
  max-width: 100%;
  font-size: clamp(2.7rem, 10vw, 9rem);
  font-weight: 850;
  font-stretch: 110%;
  letter-spacing: -.05em;
  line-height: .88;
}
.contact__scribble {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(62%, 560px);
  height: .2em;
  overflow: visible;
}
.contact__scribble path {
  fill: none;
  stroke: var(--azure);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.js-ready .contact__scribble path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s var(--ease) .2s;
}
.js-ready .contact__scribble.is-in path {
  stroke-dashoffset: 0;
}
.contact__text {
  max-width: 44ch;
  margin: 1.8rem 0 2.2rem;
  color: var(--fg-soft);
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}
.social {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
.social__link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.social__link:hover {
  background: var(--inv-bg);
  color: var(--inv-fg);
  border-color: var(--inv-bg);
  transform: translateY(-3px);
}
/* ---------- 12. Project form pop-up ---------- */
.form-modal {
  width: min(640px, calc(100vw - 2 * var(--pad)));
  max-height: calc(100svh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(5, 7, 13, .5);
  overflow: auto;
}
.form-modal[open] {
  animation: rise .45s var(--ease) both;
}
.form-modal::backdrop {
  background: rgba(5, 7, 13, .7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.form-modal__close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  z-index: 1;
  width: 40px;
  height: 40px;
  padding: 0 0 .15rem;
  border: 0;
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background-color .2s;
}
.form-modal__close:hover {
  background: rgba(16, 24, 45, .08);
}
.project-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.project-form__title {
  padding-right: 2.5rem;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -.04em;
  line-height: 1;
}
.project-form__intro {
  color: var(--fg-soft);
  margin-top: -.4rem;
}
.project-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.field {
  display: grid;
  gap: .4rem;
  font-weight: 600;
  font-size: .95rem;
}
.field__hint {
  font-weight: 400;
  color: var(--fg-soft);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem .9rem;
  font: 400 1rem/1.4 var(--font-body);
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
}
.field textarea {
  min-height: 7rem;
  resize: vertical;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 1px;
  border-color: var(--azure);
}
.project-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem;
}
.project-form__actions .btn:disabled {
  opacity: .6;
  cursor: progress;
  transform: none;
}
.project-form__status {
  flex: 1 1 14rem;
  margin: 0;
  font-weight: 600;
}
.project-form__status.is-success {
  color: #1E7A3C;
}
.project-form__status.is-error {
  color: #B3261E;
}
.project-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 600px) {
  .project-form__row {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ---------- 13. Footer ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--pad);
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: .95rem;
  color: var(--fg-soft);
}
.footer a {
  text-decoration: none;
  font-weight: 600;
  color: var(--fg);
}
.footer a:hover {
  color: var(--azure);
}
/* ---------- 14. Tablet and phone layout ---------- */
/* Screens 900px wide or smaller (tablets). Everything stacks into one column. */
@media (max-width: 900px) {
  .project__inner, .project--flip .project__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .project--flip .project__media {
    order: 0;
  }
  .services__head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .services__intro {
    justify-self: start;
  }
  .tier {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .tier__price {
    text-align: left;
  }
  .about__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .about__photo {
    max-width: 420px;
  }
}
/* Screens 600px wide or smaller (phones). */
@media (max-width: 600px) {
  :root {
    --nav-h: 56px;
    --slide-ratio: 4 / 3;
  }
  .navbar__cta {
    display: none;
  }
  .navbar__logo img {
    height: 34px;
  }
  .hero__scrim {
    background: linear-gradient(180deg, rgba(5, 7, 13, .3) 0%, rgba(5, 7, 13, .1) 30%, rgba(5, 7, 13, .9) 100%);
  }
  .hero__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .intro__line--right {
    justify-self: start;
    text-align: left;
  }
  .slider__btn {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }
  .slider__file {
    display: none;
  }
  .panel__facts > div, .about__facts > div {
    grid-template-columns: 4.6rem minmax(0, 1fr);
  }
  .contact__actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  .footer {
    flex-direction: column;
    gap: .4rem;
  }
}
/* ---------- 15. Reduced motion ---------- */
/* If a visitor's device is set to reduce animation, turn animations off. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }
  *:not(#progress), *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}