/* Julien Caraz — site styles */
:root {
  --bg: #0c0c0e;
  --surface: #151518;
  --surface-2: #1c1c21;
  --line: #2a2a31;
  --text: #ededf0;
  --muted: #a0a0ab;
  --accent: #ef3e46;
  --accent-strong: #cf1f28;
  --accent-ink: #ffffff;
  --radius: 14px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.65 var(--font); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent-strong); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.brand span { font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.brand:hover { color: var(--text); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 44px; height: 40px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: transform .25s; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .nav a { padding: 12px 14px; font-size: 17px; }
}

/* ---------- type ---------- */
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.12; font-weight: 650; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 6vw, 64px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; font-weight: 600; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }

/* ---------- sections ---------- */
main { display: block; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.page-head { padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 44px); }
.page-head h1 { margin-bottom: 14px; }

/* ---------- hero ---------- */
.hero { padding: clamp(70px, 12vw, 150px) 0 clamp(56px, 8vw, 100px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero h1 { max-width: 15ch; font-size: clamp(40px, 7.4vw, 88px); line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin: 22px 0 34px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; transform: rotate(-4deg); }
.mosaic a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px -20px rgba(0,0,0,.7); transition: transform .4s; }
.mosaic a:nth-child(2), .mosaic a:nth-child(4) { transform: translateY(36px); }
.mosaic a:hover { transform: translateY(-4px); }
.mosaic a:nth-child(2):hover, .mosaic a:nth-child(4):hover { transform: translateY(32px); }
.mosaic img { aspect-ratio: 1; object-fit: cover; width: 100%; }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .mosaic { transform: rotate(-3deg); max-width: 460px; width: 100%; margin: 8px auto 40px; gap: 12px; padding: 0 6px; }
  .mosaic a:nth-child(2), .mosaic a:nth-child(4) { transform: translateY(22px); }
}
.wave { display: flex; align-items: center; gap: 4px; height: 36px; margin-bottom: 28px; }
.wave i { width: 4px; border-radius: 4px; background: var(--accent); opacity: .85; animation: wave 1.6s ease-in-out infinite; }
@keyframes wave { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

/* ---------- buttons ---------- */
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15.5px; text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); transition: transform .15s, background .2s, border-color .2s; cursor: pointer; font-family: inherit; }
.btn:hover { color: var(--text); border-color: #3c3c46; background: var(--surface-2); transform: translateY(-1px); }
.btn--primary { background: var(--accent-strong); color: var(--accent-ink); border-color: var(--accent-strong); }
.btn--primary:hover { background: #b81a22; color: var(--accent-ink); border-color: #b81a22; }
.link-arrow { text-decoration: none; color: var(--muted); font-weight: 500; white-space: nowrap; }
.link-arrow:hover { color: var(--accent); }

/* ---------- work grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.card { display: block; text-decoration: none; color: inherit; }
.card__img { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s; }
.card:hover .card__img img { transform: scale(1.045); }
.card__body { padding: 14px 2px 0; }
.card__title { font-weight: 600; font-size: 16.5px; line-height: 1.35; letter-spacing: -0.005em; }
.card:hover .card__title { color: var(--accent); }
.card__meta { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.card.is-hidden { display: none; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.chip { font: inherit; font-size: 14.5px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; text-decoration: none; transition: all .2s; }
.chip:hover { color: var(--text); border-color: #3c3c46; }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip small { opacity: .6; margin-left: 4px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tag { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--accent); border: 1px solid var(--line); text-decoration: none; }

/* ---------- project page ---------- */
.back { display: inline-flex; gap: 8px; color: var(--muted); text-decoration: none; font-size: 15px; margin-bottom: 28px; }
.project { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.project__cover { position: sticky; top: 96px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.project h1 { font-size: clamp(30px, 4.2vw, 48px); }
@media (max-width: 860px) {
  .project { grid-template-columns: 1fr; }
  .project__cover { position: static; max-width: 520px; }
}
.prose { color: #d6d6dc; }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--text); word-break: break-word; }
.prose a:hover { color: var(--accent); }
.prose img { border-radius: var(--radius); margin: 8px 0 22px; border: 1px solid var(--line); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose blockquote { margin: 0 0 1.2em; padding-left: 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.embed { margin: 6px 0 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.embed iframe { display: block; width: 100%; border: 0; }
.embed--video iframe { aspect-ratio: 16 / 9; height: auto; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: clamp(48px, 7vw, 90px); border-top: 1px solid var(--line); padding-top: 28px; }
.pager a { display: flex; gap: 14px; align-items: center; text-decoration: none; padding: 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .2s; }
.pager a:hover { border-color: #3c3c46; color: var(--text); }
.pager img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.pager small { display: block; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
.pager span { font-weight: 600; font-size: 15px; line-height: 1.3; }
.pager .next { justify-content: flex-end; text-align: right; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } .pager .next { justify-content: flex-start; text-align: left; flex-direction: row-reverse; } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.about aside { position: sticky; top: 96px; }
/* red / black & white treatment that melts into the page */
.duotone { position: relative; isolation: isolate; aspect-ratio: 3 / 4; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, rgba(0,0,0,.6) 80%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, rgba(0,0,0,.6) 80%, transparent 100%); }
.duotone img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%;
  filter: grayscale(1) contrast(1.25) brightness(1.55); }
.duotone::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(165deg, #ff8a8f 0%, #d9222b 50%, #4a0910 100%); mix-blend-mode: multiply; }
.duotone::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at 60% 32%, rgba(255,120,125,.2), transparent 55%); mix-blend-mode: screen; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about aside { position: static; order: -1; max-width: 520px; margin: -10px auto 0; width: 100%; } .duotone { aspect-ratio: 4 / 3; } }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.gallery img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 22px; }
.quote { margin: 0; padding: clamp(24px, 3vw, 34px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 22px; font-size: 17.5px; line-height: 1.6; color: #e1e1e6; position: relative; }
.quote blockquote::before { content: "“"; display: block; font-size: 64px; line-height: .6; color: var(--accent); margin-bottom: 10px; font-family: Georgia, serif; }
.quote figcaption { margin-top: auto; font-size: 14.5px; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--text); font-size: 16px; }

/* ---------- clients ---------- */
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.clients li { list-style: none; display: flex; align-items: center; justify-content: center; height: 92px; padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.clients img { max-height: 48px; width: auto; filter: grayscale(1) brightness(0) invert(1); opacity: .72; transition: opacity .2s; }
.clients li:hover img { opacity: 1; }
.clients { padding: 0; margin: 0; }

/* ---------- CTA + contact ---------- */
.cta { border-radius: calc(var(--radius) + 6px); padding: clamp(36px, 6vw, 72px); background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 25%, transparent), transparent); pointer-events: none; }
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0; color: var(--muted); }
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 7px; font-weight: 500; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; transition: border-color .2s, background .2s; }
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface-2); }
.form-note { margin: 0; font-size: 15px; }
.form-note.ok { color: #7fd99a; }
.form-note.err { color: #ff8a80; }
.hp { position: absolute; left: -9999px; }
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.links a { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .2s; }
.links a:hover { border-color: #3c3c46; }
.links a::after { content: "↗"; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 0; padding: 40px 0 48px; color: var(--muted); font-size: 14.5px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- project intro + facts ---------- */
.project__intro { font-size: clamp(17.5px, 1.6vw, 19.5px); line-height: 1.6; color: #e4e4ea; margin: 0 0 22px; }
.project__intro strong { color: var(--text); font-weight: 600; }
.facts { display: grid; gap: 0; margin: 0 0 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }
.facts dd { margin: 0; font-size: 15.5px; }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }
