:root {
  --ink: #18130f;
  --muted: #6d6258;
  --paper: #f4eadc;
  --cream: #fff8ed;
  --clay: #b46d48;
  --ember: #e38a54;
  --olive: #57513a;
  --line: rgba(24, 19, 15, 0.16);
  --shadow: 0 28px 80px rgba(48, 31, 19, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 12%, rgba(227, 138, 84, 0.2), transparent 28rem),
    radial-gradient(circle at 82% 3%, rgba(87, 81, 58, 0.2), transparent 24rem),
    var(--paper);
  font-family: Georgia, "Times New Roman", serif;
}

body.menu-open {
  overflow: hidden;
}

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 12px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(48, 31, 19, 0.1);
}

.brand,
.nav-links,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--cream);
  background: var(--ink);
}

.nav-links {
  gap: 6px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.86rem;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(24, 19, 15, 0.07);
}

.nav-links .nav-cta {
  color: var(--cream);
  background: var(--ink);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--cream);
}

.section-pad {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 58px;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding-top: 54px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--clay);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 22px;
  max-width: 850px;
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.92;
}

h1 {
  font-size: clamp(4rem, 10vw, 8.8rem);
}

h2 {
  font-size: clamp(2.8rem, 6vw, 6.2rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.hero-text,
.cta p,
.timeline p,
.service-list p {
  color: var(--muted);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  line-height: 1.7;
}

.hero-text {
  max-width: 580px;
  font-size: 1.08rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(48, 31, 19, 0.18);
}

.btn-primary {
  color: var(--cream);
  background: var(--ink);
}

.btn-secondary {
  background: rgba(255, 248, 237, 0.5);
}

.hero-art {
  position: relative;
  min-height: 640px;
}

.photo-card,
.work-card {
  position: relative;
  overflow: hidden;
  border: 10px solid var(--cream);
  box-shadow: var(--shadow);
}

.photo-card::before,
.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.62)),
    var(--image);
  background-size: cover;
  background-position: center;
  filter: saturate(0.82) contrast(1.08);
  transition: transform 700ms ease;
}

.photo-card:hover::before,
.work-card:hover::before {
  transform: scale(1.05);
}

.card-large {
  --image: url("https://images.unsplash.com/photo-1492691527719-9d1e07e534b4?auto=format&fit=crop&w=1200&q=82");
  width: 72%;
  height: 560px;
  margin-left: auto;
  border-radius: 44% 44% 12px 12px;
}

.card-small {
  position: absolute;
  width: 38%;
  height: 240px;
  border-radius: 24px;
}

.card-small.top {
  --image: url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=900&q=82");
  top: 52px;
  left: 0;
  transform: rotate(-6deg);
}

.card-small.bottom {
  --image: url("https://images.unsplash.com/photo-1522206024047-9c925421675b?auto=format&fit=crop&w=900&q=82");
  right: 18px;
  bottom: 0;
  transform: rotate(5deg);
}

.photo-card span,
.work-card span,
.work-card h3 {
  position: absolute;
  z-index: 1;
  color: var(--cream);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.photo-card span {
  left: 22px;
  bottom: 20px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.section-heading.narrow {
  display: block;
  max-width: 760px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.8fr 1.15fr;
  gap: 18px;
}

.work-card {
  min-height: 420px;
  border-radius: 28px;
}

.work-one {
  --image: url("https://images.unsplash.com/photo-1511285560929-80b456fea0bc?auto=format&fit=crop&w=1000&q=82");
}

.work-two {
  --image: url("https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?auto=format&fit=crop&w=1000&q=82");
  margin-top: 58px;
}

.work-three {
  --image: url("https://images.unsplash.com/photo-1540575467063-178a50c2df87?auto=format&fit=crop&w=1000&q=82");
}

.work-card span {
  top: 22px;
  left: 22px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

.work-card h3 {
  left: 22px;
  right: 22px;
  bottom: 18px;
  font-size: 2rem;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-list article {
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 248, 237, 0.56);
  transition: transform 180ms ease, background 180ms ease;
}

.service-list article:hover {
  transform: translateY(-5px);
  background: var(--cream);
}

.service-number {
  display: inline-block;
  margin-bottom: 58px;
  color: var(--clay);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 700;
}

.process {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.timeline strong {
  font-size: 1.35rem;
}

.cta {
  margin-bottom: 48px;
  padding: 70px;
  border-radius: 38px;
  color: var(--cream);
  background:
    radial-gradient(circle at 90% 10%, rgba(227, 138, 84, 0.6), transparent 20rem),
    var(--ink);
  box-shadow: var(--shadow);
}

.cta h2 {
  max-width: 900px;
}

.cta p {
  max-width: 600px;
  color: rgba(255, 248, 237, 0.75);
}

.cta .btn-primary {
  margin-top: 16px;
  color: var(--ink);
  background: var(--cream);
  border-color: var(--cream);
}

.site-footer {
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-left {
  transform: translate(-34px, 18px);
}

.reveal-right {
  transform: translate(34px, 18px);
}

.reveal-scale {
  transform: translateY(18px) scale(0.97);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.stagger > * {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1), background 180ms ease;
  will-change: opacity, transform;
}

.is-visible .stagger > *,
.stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stagger > *:nth-child(1) {
  transition-delay: 80ms;
}

.stagger > *:nth-child(2) {
  transition-delay: 170ms;
}

.stagger > *:nth-child(3) {
  transition-delay: 260ms;
}

.stagger > *:nth-child(4) {
  transition-delay: 350ms;
}

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

  .nav-links {
    position: fixed;
    inset: 78px 16px auto;
    display: grid;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--cream);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body.menu-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero,
  .process,
  .portfolio-grid,
  .service-list {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 24px;
    min-height: auto;
  }

  .hero-art {
    min-height: 520px;
  }

  .card-large {
    width: 82%;
    height: 470px;
  }

  .portfolio-grid .work-card {
    margin-top: 0;
  }

  .section-heading {
    display: block;
  }

  .cta {
    padding: 42px 24px;
  }
}

@media (max-width: 620px) {
  .section-pad {
    width: min(100% - 24px, 1180px);
    padding: 64px 0;
  }

  .site-header {
    width: calc(100% - 24px);
    margin-top: 10px;
  }

  h1 {
    font-size: clamp(3.35rem, 18vw, 5rem);
  }

  h2 {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

  .hero-art {
    min-height: 430px;
  }

  .card-large {
    width: 92%;
    height: 390px;
  }

  .card-small {
    width: 46%;
    height: 160px;
    border-width: 7px;
  }

  .work-card {
    min-height: 340px;
  }

  .timeline div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    display: grid;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .reveal,
  .stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
