/* ============================================
   Josh Payne — sales & digital growth
   Easy to edit: colours and fonts are at the top.
   ============================================ */

:root {
  --bg: #f4f1eb;
  --bg-alt: #ebe6dd;
  --surface: #fffcf7;
  --ink: #1c1916;
  --muted: #6b655e;
  --line: #ddd6cb;
  --accent: #3f5c4e;
  --accent-hover: #31483d;
  --shadow: 0 16px 40px rgba(28, 25, 22, 0.06);
  --radius: 18px;
  --max: 1120px;
  --header: 4.5rem;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Figtree", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--surface);
  padding: 0.6rem 1rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  background: var(--bg);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

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

.site-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* Hero */

.hero {
  padding: 5.5rem 0 6.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.4rem;
  align-items: center;
}

.hero h1 {
  margin: 0;
  padding-bottom: 0.12em;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 36rem;
  margin: 0 0 2.25rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero p.hero-title {
  margin: 2.6rem 0 0.7rem;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 500;
}

.hero p.hero-lede {
  margin: 0 0 0.85rem;
  color: var(--ink);
  font-size: 1.08rem;
}

.hero p.hero-intro {
  margin: 0 0 2.1rem;
  font-size: 1.02rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-alt);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 32% 42%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button-primary {
  background: var(--ink);
  color: var(--surface);
}

.button-primary:hover {
  background: var(--accent);
}

.button-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--ink);
}

.button-small {
  min-height: 2.6rem;
  padding-inline: 1.1rem;
  font-size: 0.88rem;
}

/* Sections */

.section {
  padding: 5rem 0;
  scroll-margin-top: 5rem;
}

.section-alt {
  background: var(--bg-alt);
}

.section-heading {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  max-width: 38rem;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 600;
}

/* Work */

.work-grid {
  display: grid;
  gap: 1.25rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-card.featured {
  display: grid;
  margin-top: 2.75rem;
  padding: 1rem 1rem 1.5rem;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-alt);
}

.project-card img.thumb-top {
  object-position: top center;
  aspect-ratio: 4 / 3;
}

.project-card.featured img {
  border-radius: 12px;
  object-position: center;
}

.project-media {
  display: grid;
  gap: 0.65rem;
}

.project-media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  background: #1c1916;
  display: block;
}

.stills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.stills-grid img {
  aspect-ratio: 4 / 3;
}

.project-body {
  padding: 1.4rem 1.4rem 1.5rem;
}

.project-label {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}

.project-body p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--muted);
}

.project-note {
  margin: 0.7rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.work-more {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.25rem;
}

/* Services */

.service-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  padding: 1.25rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.service-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.offer-list li {
  padding: 1.6rem 1.5rem 1.7rem;
}

.offer-list h3 {
  margin-bottom: 0.7rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.offer-list p {
  line-height: 1.65;
}

.offer-list .skill-line {
  margin-top: 0.85rem;
  font-size: 0.92rem;
}

/* About */

.about-grid {
  display: grid;
  gap: 2.5rem;
}

.about-copy p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  max-width: 40rem;
}

.aside-note {
  padding: 1.4rem 1.5rem;
  border-left: 2px solid var(--accent);
  background: var(--surface);
}

.aside-note h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
}

.aside-note p {
  margin: 0;
  color: var(--muted);
}

.looking-copy {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
}

/* Contact */

.contact-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}

.contact-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-list a:hover strong {
  color: var(--accent);
}

/* Footer */

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

/* Motion */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Layout from tablet up */

@media (min-width: 720px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
  }

  .work-more {
    grid-template-columns: 1fr 1fr;
  }

  .project-card.featured {
    grid-template-columns: 1.25fr 1fr;
    align-items: start;
    gap: 1.15rem;
    padding: 1.15rem;
  }

  .service-list {
    grid-template-columns: 1fr 1fr;
  }

  .offer-list {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
  }

  .contact-list {
    max-width: 38rem;
  }
}

@media (min-width: 900px) {
  .offer-list {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .project-card.featured {
    grid-template-columns: 1.35fr 1fr;
    align-items: start;
    gap: 1.15rem;
    padding: 1.15rem;
  }

  .project-card.featured img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 719px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0;
  }

  .hero {
    padding: 3.5rem 0 4.5rem;
  }

  .hero-photo img {
    aspect-ratio: 3 / 4;
    max-height: 28rem;
  }

  .section {
    padding: 3.75rem 0;
  }
}
