:root {
  /* Fixed palette */
  --ink: #0F1512;
  --ink-2: #1A221D;
  --paper: #F7F8F6;
  --paper-2: #ECEFEB;
  --paper-line: #D8DDD8;
  --paper-muted: #5E665F;
  --muted-dark: #9AA59C;
  --line-dark: #2A342D;
  --slime: #34D399;
  --slime-deep: #047857;

  /* Theme tokens (light) */
  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --fg: var(--ink);
  --fg-2: #3C443E;
  --muted: var(--paper-muted);
  --line: var(--paper-line);
  --accent: var(--slime-deep);
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-hover: var(--slime-deep);
  --btn-hover-fg: var(--paper);
  --band: var(--ink);
  --band-card: var(--ink-2);
  color-scheme: light;

  --display: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --nav: 68px;
  --py: clamp(20px, 5vh, 64px);
}
[data-theme="dark"] {
  --bg: #0B100D;
  --bg-2: #111814;
  --fg: #E9EEEA;
  --fg-2: #C2CBC4;
  --muted: #95A198;
  --line: #222C26;
  --accent: var(--slime);
  --btn-bg: var(--slime);
  --btn-fg: var(--ink);
  --btn-hover: #6EE7B7;
  --btn-hover-fg: var(--ink);
  --band: #141C17;
  --band-card: #1B2520;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y mandatory; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  transition: background .3s ease, color .3s ease;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Buttons & links */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--btn-bg); color: var(--btn-fg);
  padding: 13px 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px; text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { background: var(--btn-hover); color: var(--btn-hover-fg); transform: translateY(-1px); }
.btn--small { padding: 9px 16px; font-size: 14px; }
.btn--light { background: var(--slime); color: var(--ink); }
.btn--light:hover { background: #6EE7B7; color: var(--ink); }

.link-arrow {
  font-weight: 500; font-size: 15px; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: color .2s ease;
}
.link-arrow:hover { color: var(--accent); }

.label, .eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, color .3s ease;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav); gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.logo img { width: 30px; height: 30px; }
.nav__links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-size: 15px; color: var(--muted); transition: color .2s ease; }
.nav__links a:hover { color: var(--fg); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: inherit; cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.theme-toggle:hover { border-color: var(--muted); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .sun, [data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }

/* Nav over the dark projects band */
body[data-section="band"] .nav { background: color-mix(in srgb, var(--band) 84%, transparent); color: var(--paper); }
body[data-section="band"] .nav__links a { color: var(--muted-dark); }
body[data-section="band"] .nav__links a:hover { color: var(--paper); }
body[data-section="band"] .nav .btn { background: var(--slime); color: var(--ink); }
body[data-section="band"] .theme-toggle { border-color: var(--line-dark); }

/* Pages: each section fills exactly one viewport and snaps */
.page {
  height: 100vh; height: 100svh;
  scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav) + var(--py)) 0 var(--py);
  overflow: hidden;
}
.page > .wrap { width: 100%; }

/* Pager */
.pager {
  position: fixed; right: clamp(14px, 2vw, 28px); top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; gap: 14px;
}
.pager a { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .3s ease, transform .3s ease; }
.pager a:hover { background: var(--muted); }
.pager a[aria-current] { background: var(--accent); transform: scale(1.4); }
body[data-section="band"] .pager a { background: var(--line-dark); }
body[data-section="band"] .pager a[aria-current] { background: var(--slime); }

/* Next-page arrow */
.next-page {
  position: fixed; left: 50%; bottom: clamp(14px, 3vh, 28px); z-index: 40;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 80%, transparent); color: var(--fg);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  cursor: pointer; transform: translateX(-50%);
  animation: nudge 2.4s ease-in-out infinite;
  transition: opacity .3s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.next-page svg { width: 18px; height: 18px; }
.next-page:hover { border-color: var(--accent); color: var(--accent); }
.next-page[hidden] { display: grid; opacity: 0; pointer-events: none; }
body[data-section="band"] .next-page { border-color: var(--line-dark); background: color-mix(in srgb, var(--band) 80%, transparent); color: var(--paper); }
body[data-section="band"] .next-page:hover { border-color: var(--slime); color: var(--slime); }
@keyframes nudge-corner { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(6px); } }
@keyframes nudge { 0%, 60%, 100% { transform: translate(-50%, 0); } 30% { transform: translate(-50%, 6px); } }

/* Hero */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: clamp(20px, 4vh, 32px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--slime) 55%, transparent); }
.hero__title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(36px, min(7.4vw, 11vh), 96px);
  line-height: 1; letter-spacing: -.045em;
  max-width: 15ch;
}
.hero__title .hl { color: var(--accent); }
.hero__foot {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end;
  margin-top: clamp(28px, 7vh, 72px); padding-top: clamp(20px, 4vh, 32px); border-top: 1px solid var(--line);
}
.hero__lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 52ch; }
.hero__cta { display: flex; align-items: center; gap: 28px; justify-content: flex-end; flex-wrap: wrap; }

/* Sections */
.section--dark { background: var(--band); color: var(--paper); }
.section--dark .label { color: var(--muted-dark); }
.section--paper { background: var(--bg-2); }
.section__head { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: baseline; margin-bottom: clamp(24px, 6vh, 72px); }
.section__title { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -.035em; max-width: 18ch; }

/* Project */
.project {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 3.5vw, 48px); align-items: center;
  background: var(--band-card); border: 1px solid var(--line-dark); border-radius: 22px;
  padding: clamp(22px, min(3.5vw, 5vh), 44px);
}
.project__meta { display: flex; gap: 8px; margin-bottom: 22px; }
.tag {
  font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--muted-dark);
}
.tag--live { color: var(--slime); border-color: color-mix(in srgb, var(--slime) 35%, transparent); }
.tag--live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--slime); margin-right: 7px; vertical-align: 1px; }
.project__name { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 5vw, 60px); line-height: 1; letter-spacing: -.04em; margin-bottom: 18px; }
.project__desc { color: #C9D1CA; max-width: 46ch; }
.project__features { list-style: none; padding: 0; margin: clamp(18px, 3vh, 28px) 0 clamp(22px, 4vh, 36px); display: grid; gap: clamp(6px, 1.4vh, 12px); }
.project__features li { position: relative; padding-left: 26px; font-size: 15.5px; color: #DDE3DE; }
.project__features li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 1.5px; background: var(--slime); }
.project__next { width: fit-content; margin-top: clamp(14px, 3vh, 28px); font-size: 15px; color: var(--muted-dark); }
.project__next a { color: var(--paper); text-underline-offset: 3px; }

/* Principles */
.principles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.principles li { padding: 32px 28px 8px 0; }
.principles li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.principles__n { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.principles h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin: 18px 0 10px; }
.principles p { font-size: 15.5px; color: var(--muted); }

/* Founder */
.founder { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.founder__photo { position: relative; width: min(100%, 50vh); }
.founder__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 18px; }
.founder__mark {
  position: absolute; right: -16px; bottom: -16px;
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 18px;
  background: #09090B; color: #34D399;
  box-shadow: 0 0 0 4px var(--bg-2), 0 10px 24px rgba(0, 0, 0, .18);
  transition: transform .25s ease;
}
.founder__mark:hover { transform: translateY(-2px) rotate(-3deg); }
.founder__mark svg { width: 62%; height: auto; fill: currentColor; }
.founder__body .label { margin-bottom: clamp(12px, 2.4vh, 20px); }
.founder__role { font-family: var(--mono); font-size: 13px; color: var(--accent); margin: 12px 0 clamp(16px, 3vh, 28px); }
.founder__body > p:not(.label):not(.founder__role) { color: var(--fg-2); max-width: 58ch; margin-bottom: 16px; }
.founder__links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: clamp(24px, 4.5vh, 40px); }

/* Contact */
.contact { text-align: center; justify-content: flex-start; padding-bottom: 0; }
.contact__inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.contact__pet { width: clamp(56px, 9vh, 84px); height: auto; margin-bottom: 18px; transform-origin: 50% 100%; transition: transform .3s ease; }
.contact__inner:has(.contact__mail:hover) .contact__pet { animation: pet-wiggle .6s ease-in-out; }
@keyframes pet-wiggle {
  0%, 100% { transform: none; }
  25% { transform: rotate(-8deg) scale(1.04, .96); }
  60% { transform: rotate(6deg) translateY(-6px); }
}
.contact__title { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -.035em; margin: 20px auto clamp(24px, 5vh, 36px); max-width: 18ch; }
.contact__mail {
  display: inline-block; font-family: var(--display); font-weight: 500; letter-spacing: -.03em;
  font-size: clamp(26px, 4.6vw, 54px); text-decoration: none; color: var(--accent);
  border-bottom: 2px solid var(--slime); padding-bottom: 4px; transition: color .2s ease;
}
.contact__mail:hover { color: var(--fg); }
.contact__note { margin-top: 22px; font-size: 15px; color: var(--muted); }

/* Footer */
.footer { width: 100%; border-top: 1px solid var(--line); padding: clamp(16px, 3vh, 28px) 0; text-align: left; font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer__slogan { color: var(--fg); font-weight: 500; }
.footer__cnpj { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line); white-space: nowrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--fg); }

/* Responsive */
@media (max-width: 960px) {
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principles li:nth-child(3) { padding-left: 0; border-left: 0; }
  .principles li:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 16px; }
  .principles li { padding-top: 20px; }
  .project { grid-template-columns: 1fr; }
  .project__visual { display: none; }
}
@media (max-width: 760px) {
  :root { --nav: 60px; --py: clamp(16px, 3.5vh, 32px); }
  body { font-size: 15.5px; line-height: 1.55; }
  .nav__links, .pager { display: none; }
  .next-page { left: auto; right: 14px; bottom: 14px; width: 38px; height: 38px; animation-name: nudge-corner; }
  .hero__title { font-size: clamp(36px, min(11vw, 7.4vh), 56px); }
  .hero__foot, .section__head, .founder { grid-template-columns: 1fr; }
  .hero__foot { gap: 24px; }
  .hero__cta { justify-content: flex-start; gap: 20px; }
  .contact__pet { width: 52px; margin-bottom: 10px; }
  .section__head { gap: 10px; }
  .section__title { font-size: clamp(26px, 7.4vw, 34px); }

  .project { border-radius: 18px; }
  .project__meta { margin-bottom: 14px; }
  .project__name { font-size: 36px; margin-bottom: 10px; }
  .project__features li { font-size: 14.5px; }
  .project__next { font-size: 14px; }

  .principles { grid-template-columns: 1fr; }
  .principles li, .principles li + li, .principles li:nth-child(n+3) { padding: clamp(10px, 2vh, 16px) 0; border-left: 0; margin-top: 0; }
  .principles li + li { border-top: 1px solid var(--line); }
  .principles__n { display: none; }
  .principles h3 { font-size: 16.5px; margin: 0 0 2px; }
  .principles p { font-size: 14.5px; }

  .founder { gap: 14px; }
  .founder__photo { width: 72px; }
  .founder__photo img { aspect-ratio: 1; border-radius: 50%; object-position: center 30%; }
  .founder__mark { width: 28px; height: 28px; border-radius: 8px; right: -4px; bottom: -4px; box-shadow: 0 0 0 2px var(--bg-2); }
  .founder__body > p:not(.label):not(.founder__role) { font-size: 15px; margin-bottom: 10px; }
  .founder__links { margin-top: clamp(16px, 3vh, 24px); gap: 18px; }
  .founder__links .btn { padding: 11px 18px; }

  .contact__mail { font-size: clamp(22px, 6.6vw, 30px); }
  .footer { font-size: 13px; }
  .footer__inner { gap: 8px; }
  .footer__cnpj { display: block; margin: 2px 0 0; padding: 0; border: 0; }
}
@media (max-width: 760px) and (max-height: 720px) {
  .project__features { display: none; }
  .project__desc { margin-bottom: 20px; }
}
@media (max-width: 760px) and (max-height: 620px) {
  .hero__lead, .project__desc, .principles p, .founder__body > p:not(.label):not(.founder__role) { font-size: 14px; }
  .section__title { font-size: 24px; }
  .hero__title { font-size: 32px; }
  .hero__foot { margin-top: 20px; padding-top: 16px; gap: 18px; }
  .eyebrow { margin-bottom: 14px; }
  .principles li, .principles li + li, .principles li:nth-child(n+3) { padding: 8px 0; }
  .principles h3 { font-size: 15.5px; }
  .founder__body > p.founder__role + p + p { display: none; }
}
@media (min-width: 761px) and (max-height: 820px) {
  .project__meta { margin-bottom: 14px; }
  .project__name { font-size: 46px; margin-bottom: 12px; }
  .project__features li { font-size: 14.5px; }
  .project__desc { font-size: 16px; }
  }
@media (min-width: 761px) and (max-height: 760px) {
  .project__features { display: none; }
  .project__desc { margin-bottom: 24px; }
  .section__head { margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .next-page, .contact__pet { animation: none !important; }
}
