:root {
  --ink: #17171a;
  --paper: #efede6;
  --red: #ef4b37;
  --blue: #023e8a;
  --line: rgba(23, 23, 26, 0.16);
}

html { scroll-behavior: smooth; }

body.portfolio-page,
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 8%, rgba(87, 91, 232, 0.12), transparent 24rem),
    var(--paper);
  font-family: "Futura", "Montserrat", sans-serif;
}

section { margin-top: 0; }

.site-header {
  position: relative;
  z-index: 20;
}

.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(92%, 1320px);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: flex;
  align-items: baseline;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.wordmark span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-right: 0.35rem;
}

.wordmark strong {
  font-family: "DM Serif Display", serif;
  font-size: 1.7rem;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.nav-links a {
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 4px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

nav a[aria-current="page"] {
  font-weight: bold;
  color: var(--blue);
}

.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle { display: none; }

.hero {
  width: min(92%, 1320px);
  min-height: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding: 3.5rem 0 5.5rem;
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow span {
  width: 38px;
  height: 3px;
  background: var(--red);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: "DM Serif Display", serif;
  font-size: clamp(4.6rem, 9vw, 9.4rem);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -0.045em;
}

.hero h1 em {
  color: var(--blue);
  font-weight: 400;
}

.hero-footer {
  max-width: 660px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3.5rem;
}

.hero-footer > p {
  max-width: 330px;
  margin: 0;
  color: #4e4c52;
  font-size: 0.95rem;
  line-height: 1.7;
}

.circle-link {
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.circle-link i { font-size: 1rem; }

.circle-link:hover {
  color: white;
  background: var(--red);
  border-color: var(--red);
  transform: rotate(6deg);
}

.hero-media {
  position: relative;
  height: 610px;
  align-self: center;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 8% -5% -4% 12%;
  border: 1px solid var(--ink);
  z-index: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  right: -5%;
  bottom: -4%;
  width: 42%;
  height: 26%;
  background:
    radial-gradient(var(--ink) 1.2px, transparent 1.2px) 0 0 / 8px 8px;
  z-index: 3;
  opacity: 0.42;
}

.hero-video {
  position: relative;
  z-index: 1;
  width: 86%;
  height: 90%;
  margin: 5% 0 0 0;
  display: block;
  object-fit: cover;
  object-position: 55% center;
  border-radius: 0;
  filter: saturate(0.82) contrast(1.06);
}

.hero-video img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.art-index {
  position: absolute;
  top: 0;
  right: 8%;
  z-index: 4;
  color: var(--red);
  font-family: "DM Serif Display", serif;
  font-size: 5.5rem;
  line-height: 0.8;
  -webkit-text-stroke: 1px var(--paper);
}

.hero-media > p {
  position: absolute;
  right: -1.5%;
  top: 22%;
  z-index: 4;
  margin: 0;
  writing-mode: vertical-rl;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--red);
}

.ticker-track {
  width: max-content;
  min-width: 100%;
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding: 0.82rem 0;
  color: var(--ink);
  animation: ticker 24s linear infinite;
}

.ticker-track span {
  font-family: "DM Serif Display", serif;
  font-size: 1.15rem;
}

.ticker-track b { font-size: 0.9rem; }

@keyframes ticker { to { transform: translateX(-28%); } }

.work-section {
  width: min(92%, 1320px);
  margin: 0 auto;
  padding: 8rem 0 10rem;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.32fr 0.68fr;
  align-items: start;
  margin-bottom: 5rem;
}

.section-heading p,
.about-number {
  margin: 0;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading h2,
.about-copy h2 {
  margin: 0;
  font-family: "DM Serif Display", serif;
  font-size: clamp(3.2rem, 6vw, 6.5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: start;
  gap: clamp(2rem, 5vw, 5.5rem);
}

.project { margin: 0; }

.project a {
  color: var(--ink);
  text-decoration: none;
}

.project-image {
  overflow: hidden;
  background: #d8d4ca;
  border: 1px solid var(--ink);
}

.project-image img {
  width: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.05);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s ease;
}

.project-large .project-image img { height: 620px; object-position: 45% center; }
.project-offset { margin-top: 9rem; }
.project-offset .project-image img { height: 430px; object-position: 78% center; }
.project-wide { grid-column: 1 / -1; width: 72%; margin: 3rem 0 0 auto; }
.project-wide .project-image img { height: 460px; object-position: center 38%; }

.project a:hover .project-image img { transform: scale(1.035); filter: saturate(1) contrast(1); }

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--ink);
  margin-top: 0.8rem;
}

.project-meta h3 {
  margin: 0;
  font-family: "DM Serif Display", serif;
  font-size: 1.8rem;
  font-weight: 400;
}

.project-meta p {
  margin: 0.35rem 0 0;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: right;
}

.about-section {
  display: grid;
  grid-template-columns: 0.18fr 0.82fr;
  width: 100%;
  padding: 8rem max(4%, calc((100% - 1320px) / 2));
  color: var(--paper);
  background: var(--ink);
}

.about-number { color: var(--red); }

.about-copy h2 em {
  color: var(--blue);
  font-weight: 400;
}

.about-text {
  max-width: 680px;
  margin: 2.5rem 0;
  color: #cbc8bf;
  font-size: 1.05rem;
  line-height: 1.75;
}

.skill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.skill-row span {
  border: 1px solid rgba(239, 237, 230, 0.38);
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-section {
  width: min(92%, 1320px);
  min-height: 380px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-section p {
  margin: 0 0 1rem;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-section a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  border-bottom: 3px solid var(--ink);
  padding-bottom: 1.2rem;
  font-family: "DM Serif Display", serif;
  font-size: clamp(3rem, 7vw, 7.5rem);
  line-height: 1;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.contact-section a i { color: var(--blue); }
.contact-section a:hover { color: var(--red); border-color: var(--red); }

.site-footer {
  width: 100%;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 1.5rem max(4%, calc((100% - 1320px) / 2));
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
}

.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: var(--ink); font-size: 1rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--red); }

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 4rem;
  }

  .hero-copy { max-width: 760px; }
  .hero-media { height: 520px; width: min(620px, 92%); margin: 1rem 0 0 auto; }
  .hero-video { width: 92%; }

  .project-large .project-image img { height: 520px; }
  .project-wide { width: 84%; }
}

@media (max-width: 680px) {
  .topbar { height: 66px; width: calc(100% - 2rem); }
  .menu-toggle {
    width: 42px;
    height: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    border: 0;
    background: transparent;
  }
  .menu-toggle span:not(.visually-hidden) { width: 22px; height: 2px; margin-left: auto; background: var(--ink); }

  .nav-links {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    padding: 1.5rem 1.25rem 2rem;
    border-bottom: 1px solid var(--ink);
    background: var(--paper);
  }
  .nav-links.is-open { display: flex; }

  .hero { width: calc(100% - 2rem); padding: 3.5rem 0 4rem; }
  .hero h1 { font-size: clamp(4rem, 19vw, 6.2rem); }
  .hero-footer { align-items: center; }
  .hero-footer > p { max-width: 220px; font-size: 0.82rem; }
  .circle-link { width: 88px; height: 88px; flex-basis: 88px; }

  .hero-media { width: 94%; height: 390px; margin-top: 1.5rem; }
  .hero-video { height: 88%; }
  .art-index { right: 2%; font-size: 4rem; }

  .ticker-track { gap: 1.2rem; }

  .work-section { width: calc(100% - 2rem); padding: 5.5rem 0 6rem; }
  .section-heading { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 3rem; }
  .section-heading h2 { font-size: clamp(3rem, 15vw, 5rem); }

  .project-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .project-offset { margin-top: 0; }
  .project-wide { grid-column: auto; width: 100%; margin: 0; }
  .project-large .project-image img,
  .project-offset .project-image img,
  .project-wide .project-image img { height: 390px; }
  .project-meta h3 { font-size: 1.35rem; }

  .about-section { grid-template-columns: 1fr; gap: 2rem; padding: 5.5rem 1rem; }
  .about-copy h2 { font-size: clamp(3rem, 14vw, 5rem); }

  .contact-section { width: calc(100% - 2rem); min-height: 300px; }
  .contact-section a { font-size: clamp(2.8rem, 12vw, 4.5rem); }

  .site-footer { padding-left: 1rem; padding-right: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .project-image img,
  .circle-link,
  .nav-links a::after { transition: none; }
}
