/* PrintedForFun — brand tokens taken from "PFF Branding.pptx" */
:root {
  --navy-900: #16242c;
  --navy-800: #1d2b34;
  --navy-700: #212c34;
  --navy-600: #344852;
  --teal-500: #3295a4;
  --teal-600: #247682;
  --grey-300: #aebbc2;
  --white: #f5f7f8;

  --font: "Aptos", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Aptos Display", "Aptos", "Segoe UI Variable Display", "Segoe UI",
    system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --content: 1120px;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Faint mesh grid, echoing the scan mesh in the logo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(ellipse 60% 45% at 50% 20%, rgba(50, 149, 164, 0.16), transparent 70%),
    linear-gradient(rgba(174, 187, 194, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174, 187, 194, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 25%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 25%, #000 40%, transparent 100%);
  pointer-events: none;
}

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

a {
  color: var(--teal-500);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-300);
}

.accent {
  color: var(--teal-500);
}

/* ---------- Top bar ---------- */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px var(--gutter);
}

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

.topbar nav {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
}

.topbar nav a:hover {
  color: var(--teal-500);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--navy-600);
  border-radius: 999px;
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.button:hover,
.button[aria-current="page"] {
  color: var(--white);
  border-color: var(--teal-500);
  background: rgba(50, 149, 164, 0.14);
}

.button--lg {
  padding: 13px 24px;
  font-size: 0.9375rem;
}

.button--primary {
  border-color: var(--teal-500);
  background: var(--teal-500);
  color: var(--navy-900);
}

.button--primary:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--navy-900);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */

.hero {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__logo {
  width: clamp(150px, 32vw, 220px);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

.hero__title {
  margin: 28px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero__title span {
  color: var(--teal-500);
}

.hero__services {
  margin: 16px 0 0;
  color: var(--teal-500);
}

.hero__claim {
  margin: 20px 0 0;
  max-width: 34ch;
  font-size: 1.125rem;
  color: var(--grey-300);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Sections ---------- */

.section {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 72px var(--gutter);
}

.section__head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section__head .label {
  margin: 0;
}

.section__head .label span {
  color: var(--teal-500);
}

.section__title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.section__lead {
  margin: 14px 0 0;
  font-size: 1.0625rem;
  color: var(--grey-300);
}

.card {
  background: rgba(29, 43, 52, 0.8);
  border: 1px solid var(--navy-600);
  border-radius: var(--radius);
}

/* ---------- Services ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px;
  margin-bottom: 20px;
}

.about__photo {
  margin: 0;
  overflow: hidden;
}

.about__photo img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: 60% 30%;
}

.about__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 44px);
}

.about__stat {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--teal-500);
}

.about__text h3 {
  margin: 8px 0 12px;
  font-size: 1.25rem;
}

.about__text p {
  margin: 0;
  color: var(--grey-300);
}

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

.service {
  padding: 24px;
}

.service--wide {
  grid-column: 1 / -1;
}

.service__num {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--teal-500);
}

.service h3 {
  margin: 14px 0 8px;
  font-size: 1.125rem;
  line-height: 1.3;
}

.service p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--grey-300);
}

/* ---------- Projects ---------- */

.project + .project {
  margin-top: 56px;
}

.project__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--navy-600);
}

.project__head h3 {
  margin: 0;
  font-size: 1.375rem;
}

.project__head p {
  margin: 0;
  max-width: 60ch;
  color: var(--grey-300);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 3px 10px;
  border: 1px solid var(--navy-600);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--grey-300);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

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

.gallery--featured > :first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--navy-600);
  background: #5a5f63;
}

.shot a {
  display: block;
  height: 100%;
  cursor: zoom-in;
}

.shot img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery--featured > :first-child img {
  aspect-ratio: auto;
}

.shot--contain img {
  object-fit: contain;
}

.shot a:hover img {
  transform: scale(1.03);
}

.shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 10px;
  background: linear-gradient(transparent, rgba(22, 36, 44, 0.92));
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  pointer-events: none;
}

/* ---------- Lightbox ---------- */

.lightbox {
  max-width: min(1600px, 94vw);
  max-height: 94vh;
  padding: 0;
  border: 1px solid var(--navy-600);
  border-radius: var(--radius);
  background: var(--navy-800);
  color: var(--white);
}

.lightbox::backdrop {
  background: rgba(10, 18, 22, 0.88);
}

.lightbox img {
  max-width: 100%;
  max-height: calc(94vh - 56px);
  margin: 0 auto;
}

.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  font-size: 0.875rem;
}

.lightbox__close {
  flex: none;
  padding: 4px 12px;
  border: 1px solid var(--navy-600);
  border-radius: 999px;
  background: none;
  color: var(--white);
  font: inherit;
  cursor: pointer;
}

.lightbox__close:hover {
  border-color: var(--teal-500);
}

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

.contact__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 12px;
  padding: 24px;
}

.contact__cta p {
  margin: 0;
  max-width: 48ch;
  color: var(--grey-300);
}

.contact__cta strong {
  display: block;
  color: var(--white);
  font-size: 1.125rem;
}

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 16px 18px;
  background: rgba(29, 43, 52, 0.8);
  border: 1px solid var(--navy-600);
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.link:hover {
  color: var(--white);
  border-color: var(--teal-500);
  background: var(--navy-800);
  transform: translateY(-2px);
}

.link__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(50, 149, 164, 0.14);
  color: var(--teal-500);
}

.link__icon svg {
  width: 22px;
  height: 22px;
}

.link__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.link__platform {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-300);
}

.link__handle {
  font-weight: 600;
  overflow-wrap: anywhere;
}

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

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding: 24px var(--gutter);
  border-top: 1px solid var(--navy-600);
  font-size: 0.875rem;
  color: var(--grey-300);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Legal pages ---------- */

.legal {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px var(--gutter) 72px;
}

.legal h1 {
  margin: 8px 0 32px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.legal h2 {
  margin: 40px 0 8px;
  font-size: 1.125rem;
  color: var(--teal-500);
}

.legal h3 {
  margin: 24px 0 4px;
  font-size: 1rem;
}

.legal p,
.legal li {
  color: #d5dde1;
}

.legal address {
  font-style: normal;
}

/* Placeholder still to be filled in — highly visible on purpose */
.todo {
  padding: 0 4px;
  border-radius: 4px;
  background: #e8b931;
  color: var(--navy-900);
  font-weight: 600;
}

.legal .meta {
  margin-top: 48px;
  font-size: 0.875rem;
  color: var(--grey-300);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .services,
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .about {
    grid-template-columns: 1fr;
  }

  .about__photo img {
    max-height: 320px;
  }
}

@media (max-width: 600px) {
  .topbar nav {
    display: none;
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .services,
  .links {
    grid-template-columns: 1fr;
  }

  .gallery,
  .gallery--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .gallery--featured > :first-child {
    grid-row: auto;
  }

  .shot figcaption {
    font-size: 0.75rem;
    padding: 20px 10px 8px;
  }
}

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

  * {
    transition: none !important;
  }
}
