/* ==========================================================================
   SJI — portfolio hub
   Tokens
   ========================================================================== */

:root {
  color-scheme: dark;
  --ink: #0C0C0B;
  --raised: #141412;
  --bone: #EFEAE0;
  --muted: #A6A197;
  --hairline: rgba(239, 234, 224, .14);
  --accent: #FF5C35;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ui: "Golos Text", -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(20px, 4.4vw, 64px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.sr-only:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 16px;
  overflow: visible;
  clip: auto;
  border-radius: 4px;
  background: var(--accent);
  color: #180B06;
  font-size: 13px;
  font-weight: 600;
}

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

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  border-bottom: 1px solid var(--hairline);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.wordmark__dot {
  color: var(--accent);
}

.header__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.header__link {
  transition: color .2s ease;
}

.header__link:hover {
  color: var(--bone);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-block: clamp(56px, 8.5vw, 120px) clamp(44px, 6vw, 72px);
}

.hero__eyebrow {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(46px, 6.9vw, 108px);
  line-height: .98;
  letter-spacing: -.02em;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__text {
  max-width: 46ch;
  margin: clamp(24px, 3vw, 34px) 0 0;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--muted);
}

/* ==========================================================================
   Cases
   ========================================================================== */

.cases {
  padding-bottom: clamp(80px, 10vw, 140px);
}

.cases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}

.case {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(320px, 33vw, 440px);
  padding: clamp(22px, 2.6vw, 34px);
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--raised);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}

.case:hover {
  border-color: rgba(255, 92, 53, .55);
  transform: translateY(-3px);
}

.case__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.case__index {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .12em;
  color: var(--muted);
}

.case__kind {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.case__body {
  margin-top: auto;
  padding-top: clamp(40px, 7vw, 90px);
}

.case__name {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -.01em;
}

.case__text {
  max-width: 38ch;
  margin: 0 0 22px;
  font-size: 14.5px;
  color: var(--muted);
}

.case__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.case__tags li {
  padding: 5px 11px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
}

.case__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #180B06;
  font-size: 13px;
  font-weight: 600;
  transition: background-color .2s ease, gap .2s var(--ease);
}

.case:hover .case__cta {
  gap: 16px;
}

.case__cta svg {
  width: 15px;
  height: 15px;
}

.case__art {
  position: absolute;
  inset: 0;
  filter: blur(2px);
  opacity: .5;
  background: radial-gradient(ellipse 30% 42% at 88% 29%, rgba(255, 92, 53, .5), transparent 100%);
  pointer-events: none;
}

.case--vetra .case__art {
  background:
    radial-gradient(ellipse 30% 42% at 66% 25%, rgba(255, 92, 53, .45), transparent 100%),
    radial-gradient(ellipse 26% 37% at 90% -9%, rgba(239, 234, 224, .16), transparent 100%);
}

.case--movaro .case__art {
  opacity: .42;
  background:
    radial-gradient(ellipse 32% 45% at 90% 35%, rgba(255, 92, 53, .5), transparent 100%),
    radial-gradient(ellipse 26% 37% at 67% -12%, rgba(239, 234, 224, .14), transparent 100%);
}


/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--hairline);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 34px;
  font-size: 12px;
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: 22px;
}

.footer a {
  transition: color .2s ease;
}

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

/* ==========================================================================
   Reveal
   ========================================================================== */

.reveal {
  opacity: 1;
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

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

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

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

  .case,
  .case__cta {
    transition: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 820px) {
  .cases__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .case {
    min-height: 340px;
  }

  .hero__text {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .header__meta {
    display: none;
  }

  .case__body {
    padding-top: 56px;
  }
}
