:root {
  --ink: #090a0d;
  --ink-soft: #111419;
  --ink-raised: #171a20;
  --paper: #f3f0e8;
  --paper-soft: #c8c9c8;
  --muted: #858b94;
  --line: rgba(243, 240, 232, .16);
  --line-strong: rgba(243, 240, 232, .28);
  --red: #d62b33;
  --red-soft: rgba(214, 43, 51, .16);
  --cyan: #77d9d2;
  --green: #087348;
  --green-deep: #064b35;
  --gold: #f5c95d;
  --orange: #ed7b3d;
  --display: clamp(3.2rem, 8vw, 8.8rem);
  --content: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; min-width: 320px; color: var(--paper); background: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; transform: translateY(-180%); padding: 10px 13px; color: var(--ink); background: var(--paper); font-size: .875rem; transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
.scroll-progress { position: fixed; z-index: 80; top: 0; left: 0; right: 0; height: 2px; pointer-events: none; background: transparent; }
.scroll-progress span { display: block; width: 0; height: 100%; background: var(--red); box-shadow: 0 0 14px rgba(214, 43, 51, .72); }
.section-shell { width: min(var(--content), calc(100% - 64px)); margin: 0 auto; }

.site-header { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; width: min(var(--content), calc(100% - 64px)); margin: 18px auto 0; padding: 9px 10px 9px 9px; border: 1px solid transparent; transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease, transform .35s ease; }
.site-header.is-scrolled { border-color: var(--line); background: rgba(9, 10, 13, .78); backdrop-filter: blur(18px); }
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-lockup img { display: block; width: 38px; height: 38px; object-fit: contain; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { color: var(--paper); font-size: .82rem; letter-spacing: .035em; }
.brand-copy small { color: var(--muted); font-size: .61rem; letter-spacing: .12em; text-transform: uppercase; }
.site-menu { display: flex; align-items: center; gap: 24px; font-size: .76rem; }
.site-menu a { position: relative; color: var(--paper-soft); text-decoration: none; transition: color .2s ease; }
.site-menu a:hover, .site-menu a.is-active { color: var(--paper); }
.site-menu a:not(.nav-cta)::after { position: absolute; right: 0; bottom: -8px; left: 0; height: 1px; content: ""; transform: scaleX(0); transform-origin: right; background: var(--red); transition: transform .25s ease; }
.site-menu a:not(.nav-cta):hover::after, .site-menu a:not(.nav-cta).is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 10px 12px; border: 1px solid rgba(214, 43, 51, .65); color: var(--paper) !important; background: rgba(214, 43, 51, .12); }
.nav-cta span { display: inline-block; margin-left: 8px; color: var(--red); transition: transform .2s ease; }
.nav-cta:hover span { transform: translate(3px, -3px); }
.menu-toggle { display: none; border: 0; color: var(--paper); background: transparent; cursor: pointer; }

.hero { position: relative; display: flex; min-height: min(890px, 100svh); flex-direction: column; justify-content: space-between; overflow: hidden; padding-top: clamp(170px, 24vh, 230px); padding-bottom: 42px; background: radial-gradient(circle at 78% 23%, rgba(214, 43, 51, .14), transparent 30rem), var(--ink); }
.hero-grid { position: absolute; inset: 0; pointer-events: none; opacity: .32; background-image: linear-gradient(rgba(243, 240, 232, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(243, 240, 232, .035) 1px, transparent 1px); background-size: 45px 45px; mask-image: linear-gradient(90deg, black, transparent 75%); }
.hero-grid span { position: absolute; display: block; height: 1px; background: var(--line); }
.hero-grid span:nth-child(1) { top: 29%; left: 0; width: 27%; }.hero-grid span:nth-child(2) { top: 62%; left: 35%; width: 48%; }.hero-grid span:nth-child(3) { top: 78%; left: 4%; width: 19%; }.hero-grid span:nth-child(4) { top: 14%; right: 0; width: 22%; }
.hero-content { position: relative; z-index: 2; max-width: 950px; }
.eyebrow { margin: 0; color: var(--muted); font: 500 .68rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow span { margin: 0 7px; color: var(--red); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 1050px; margin: 22px 0 28px; font-size: var(--display); font-weight: 650; line-height: .86; letter-spacing: -.085em; }
.hero h1 em { display: block; color: var(--red); font-style: normal; }
.hero-lede { max-width: 620px; margin-bottom: 28px; color: var(--paper-soft); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.58; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 47px; padding: 12px 16px; border: 1px solid var(--line-strong); color: var(--paper); text-decoration: none; font-size: .8rem; transition: border-color .25s ease, background .25s ease, color .25s ease, transform .25s ease; }
.button span { color: var(--red); transition: transform .25s ease; }
.button:hover { transform: translateY(-3px); }.button:hover span { transform: translate(3px, -3px); }
.button-primary { border-color: var(--red); background: var(--red); color: var(--ink); }.button-primary span { color: var(--ink); }.button-primary:hover { border-color: #ed4d54; background: #ed4d54; }
.button-quiet { background: rgba(243, 240, 232, .025); }
.hero-orbit { position: absolute; top: 23%; right: 5%; width: min(33vw, 390px); height: min(33vw, 390px); pointer-events: none; opacity: .72; }
.orbit-core { position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; width: 82px; height: 82px; place-items: center; transform: translate(-50%, -50%); border: 1px solid rgba(243, 240, 232, .42); border-radius: 50%; color: var(--paper); background: var(--ink); font: 1.1rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.orbit-core img { width: 52px; height: 52px; object-fit: contain; }
.orbit-ring { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(214, 43, 51, .58); border-radius: 50%; transform: translate(-50%, -50%) rotate(-23deg); }.orbit-ring-one { width: 100%; height: 46%; }.orbit-ring-two { width: 70%; height: 100%; border-style: dashed; opacity: .55; }
.orbit-dot { position: absolute; width: 9px; height: 9px; border: 1px solid var(--red); border-radius: 50%; background: var(--ink); box-shadow: 0 0 16px rgba(214, 43, 51, .75); }.orbit-dot-one { top: 24%; right: 9%; }.orbit-dot-two { bottom: 14%; left: 16%; }
.hero-footer { position: relative; z-index: 2; display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-top: 28px; border-top: 1px solid var(--line); }
.status-line { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--paper-soft); font: .68rem ui-monospace, SFMono-Regular, Menlo, monospace; }.status-dot { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px var(--red-soft); }
.hero-capabilities { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }.hero-capabilities span { padding: 8px 9px; border: 1px solid var(--line); color: var(--muted); font: .65rem ui-monospace, SFMono-Regular, Menlo, monospace; }

.section-light { color: var(--paper); background: var(--ink-soft); }
.method { position: relative; width: 100%; max-width: none; padding: 140px max(32px, calc((100% - var(--content)) / 2)) 150px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--ink-soft), #0c0f13); }
.section-heading { max-width: 740px; }.section-heading h2 { margin: 18px 0 24px; font-size: clamp(2.7rem, 6vw, 6.5rem); line-height: .9; letter-spacing: -.075em; font-weight: 650; }.section-heading h2 em { color: var(--red); font-style: normal; }.section-intro { max-width: 620px; color: var(--paper-soft); font-size: 1rem; line-height: 1.62; }
.method > .section-heading { display: grid; grid-template-columns: minmax(0, 740px) minmax(240px, 1fr); column-gap: 56px; align-items: end; max-width: none; }
.method > .section-heading > .eyebrow,
.method > .section-heading > h2,
.method > .section-heading > .section-intro { grid-column: 1; }
.method-readout { grid-column: 2; grid-row: 1 / span 3; align-self: center; justify-self: end; width: min(100%, 330px); padding: 21px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(243, 240, 232, .055), rgba(243, 240, 232, .015)); }
.readout-label { display: block; margin-bottom: 28px; color: var(--red); font: .62rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.method-readout p { margin: 0 0 30px; color: var(--paper); font-size: clamp(1.45rem, 2.3vw, 2.15rem); line-height: .98; letter-spacing: -.06em; }
.method-readout p em { color: var(--red); font-style: normal; }
.readout-flow { display: flex; align-items: center; gap: 8px; color: var(--muted); font: .58rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.readout-flow i { flex: 1; height: 1px; background: var(--red); opacity: .7; }
.method-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 56px; align-items: start; margin-top: 74px; }.method-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }.method-track::before { position: absolute; top: 21px; right: 9%; left: 9%; height: 1px; content: ""; background: var(--line-strong); }.method-step { position: relative; min-height: 256px; padding: 0 18px 18px 0; border-bottom: 1px solid var(--line); }.method-step::after { position: absolute; top: 16px; right: 16%; width: 9px; height: 9px; content: ""; border: 1px solid var(--red); border-radius: 50%; background: var(--ink-soft); }.step-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding-bottom: 28px; }.step-number { color: var(--red); font: .72rem ui-monospace, SFMono-Regular, Menlo, monospace; }.step-state { color: var(--muted); font: .6rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }.method-step h3 { margin: 62px 0 13px; font-size: 1.25rem; letter-spacing: -.03em; }.method-step p { max-width: 190px; margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.58; }
.method-aside { padding: 19px; border: 1px solid var(--line); background: rgba(243, 240, 232, .035); }.aside-index { display: block; margin-bottom: 27px; color: var(--cyan); font: .62rem ui-monospace, SFMono-Regular, Menlo, monospace; }.method-aside h3 { margin-bottom: 16px; font-size: 1.35rem; line-height: 1.05; letter-spacing: -.045em; }.method-aside p { margin-bottom: 30px; color: var(--muted); font-size: .8rem; line-height: 1.6; }.aside-signal { display: flex; align-items: center; gap: 9px; color: var(--cyan); font: .58rem ui-monospace, SFMono-Regular, Menlo, monospace; }.aside-signal i { flex: 1; height: 1px; background: var(--cyan); opacity: .7; }

.projects { padding-top: 145px; padding-bottom: 150px; }.projects-heading { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(270px, .92fr); column-gap: 56px; align-items: end; max-width: none; }.projects-heading .eyebrow, .projects-heading h2 { grid-column: 1; }.projects-heading .section-intro { grid-column: 2; grid-row: 1 / span 2; align-self: end; }.project-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 70px; }.project-card { position: relative; overflow: hidden; min-height: 510px; padding: 20px; border: 1px solid var(--line); transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }.project-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 20px 55px rgba(0, 0, 0, .22); }.project-card-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; color: rgba(243, 240, 232, .76); }.case-number, .case-type, .project-kicker, .mini-label { font: .61rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .09em; text-transform: uppercase; }.case-number { color: var(--red); }.case-type { color: inherit; opacity: .75; }.project-card-main { position: relative; z-index: 2; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 60px; }.project-brand-panel, .project-evidence-panel { display: grid; place-items: center; width: 130px; height: 108px; padding: 10px; background: var(--paper); }.project-brand-panel img { max-width: 100%; max-height: 100%; object-fit: contain; }.project-evidence-panel { overflow: hidden; padding: 0; border: 1px solid rgba(243, 240, 232, .22); background: #141a21; }.project-evidence-panel img { width: 100%; height: 100%; object-fit: cover; }.project-copy { max-width: 330px; }.project-kicker { margin-bottom: 10px; opacity: .68; }.project-copy h3 { margin: 0 0 14px; font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: .93; letter-spacing: -.07em; }.project-copy h3 em { color: var(--gold); font-style: normal; }.project-copy p:last-child { margin: 0; color: rgba(243, 240, 232, .78); font-size: .88rem; line-height: 1.55; }.project-card-bottom { position: absolute; z-index: 2; right: 20px; bottom: 21px; left: 20px; display: flex; justify-content: space-between; gap: 24px; padding-top: 17px; border-top: 1px solid rgba(243, 240, 232, .23); }.project-card-bottom > div { display: grid; gap: 6px; }.mini-label { opacity: .67; }.project-card-bottom strong, .project-card-bottom a { color: inherit; font-size: .78rem; font-weight: 500; text-decoration: none; }.project-card-bottom a { color: var(--paper); }.project-card-bottom a:hover { text-decoration: underline; text-underline-offset: 4px; }
.project-princesa, .project-leiloes { background: linear-gradient(132deg, rgba(8, 115, 72, .98), rgba(5, 70, 48, .98)); }.project-princesa::after, .project-leiloes::after { position: absolute; right: -130px; bottom: -140px; width: 330px; height: 330px; content: ""; border: 1px solid rgba(243, 240, 232, .22); border-radius: 50%; box-shadow: 0 0 0 31px rgba(243, 240, 232, .035), 0 0 0 66px rgba(243, 240, 232, .02); }.project-leiloes { background: linear-gradient(132deg, rgba(5, 91, 60, .99), rgba(4, 52, 38, .99)); }.project-leiloes .project-copy h3 em { color: var(--orange); }.project-senseflow { background: linear-gradient(135deg, #101820, #0b0d10); }.project-senseflow .project-copy h3 em { color: var(--cyan); }.project-senseflow .case-number { color: var(--cyan); }.project-af { background: linear-gradient(135deg, #15171d, #0b0d10); }.project-af .project-copy h3 em { color: #ffe22a; }.project-af .case-number { color: #ffe22a; }

.contact { position: relative; width: 100%; max-width: none; min-height: 640px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 140px max(32px, calc((100% - var(--content)) / 2)) 45px; border-top: 1px solid var(--line); background: radial-gradient(circle at 82% 68%, rgba(214, 43, 51, .18), transparent 27rem), var(--ink-soft); }.contact-grid { position: absolute; inset: 0; pointer-events: none; opacity: .3; background-image: linear-gradient(rgba(243, 240, 232, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(243, 240, 232, .04) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(100deg, transparent, black 55%, transparent); }.contact-content { position: relative; z-index: 2; max-width: 960px; }.contact h2 { max-width: 1000px; margin: 20px 0 26px; font-size: clamp(3rem, 7.3vw, 8rem); line-height: .86; letter-spacing: -.085em; }.contact h2 em { color: var(--red); font-style: normal; }.contact-content > p:not(.eyebrow) { max-width: 550px; color: var(--paper-soft); font-size: 1rem; line-height: 1.6; }.contact-content .button { margin-top: 25px; }.contact-meta { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); }.contact-meta span { padding: 8px 9px; border: 1px solid var(--line); color: var(--muted); font: .64rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; padding-bottom: 26px; color: var(--muted); font: .65rem ui-monospace, SFMono-Regular, Menlo, monospace; }.site-footer a { color: var(--paper-soft); text-decoration: none; }.site-footer a:hover { color: var(--paper); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }.reveal.is-visible { opacity: 1; transform: translateY(0); }.reveal-delay-1 { transition-delay: .1s; }.reveal-delay-2 { transition-delay: .18s; }.reveal-delay-3 { transition-delay: .26s; }

@media (max-width: 960px) {
  .site-header { width: calc(100% - 32px); }.site-menu { gap: 15px; }.hero-orbit { right: -7%; opacity: .4; }.method-layout { grid-template-columns: 1fr; }.method-aside { max-width: 420px; }.method-track { gap: 9px; }.project-card-main { grid-template-columns: 105px minmax(0, 1fr); gap: 18px; }.project-brand-panel, .project-evidence-panel { width: 105px; height: 92px; }
}
@media (max-width: 700px) {
  :root { --display: clamp(3.4rem, 16vw, 6rem); }.section-shell { width: calc(100% - 32px); }.site-header { margin-top: 10px; }.menu-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 9px 0 9px 12px; }.menu-toggle-label { color: var(--paper-soft); font-size: .76rem; }.menu-icon { display: grid; gap: 4px; }.menu-icon i { display: block; width: 18px; height: 1px; background: var(--paper); transition: transform .2s ease; }.site-header.menu-open .menu-icon i:first-child { transform: translateY(2.5px) rotate(45deg); }.site-header.menu-open .menu-icon i:last-child { transform: translateY(-2.5px) rotate(-45deg); }.site-menu { position: fixed; top: 76px; right: 16px; left: 16px; display: grid; gap: 0; padding: 8px; border: 1px solid var(--line); background: rgba(9, 10, 13, .96); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; }.site-header.menu-open .site-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }.site-menu a { padding: 14px 12px; border-bottom: 1px solid var(--line); }.site-menu a:last-child { border-bottom: 0; }.nav-cta { margin-top: 8px; }
  .hero { min-height: 820px; padding-top: 170px; padding-bottom: 28px; }.hero-orbit { top: 31%; right: -22%; width: 290px; height: 290px; opacity: .3; }.hero-footer { display: grid; align-items: start; gap: 22px; }.hero-capabilities { justify-content: flex-start; }.method { padding: 100px 16px; }.method > .section-heading { display: block; }.section-heading h2 { font-size: clamp(3rem, 13vw, 5.5rem); }.method-readout { width: 100%; max-width: none; margin-top: 32px; }.method-layout { margin-top: 51px; }.method-track { grid-template-columns: 1fr; gap: 0; }.method-track::before { top: 20px; bottom: 20px; left: 4px; width: 1px; height: auto; }.method-step { min-height: 0; padding: 0 0 31px 31px; border-bottom: 0; }.method-step::after { top: 16px; right: auto; left: 0; width: 9px; height: 9px; }.step-top { padding-bottom: 0; }.method-step h3 { margin: 12px 0 8px; }.method-step p { max-width: 430px; }.method-aside { margin-top: 25px; }
  .projects { padding-top: 100px; padding-bottom: 100px; }.projects-heading { display: block; }.projects-heading .section-intro { margin-top: 23px; }.project-list { grid-template-columns: 1fr; gap: 14px; margin-top: 50px; }.project-card { min-height: 480px; }.project-card-main { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; margin-top: 55px; }.project-brand-panel, .project-evidence-panel { width: 96px; height: 80px; }.project-copy h3 { font-size: clamp(1.8rem, 9vw, 3rem); }.project-card-bottom { display: grid; gap: 13px; }.project-card-bottom > div { gap: 4px; }
  .contact { min-height: 650px; padding: 100px 16px 30px; }.contact h2 { font-size: clamp(3rem, 13vw, 5.5rem); }.site-footer { display: grid; gap: 11px; width: calc(100% - 32px); padding-top: 18px; }.site-footer a { order: -1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }.reveal { opacity: 1; transform: none; transition: none; }.button, .project-card { transition: none; } }

/* Microinteractions and CTA grouping are intentionally layered after the base rules. */
.project-card { will-change: transform; }
.project-card:hover { transform: translate3d(var(--pointer-x, 0), var(--pointer-y, 0), 0) translateY(-6px); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.contact-actions .button { margin-top: 0; }

/* Keep the complete first impression inside shorter desktop viewports. */
@media (min-width: 701px) {
  .hero { width: 100%; max-width: none; min-height: 100svh; padding-top: clamp(132px, 18vh, 210px); padding-right: max(32px, calc((100% - var(--content)) / 2)); padding-bottom: 32px; padding-left: max(32px, calc((100% - var(--content)) / 2)); }
  .hero h1 { margin-top: 18px; margin-bottom: 24px; }
  .hero-lede { margin-bottom: 22px; }
  .hero-footer { position: absolute; right: max(32px, calc((100% - var(--content)) / 2)); bottom: 32px; left: max(32px, calc((100% - var(--content)) / 2)); padding-top: 22px; }
}

@media (min-width: 701px) and (max-height: 820px) {
  .hero { padding-top: 122px; padding-bottom: 24px; }
  .hero-content { max-width: 1120px; }
  .hero h1 { max-width: 1120px; font-size: clamp(3.5rem, 6.8vw, 6.5rem); margin-bottom: 18px; }
  .hero-lede { max-width: 570px; font-size: 1rem; line-height: 1.45; margin-bottom: 18px; }
  .hero-footer { bottom: 24px; padding-top: 18px; }
  .hero-orbit { top: 19%; right: 1%; width: min(29vw, 330px); height: min(29vw, 330px); opacity: .62; }
}

/* Keep each pipeline marker visually attached to the step it introduces. */
.step-top { justify-content: flex-start; gap: 12px; align-items: baseline; padding-bottom: 0; }
.step-number { font-size: .82rem; font-weight: 650; }
.method-step h3 { margin-top: 18px; }

@media (max-width: 700px) {
  .method-step h3 { margin-top: 12px; }
}

/* The portfolio's global signal color is KW red; project-specific colors stay scoped to their cards. */
.method-aside .aside-index,
.method-aside .aside-signal { color: var(--red); }
.method-aside .aside-signal i { background: var(--red); }
.project-card-bottom > div:first-child { max-width: min(100%, 450px); }
.project-card-bottom strong { line-height: 1.4; }

@media (max-width: 700px) {
  .project-card-bottom > div:first-child { max-width: none; }
}

/* Evidence panels pair a real product capture with the product's own identity. */
.project-evidence-panel { position: relative; overflow: hidden; padding: 0; border: 1px solid rgba(243, 240, 232, .22); background: #141a21; }
.project-evidence-panel::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(180deg, transparent 48%, rgba(9, 10, 13, .62)); }
.project-evidence-panel .evidence-shot { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.project-card:hover .project-evidence-panel .evidence-shot { transform: scale(1.05); filter: saturate(1.08); }
.evidence-brand { position: absolute; z-index: 1; right: 7px; bottom: 7px; left: 7px; display: grid; place-items: center; min-height: 25px; padding: 4px 6px; border: 1px solid rgba(243, 240, 232, .25); background: rgba(9, 10, 13, .84); backdrop-filter: blur(7px); }
.evidence-brand img { display: block; width: auto; max-width: 100%; height: auto; max-height: 28px; object-fit: contain; }
.evidence-brand-princesa, .evidence-brand-leiloes { background: rgba(4, 52, 38, .9); }
.evidence-brand-senseflow { right: 6px; left: 6px; padding: 0; background: #00aa98; border-color: rgba(255, 255, 255, .3); }
.evidence-brand-senseflow img { width: 100%; max-height: 27px; object-fit: cover; }
.evidence-brand-af { right: 6px; left: 6px; min-height: 31px; background: rgba(9, 10, 13, .9); }
.evidence-brand-af img { max-height: 37px; }

@media (max-width: 700px) {
  .evidence-brand { right: 4px; bottom: 4px; left: 4px; min-height: 21px; padding: 3px 4px; }
  .evidence-brand img { max-height: 22px; }
  .evidence-brand-af img { max-height: 27px; }
}

/* Full-width project dossiers: the product evidence leads, the explanation follows. */
.project-cases { display: grid; gap: 0; margin-top: 80px; border-top: 1px solid var(--line); }
.project-case { position: relative; z-index: 0; overflow: hidden; padding: 27px 0 92px; border-bottom: 1px solid var(--line); }
.project-case::after { z-index: -1; }
.project-case-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: rgba(243, 240, 232, .72); }
.project-case-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: clamp(38px, 6vw, 90px); align-items: center; margin-top: 37px; }
.project-case:nth-child(even) .project-case-grid { grid-template-columns: minmax(340px, .85fr) minmax(0, 1.15fr); }
.project-case:nth-child(even) .project-case-visual { order: 2; }
.project-case-visual { position: relative; min-width: 0; aspect-ratio: 16 / 9; margin: 0; overflow: hidden; border: 1px solid rgba(243, 240, 232, .3); background: #141a21; box-shadow: 0 24px 62px rgba(0, 0, 0, .22); }
.project-case-visual::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(180deg, rgba(9, 10, 13, .02) 48%, rgba(9, 10, 13, .78)); }
.project-case-visual img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.project-case:hover .project-case-visual img { transform: scale(1.035); filter: saturate(1.08); }
.project-visual-meta { position: absolute; z-index: 1; top: 16px; right: 16px; left: 16px; display: flex; justify-content: space-between; gap: 15px; color: rgba(243, 240, 232, .86); font: .62rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.project-case-visual figcaption { position: absolute; z-index: 1; right: 20px; bottom: 18px; left: 20px; color: var(--paper); font-size: .85rem; line-height: 1.4; }
.project-case-copy { max-width: 575px; }
.project-case-brand { display: inline-flex; align-items: center; justify-content: center; min-width: 170px; min-height: 58px; margin-bottom: 28px; padding: 10px 16px; border: 1px solid rgba(243, 240, 232, .25); background: var(--paper); }
.project-case-brand img { display: block; max-width: 190px; max-height: 47px; object-fit: contain; }
.project-case-brand-senseflow { min-width: 205px; padding: 0; border-color: rgba(0, 170, 152, .55); background: #00aa98; }
.project-case-brand-senseflow img { width: 205px; max-width: none; max-height: none; }
.project-case-brand-af { width: 128px; height: 100px; min-width: 0; min-height: 0; padding: 8px; background: rgba(9, 10, 13, .82); }
.project-case-brand-af img { max-width: 100%; max-height: 84px; }
.project-case-subtitle { margin: 0 0 16px; color: rgba(243, 240, 232, .72); font: .67rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }
.project-case-copy h3 { max-width: 620px; margin: 0 0 21px; font-size: clamp(2.7rem, 5vw, 5.4rem); line-height: .9; letter-spacing: -.075em; }
.project-case-copy h3 em { color: var(--gold); font-style: normal; }
.project-case-summary { max-width: 560px; margin: 0; color: var(--paper-soft); font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.62; }
.project-case-detail { max-width: 560px; margin-top: 31px; padding-top: 18px; border-top: 1px solid rgba(243, 240, 232, .25); }
.project-case-detail .mini-label { display: block; margin-bottom: 10px; color: rgba(243, 240, 232, .6); }
.project-case-detail p { max-width: 530px; margin: 0; color: var(--paper); font-size: .95rem; line-height: 1.55; }
.project-case-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; padding: 11px 0; border-bottom: 1px solid var(--red); color: var(--paper); font: .76rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; transition: color .2s ease, gap .2s ease; }
.project-case-link span { color: var(--red); transition: transform .2s ease; }
.project-case-link:hover { color: var(--red); gap: 16px; }.project-case-link:hover span { transform: translate(3px, -3px); }
.project-senseflow .project-case-copy h3 em { color: var(--cyan); }.project-senseflow .project-case-top .case-number { color: var(--cyan); }.project-af .project-case-copy h3 em { color: #ffe22a; }.project-af .project-case-top .case-number { color: #ffe22a; }
.project-senseflow .project-case-visual { background: #151c25; }
.project-senseflow .project-case-visual img { object-fit: contain; }

@media (max-width: 960px) {
  .project-case-grid, .project-case:nth-child(even) .project-case-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: 35px; }
}

@media (max-width: 700px) {
  .project-cases { margin-top: 52px; }
  .project-case { padding: 22px 0 70px; }
  .project-case-top { gap: 18px; }
  .project-case-grid, .project-case:nth-child(even) .project-case-grid { display: flex; flex-direction: column; gap: 31px; margin-top: 28px; }
  .project-case:nth-child(even) .project-case-visual { order: 0; }
  .project-case-visual { width: 100%; aspect-ratio: 4 / 3; }
  .project-visual-meta { top: 11px; right: 11px; left: 11px; font-size: .54rem; }
  .project-case-visual figcaption { right: 14px; bottom: 14px; left: 14px; font-size: .77rem; }
  .project-case-brand { margin-bottom: 21px; }
  .project-case-copy h3 { font-size: clamp(2.7rem, 13vw, 4.8rem); }
  .project-case-detail { margin-top: 25px; }
}

/* Project sessions are full-bleed surfaces; only their reading grid is constrained. */
.projects.section-shell { width: 100%; max-width: none; margin-right: 0; margin-left: 0; }
.projects-heading { width: min(var(--content), calc(100% - 64px)); margin-right: auto; margin-left: auto; }
.project-case { padding-right: max(32px, calc((100% - var(--content)) / 2)); padding-left: max(32px, calc((100% - var(--content)) / 2)); }
.project-case-top, .project-case-grid { width: 100%; max-width: var(--content); margin-right: auto; margin-left: auto; }

@media (max-width: 700px) {
  .projects-heading { width: calc(100% - 32px); }
  .project-case { padding-right: 16px; padding-left: 16px; }
  .project-case-top, .project-case-grid { max-width: none; }
}

/* The closing section converts attention into a real conversation. */
.contact-socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.contact-social { display: grid; align-content: space-between; gap: 14px; min-height: 86px; padding: 15px; border: 1px solid var(--line); color: var(--paper); background: rgba(243, 240, 232, .025); text-decoration: none; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.contact-social:hover { transform: translateY(-3px); border-color: rgba(214, 43, 51, .65); background: rgba(214, 43, 51, .08); }
.contact-social small { color: var(--muted); font: .62rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.contact-social strong { overflow-wrap: anywhere; color: var(--paper-soft); font-size: .78rem; font-weight: 500; }
.contact-social strong span { display: inline; margin-left: 5px; padding: 0; border: 0; color: var(--red); font: inherit; }

.contact-actions .button-primary { position: relative; }
.contact-actions .button-primary .button-label { position: relative; display: inline-block; color: var(--ink); }
.contact-actions .button-primary .button-label::after { position: absolute; right: 0; bottom: -4px; left: 0; height: 2px; content: ""; transform: scaleX(0); transform-origin: left center; background: var(--ink); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.contact-actions .button-primary:hover .button-label::after, .contact-actions .button-primary:focus-visible .button-label::after { transform: scaleX(1); }

@media (max-width: 700px) {
  .contact-socials { grid-template-columns: 1fr; }
  .contact-social { min-height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-actions .button-primary .button-label::after { transition: none; }
}
