/* Norde — interior design. Syne + Inter. Paper, soot, putty, olive. */
:root {
  --bg: #f6f5f1;
  --putty: #dfd9ce;
  --ink: #1b1a18;
  --muted: #76726a;
  --line: rgba(27, 26, 24, 0.14);
  --accent: #7d7a3f;
  --display: 'Syne', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(18px, 3.6vw, 52px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote, ol, dl, dd { margin: 0; padding: 0; }
ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.wrap { width: 100%; max-width: 1640px; margin: 0 auto; padding-inline: var(--pad); }

.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 5vw, 80px); line-height: 1; letter-spacing: -0.04em; }
.tag { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.tag::before { content: ''; width: 8px; height: 8px; background: var(--accent); }

/* Motion primitives */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease) var(--d, 0ms), transform 1.3s var(--ease) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal="clip"] > img { clip-path: inset(0 0 100% 0); scale: 1.12; transition: clip-path 1.6s var(--ease) var(--d, 0ms), scale 2.2s var(--ease) var(--d, 0ms) !important; }
.js [data-reveal="clip"].is-in > img { clip-path: inset(0); scale: 1; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.w-i { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.is-in .w-i { transform: none; }
[hidden] { display: none !important; }
.is-shown { animation: rise 0.9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.media { position: relative; overflow: hidden; background: var(--putty); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media img[data-parallax] { position: absolute; left: 0; top: -8%; height: 116%; will-change: transform; }

.pill { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--ink); background: none; cursor: pointer; font-size: 14px; font-weight: 500; transition: background 0.5s var(--ease), color 0.5s var(--ease); }
.pill:hover { background: var(--ink); color: var(--bg); }
.pill--dark { background: var(--ink); color: var(--bg); padding: 16px 30px; }
.pill--dark:hover { background: var(--accent); border-color: var(--accent); }

/* Header */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px var(--pad); transition: padding 0.6s var(--ease), background 0.6s var(--ease); }
.header.is-scrolled { padding-block: 12px; background: rgba(246, 245, 241, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.05em; line-height: 1; }
.nav { display: flex; gap: clamp(18px, 3vw, 46px); }
.nav a { font-size: 14px; font-weight: 500; transition: opacity 0.4s var(--ease); }
.nav sup { font-size: 10px; color: var(--muted); margin-right: 5px; }
.nav:hover a { opacity: 0.4; }
.nav a:hover { opacity: 1; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.nav-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

/* Hero */
.hero { padding-top: clamp(120px, 18vh, 190px); }
.hero__title { font-family: var(--display); font-weight: 600; font-size: clamp(50px, 11.2vw, 208px); line-height: 0.9; letter-spacing: -0.055em; max-width: 11ch; }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin: clamp(28px, 4vw, 56px) 0 clamp(28px, 3vw, 44px); }
.hero__lede { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.4; letter-spacing: -0.015em; max-width: 30ch; }
.hero__meta { font-size: 13px; color: var(--muted); text-align: right; line-height: 1.8; }
.hero__media { height: clamp(320px, 62vw, 880px); margin-inline: var(--pad); }
.hero__media figcaption { position: absolute; left: 16px; bottom: 16px; z-index: 1; background: var(--bg); padding: 10px 16px; font-size: 13px; font-weight: 500; }
.hero__media figcaption span { color: var(--muted); margin-right: 12px; }

/* Work */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 72px); }
.work { padding-block: clamp(90px, 12vw, 180px) clamp(70px, 9vw, 130px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 14px; font-weight: 500; transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease); }
.filters button:hover { border-color: var(--ink); }
.filters button.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px) clamp(16px, 2.4vw, 36px); }
.project:nth-child(even) { margin-top: clamp(0px, 8vw, 130px); }
.project figure { overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--putty); }
.project:nth-child(3n) figure { aspect-ratio: 4 / 3.3; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease); }
.project:hover img { transform: scale(1.045); }
.project__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; }
.project h3 { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.6vw, 40px); letter-spacing: -0.04em; line-height: 1.1; position: relative; }
.project h3::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform 0.7s var(--ease); }
.project:hover h3::after { transform: scaleX(1); transform-origin: left; }
.project span { font-size: 13px; color: var(--muted); }
.project p { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 4vw, 64px); letter-spacing: -0.04em; white-space: nowrap; padding-inline: clamp(20px, 3vw, 48px); color: transparent; -webkit-text-stroke: 1px var(--ink); }
.marquee span:nth-child(3n + 1) { color: var(--ink); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Process */
.process { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 7vw, 120px); align-items: start; padding-block: clamp(90px, 12vw, 180px); }
.process__head { position: sticky; top: 110px; }
.process__head p { margin-top: 24px; color: var(--muted); max-width: 34ch; }
.stages li { display: grid; grid-template-columns: 56px 1fr auto; gap: clamp(16px, 2.6vw, 40px); align-items: start; padding: clamp(26px, 3vw, 44px) 0; border-top: 1px solid var(--ink); transition: padding 0.7s var(--ease); }
.stages li:hover { padding-left: 14px; }
.stages span { font-size: 13px; color: var(--muted); padding-top: 12px; }
.stages h3 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.8vw, 58px); letter-spacing: -0.045em; line-height: 1; }
.stages p { margin-top: 14px; color: var(--muted); max-width: 46ch; }
.stages b { font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: 999px; background: var(--putty); white-space: nowrap; margin-top: 8px; }

/* Studio */
.studio { background: var(--ink); color: var(--bg); padding-block: clamp(90px, 11vw, 170px); }
.studio__inner { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 7vw, 120px); align-items: center; }
.studio__media { aspect-ratio: 4 / 5; background: #2a2926; }
.studio .tag { color: #a39f95; }
.quote { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 4.6vw, 72px); line-height: 1.02; letter-spacing: -0.045em; }
.studio__text { margin-top: 30px; max-width: 46ch; color: #b9b5ab; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(246, 245, 241, 0.2); }
.stats dt { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 5vw, 80px); letter-spacing: -0.05em; line-height: 1; }
.stats dd { font-size: 13px; color: #a39f95; margin-top: 8px; }

/* Contact */
.contact { padding-block: clamp(90px, 12vw, 180px) clamp(60px, 8vw, 110px); }
.contact__title { font-family: var(--display); font-weight: 600; font-size: clamp(42px, 8.4vw, 150px); line-height: 0.92; letter-spacing: -0.055em; max-width: 12ch; }
.contact__grid { display: grid; grid-template-columns: 7fr 3fr; gap: clamp(32px, 7vw, 120px); margin-top: clamp(40px, 6vw, 90px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.form__wide { grid-column: 1 / -1; }
.form label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 0 14px; background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.03em; color: var(--ink); resize: vertical; transition: border-color 0.4s var(--ease), padding 0.5s var(--ease); }
.form input::placeholder, .form textarea::placeholder { color: #c2bdb2; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); padding-left: 8px; }
.form__foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form__note { font-weight: 500; color: var(--accent); opacity: 0; transition: opacity 0.6s var(--ease); }
.form__note.is-shown { opacity: 1; }
.contact__side { display: grid; gap: 28px; font-size: 16px; }
.contact__side span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.contact__side a { border-bottom: 1px solid var(--line); transition: border-color 0.4s var(--ease); }
.contact__side a:hover { border-color: var(--ink); }

/* Footer */
.footer { overflow: hidden; }
.footer__mark { font-family: var(--display); font-weight: 700; font-size: 27vw; line-height: 0.78; letter-spacing: -0.07em; text-align: center; user-select: none; margin: 0 0 0.02em; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); background: var(--bg); position: relative; }

/* Responsive */
@media (max-width: 960px) {
  .process, .studio__inner, .contact__grid { grid-template-columns: 1fr; }
  .process__head { position: static; }
  .stages li { grid-template-columns: 36px 1fr; }
  .stages b { grid-column: 2; justify-self: start; }
  .hero__meta { text-align: left; }
}
@media (max-width: 820px) {
  .burger { display: block; z-index: 2; }
  .brand { z-index: 2; position: relative; }
  .header__cta { display: none; }
  .nav { position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center; gap: 2px; padding: var(--pad); opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s; }
  .nav a { font-family: var(--display); font-weight: 600; font-size: 54px; letter-spacing: -0.05em; line-height: 1.1; }
  .nav:hover a { opacity: 1; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
}
@media (max-width: 620px) {
  .projects { grid-template-columns: 1fr; }
  .project:nth-child(even) { margin-top: 0; }
  .form { grid-template-columns: 1fr; }
  .stats { gap: 10px; }
}
@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; }
}
