/* =====================================================================
   Evergreen Media Agency: portfolio site
   ---------------------------------------------------------------------
   Styled with my-design-kit. Colours, type, radii, shadows and motion
   all come from css/kit/tokens.css, so change them there.

   Layouts (laptop first):
     1. Laptop     wider than 1024px  -> the main layout (default rules)
     2. Small      700px to 1024px    -> same layout, tighter
        laptop
     3. Phone      under 700px        -> single-column phone layout

   The main navigation is the kit's tubelight nav: a floating pill at the
   top of the screen, which moves to the bottom (icons only) on phones.
   ===================================================================== */


/* ---------------------------------------------------------------------
   1. LAPTOP (default)
   --------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--kit-background);
  color: var(--kit-foreground);
  font-family: var(--kit-font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--kit-primary-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color var(--kit-dur-instant) var(--kit-ease-standard);
}

a:hover {
  color: var(--kit-foreground);
}

:focus-visible {
  outline: 2px solid var(--kit-primary);
  outline-offset: 3px;
}

::selection {
  background: var(--kit-lime);
  color: var(--kit-forest);
}

/* ---- type ---------------------------------------------------------- */

h1,
h2 {
  margin: 0 0 16px;
  font-family: var(--kit-font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.1;
}

h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.15;
}

h3 {
  margin: 0 0 8px;
  font-family: var(--kit-font-display);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 16px;
}

/* Small mono label above headings: the kit's signature detail */
.eyebrow,
.meta,
.role {
  margin: 0 0 12px;
  font-family: var(--kit-font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kit-muted-foreground);
}

.lead {
  max-width: 60ch;
  font-size: 18px;
  color: var(--kit-muted-foreground);
}

/* ---- page frame ---------------------------------------------------- */

.site-header,
main > section,
.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

main > section {
  padding-top: 120px;
  padding-bottom: 0;
  scroll-margin-top: 72px; /* clears the floating nav */
}

main > section:last-child {
  padding-bottom: 120px;
}

/* Header: just the logo; the nav floats above everything */
.site-header {
  display: flex;
  align-items: center;
  min-height: 112px;
}

.logo img {
  /* transparent landscape logo (assets/evergreen-logo-green.png) */
  width: 120px;
  height: auto;
}

/* Full-bleed dark band without extra markup */
.band-dark {
  box-shadow: 0 0 0 100vmax var(--kit-background);
  margin-top: 120px; /* cream space before the band; sections only pad their tops */
  clip-path: inset(0 -100vmax);
  padding-bottom: 120px;
}

.band-dark + section {
  /* the band already supplies the gap */
  padding-top: 120px;
}

/* ---- buttons ------------------------------------------------------- */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--kit-primary);
  border-radius: var(--kit-radius-pill);
  background: var(--kit-primary);          /* the main colour */
  color: var(--kit-primary-foreground);    /* dark text: 5.2 : 1 on sage */
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--kit-dur-quick) var(--kit-ease-out),
    box-shadow var(--kit-dur-quick) var(--kit-ease-out),
    background-color var(--kit-dur-instant) var(--kit-ease-standard),
    color var(--kit-dur-instant) var(--kit-ease-standard);
}

.button:hover {
  border-color: var(--kit-foreground);
  background: var(--kit-foreground);
  color: var(--kit-background);
  transform: translateY(-2px);
  box-shadow: var(--kit-shadow-lg);
}

.button:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 120ms;
}

.button--ghost {
  background: transparent;
  color: var(--kit-foreground);
  border-color: var(--kit-border);
}

.button--ghost:hover {
  background: transparent;
  color: var(--kit-foreground);
  border-color: var(--kit-foreground);
}

/* Text link with an arrow that nudges on hover */
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.more-link::after {
  content: "\2192";
  transition: transform var(--kit-dur-quick) var(--kit-ease-out);
}

.more-link:hover::after {
  transform: translateX(4px);
}

/* ---- 1. cover ------------------------------------------------------ */

.cover {
  padding-top: 24px !important;
}

.cover-text {
  max-width: 920px;
}

.cover-text h1 {
  margin-bottom: 20px;
}

.cover-media {
  position: relative;
  margin: 56px 0 0;
}

.cover-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 72vh;
  object-fit: cover;
  border-radius: var(--kit-radius-md);
  box-shadow: var(--kit-shadow-card);
  background: var(--kit-muted);
}

.cover-media figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 12px;
  border-radius: var(--kit-radius-pill);
  background: color-mix(in srgb, var(--kit-cream) 72%, transparent);
  -webkit-backdrop-filter: blur(var(--kit-blur-glass));
  backdrop-filter: blur(var(--kit-blur-glass));
  font-family: var(--kit-font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--kit-forest);
}

/* ---- 2. about ------------------------------------------------------ */

.about {
  display: grid;
  grid-template-columns: 320px 1fr;
  column-gap: 64px;
  align-items: start;
}

/* No photo yet: the text uses the full width */
.about.about--no-photo {
  grid-template-columns: 1fr;
}

.about > .eyebrow,
.about > h2 {
  grid-column: 1 / -1;
}

.about > h2 {
  margin-bottom: 40px;
}

.about-text h3 {
  margin-bottom: 4px;
  font-family: var(--kit-font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.about-text p:not(.role) {
  max-width: 60ch;
  font-size: 18px;
}

.placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--kit-border);
  border-radius: var(--kit-radius-md);
  background: var(--kit-muted);
  color: var(--kit-muted-foreground);
  font-family: var(--kit-font-mono);
  font-size: 14px;
  text-align: center;
}

.placeholder p {
  margin: 0;
}

/* ---- 3. latest work: glass folders --------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* minmax lets the folders shrink to fit */
  gap: 56px 32px;
  margin-top: 40px;
}

.work-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.work-card .folder-slot {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 24px;
}

.work-card .meta {
  margin-bottom: 8px;
}

.work-card p:not(.meta) {
  color: var(--kit-muted-foreground);
}

/* Before the script runs (or without it), the folder's files are links */
[data-kit="glass-folder"]:not(.gf-root) {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ---- 4. videos: coverflow ----------------------------------------- */

.niche-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--kit-border);
  border-radius: var(--kit-radius-pill);
  background: transparent;
  color: var(--kit-foreground);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color var(--kit-dur-instant) var(--kit-ease-standard),
    border-color var(--kit-dur-instant) var(--kit-ease-standard),
    color var(--kit-dur-instant) var(--kit-ease-standard);
}

.chip small {
  font-family: var(--kit-font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--kit-muted-foreground);
}

.chip:hover {
  border-color: var(--kit-foreground);
}

.chip[aria-pressed="true"] {
  background: var(--kit-primary);
  border-color: var(--kit-primary);
  color: var(--kit-primary-foreground);
}

.chip[aria-pressed="true"] small {
  color: var(--kit-primary-foreground);
}

.videos [data-kit="coverflow"] {
  margin-top: 8px;
}

.section-foot {
  margin-top: 24px;
  text-align: center;
}

/* ---- 5. photo shoots: arch galleries ------------------------------ */

.shoot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.shoot {
  padding: 32px 24px 28px;
  border: 1px solid var(--kit-border);
  border-radius: var(--kit-radius-md);
  text-align: center;
}

.shoot:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.shoot h3 {
  font-family: var(--kit-font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.shoot [data-kit="arch-gallery"] {
  padding: 24px 0;
}

/* ---- 6. services --------------------------------------------------- */

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 32px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: service;
}

.service-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--kit-border);
  font-size: 18px;
  counter-increment: service;
}

.service-list li::before {
  content: counter(service, decimal-leading-zero);
  font-family: var(--kit-font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--kit-primary-ink);
}

/* ---- 7. brands ----------------------------------------------------- */

.brand-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 0;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--kit-font-display);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.brand-list li {
  display: inline-flex;
  align-items: center;
}

.brand-list li + li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin: 0 24px;
  border-radius: 50%;
  background: var(--kit-accent);
}

.brands {
  text-align: center;
}

/* ---- 8. results (dark band) --------------------------------------- */

.results .lead {
  color: var(--kit-muted-foreground);
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 32px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.stat-list li {
  padding: 24px 0 28px;
  border-top: 1px solid var(--kit-border);
}

.stat-list strong {
  display: block;
  font-family: var(--kit-font-display);
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--kit-primary);
}

.stat-list span {
  display: block;
  margin-top: 8px;
  color: var(--kit-muted-foreground);
}

.case-studies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.case-studies article {
  padding: 24px;
  border: 1px solid var(--kit-border);
  border-radius: var(--kit-radius-md);
  background: color-mix(in srgb, var(--kit-foreground) 4%, transparent);
}

.case-studies p {
  margin: 0;
  color: var(--kit-muted-foreground);
}

.results .button-row .button--ghost {
  color: var(--kit-foreground);
}

/* ---- 9. contact ---------------------------------------------------- */

.contact {
  text-align: center;
}

.contact h2 {
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
}

.contact .lead {
  margin-left: auto;
  margin-right: auto;
}

.contact .button-row {
  justify-content: center;
}

.contact address {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
  margin-top: 40px;
  font-style: normal;
  font-family: var(--kit-font-mono);
  font-size: 14px;
  color: var(--kit-muted-foreground);
}

.contact address p {
  margin: 0;
}

/* ---- portfolio page ------------------------------------------------ */

.page-intro {
  padding-top: 24px !important;
}

.jump-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.jump-links a {
  text-decoration: none;
}

.niche {
  margin-top: 64px;
}

.niche > p {
  max-width: 60ch;
  color: var(--kit-muted-foreground);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 16px;
  margin-top: 24px;
}

.video-grid figure {
  margin: 0;
}

.video-grid video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border-radius: var(--kit-radius-md);
  background: var(--kit-forest);
  box-shadow: var(--kit-shadow-card);
}

.video-grid figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
}

/* the landscape showreel gets the full width */
.video-grid--wide {
  grid-template-columns: 1fr;
}

.video-grid--wide video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.photos .shoot--grid {
  margin-top: 64px;
  padding: 0;
  border: 0;
  text-align: left;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  background: var(--kit-muted);
  transition:
    transform var(--kit-dur-quick) var(--kit-ease-out),
    box-shadow var(--kit-dur-quick) var(--kit-ease-out);
}

@media (hover: hover) {
  .photo-grid img:hover {
    transform: translateY(-4px);
    box-shadow: var(--kit-shadow-card);
  }
}

.cta {
  text-align: center;
}

.cta .button-row {
  justify-content: center;
}

/* ---- footer (dark band) ------------------------------------------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 48px;
  padding-bottom: 48px;
  box-shadow: 0 0 0 100vmax var(--kit-background);
  clip-path: inset(0 -100vmax);
}

.site-footer img {
  /* transparent cream logo on the dark band (assets/evergreen-logo-cream.png) */
  width: 120px;
  height: auto;
}

.site-footer ul {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--kit-foreground);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--kit-primary);
}

.site-footer p {
  margin: 0;
  font-family: var(--kit-font-mono);
  font-size: 14px;
  color: var(--kit-muted-foreground);
}


/* ---------------------------------------------------------------------
   2. SMALL LAPTOP / TABLET: 1024px and below
      Same layout, tighter spacing
   --------------------------------------------------------------------- */

@media (max-width: 1024px) {

  .site-header,
  main > section,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  main > section,
  .band-dark + section {
    padding-top: 88px;
  }

  main > section:last-child,
  .band-dark {
    margin-top: 88px;
    padding-bottom: 88px;
  }

  .about {
    grid-template-columns: 240px 1fr;
    column-gap: 40px;
  }

  .card-grid {
    gap: 48px 16px;
  }

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

  .shoot:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .service-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-list,
  .case-studies {
    column-gap: 16px;
  }

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

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


/* ---------------------------------------------------------------------
   3. PHONE: under 700px
      Everything stacks into one column
   --------------------------------------------------------------------- */

@media (max-width: 699.98px) {

  body {
    font-size: 16px;
  }

  .site-header {
    min-height: 88px;
  }

  .logo img {
    width: 100px;
  }

  main > section,
  .band-dark + section {
    padding-top: 64px;
  }

  main > section:last-child,
  .band-dark {
    margin-top: 64px;
    padding-bottom: 64px;
  }

  .cover-media {
    margin-top: 32px;
  }

  .cover-video {
    aspect-ratio: 4 / 5;
    max-height: 64vh;
  }

  .button-row .button {
    flex: 1 1 auto;
  }

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

  .about > h2 {
    margin-bottom: 24px;
  }

  .about-photo {
    max-width: 280px;
    margin-bottom: 24px;
  }

  .card-grid,
  .service-list,
  .stat-list,
  .case-studies {
    grid-template-columns: 1fr;
  }

  .shoot {
    padding: 24px 12px 20px;
  }

  /* on a phone the names stack, so a dot never starts a line */
  .brand-list {
    flex-direction: column;
  }

  .brand-list li + li::before {
    display: none;
  }

  .video-grid,
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 8px;
  }

  .video-grid--wide {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}
