@import url("./brand-tokens.css");

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% -5%, rgba(224, 162, 60, 0.20), transparent 31rem),
    linear-gradient(160deg, #f7f2e8 0%, var(--paper) 55%, #eee5d4 100%);
  font-family: var(--body);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("./assets/paper-grain.svg");
  mix-blend-mode: multiply;
}

a { color: inherit; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 10px 15px; background: var(--ink); color: white; border-radius: 999px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }
.shell { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 26px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-size: 1.25rem; letter-spacing: 0.02em; }
.brand img { width: 42px; height: 42px; }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--muted-ink); text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav a:hover { color: var(--river); }

.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(32px, 7vw, 92px); padding: clamp(52px, 8vw, 110px) 0 clamp(70px, 10vw, 130px); }
.hero-copy { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--clay); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; }
h1 { margin: 0; max-width: 780px; font-size: clamp(3.25rem, 7vw, 6.7rem); letter-spacing: -0.052em; }
h1 em { color: var(--river); font-weight: 400; }
.hero-copy > p:not(.eyebrow) { max-width: 610px; margin: 30px 0 0; color: var(--muted-ink); font-size: clamp(1.05rem, 1.5vw, 1.28rem); }
.hero-art { position: relative; min-height: 510px; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; width: 85%; aspect-ratio: 1; border: 1px solid rgba(23, 111, 112, 0.28); border-radius: 50%; }
.hero-art img { position: relative; width: min(100%, 520px); filter: drop-shadow(0 22px 25px rgba(24, 43, 45, 0.12)); animation: drift 9s ease-in-out infinite; }
.art-caption { position: absolute; right: 0; bottom: 7%; max-width: 190px; padding: 13px 16px; background: rgba(247, 242, 232, 0.84); border: 1px solid var(--line); border-radius: 999px; color: var(--muted-ink); font-family: var(--display); font-style: italic; text-align: center; backdrop-filter: blur(8px); }

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-0.5deg); }
  50% { transform: translate3d(0, -12px, 0) rotate(0.7deg); }
}

.statement { display: grid; grid-template-columns: 0.42fr 1fr; gap: clamp(30px, 7vw, 100px); padding: clamp(64px, 9vw, 118px) 0; border-block: 1px solid var(--line); }
.statement h2, .section-heading h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 4.25rem); letter-spacing: -0.035em; }
.statement-copy { font-size: clamp(1.2rem, 2.2vw, 1.7rem); }
.statement-copy p { margin: 0; }
.statement-copy p + p { margin-top: 24px; color: var(--muted-ink); font-size: 1rem; }

.work-section { padding: clamp(70px, 10vw, 138px) 0; }
.section-heading { display: grid; grid-template-columns: 1fr 0.65fr; align-items: end; gap: 40px; margin-bottom: 42px; }
.section-heading p { margin: 0; color: var(--muted-ink); }
.project-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 0.86fr; background: var(--ink); color: #f7f2e8; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.project-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1px solid rgba(255,255,255,0.11); border-radius: inherit; }
.project-copy { padding: clamp(34px, 6vw, 78px); }
.project-kicker { margin: 0 0 24px; color: #d9b86d; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.project-card h3 { margin: 0 0 24px; font-size: clamp(2.8rem, 5vw, 5.2rem); }
.project-description { max-width: 590px; color: #d8dfdc; font-size: 1.1rem; }
.steps { list-style: none; padding: 0; margin: 35px 0 40px; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 34px 1fr; align-items: start; }
.steps span:first-child { color: #d9b86d; font-family: var(--display); font-style: italic; }
.project-link { display: inline-flex; align-items: center; gap: 18px; padding: 14px 21px; background: #f4eddf; color: var(--ink); border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform 180ms ease, background 180ms ease; }
.project-link:hover { transform: translateY(-2px); background: white; }
.project-link::after { content: "↗"; font-size: 1.2em; }

.project-visual { min-height: 500px; background: radial-gradient(circle at 70% 20%, rgba(224,162,60,0.9) 0 5%, transparent 5.4%), radial-gradient(circle at 35% 73%, rgba(189,93,61,0.8) 0 4%, transparent 4.4%), linear-gradient(155deg, #2e7d77, #1b5658 55%, #213b3e); display: grid; place-items: center; }
.stance-orbit { width: min(76%, 350px); aspect-ratio: 1; position: relative; border: 1px solid rgba(255,255,255,0.42); border-radius: 50%; animation: rotate 28s linear infinite; }
.stance-orbit::before, .stance-orbit::after { content: ""; position: absolute; inset: 17%; border: 1px solid rgba(255,255,255,0.28); border-radius: 50%; }
.stance-orbit::after { inset: 37%; background: rgba(243,237,223,0.92); box-shadow: 0 0 0 13px rgba(243,237,223,0.12); }
.stance { position: absolute; width: 29px; height: 29px; border: 7px solid rgba(243,237,223,0.88); border-radius: 50%; background: var(--clay); transform: translate(-50%, -50%); }
.stance:nth-child(1) { left: 50%; top: 0; }
.stance:nth-child(2) { left: 97.5%; top: 35%; }
.stance:nth-child(3) { left: 79%; top: 90%; }
.stance:nth-child(4) { left: 21%; top: 90%; }
.stance:nth-child(5) { left: 2.5%; top: 35%; }
@keyframes rotate { to { transform: rotate(360deg); } }

.themes { padding: 0 0 clamp(80px, 12vw, 150px); }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.theme { min-height: 280px; padding: 30px; background: rgba(255,255,255,0.28); border: 1px solid var(--line); border-radius: var(--radius-md); }
.theme-number { display: block; color: var(--clay); font-family: var(--display); font-style: italic; }
.theme h3 { margin: 70px 0 15px; font-size: 1.75rem; }
.theme p { margin: 0; color: var(--muted-ink); }
.site-footer { display: flex; justify-content: space-between; gap: 30px; padding-block: 35px 50px; border-top: 1px solid var(--line); color: var(--muted-ink); font-size: 0.92rem; }
.site-footer p { margin: 0; }
.site-footer strong { color: var(--ink); font-family: var(--display); font-weight: 400; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; padding-top: 35px; }
  .hero-art { min-height: 400px; }
  .statement, .section-heading { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; }
  .project-visual { min-height: 390px; }
  .theme-grid { grid-template-columns: 1fr; }
  .theme { min-height: auto; }
  .theme h3 { margin-top: 38px; }
}

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 26px), var(--content)); }
  .site-header { align-items: flex-start; }
  .brand { gap: 8px; font-size: 1.05rem; }
  .brand img { width: 36px; height: 36px; }
  .brand span { max-width: 82px; line-height: 1.05; }
  .nav { gap: 11px; font-size: 0.78rem; white-space: nowrap; }
  h1 { font-size: clamp(2.8rem, 13.5vw, 3.35rem); overflow-wrap: anywhere; }
  .hero-art { min-height: 330px; }
  .art-caption { right: 4%; bottom: 0; }
  .project-copy { padding: 32px 24px 38px; }
  .project-visual { min-height: 330px; }
  .site-footer { flex-direction: column; }
}

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