/* Brittany Monaghan portfolio: homepage. Layout ported from the Exposed Webflow template. */

:root {
  --black: #000000;
  --panel: #111111;
  --panel-2: #181818;
  --text: rgb(230 230 230);
  --white: #ffffff;
  --muted: #a9acb0;
  --purple: #7b1fa2;        /* her palette, 17 Oct 2026 */
  --purple-dark: #431f87;
  --purple-light: #af6fc3;
  --purple-pale: #dbc0e4;
  --blue: #431f87;          /* was blue; Brittany's darkest purple, 21 Oct 2026 */
  --font: "Inter", Arial, sans-serif;
  --pad: clamp(1.25rem, 5.5vw, 5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Film grain over everything, like the reference's graded photography */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--purple-dark); color: var(--white); }
img, svg { display: block; }
.sprite { position: absolute; overflow: hidden; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--purple-light); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 60;
  background: var(--purple); color: var(--white); padding: 0.6rem 1rem; font-weight: 700;
}
.skip:focus { top: 0.75rem; }

/* ---------- Nav ---------- */

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: 4.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1rem, 2.2vw, 2rem);
  transition: background-color 0.35s ease;
}
.navbar.is-solid { background: var(--black); }

.brand { display: inline-flex; background: var(--purple); }
.brand span {
  padding: 0.25rem 0.5rem;
  font-weight: 800;
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  line-height: 1;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.nav-menu { display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2.25rem); }
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0 0.6rem;
  background: var(--black);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 0.25s ease;
}
.nav-link[aria-current="true"] { background: var(--blue); }

.menu-btn {
  display: none;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border: 0;
  background: var(--black);
  color: var(--white);
  font: 500 0.75rem/1 var(--font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- Hero: the work is the hero ---------- */

.grid-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: calc(100svh / 3);
  background: var(--black);
}

.tile {
  position: relative;
  overflow: hidden;
  min-width: 0;
  background: var(--panel-2);
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 0.7s var(--ease);
}

.tile-title {
  position: absolute;
  left: clamp(0.75rem, 1.4vw, 1.25rem);
  bottom: clamp(0.75rem, 1.4vw, 1.25rem);
  margin: 0;
  padding: 0.55rem 1.25rem;
  background: var(--black);
  color: var(--white);
  font-size: clamp(0.85rem, 1.25vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

/* Like the reference: on mouse devices the title appears on hover; on touch it is always shown. */
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile-title { background: var(--purple); }
  .tile:hover img { transform: scale(1); }
}
.tile[data-focus="bottom"] img { object-position: center 80%; }

/* ---------- About ---------- */

/* Keeps phrases together so lines never end on a single dangling word (desktop). */
@media (min-width: 992px) { .nobr { white-space: nowrap; } }

.about { position: relative; padding-block: clamp(5rem, 11vw, 10rem) clamp(4rem, 9vw, 8rem); overflow: hidden; }
.about-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 80%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 80%, transparent);
}

.container { position: relative; width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--pad); }

.section-header {
  margin: 0;
  max-width: 24ch;
  color: var(--white);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
}
.text-accent { color: var(--purple-light); }

.collage {
  position: relative;
  margin-top: clamp(3rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
}
.collage-a { grid-column: 1 / span 4; grid-row: 1; margin-top: 3rem; position: relative; z-index: 2; }
.collage-b { grid-column: 4 / span 6; grid-row: 1 / span 3; }
.collage img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.collage-b img { aspect-ratio: 4 / 5; }

.quote-box {
  grid-column: 9 / span 4;
  grid-row: 1;
  align-self: start;
  margin: 4rem 0 0;
  padding: 1.75rem 2rem;
  background: var(--black);
  border: 4px solid var(--purple-light);
  color: var(--white);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  font-weight: 600;
  line-height: 1.3;
  position: relative;
  z-index: 3;
}


.career {
  margin-top: clamp(4rem, 9vw, 8rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.sub-header {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  max-width: 30ch;
  color: var(--white);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}
.career-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.career-list li {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
  background: var(--black);
}
.cl-role { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; color: var(--white); }
.cl-org { font-size: clamp(0.95rem, 1.4vw, 1.125rem); font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white); }
.cl-year { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.25em; color: var(--white); }
.career-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Services: stacked cards ---------- */

.services { padding-block: clamp(5rem, 10vw, 9rem) clamp(5rem, 10vw, 10rem); }

.block-header {
  display: table;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  padding: 0 0.5rem;
  background: var(--black);
  color: var(--white);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.2;
}

.services-list {
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--pad);
  display: grid;
  gap: clamp(4rem, 12vw, 12rem);
}

.service-card {
  position: sticky;
  top: 6rem;
  padding: clamp(0.75rem, 1.6vw, 1.25rem);
  background-color: var(--panel);
  background-size: cover;
  background-position: center;
}
.service-card:nth-child(1) { background-color: var(--purple-dark); }
.service-card:nth-child(2) { background-color: var(--purple); }
.service-card:nth-child(3) { background-color: var(--purple-light); }
.service-card:nth-child(4) { background-color: var(--purple-pale); }
.service-card:nth-child(2) { top: 7rem; }
.service-card:nth-child(3) { top: 8rem; }

.service-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: rgb(17 17 17 / 0.92);
}
.service-copy h3 { margin: 0 0 0.75rem; color: var(--white); font-size: clamp(1.6rem, 2.6vw, 2rem); font-weight: 800; line-height: 1.15; }
.service-copy p { margin: 0; max-width: 36ch; font-size: 1.125rem; }

.service-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.service-rows li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.9rem;
  background: rgb(255 255 255 / 0.06);
  color: var(--white);
  font-size: 0.9375rem;
}
.service-rows li span:first-child { font-weight: 700; }
.service-rows li span:last-child { color: var(--muted); text-align: right; }

.btn-blue {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  background: var(--blue);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background-color 0.25s ease;
}
.btn-blue svg { width: 0.9rem; height: 0.9rem; color: var(--purple-light); }

/* ---------- Contact ---------- */

.contact {
  max-width: 1360px;
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 5rem) var(--pad) clamp(4rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(3rem, 6vw, 5rem);
  align-items: end;
}
.contact-header { margin: 0 0 1.5rem; max-width: 16ch; color: var(--white); font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 900; line-height: 1.05; }
.contact-sub { margin: 0 0 2rem; font-size: 1.125rem; }
.contact-links { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; gap: 0.75rem; }
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  color: var(--white);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  transition: color 0.2s ease;
}
.contact-links svg { width: 1.3rem; height: 1.3rem; color: var(--purple-light); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 2rem;
  border: 3px solid var(--white);
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.btn-outline svg { width: 1.2rem; height: 1.2rem; color: var(--purple-light); }

.company-title {
  display: table;
  margin: 0 0 2rem;
  padding: 0.2rem 0.75rem;
  background: var(--purple-dark);
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
}
.company-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.company-list li { color: #8e9196; font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 800; line-height: 1.15; }

/* ---------- Footer ---------- */

.footer-strip { display: grid; grid-template-columns: 504fr 635fr 575fr; aspect-ratio: 1714 / 424; }   /* her layout, 26 Oct 2026 */
.footer-strip img { width: 100%; height: 100%; object-fit: cover; }

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding: 1.25rem clamp(1rem, 2.2vw, 2rem);
}
.brand-sm span { font-size: 1.05rem; }
.footer-note { margin: 0; flex: 1; color: #7d8086; font-size: 0.8125rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.75rem;
  background: #1c1c1c;
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background-color 0.25s ease;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .grid-hero .tile { opacity: 0; animation: tile-in 0.6s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms + 100ms); }
  .js .pop { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }

  /* Press feedback: anything you can tap gives a little. */
  .brand, .nav-link, .menu-btn, .btn-blue, .btn-outline, .footer-links a, .contact-links a {
    transition-property: background-color, color, transform;
    transition-duration: 0.2s, 0.2s, 0.16s;
    transition-timing-function: ease, ease, var(--ease);
  }
  .brand:active, .nav-link:active, .menu-btn:active, .btn-blue:active, .btn-outline:active, .footer-links a:active, .contact-links a:active { transform: scale(0.97); }

  /* Phone menu grows out of the Menu button instead of popping in. */
  @media (max-width: 767px) {
    .nav-menu { transform-origin: top right; transition: opacity 0.18s var(--ease), transform 0.18s var(--ease); }
    .navbar.menu-open .nav-menu { @starting-style { opacity: 0; transform: scale(0.96) translateY(-4px); } }
  }
  .js .pop.is-in { opacity: 1; transform: none; }
}
@keyframes tile-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile img, .tile:hover img { transform: none; transition: none; }
  .tile-title, .tile:hover .tile-title { transform: none; }
}

/* Hover only on a real mouse, so taps on phones don't leave things stuck highlighted. */
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { background: #222; }
  .btn-blue:hover { background: var(--purple); }
  .contact-links a:hover { color: var(--purple-light); }
  .btn-outline:hover { background: var(--white); color: var(--black); }
  .footer-links a:hover { background: var(--blue); }
}

/* ---------- Desktop ---------- */

@media (min-width: 992px) {
  .career { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .service-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 3rem; }
  .service-copy { grid-row: 1 / span 2; }
  .service-rows { align-self: end; margin-top: 3rem; }
  .btn-blue { grid-column: 2; }
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); }
}

/* ---------- Tablet and phone ---------- */

@media (max-width: 991px) {
  .collage { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 1rem; }
  .collage-a { grid-column: 1 / span 3; margin-top: 2rem; }
  .collage-b { grid-column: 3 / span 4; grid-row: 1; }
  .quote-box { grid-column: 1 / -1; grid-row: 2; margin: 0; }
}

@media (max-width: 767px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav-menu {
    position: absolute;
    top: 100%;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.5rem;
    background: var(--black);
    display: none;
  }
  .navbar.menu-open .nav-menu { display: flex; }
  .navbar.menu-open { background: var(--black); }
  .nav-link { min-height: 2.75rem; font-size: 0.8125rem; }

  .grid-hero { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .tile { aspect-ratio: 3 / 4; }
  .tile:first-child { aspect-ratio: auto; height: 100svh; }

  .career-list li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0.15rem; padding-block: 0.7rem; }
  .cl-org { grid-column: 1; grid-row: 2; letter-spacing: 0.12em; }
  .cl-year { grid-column: 2; grid-row: 1 / span 2; }

  .service-card,
  .service-card:nth-child(n) { position: relative; top: auto; }
  .service-rows li { flex-direction: column; gap: 0.1rem; }
  .service-rows li span:last-child { text-align: left; }
  .btn-outline { padding: 0.9rem 1.25rem; font-size: 1rem; letter-spacing: 2px; white-space: nowrap; }
  .services-list { gap: 2rem; }
  .btn-blue { justify-self: start; }

  .footer-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); aspect-ratio: auto; }
  .footer-strip img { aspect-ratio: 3 / 2; }
  .footer-strip img:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
}

@media (max-width: 359px) {
  .brand span { font-size: 1rem; }
  .menu-btn { padding: 0 0.7rem; }
}
