@font-face {
  font-family: "Minion Portfolio";
  src: url("assets/fonts/MinionPro-Regular.otf") format("opentype");
  font-display: swap;
}

:root {
  --black: #050505;
  --ink: #141414;
  --paper: #ffffff;
  --muted: #5d5d5d;
  --line: #dddddd;
  --accent: #e10600;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(150px, 240px) 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 86px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: var(--white);
  color: var(--black);
  border-bottom: 3px solid var(--accent);
}

.brand img {
  width: min(210px, 42vw);
  height: auto;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.primary-nav a,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.primary-nav a:hover,
.button:hover {
  transform: translateY(-2px);
}

.primary-nav a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.header-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  font-style: normal;
  font-size: 0.84rem;
  line-height: 1.35;
}

.header-contact a {
  text-decoration: none;
  white-space: nowrap;
}

main {
  overflow: hidden;
}

.intro {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(40px, 8vw, 94px) clamp(18px, 4vw, 56px) 48px;
  background: var(--white);
  color: var(--ink);
}

.intro-copy {
  max-width: 620px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding-bottom: 5px;
  color: var(--black);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 3px solid var(--accent);
}

h2,
h3,
p,
.button,
.primary-nav a {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  white-space: nowrap;
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  line-height: 0.95;
  text-transform: uppercase;
}

h3 {
  margin: 6px 0 10px;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
}

.intro p:not(.eyebrow),
.about-copy p,
.project-copy p {
  color: inherit;
  font-size: 1rem;
  line-height: 1.65;
}

.intro p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
}

.intro-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button.primary {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}

.button.secondary {
  color: var(--black);
  background: var(--white);
  border-color: var(--black);
}

.featured-preview {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}

.featured-preview.brand-feature {
  border: 0;
  box-shadow: none;
}

.featured-preview img {
  width: 100%;
  aspect-ratio: 1224 / 792;
  object-fit: cover;
}

.featured-preview img.brand-preview {
  padding: clamp(8px, 3vw, 28px);
  object-fit: contain;
}

.work-section,
.about-section,
.contact-section {
  padding: clamp(48px, 7vw, 88px) clamp(18px, 4vw, 56px);
}

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

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

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
}

.project-image {
  appearance: none;
  display: block;
  padding: 0;
  border: 0;
  background: var(--white);
  cursor: zoom-in;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  text-decoration: none;
}

.project-image img {
  width: 100%;
  aspect-ratio: 14 / 9;
  object-fit: cover;
  transition: transform 220ms ease;
}

.project-image img.logo-hero {
  padding: 42px;
  object-fit: contain;
}

.project-image img.brochure-hero-card {
  padding: 18px;
  object-fit: contain;
}

.project-image:hover img {
  transform: scale(1.025);
}

.project-card a.project-image {
  cursor: pointer;
}

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 22px;
}

.project-copy span {
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.project-copy p {
  margin: 0;
  color: var(--muted);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1.2fr);
  gap: clamp(28px, 5vw, 80px);
  background: var(--white);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.about-copy {
  columns: 2 260px;
  column-gap: 36px;
}

.about-copy p {
  margin: 0 0 18px;
  color: var(--muted);
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--white);
  color: var(--ink);
  border-top: 3px solid var(--accent);
}

.contact-section .eyebrow {
  color: var(--black);
}

.back-link {
  display: table;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--accent);
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 7vw, 88px) clamp(18px, 4vw, 56px);
  border-bottom: 3px solid var(--accent);
}

.project-hero > div {
  min-width: 0;
}

.project-hero h1 {
  max-width: 760px;
  white-space: normal;
}

.project-hero p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.project-hero img {
  width: 100%;
  min-width: 0;
  max-height: 78vh;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}

.project-hero img.portrait-page-preview {
  max-height: 820px;
  object-fit: contain;
}

.project-detail-section {
  padding: clamp(48px, 7vw, 88px) clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.image-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.image-showcase figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.image-showcase figure.wide {
  grid-column: 1 / -1;
}

.image-showcase img {
  width: 100%;
  height: auto;
}

.image-showcase figcaption {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.process-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.process-flow-four {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
}

.process-flow-two {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.flow-card {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.flow-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.flow-card img.logo-process-final {
  padding: 42px;
}

.flow-card figcaption {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flow-arrow {
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1;
}

.project-logo-final {
  padding: clamp(32px, 6vw, 86px);
}

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

.photo-gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
}

.photo-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-gallery .portrait img {
  aspect-ratio: 3 / 4;
}

.document-pages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.document-pages-portrait {
  grid-template-columns: repeat(2, minmax(260px, 520px));
}

.document-pages figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.document-pages img {
  width: 100%;
  height: auto;
}

.document-pages figcaption {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 72px clamp(16px, 3vw, 40px) 32px;
  background: rgba(255, 255, 255, 0.96);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-height: 86vh;
  width: min(1200px, 100%);
  background: var(--white);
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  background: var(--white);
  color: var(--black);
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
  }

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

@media (max-width: 820px) {
  html {
    scroll-padding-top: 152px;
  }

  .site-header {
    gap: 12px;
    min-height: 120px;
  }

  .header-contact {
    font-size: 0.72rem;
  }

  .primary-nav a {
    flex: 1 0 auto;
    padding: 0 12px;
  }

  .intro,
  .about-section,
  .project-hero {
    grid-template-columns: 1fr;
  }

  .intro {
    padding-top: 34px;
  }

  h1 {
    white-space: normal;
  }

  .project-card {
    min-height: 0;
  }

  .project-image img {
    aspect-ratio: 14 / 9;
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .image-showcase {
    grid-template-columns: 1fr;
  }

  .process-flow {
    grid-template-columns: 1fr;
  }

  .process-flow-four {
    grid-template-columns: 1fr;
  }

  .process-flow-two {
    grid-template-columns: 1fr;
  }

  .photo-gallery {
    grid-template-columns: 1fr;
  }

  .document-pages,
  .document-pages-portrait {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
}

@media (max-width: 540px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .brand img {
    width: min(190px, 72vw);
  }

  .header-contact {
    align-items: flex-start;
  }

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

  .intro-actions .button,
  .contact-actions .button {
    width: 100%;
  }
}
