/* =========================================================
   Alan Silveira — Portfolio · style.css (V8)
   1. Fonts and tokens      6. Projects (cards)
   2. Base                  7. Experience and education
   3. Header and nav        8. Services, contact, footer
   4. Buttons               9. Archive, case study, 404
   5. Hero                  10. Motion and media
   11. Responsive
   ========================================================= */

/* 1. Fonts and tokens ------------------------------------ */
@font-face {
  font-family: Jakarta;
  src: url(assets/jakarta-400.woff2) format("woff2"), url(assets/jakarta-400.woff) format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Jakarta;
  src: url(assets/jakarta-600.woff2) format("woff2"), url(assets/jakarta-600.woff) format("woff");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Jakarta;
  src: url(assets/jakarta-800.woff2) format("woff2"), url(assets/jakarta-800.woff) format("woff");
  font-weight: 800;
  font-display: swap;
}

:root {
  --ink: #151517;
  --paper: #f7f7f3;
  --line: #cecfca;
  --purple: #bda7fb;
  --muted: #57565c;
  --mono: ui-monospace, "Courier New", monospace;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  font: 100%/1.55 Jakarta, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

/* 2. Base ------------------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body, h1, h2, h3, h4, h5, p, ul { margin: 0; }
button, a { font: inherit; color: inherit; }
a { text-decoration: none; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid #7654c3; outline-offset: 5px; }

.skip { position: absolute; left: 12px; top: -6em; z-index: 30; background: white; color: #111; padding: .8rem; }
.skip:focus { top: 8px; }
.wrap { width: min(88.6%, 1480px); margin: auto; }

h1, h2, h3, h4, h5 { line-height: 1.06; }
h1 { font-size: clamp(64px, 7.2vw, 125px); letter-spacing: -.078em; font-weight: 600; }
h2 { font-size: clamp(43px, 4.4vw, 79px); font-weight: 600; letter-spacing: -.07em; }
h1 i, h2 i { color: #7657b7; font-style: normal; }

.eyebrow, .kicker, .category, .date, .next span, .count { font-family: var(--mono); font-size: 13px; }
.eyebrow, .kicker, .category { text-transform: uppercase; letter-spacing: .07em; }
.kicker { color: #605e65; margin-bottom: 18px; font-size: 12px; font-weight: 600; }

.section { padding: 76px 0; border-bottom: 1px solid var(--line); }
.sectiontop { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }

.tags { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags li { font-size: 12px; line-height: 1.3; border: 1px solid #d4d1d5; border-radius: 20px; padding: 4px 9px; color: #4f4d52; }
.under { display: inline-block; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }

.biography p, .story p, .row p, .service p, .contact-grid p, .overview, .credits p {
  line-height: 1.65;
  font-size: 1rem;
  max-width: 68ch;
  color: #46454b;
}
.biography p:first-child, .contact-grid p, .overview {
  font-size: clamp(19px, 1.55vw, 26px);
  line-height: 1.45;
  letter-spacing: -.035em;
  color: #232326;
}

/* 3. Header and nav -------------------------------------- */
header {
  background: var(--ink);
  color: #f9f8f5;
  border-bottom: 1px solid #424145;
  position: sticky;
  top: 0;
  z-index: 20;
  transition: transform .35s var(--ease-out);
}
header.is-hidden { transform: translateY(-101%); }

.nav {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}
.nav > .brand { justify-self: start; }
.nav nav { display: flex; gap: 28px; }
.nav nav a, footer nav a, .channels a { font-size: 14px; font-weight: 600; }
.nav nav a:hover, .channels a:hover, footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.nav-actions .btn { white-space: nowrap; }

.brand { display: inline-flex; align-items: center; gap: 18px; font-weight: 600; font-size: 15px; letter-spacing: -.04em; white-space: nowrap; }
.brand > span + span { border-left: 1px solid #68676a; padding-left: 18px; }
.mark { font: italic 800 42px/.85 Arial, sans-serif; letter-spacing: -5px; }
.mark i { color: var(--purple); }

.language {
  display: grid;
  min-width: 40px;
  min-height: 37px;
  place-items: center;
  border: 1px solid #706e76;
  border-radius: 100px;
  font: 600 13px/1 Jakarta, Arial, sans-serif;
}
.language:hover { border-color: var(--purple); color: var(--purple); }

/* 4. Buttons --------------------------------------------- */
.btn, .menu, .filters button, .segment a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid #171719;
  font-size: 14px;
  min-height: 46px;
  padding: 10px 23px;
  transition: background .2s, transform .2s, color .2s;
}
.primary { color: white; background: #141416; }
.secondary, .filters button, .segment a { background: transparent; color: #141416; }
.dark .primary, header .primary { background: #faf9f5; color: #171719; border-color: #faf9f5; }
.dark .secondary, .menu { background: transparent; color: #fff; border-color: #98969c; }
.btn:hover, .segment a:hover { transform: translateY(-2px); background: #d7c9fb; color: #18151f; border-color: #9684b3; }
.nav .btn { min-height: 37px; padding: 7px 19px; }
.menu { display: none; }
.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 27px; }
.segment, .filters { display: flex; flex-wrap: wrap; gap: 8px; }
.segment a, .filters button { min-height: 37px; font-size: 13px; padding: 8px 16px; }
.filters button[aria-pressed=true] { background: var(--ink); color: #fff; }

/* 5. Hero ------------------------------------------------ */
.hero { background: var(--ink); color: #f7f6f1; overflow: hidden; }
.stage { display: grid; grid-template-columns: 1fr 1fr; position: relative; min-height: clamp(555px, 42vw, 715px); }
.herocopy { align-self: center; z-index: 1; padding: 43px 0 70px; }
.herocopy h1 { font-size: clamp(88px, 8.7vw, 156px); line-height: .92; margin: 24px 0 22px; letter-spacing: -.082em; }
.hero h1 i { color: var(--purple); }
.herocopy > p { font-size: clamp(16px, 1.25vw, 21px); max-width: 44ch; line-height: 1.55; color: #d4d0d7; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #e6e3e9; }
.spark { font: 25px/1 Arial, sans-serif; color: var(--purple); }
.place { display: flex; align-items: center; gap: 7px; position: absolute; bottom: 19px; font: 12px var(--mono); color: #bcbac3; }

.canvas { position: relative; min-width: 0; isolation: isolate; }
.dots {
  position: absolute;
  inset: 0 -12% 0 -9%;
  background-image: radial-gradient(#9e98a052 .8px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.disk {
  position: absolute;
  left: 12%;
  top: 16%;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  margin-top: 20px;
  background: linear-gradient(115deg, #ded1ff, #b8a0ed 70%, #ac94e1);
  z-index: -1;
}
.portrait { position: absolute; bottom: -2px; height: 88%; width: 100%; object-fit: contain; object-position: center bottom; z-index: 2; }

.selection { position: absolute; inset: 13% 9% 6% 10%; margin-top: -20px; border: 1px solid #bba0ff; z-index: 1; pointer-events: none; animation: select 2.2s both; }
.selection b { position: absolute; width: 9px; height: 9px; background: #eee8ff; border: 1.5px solid #9573dd; }
.selection b:nth-last-child(4) { left: -5px; top: -5px; }
.selection b:nth-last-child(3) { right: -5px; top: -5px; }
.selection b:nth-last-child(2) { left: -5px; bottom: -5px; }
.selection b:last-child { right: -5px; bottom: -5px; }
.frame-meta, .dimensions { position: absolute; font: 12px/1 var(--mono); white-space: nowrap; letter-spacing: .015em; }
.frame-meta { top: -23px; left: 0; color: #d3c1ff; }
.dimensions { top: -10px; right: 9px; padding: 4px 7px; background: #ddcfff; color: #282036; border-radius: 2px; }
.dimensions:empty { display: none; }

.cursor { position: absolute; z-index: 3; display: flex; align-items: flex-start; flex-direction: column; pointer-events: none; }
.cursor span {
  align-self: flex-start;
  padding: 4px 9px;
  margin: -3px 0 0 14px;
  color: #19171d;
  font: 600 13px/1.2 Jakarta, Arial, sans-serif;
  border-radius: 2px 7px 7px 7px;
  background: var(--cursor);
  box-shadow: 0 4px 14px #1112;
}
.cursor svg { color: var(--cursor); filter: drop-shadow(0 1px 2px #0005); }
.ux { --cursor: #bea4fc; left: 3%; top: 35%; animation: move-a 8s ease-in-out 1 both; }
.brandcursor { --cursor: #d5f2a9; right: 2%; top: 66%; animation: move-b 8s ease-in-out 1 both; }
.brandcursor span { margin-left: 12px; }
.businesscursor { --cursor: #ffcfb8; left: 7%; top: 70%; }

.hero-motion {
  position: absolute;
  z-index: 4;
  right: 3%;
  bottom: 19px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #81748e;
  background: #19171e;
  color: #ede5fc;
}
.hero-motion:hover { background: #343040; }
.hero-motion > span { display: block; width: 10px; height: 12px; margin: auto; border-inline: 2px solid currentColor; }
.canvas.motion-paused .hero-motion > span {
  width: 0;
  height: 0;
  margin-left: 10px;
  border-block: 6px solid transparent;
  border-left: 9px solid currentColor;
  border-right: 0;
}
.canvas.motion-paused :is(.cursor, .selection) { animation-play-state: paused; }

/* 6. About and projects ---------------------------------- */
.aboutgrid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7%; }
.aboutgrid h2 { margin-bottom: 24px; }

/* Clients marquee */
.clients { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.clients-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; font-size: clamp(18px, 1.4vw, 22px);
  letter-spacing: -.03em; color: #232326; margin-bottom: 34px; }
.clients-title .kicker { margin: 0; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; gap: clamp(48px, 5vw, 84px); padding: 0 clamp(24px, 2.5vw, 42px); margin: 0; list-style: none; }
.marquee img { display: block; width: auto; height: 30px; filter: brightness(0); opacity: .62; transition: opacity .3s; }
.marquee li:hover img { opacity: 1; }
.marquee img[src*="pediapartner"], .marquee img[src*="skkala"] { height: 28px; }
.marquee img[src*="agencia-eleva"] { height: 36px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.biography p + p { margin-top: 12px; }

.works { background: #eeeee9; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
.card { position: relative; }
.card[hidden] { display: none; }
.card a { display: block; }
.card a:focus-visible { outline-offset: 6px; border-radius: 10px; }
.cover { position: relative; display: block; width: 100%; margin: 0; overflow: hidden; border-radius: 8px; }
.cover img { width: 100%; height: auto; display: block; border-radius: 8px; background: #e5e4e2; }
.card .cover img { transition: transform .7s var(--ease-out); }
.caption { padding: 14px 0 0; }
.category { font-size: 12px; color: #57545e; }
.caption h3 { font-size: clamp(27px, 2.3vw, 43px); font-weight: 600; letter-spacing: -.055em; margin: 4px 0 5px; }
.caption p { font-size: 14px; color: var(--muted); }
.card a:hover h3 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* 7. Experience and education ---------------------------- */
.row { display: grid; gap: 22px; padding: 23px 0; border-top: 1px solid var(--line); }
.date { color: #5a5760; line-height: 1.6; }
.row h4 { font-size: clamp(21px, 1.7vw, 30px); letter-spacing: -.045em; font-weight: 600; }
.row p.role { font-weight: 600; color: var(--ink); margin: 8px 0 9px; }

.experience .career-group { margin-top: 38px; }
.career-group h3 { margin-bottom: 22px; font-size: clamp(24px, 2.2vw, 36px); font-weight: 600; letter-spacing: -.05em; }
.career-group .row { grid-template-columns: minmax(110px, 1fr) minmax(0, 7fr); gap: clamp(16px, 3vw, 42px); align-items: start; }
.career-card { display: grid; gap: 16px; }

.career-education { background: var(--ink); color: var(--paper); border-bottom-color: #424145; }
.career-education .row { border-color: #49464e; }
.career-education .row p, .career-education .date { color: #c8c5ce; }
.career-education .row p.role { color: var(--paper); }
.career-education .edu-row h4 { color: var(--paper); }
.career-education .edu-row .role { font-weight: 400; }
.edu-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-bottom: 22px; }
.career-group .edu-title h3 { margin-bottom: 0; }
.edu-tags { margin: 0; gap: 8px; }
.career-education .edu-tags li {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  color: var(--paper);
  border-color: #6d6478;
}
.edu-label { margin-top: 20px; font: 12px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.career-education .row p.edu-label { color: #9d99a5; }
.edu-courses { list-style: none; padding: 0; margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 0; color: #c8c5ce; }
.edu-courses li:not(:last-child)::after { content: "·"; margin: 0 10px; color: #6d6478; }
.edu-courses span { font-size: 12px; color: #9d99a5; }

/* 8. Services, contact, footer --------------------------- */
.service-section { background: #eeeee9; }
.services { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 5%; }
.service { display: grid; grid-template-columns: 38px auto; gap: 10px; border-top: 1px solid #a6a5a6; padding: 22px 0; }
.service h3 { font-size: clamp(25px, 2.2vw, 40px); letter-spacing: -.055em; font-weight: 600; margin: 0 0 15px; }
.service > div { display: flex; flex-direction: column; align-items: flex-start; }
.service .under { margin-top: auto; padding-top: 18px; }
.num { font: 14px var(--mono); color: #645582; }

/* Service 05: AI layer, full width under the grid */
.service-ai { grid-column: 1 / -1; }
.service-ai .ai-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px 5%; }
.service-ai .ai-intro p { max-width: 62ch; }
.service-ai .ai-lead { margin-top: -4px; font-size: clamp(17px, 1.3vw, 21px); line-height: 1.45; letter-spacing: -.02em; color: #232326; }
.ai-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 3%; margin-top: 28px; }
.ai-cols > div { border-top: 1px solid #c9c7ca; padding-top: 16px; }
.ai-cols h4 { font-size: clamp(18px, 1.35vw, 22px); font-weight: 600; letter-spacing: -.035em; margin-bottom: 8px; }
.ai-cols p { font-size: 15px; }

.contact { background: #d8c8f9; }
.contact h2 { font-size: clamp(64px, 7.4vw, 123px); }
.contact h2 i { color: #644098; }
.contact .actions { margin-top: 20px; }
.contact-grid .mail-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 18px;
  font-size: 15px;
  letter-spacing: 0;
  color: #232326;
}
.mail-line a { text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
.copy {
  min-height: 32px;
  padding: 5px 13px;
  border-radius: 100px;
  border: 1px solid #6b5a92;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}
.copy:hover { background: #ffffff66; }

footer { background: var(--ink); color: var(--paper); padding: 40px 0; }
.footer { display: grid; grid-template-columns: 1.5fr 1fr .6fr; gap: 24px; }
.footer p { margin-top: 14px; font-size: 14px; color: #c3c1c6; }
.footer nav, .channels { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

/* 9. Archive, case study, 404 ---------------------------- */
.archive, .detail { padding: 38px 0 70px; }
.archive h1 { margin: 28px 0; }
.count { margin: 20px 0; color: var(--muted); }

.case-head { padding: 46px 0 30px; }
.case-head h1 { margin: 10px 0 16px; }
.case-head .kicker { margin: 0; }
.credits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px 36px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.credits p { margin-top: 2px; }
.credits b, .next span { font-size: 13px; color: var(--muted); }
.detail > .cover { max-width: 1050px; margin-inline: auto; }

.story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px clamp(24px, 3.5vw, 56px); margin-top: 34px; }
.story section { padding: 0; border-top: 1px solid var(--line); padding-top: 18px; }
.story h2 { font-size: clamp(22px, 1.75vw, 30px); letter-spacing: -.045em; margin-bottom: 10px; }

.case-gallery { max-width: 1050px; margin: 46px auto 10px; display: grid; gap: 40px; }
.case-gallery:empty { display: none; }
.case-gallery figure { margin: 0; }
.case-gallery img { display: block; width: 100%; height: auto; border-radius: 8px; background: #e5e4e2; }
/* Full case: boards stacked edge to edge, as on Behance */
.case-gallery.is-full { gap: 0; border-radius: 8px; overflow: hidden; }
.case-gallery.is-full img, .case-gallery.is-full video { display: block; width: 100%; height: auto; border-radius: 0; }
.case-gallery.is-full img { min-height: 120px; }
.case-gallery.is-full video { background: #e5e4e2; }
.case-gallery.is-full figure.is-video + figure.is-video { margin-top: 24px; }
.case-gallery:has(.is-video) { overflow: visible; border-radius: 0; }
.case-gallery .is-video video { border-radius: 8px; aspect-ratio: 16 / 9; background: #151517; }
.caseactions { margin: 30px 0 8px; }
.case-end { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
  max-width: 1050px; margin: 40px auto 0; border-top: 1px solid var(--line); padding-top: 24px; }
.case-end .next { border-top: 0; padding-top: 0; margin-top: 0; text-align: right; align-items: flex-end; }

.next { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 35px; }
.next strong { font-size: 28px; letter-spacing: -.05em; }

.notfound { padding: 90px 0 110px; }
.notfound h1 { margin: 18px 0 20px; }
.notfound p { max-width: 52ch; color: #46454b; font-size: 18px; }
.notfound .actions { margin-top: 28px; }

/* 10. Motion and media ----------------------------------- */
@keyframes select { from { opacity: 0; transform: scale(.96); } 55% { opacity: 1; } to { transform: scale(1); } }
@keyframes move-a { 0% { opacity: 0; transform: translate(-12px, 19px); } 15%, 70% { opacity: 1; transform: translate(10px, -15px); } 100% { transform: translate(0, 0); } }
@keyframes move-b { 0%, 10% { opacity: 0; transform: translate(20px, -25px); } 25%, 62% { opacity: 1; transform: translate(-14px, 16px); } 100% { transform: translate(0, 0); } }
@keyframes cursor-drift { 0%, 100% { translate: 0 0; } 40% { translate: 6px -9px; } 74% { translate: -5px 3px; } }

/* Motion cover (MP4) and its pause control */
.cover-motion video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0;
  transition: opacity .4s, transform .7s var(--ease-out);
}
.cover-motion.is-playing video, .cover-motion.is-paused video { opacity: 1; }
.detail .cover-motion { max-width: 1050px; margin-inline: auto; }
.media-toggle {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ffffff55;
  background: #151517b3;
  color: #fff;
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
}
.media-toggle:hover { background: #151517; }
.media-toggle > span { display: block; width: 9px; height: 11px; border-inline: 2px solid currentColor; }
.media-toggle.is-paused > span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-block: 6px solid transparent;
  border-left: 9px solid currentColor;
  border-right: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .ux { animation: move-a 8s ease-in-out both, cursor-drift 13s 8s ease-in-out infinite; }
  .brandcursor { animation: move-b 8s ease-in-out both, cursor-drift 17s 8s ease-in-out infinite reverse; }
  .businesscursor { animation: move-a 8s .7s ease-in-out both, cursor-drift 15s 8.7s ease-in-out infinite; }

  /* Scroll reveal: only elements that start below the fold get .pre-reveal */
  .pre-reveal { opacity: 0; transform: translateY(22px); }
  .pre-reveal.row, .pre-reveal.service { transform: translateY(14px); }
  .revealing {
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
    transition-delay: calc(var(--order, 0) * 90ms);
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card a:hover .cover img, .card a:hover .cover video { transform: scale(1.025); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-motion, .cover-motion video, .media-toggle { display: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee-track { width: auto; }
  .marquee ul { flex-wrap: wrap; row-gap: 28px; }
  .marquee ul[aria-hidden] { display: none; }
}

/* 11. Responsive ----------------------------------------- */
@media (min-width: 951px) {
  .career-card { grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr); gap: clamp(24px, 3vw, 46px); }
}

@media (max-width: 950px) {
  .nav { gap: 22px; }
  .nav nav { gap: 15px; }
  .wrap { width: 90%; }
  .stage { min-height: 510px; }
  .herocopy h1 { font-size: clamp(74px, 9vw, 99px); }
  .services { gap: 20px 3%; }
  .service { grid-template-columns: 26px 1fr; }
  .section { padding: 54px 0; }
}

@media (min-width: 701px) and (max-width: 950px) {
  .story { grid-template-columns: 1fr 1fr; }
  .ai-cols { grid-template-columns: 1fr; }
  .portrait { width: 136%; max-width: none; left: -18%; height: 77%; }
  .disk { top: 25%; width: 84%; left: 8%; }
  .selection { inset: 23% 4% 6%; }
  .ux { left: -2%; top: 39%; }
  .brandcursor { top: 75%; right: -1%; }
}

@media (max-width: 700px) {
  /* header */
  .nav { min-height: 61px; grid-template-columns: 1fr auto; gap: 8px; }
  .nav .brand { margin-right: auto; }
  .brand { gap: 10px; font-size: 13px; }
  .brand > span + span { padding-left: 11px; }
  .mark { font-size: 34px; }
  .nav-actions { gap: 7px; }
  .nav-actions .btn { padding-inline: 13px; }
  .language { min-width: 34px; min-height: 34px; }
  .menu { display: inline-flex; min-height: 34px; padding: 7px 12px; font-size: 13px; }
  .nav nav { display: none; position: absolute; inset: 100% 0 auto; background: #202023; border-block: 1px solid #424145; padding: 10px 5%; z-index: 9; }
  .nav nav.open { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
  .nav nav a { padding: 10px 0; }

  /* hero */
  .stage { grid-template-columns: 1fr; min-height: 0; width: 100%; }
  .herocopy { padding: 36px 5% 0; }
  .herocopy h1 { font-size: clamp(74px, 13.6vw, 95px); margin: 14px 0 17px; }
  .eyebrow { font-size: 12px; }
  .spark { font-size: 21px; }
  .herocopy > p { max-width: 46ch; }
  .actions { margin-top: 19px; }
  .place { position: static; margin-top: 15px; }
  .canvas { height: clamp(265px, 68vw, 365px); max-width: 465px; width: 100%; justify-self: center; margin-top: 8px; }
  .disk { height: 83%; width: auto; left: 50%; top: 13%; transform: translateX(-50%); }
  .selection { inset: 12% 15% 7%; }
  .portrait { height: 89%; }
  .ux { left: 7%; }
  .brandcursor { right: 5%; top: 54%; }
  .businesscursor { left: 5%; top: 68%; }
  .frame-meta { font-size: 11px; top: -16px; }
  .hero-motion { right: 4%; bottom: 12px; }

  /* sections */
  .section { padding: 40px 0; }
  h2 { font-size: clamp(36px, 7.8vw, 50px); }
  .kicker { margin-bottom: 12px; }
  .sectiontop { align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
  .sectiontop .btn { min-height: 39px; }
  .aboutgrid, .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .cards, .services { grid-template-columns: 1fr; }
  .cards { gap: 24px; }
  .services { gap: 3px; }
  .service { grid-template-columns: 28px 1fr; }
  .service-ai .ai-intro, .ai-cols { grid-template-columns: 1fr; }
  .tags { gap: 5px; }
  .row { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .experience .career-group { margin-top: 28px; }
  .career-group h3 { margin-bottom: 17px; }
  .career-group .row { grid-template-columns: 1fr; gap: 9px; }
  .career-card { gap: 5px; }
  .contact h2 { font-size: clamp(46px, 14vw, 64px); }
  .contact .actions { margin-top: 16px; }
  .footer { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer > div:first-child { grid-column: 1 / -1; }

  /* archive and case */
  .archive, .detail { padding: 26px 0 42px; }
  .case-head { padding: 30px 0 22px; }
  .detail h1 { font-size: clamp(45px, 9vw, 70px); overflow-wrap: anywhere; }
  .story { grid-template-columns: 1fr; gap: 22px; }
  .story h2 { font-size: 24px; }
  .clients { margin-top: 40px; padding-top: 28px; }
  .marquee img { height: 24px; }
  .marquee img[src*="agencia-eleva"] { height: 29px; }
  .filters button { padding: 8px 12px; }
}

@media (max-width: 360px) {
  .nav .brand > span + span { display: none; }
  .herocopy h1 { font-size: clamp(48px, 20vw, 71px); }
}
