/* ==========================================================
   Halden — editorial portfolio
   Anton display / Plus Jakarta Sans body
   ========================================================== */

:root {
  --navy: #171e19;
  --sage: #b7c6c2;
  --white: #ffffff;
  --taupe: #9f8d8b;
  --beige: #d7c5b2;
  --cyan: #d5f4f9;
  --soft-blue: #bbe2f5;
  --charcoal: #302b2f;
  --light: #fafafa;

  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  cursor: crosshair;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; cursor: crosshair; }
button { font: inherit; color: inherit; cursor: crosshair; }
h1, h2, h3, p, figure, blockquote, ul, dl, dd { margin: 0; }

::selection { background: var(--sage); color: var(--navy); }

:focus-visible { outline: 1px solid var(--sage); outline-offset: 4px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--white);
  color: var(--navy);
}
.skip:focus { left: 16px; top: 16px; }

.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Shared type ------------------------------------------------ */
.label {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.label--sage { color: var(--sage); }
.label--taupe { color: var(--taupe); }

.text-outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--sage);
}

/* Reveal ----------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1000ms var(--ease), transform 1000ms var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Ambient orbs ----------------------------------------------- */
.orb {
  position: absolute;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.2;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}
.orb--sage { background: var(--sage); top: 12%; left: 8%; }
.orb--blue { background: var(--soft-blue); bottom: 10%; right: 6%; animation-delay: -3s; }
.orb--footer { top: auto; bottom: -120px; left: auto; right: 10%; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Navigation ------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2.5vw, 32px) var(--gutter);
  mix-blend-mode: difference;
  color: var(--white);
}
.nav__logo {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav__links { display: flex; gap: 40px; }
.nav__links a,
.nav__cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav__links a { position: relative; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  padding: 12px 22px;
  border: 1px solid var(--white);
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
.nav__cta:hover { background: var(--white); color: #000; }

/* Hero ------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--gutter) 48px;
  overflow: hidden;
  background: var(--navy);
}
.hero__meta {
  position: relative;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin: auto 0 24px;
}
.hero__title {
  position: relative;
  font-family: var(--display);
  font-weight: 400;
  font-size: 18vw;
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero__line { display: block; }
.hero__line + .hero__line { padding-left: 14vw; }
.hero__foot {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: auto;
  padding-top: 48px;
}
.hero__intro {
  max-width: 320px;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--taupe);
}
.hero__scroll {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: border-color 0.5s var(--ease), background 0.5s var(--ease), color 0.5s var(--ease);
}
.hero__scroll svg { animation: bounce 2s var(--ease) infinite; }
.hero__scroll:hover { background: var(--sage); border-color: var(--sage); color: var(--navy); }

@keyframes bounce {
  0%, 100% { transform: translateY(-3px); }
  50% { transform: translateY(4px); }
}

/* Works grid ------------------------------------------------- */
.works {
  background: var(--white);
  color: var(--navy);
  padding: clamp(96px, 12vw, 176px) 0 clamp(120px, 14vw, 200px);
}
.works__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(56px, 7vw, 112px);
}
.works__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 10vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.works__note {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: right;
  color: var(--taupe);
}
.works__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(24px, 4vw, 64px);
  row-gap: clamp(56px, 6vw, 96px);
  align-items: start;
}
.card:nth-child(even) { margin-top: 4rem; }
.card:nth-child(4n + 3) { padding-right: 12%; }
.card:nth-child(4n + 2) { padding-left: 8%; }

.card__media {
  position: relative;
  overflow: hidden;
  background: var(--light);
}
.card__media--34 { aspect-ratio: 3 / 4; }
.card__media--45 { aspect-ratio: 4 / 5; }
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.card:hover .card__media img,
.card:focus-visible .card__media img { transform: scale(1.1); }

.card__info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--navy);
  margin-top: 20px;
}
.card__info h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.card__info span {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
  text-align: right;
}

/* Hover reveal viewport */
.view {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(23, 30, 25, 0.6);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.view span {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: scale(0.6);
  transition: transform 0.5s var(--ease);
}
.card:hover .view,
.card:focus-visible .view { opacity: 1; }
.card:hover .view span,
.card:focus-visible .view span { transform: scale(1); }

/* Featured --------------------------------------------------- */
.featured {
  background: var(--navy);
  padding: clamp(120px, 14vw, 200px) 0;
  overflow: hidden;
}
.featured__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(64px, 9vw, 144px);
  align-items: center;
}
.featured__media { position: relative; }
.featured__square {
  position: absolute;
  top: -48px;
  left: -48px;
  width: 72%;
  aspect-ratio: 1;
  background: var(--cyan);
  opacity: 0.2;
}
.featured__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.featured__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: transform 1.4s var(--ease), filter 1.4s var(--ease);
}
.featured__media:hover img { transform: scale(1.05); filter: grayscale(0.6) contrast(1.05); }

.featured__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(52px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 24px 0 32px;
}
.featured__body {
  max-width: 460px;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  color: var(--taupe);
}
.featured__facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 40px;
  margin: 40px 0 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.featured__facts dt {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 4px;
}
.featured__facts dd { font-weight: 600; font-size: 15px; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
}
.arrow-link svg { transition: transform 0.5s var(--ease); }
.arrow-link:hover svg { transform: translateX(8px); }

/* Capabilities ----------------------------------------------- */
.caps {
  background: var(--light);
  color: var(--navy);
  padding: clamp(112px, 13vw, 192px) 0;
}
.caps__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 64px;
}
.caps__side { grid-column: 1 / span 4; }
.caps__main { grid-column: 5 / span 8; }

.caps__list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}
.caps__list li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.caps__list li::before {
  content: "";
  flex: none;
  width: 40px;
  height: 1px;
  background: var(--navy);
  transition: width 0.5s var(--ease), background 0.5s var(--ease);
}
.caps__list li:hover::before { width: 64px; background: var(--taupe); }

.caps__statement {
  font-weight: 300;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.caps__statement em { font-style: italic; color: var(--taupe); }

.caps__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 32px;
  border-top: 1px solid var(--navy);
}
.caps__num {
  display: block;
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1;
}
.caps__cap {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* Testimonials ----------------------------------------------- */
.voices {
  position: relative;
  background: var(--charcoal);
  padding: clamp(112px, 13vw, 192px) 0;
  overflow: hidden;
}
.voices__mark {
  position: absolute;
  top: 0.04em;
  right: 4vw;
  font-family: var(--display);
  font-size: 30rem;
  line-height: 1;
  color: var(--navy);
  opacity: 0.3;
  pointer-events: none;
  user-select: none;
}
.voices__inner { position: relative; }
.voices__track {
  display: grid;
  margin: 48px 0 64px;
}
.voice {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), visibility 0s linear 0.9s;
}
.voice.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.9s var(--ease) 0.15s, transform 0.9s var(--ease) 0.15s, visibility 0s;
}
.voice blockquote {
  max-width: 1100px;
  font-family: var(--display);
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 1.1;
  text-transform: uppercase;
}
.voice figcaption {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
}
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--c);
  color: var(--navy);
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.08em;
}
.voice strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.voice em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
}

.voices__controls { display: flex; align-items: center; gap: 24px; }
.voices__btn {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: none;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.voices__btn:hover { background: var(--white); color: var(--charcoal); border-color: var(--white); }
.voices__count {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--taupe);
  font-variant-numeric: tabular-nums;
}

/* Footer ----------------------------------------------------- */
.footer {
  position: relative;
  background: var(--navy);
  padding: clamp(120px, 14vw, 200px) 0 40px;
  overflow: hidden;
}
.footer .wrap { position: relative; }
.footer__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(80px, 13vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 24px 0 48px;
}
.footer__mail {
  display: inline-block;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 300;
  color: var(--sage);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
  transition: color 0.5s var(--ease), text-underline-offset 0.5s var(--ease);
  overflow-wrap: anywhere;
}
.footer__mail:hover { color: var(--white); text-underline-offset: 12px; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: clamp(80px, 10vw, 144px) 0 64px;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
}
.footer__k {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 12px;
}
.footer__cols a:hover { color: var(--sage); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.footer__legal { display: flex; gap: 32px; }
.footer__legal a:hover { color: var(--white); }

/* Responsive ------------------------------------------------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .featured__inner { grid-template-columns: 1fr; }
  .featured__media { margin: 48px 0 0 48px; }
  .caps__side,
  .caps__main { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav__cta { padding: 10px 14px; }
  .hero__line + .hero__line { padding-left: 0; }
  .hero__title { font-size: 26vw; }
  .works__grid { grid-template-columns: 1fr; }
  .card:nth-child(even) { margin-top: 0; }
  .card:nth-child(n) { padding: 0; }
  .featured__media { margin: 32px 0 0 24px; }
  .featured__square { top: -32px; left: -24px; }
  .featured__facts { grid-template-columns: 1fr 1fr; gap: 24px; }
  .caps__stats,
  .footer__cols { grid-template-columns: 1fr; }
  .voices__mark { font-size: 18rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
}
