:root {
  --ink: #111111;
  --paper: #f4dfdf;
  --red: #ff3b25;
  --cream: #f2e7d8;
  --acid: #d8ff45;
  --blue: #3132c7;
  --gap: clamp(8px, 1vw, 16px);
  --pad: clamp(18px, 3vw, 48px);
  --hero-edge: clamp(8px, 1.2vw, 18px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: #fff;
  font-family: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  font-optical-sizing: auto;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--red); color: var(--ink); }

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: 100%;
  height: 74px;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #fff;
  text-shadow: 0 1px 18px rgba(0,0,0,.18);
  transition: transform .5s var(--ease);
}
.site-header.is-hidden { transform: translateY(-100%); }
.brand-mark { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.brand-mark i { font-weight: 300; font-style: normal; opacity: .65; text-transform: uppercase; }
.logo-symbol {
  display: inline-block;
  flex: 0 0 auto;
  width: 1em;
  aspect-ratio: 773.09 / 797.66;
  background: currentColor;
  -webkit-mask: url("assets/images/notebukku-symbol.svg") center / contain no-repeat;
  mask: url("assets/images/notebukku-symbol.svg") center / contain no-repeat;
}
.logo-symbol--header { width: 30px; color: #fff; }
.logo-symbol--accent { width: 22px; color: var(--red); vertical-align: middle; }
nav { display: flex; gap: 28px; font-size: 13px; }
nav a { position: relative; }
nav a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
nav a:hover::after, nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.home-link { justify-self: end; font-size: 20px; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: linear-gradient(135deg, #ffc39a 0%, var(--red) 50%, #781708 100%);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.02) 50%, rgba(0,0,0,.7)); }
.hero-content { position: absolute; inset: auto var(--hero-edge) 6vh; z-index: 2; }
.eyebrow { margin: 0 0 2vh calc(var(--pad) - var(--hero-edge)); text-transform: uppercase; letter-spacing: .06em; font-size: clamp(10px, 1vw, 13px); }
.hero-title { width: 100%; margin: 0; display: flex; flex-wrap: nowrap; white-space: nowrap; font-size: 24.6vw; line-height: .68; letter-spacing: -.105em; font-weight: 800; }
.word-reveal { display: inline-block; animation: title-in 1.2s var(--ease) both; }
.word-reveal.delay-1 { animation-delay: .08s; }
.hero-meta { margin: 4vh 0 0 calc(var(--pad) - var(--hero-edge)); display: flex; gap: 12px 32px; flex-wrap: wrap; text-transform: uppercase; font-size: 11px; }
.scroll-cue { position: absolute; right: var(--pad); bottom: 6vh; z-index: 3; display: flex; align-items: center; gap: 12px; font-size: 12px; text-transform: uppercase; }
.scroll-cue i { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; font-style: normal; animation: bob 1.8s ease-in-out infinite; }

.section-pad { padding-left: var(--pad); padding-right: var(--pad); }
.manifesto {
  min-height: 72vh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-content: center;
  padding-top: 12vh;
  padding-bottom: 12vh;
}
.manifesto-kicker { grid-column: 1 / 4; align-self: end; display: flex; align-items: center; gap: 10px; color: var(--red); font-size: 13px; text-transform: uppercase; }
.manifesto-copy { grid-column: 4 / -1; margin: 0; max-width: 1200px; font-size: clamp(44px, 7.5vw, 128px); line-height: .88; letter-spacing: -.06em; text-transform: uppercase; text-wrap: balance; }
.manifesto-copy em { color: var(--red); font-style: normal; }
.manifesto-note { grid-column: 8 / -1; margin: 28px 0 0; max-width: 520px; color: rgba(255,255,255,.62); font-size: clamp(14px, 1.25vw, 18px); }

.work { background: var(--paper); color: var(--ink); padding: 0 var(--gap) var(--gap); }
.section-heading { min-height: 34vh; display: grid; grid-template-columns: 1fr 3fr 1fr; align-items: end; padding-top: 60px; padding-bottom: 32px; }
.section-heading p, .section-heading > span, .services-title-wrap p { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; }
.section-heading p, .services-title-wrap p { display: flex; align-items: center; gap: 9px; }
.section-heading h2 { margin: 0; font-size: clamp(72px, 15vw, 230px); line-height: .7; letter-spacing: -.08em; }
.section-heading > span { justify-self: end; }
.project-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.project {
  position: relative;
  min-height: clamp(340px, 49vw, 720px);
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  outline: none;
}
.project--wide { grid-column: span 8; }
.project--small { grid-column: span 4; }
.project--third { grid-column: span 4; min-height: clamp(330px, 35vw, 520px); }
.project--full { grid-column: 1 / -1; min-height: clamp(380px, 55vw, 820px); }
.project-art { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .9s var(--ease), filter .6s ease; will-change: transform; }
.project-art::after { content: ""; position: absolute; inset: 0; opacity: 0; background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.35), transparent 80%); transform: translateX(-120%); transition: transform .8s var(--ease), opacity .3s; }
.project:hover .project-art, .project:focus-visible .project-art { transform: scale(1.045); filter: saturate(1.12); }
.project:hover .project-art::after, .project:focus-visible .project-art::after { opacity: 1; transform: translateX(120%); }
.project-art span { position: relative; z-index: 1; font-size: clamp(90px, 17vw, 260px); line-height: .7; letter-spacing: -.11em; font-weight: 800; transition: transform .6s var(--ease); }
.project:hover .project-art span { transform: scale(.95) rotate(-2deg); }
.art-retreat { color: #ffd5c4; background: radial-gradient(circle at 67% 28%, #ff9e79 0 7%, transparent 7.5%), radial-gradient(circle at 35% 65%, #901d0e 0 14%, transparent 14.5%), linear-gradient(135deg, #ff5a32, #d32614 58%, #771007); }
.art-hyper { color: #78ffbd; background: radial-gradient(circle at 65% 35%, #4f5158 0 16%, transparent 16.5%), linear-gradient(145deg, #2b2d33, #0c0e12); }
.art-bruma { color: #ff3b25; background: repeating-radial-gradient(circle at 30% 40%, #f7e7d1 0 15px, #efc9bd 16px 30px); }
.art-nexo { color: #c8c8ff; background: linear-gradient(45deg, transparent 48%, rgba(255,255,255,.18) 49% 51%, transparent 52%), linear-gradient(135deg, #5759ff, #181996); background-size: 60px 60px, auto; }
.art-orilla { color: #16210b; background: radial-gradient(circle at 50% 120%, #3d5315 0 45%, transparent 45.5%), var(--acid); }
.art-nomada { color: #852b4e; background: radial-gradient(ellipse at center, #ffd1df 0 28%, transparent 29%), linear-gradient(115deg, #ff8fb0, #ef5b8b); }
.art-sonica { color: #ffbd81; background: repeating-linear-gradient(-45deg, #ef491f 0 34px, #be2c12 34px 68px); }
.art-lumbre { color: #ffe1b8; background: radial-gradient(circle at 74% 30%, #ffbf66 0 9%, transparent 9.5%), radial-gradient(circle at 42% 70%, #8a1607 0 18%, transparent 18.5%), linear-gradient(125deg, #ff6b19, #bc210e 58%, #4c0a05); }
.art-marea { color: #c9ffff; background: repeating-radial-gradient(ellipse at 20% 80%, #0279a8 0 22px, #04a8c1 23px 44px, #00617d 45px 66px); }
.art-aurea { color: #4a2812; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.55) 0 14%, transparent 14.5%), repeating-linear-gradient(90deg, #dcae49 0 22px, #f5d986 22px 44px); }
.art-pulso { color: #ffcfe0; background: linear-gradient(90deg, transparent 48%, rgba(255,255,255,.2) 48% 52%, transparent 52%), repeating-linear-gradient(135deg, #7e164f 0 45px, #d62978 45px 90px); background-size: 90px 100%, auto; }
.art-objeto { color: #d8ff45; background: radial-gradient(circle at 22% 25%, #d8ff45 0 8%, transparent 8.5%), radial-gradient(circle at 80% 76%, #603dff 0 17%, transparent 17.5%), linear-gradient(135deg, #171717, #292929); }
.project-info { position: absolute; z-index: 2; left: 22px; bottom: 20px; color: #fff; text-shadow: 0 1px 18px rgba(0,0,0,.45); transform: translateY(8px); transition: transform .45s var(--ease); }
.project:hover .project-info { transform: translateY(0); }
.project-info h3 { margin: 0; font-size: clamp(24px, 3vw, 48px); letter-spacing: -.045em; }
.project-info p { margin: 3px 0 0; font-size: 11px; text-transform: uppercase; }
.project-index { position: absolute; z-index: 2; right: 18px; top: 18px; font-size: 12px; }

.services { padding-top: 10vh; padding-bottom: 14vh; }
.services-title-wrap { overflow: hidden; }
.services-title-wrap p { color: var(--red); }
.services-title-wrap h2 { margin: 0 0 8vh; color: var(--red); font-size: clamp(90px, 19vw, 310px); line-height: .7; letter-spacing: -.09em; }
.service-list { margin-left: 34%; }
.service-row { display: grid; grid-template-columns: 60px minmax(200px, 1fr) 1fr; gap: 18px; align-items: start; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.25); transition: color .3s, padding-left .4s var(--ease); }
.service-row:last-child { border-bottom: 1px solid rgba(255,255,255,.25); }
.service-row:hover { color: var(--red); padding-left: 12px; }
.service-row span { font-size: 12px; }
.service-row h3 { margin: 0; font-size: clamp(34px, 5vw, 72px); line-height: .85; letter-spacing: -.05em; }
.service-row p { margin: 0; color: rgba(255,255,255,.65); line-height: 1.45; }

.contact { overflow: hidden; background: var(--paper); color: var(--ink); }
.marquee { overflow: hidden; border-bottom: 1px solid rgba(17,17,17,.2); }
.marquee div { width: max-content; display: flex; animation: marquee 18s linear infinite; }
.marquee span { padding-right: .1em; font-size: clamp(110px, 21vw, 330px); font-weight: 800; line-height: .72; letter-spacing: -.08em; }
.contact-inner { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.contact-inner > p { color: var(--red); text-transform: uppercase; font-size: 12px; }
.contact-inner h2 { margin: 0 0 5vh; font-size: clamp(45px, 7vw, 100px); line-height: .88; letter-spacing: -.06em; text-wrap: balance; }
.email-link { color: var(--red); font-size: clamp(28px, 5.5vw, 86px); font-weight: 700; letter-spacing: -.055em; border-bottom: .05em solid transparent; transition: border-color .3s; }
.email-link:hover { border-color: currentColor; }
.email-link span { display: inline-block; transition: transform .4s var(--ease); }
.email-link:hover span { transform: translate(8px, -8px); }
.contact-meta { width: 100%; margin-top: 9vh; display: flex; justify-content: space-between; gap: 18px; color: rgba(17,17,17,.6); font-size: 11px; text-transform: uppercase; }
.footer-word { width: 100%; margin-bottom: -.1em; color: var(--red); font-size: 24.6vw; font-weight: 800; line-height: .68; letter-spacing: -.105em; white-space: nowrap; text-align: center; transform: translateX(-.015em); }

.project-dialog { inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: #fff; background: var(--ink); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.project-dialog::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(10px); }
.project-dialog[open] { display: block; animation: dialog-in .55s var(--ease) both; }
.dialog-close { position: fixed; z-index: 60; right: 18px; top: 18px; padding: 11px 16px; border: 1px solid rgba(255,255,255,.55); border-radius: 100px; color: #fff; background: rgba(17,17,17,.72); backdrop-filter: blur(12px); cursor: pointer; transition: color .3s, background .3s, transform .3s var(--ease); }
.dialog-close:hover { color: var(--ink); background: #fff; transform: rotate(-2deg); }
.case-study { min-height: 100%; background: var(--ink); }
.case-intro { min-height: 92svh; padding: clamp(82px, 10vh, 130px) var(--pad) clamp(70px, 10vh, 130px); display: flex; flex-direction: column; justify-content: space-between; }
.case-topline { display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.52); font-size: 11px; text-transform: uppercase; }
.dialog-tag { margin: 0; color: var(--project-color, var(--red)); }
.case-topline > span { text-align: right; }
.case-intro h2 { margin: 7vh 0; color: #fff; font-size: clamp(94px, 18vw, 290px); line-height: .68; letter-spacing: -.085em; overflow-wrap: anywhere; }
.case-description { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.dialog-lead { grid-column: 1 / 8; margin: 0; max-width: 980px; font-size: clamp(27px, 4vw, 62px); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.case-description dl { grid-column: 9 / -1; margin: 0; }
.case-description dl div { display: grid; grid-template-columns: minmax(70px, .7fr) 1.5fr; gap: 15px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.22); font-size: 13px; }
.case-description dt { color: rgba(255,255,255,.45); }
.case-description dd { margin: 0; }

.mockup--photo {
  background: #181818;
}

.case-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.mockup--cover .case-image {
  object-fit: cover;
}

.mockup--contain .case-image {
  object-fit: contain;
  padding: clamp(20px, 4vw, 70px);
}

.mockup--photo::before {
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 70%,
    rgba(0, 0, 0, 0.35)
  );
}

.mockup--photo figcaption {
  z-index: 3;
  color: white;
}

.case-gallery { padding: var(--gap); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.mockup { position: relative; min-height: min(72vw, 900px); margin: 0; overflow: hidden; display: grid; place-items: center; color: var(--project-ink, #fff); background: var(--project-color, var(--red)); isolation: isolate; }
.mockup--full { grid-column: 1 / -1; }
.mockup--half { grid-column: span 6; min-height: min(52vw, 760px); }
.mockup figcaption { position: absolute; z-index: 5; left: 18px; bottom: 16px; color: currentColor; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; opacity: .72; }
.mockup .dialog-symbol { position: relative; z-index: 2; font-size: clamp(120px, 27vw, 430px); line-height: .7; font-weight: 800; letter-spacing: -.12em; }
.mockup::before { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255,255,255,.22), transparent 42%, rgba(0,0,0,.15)); }
.mockup--brand::after { content: ""; position: absolute; width: 35vw; aspect-ratio: 1; right: -8vw; top: -12vw; border: 1px solid currentColor; border-radius: 50%; opacity: .28; }
.packaging-object { width: 42%; height: 58%; display: grid; place-items: center; background: color-mix(in srgb, var(--project-color) 74%, white); border-radius: 8px 8px 20px 20px; box-shadow: 35px 48px 80px rgba(0,0,0,.24); transform: rotate(-7deg); }
.packaging-object::before { content: ""; position: absolute; width: 48%; height: 6%; top: 18%; border-radius: 50%; background: rgba(255,255,255,.5); }
.packaging-object .dialog-symbol { font-size: clamp(60px, 10vw, 160px); }
.screen-object { width: 54%; aspect-ratio: .58; display: grid; place-items: center; border: clamp(8px, 1vw, 16px) solid #161616; border-radius: clamp(20px, 3vw, 48px); background: color-mix(in srgb, var(--project-color) 78%, white); box-shadow: 30px 40px 80px rgba(0,0,0,.3); transform: rotate(5deg); }
.screen-object .dialog-symbol { font-size: clamp(55px, 9vw, 145px); }
.screen-object i { position: absolute; bottom: 4%; width: 22%; height: 4px; border-radius: 4px; background: #161616; }
.billboard-object { width: 74%; height: 54%; display: grid; place-items: center; color: var(--project-color); background: #f1eee8; box-shadow: 0 35px 70px rgba(0,0,0,.24); transform: perspective(1000px) rotateY(-5deg) rotateX(2deg); }
.billboard-object::after { content: ""; position: absolute; bottom: -22%; width: 3%; height: 22%; background: #242424; }
.billboard-object .dialog-symbol { font-size: clamp(100px, 22vw, 350px); }
.mockup--billboard { background: color-mix(in srgb, var(--project-color) 64%, #111); }
.editorial-object { position: relative; width: 70%; height: 58%; filter: drop-shadow(24px 34px 35px rgba(0,0,0,.22)); transform: rotate(-5deg); }
.editorial-object i { position: absolute; inset: 0 50% 0 0; background: #eee9df; }
.editorial-object i:nth-child(2) { inset: 0 0 0 50%; background: #fffaf1; }
.editorial-object .dialog-symbol { position: absolute; left: 20%; top: 32%; color: var(--project-color); font-size: clamp(50px, 9vw, 130px); }
.detail-object { width: 62%; aspect-ratio: 1; display: grid; place-items: center; border: clamp(20px, 4vw, 64px) solid currentColor; border-radius: 50%; transform: rotate(12deg); }
.detail-object::before, .detail-object::after { content: ""; position: absolute; width: 120%; height: 1px; background: currentColor; opacity: .5; }
.detail-object::before { transform: rotate(45deg); }
.detail-object::after { transform: rotate(-45deg); }
.detail-object .dialog-symbol { font-size: clamp(70px, 13vw, 190px); }
.mockup--closing { min-height: min(82vw, 1000px); align-content: center; gap: 28px; text-align: center; }
.mockup--closing > .dialog-symbol { font-size: clamp(150px, 36vw, 580px); }
.mockup--closing p { position: relative; z-index: 2; margin: 0; font-size: clamp(26px, 4vw, 60px); letter-spacing: -.045em; }
.case-footer { min-height: 38vh; padding: var(--pad); display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 14px; }
.case-footer p { margin: 0; color: var(--red); text-transform: uppercase; font-size: 12px; }
.case-footer button { padding: 0; border: 0; color: #fff; background: transparent; font: inherit; font-size: clamp(20px, 3vw, 42px); cursor: pointer; border-bottom: 1px solid currentColor; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.delay-2 { transition-delay: .18s; }
.cursor { position: fixed; z-index: 100; left: 0; top: 0; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--acid); font-size: 12px; text-transform: uppercase; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.2); transition: opacity .2s, transform .3s var(--ease); }
.cursor.is-active { opacity: 1; transform: translate(-50%, -50%) scale(1); }

@keyframes title-in { from { opacity: 0; transform: translateY(70%) rotate(3deg); } to { opacity: 1; transform: none; } }
@keyframes bob { 50% { transform: translateY(7px); } }
@keyframes marquee { to { transform: translateX(-33.333%); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }

@media (max-width: 800px) {
  .site-header { grid-template-columns: 1fr auto; height: 62px; }
  .site-header nav { display: none; }
  .brand-mark i { display: none; }
  .hero-title { font-size: 24.6vw; flex-wrap: nowrap; line-height: .68; }
  .hero-meta { max-width: 70%; }
  .scroll-cue span { display: none; }
  .manifesto { min-height: 72vh; }
  .manifesto-kicker { grid-column: 1 / -1; align-self: auto; }
  .manifesto-copy { grid-column: 1 / -1; }
  .manifesto-note { grid-column: 3 / -1; }
  .section-heading { min-height: 28vh; grid-template-columns: 1fr auto; }
  .section-heading h2 { grid-column: 1 / -1; grid-row: 2; }
  .section-heading > span { grid-column: 2; grid-row: 1; }
  .project--wide, .project--small, .project--third, .project--full { grid-column: 1 / -1; min-height: 65svh; }
  .project:nth-child(3n) { min-height: 48svh; }
  .service-list { margin-left: 0; }
  .service-row { grid-template-columns: 34px 1fr; }
  .service-row p { grid-column: 2; }
  .contact-meta { flex-direction: column; }
  .case-intro { min-height: 88svh; }
  .case-intro h2 { margin: 6vh 0; font-size: clamp(76px, 24vw, 132px); }
  .dialog-lead { grid-column: 1 / -1; }
  .case-description dl { grid-column: 2 / -1; margin-top: 48px; }
  .mockup, .mockup--half { grid-column: 1 / -1; min-height: 78svh; }
  .mockup--half { min-height: 68svh; }
  .packaging-object { width: 54%; }
  .screen-object { width: 48%; }
  .case-footer { grid-template-columns: auto 1fr; }
  .case-footer button { grid-column: 1 / -1; justify-self: start; margin-top: 40px; }
}

@media (pointer: coarse) { .cursor { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
