@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:opsz,wght@9..40,500;9..40,600;9..40,700&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --paper: #f6f4ef;
  --ink: #0c0c0b;
  --line: rgba(12, 12, 11, 0.24);
  --muted: #77756f;
  --mono: "DM Mono", monospace;
  --sans: "DM Sans", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }

html { background: var(--paper); scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  overflow-x: hidden;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 0.9rem;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.cursor-orb {
  position: fixed;
  z-index: 0;
  top: var(--cursor-y, 44%);
  left: var(--cursor-x, 78%);
  width: 36vw;
  height: 36vw;
  pointer-events: none;
  background: radial-gradient(circle, rgba(21, 21, 19, 0.055), transparent 69%);
  transform: translate(-50%, -50%);
  transition: top 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), left 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page { position: relative; z-index: 1; width: min(100%, 1800px); min-height: 100svh; margin: 0 auto; padding-inline: clamp(1.2rem, 3.2vw, 4rem); }

.header,
.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 5.75rem;
  border-bottom: 1px solid var(--line);
}

.wordmark { font-size: clamp(1.12rem, 1.5vw, 1.42rem); font-weight: 700; letter-spacing: -0.075em; text-decoration: none; }
.wordmark span { margin-left: 0.15rem; font-size: 0.5em; vertical-align: top; letter-spacing: 0; }
.header__edition,
.header__contact,
.footer { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.09em; }
.header__edition { margin: 0; }
.header__contact { justify-self: end; text-decoration: none; }
.header__contact:hover,
.footer a:hover { text-decoration: underline; text-underline-offset: 0.35rem; }

.hero { display: grid; grid-template-columns: minmax(21rem, 0.88fr) minmax(28rem, 1.12fr); min-height: calc(100svh - 11.5rem); }
.hero__copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 6vw, 8rem) clamp(2rem, 4vw, 6rem) clamp(3rem, 6vw, 8rem) 0; animation: lift-in 900ms 120ms both cubic-bezier(0.2, 0.8, 0.2, 1); }
.eyebrow { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 2rem; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow span { width: 0.48rem; height: 0.48rem; background: var(--ink); border-radius: 50%; animation: pulse 2.2s infinite; }
h1 { max-width: 8ch; margin: 0; font-size: clamp(4.7rem, 10.1vw, 11rem); font-weight: 700; letter-spacing: -0.105em; line-height: 0.73; }
h1 em { font-family: var(--serif); font-size: 1.09em; font-weight: 400; letter-spacing: -0.07em; }
.hero__statement { max-width: 26rem; margin: clamp(2.5rem, 5vw, 5.6rem) 0 1.8rem; font-size: clamp(0.98rem, 1.2vw, 1.18rem); line-height: 1.45; }
.hero__link { width: fit-content; border-bottom: 1px solid var(--ink); padding-bottom: 0.42rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-decoration: none; transition: padding 200ms ease; }
.hero__link:hover { padding-right: 0.55rem; }
.hero__link span { margin-left: 0.8rem; font-size: 1rem; }

.hero__image-wrap { position: relative; z-index: 1; align-self: center; margin: 0; animation: reveal 1.1s both cubic-bezier(0.2, 0.8, 0.2, 1); overflow: hidden; contain: paint; }
.hero__image-wrap::after { position: absolute; inset: 0; content: ""; background: var(--paper); transform-origin: right; animation: uncover 1.15s 220ms both cubic-bezier(0.7, 0, 0.2, 1); }
.hero__image { display: block; width: 100%; min-height: 35rem; object-fit: cover; animation: subtle-pan 15s ease-in-out infinite alternate; }
.image-index { position: absolute; z-index: 2; top: 1rem; right: 1.15rem; color: var(--ink); font-family: var(--mono); font-size: 0.62rem; mix-blend-mode: multiply; }
figcaption { position: absolute; z-index: 2; right: 1.15rem; bottom: 1rem; max-width: 14rem; font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.08em; line-height: 1.55; text-align: right; }

.manifesto { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.manifesto p { min-height: 5.5rem; display: grid; place-items: center; margin: 0; border-right: 1px solid var(--line); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.09em; text-align: center; }
.manifesto p:last-child { border-right: 0; }

.footer { grid-template-columns: minmax(13rem, 1fr) auto; min-height: 6.9rem; gap: clamp(1.5rem, 3vw, 3.5rem); border-bottom: 0; color: var(--muted); }
.footer p { margin: 0; }
.footer a { text-decoration: none; }
.footer__nostudio { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; }
.footer__nostudio p:nth-child(2) { text-align: center; }
.footer__nostudio a { justify-self: end; }
.tejl-credit { display: flex; min-height: 4.4rem; align-items: center; gap: clamp(1.15rem, 2.3vw, 2.35rem); padding-left: clamp(1.3rem, 2.7vw, 2.8rem); border-left: 1px solid var(--line); }
.tejl-credit__brand, .tejl-credit__contact, .tejl-credit__links { display: flex; align-items: center; }
.tejl-credit__brand { gap: 0.7rem; color: var(--ink); white-space: nowrap; }
.tejl-credit__logo { display: inline-flex; align-items: center; }
.tejl-credit__logo img { display: block; width: 4.1rem; height: auto; opacity: 0.88; transition: opacity 180ms ease, transform 180ms ease; }
.tejl-credit__logo:hover img { opacity: 1; transform: translateY(-1px); }
.tejl-credit__contact { display: grid; gap: 0.24rem; white-space: nowrap; }
.tejl-credit__contact span { color: var(--muted); font-size: 0.55rem; }
.tejl-credit__contact a, .tejl-credit__links a { color: var(--ink); transition: color 180ms ease; }
.tejl-credit__contact a:hover, .tejl-credit__links a:hover { color: var(--muted); }
.tejl-credit__links { gap: 0.45rem; white-space: nowrap; }
.tejl-credit__links span { color: var(--muted); }

@keyframes lift-in { from { opacity: 0; transform: translateY(2rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes reveal { from { opacity: 0; transform: scale(1.025); } to { opacity: 1; transform: scale(1); } }
@keyframes uncover { to { transform: scaleX(0); } }
@keyframes subtle-pan { from { transform: scale(1.01) translateX(-0.5%); } to { transform: scale(1.06) translateX(0.75%); } }
@keyframes pulse { 50% { transform: scale(0.55); opacity: 0.4; } }

@media (max-width: 780px) {
  .header { min-height: 4.65rem; }
  .header__edition { display: none; }
  .header { display: flex; justify-content: space-between; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__copy { min-height: 61svh; padding: 4.6rem 0 3.2rem; }
  h1 { font-size: clamp(4.45rem, 19vw, 7.5rem); }
  .hero__statement { max-width: 21rem; margin-top: 3rem; }
  .hero__image { min-height: 24rem; }
  .manifesto { grid-template-columns: 1fr 1fr; }
  .manifesto p { min-height: 4.5rem; border-bottom: 1px solid var(--line); }
  .manifesto p:nth-child(2) { border-right: 0; }
  .manifesto p:nth-child(n + 3) { border-bottom: 0; }
  .footer { grid-template-columns: 1fr; gap: 1.35rem; padding-block: 1.5rem; }
  .footer__nostudio { grid-template-columns: 1fr auto; gap: 0.5rem; }
  .footer__nostudio p:nth-child(2) { display: none; }
  .tejl-credit { min-height: 0; justify-content: space-between; padding: 1.35rem 0 0; border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 520px) {
  .tejl-credit { display: grid; grid-template-columns: 1fr auto; gap: 1rem 1.5rem; }
  .tejl-credit__brand { grid-column: 1 / -1; }
  .tejl-credit__links { justify-self: end; }
}

@media (max-width: 360px) {
  .page { padding-inline: 1rem; }
  .hero__copy { min-width: 0; padding-top: 3.75rem; }
  h1 { font-size: 2.65rem; letter-spacing: -0.12em; }
  .eyebrow { font-size: 0.57rem; }
  .hero__statement { font-size: 0.93rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
