@layer connect.reset, connect.tokens, connect.base, connect.components, connect.motion;

@layer connect.tokens {
  @font-face { font-family: ConnectSignika; src: url("../fonts/Signika-Variable.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
  @font-face { font-family: ConnectManrope; src: url("../fonts/Manrope-VariableFont_wght.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
  :root { --red: #e73728; --red-deep: #b52b20; --ink: #18211f; --paper: #f7f5ef; --white: #fff; --line: #45504b; --muted: #b9c2bb; --surface: #202b27; --mono: ui-monospace, SFMono-Regular, Menlo, monospace; --display: ConnectSignika, Arial, sans-serif; --body: ConnectManrope, Arial, sans-serif; }
}

@layer connect.reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; min-width: 320px; }
  img { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  button, input { font: inherit; }
  :focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
}

@layer connect.base {
  body { background: var(--ink); color: var(--white); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
  html[data-connect-appearance="light"] body , body:has(#site-light:checked) { --ink: #f7f5ef; --paper: #1a2421; --white: #1a2421; --line: #b7bdb6; --muted: #58645e; --surface: #ecece5; }
  .frame { width: min(100% - clamp(2rem, 5vw, 5rem), 1450px); margin-inline: auto; }
  .mono { font: 700 .66rem/1.35 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
  .eyebrow { color: var(--red); }
  .muted { color: var(--muted); }
  .red { color: var(--red); }
  .hairline { border-top: 1px solid var(--line); }
  .skip { position: fixed; z-index: 100; top: -100px; left: 1rem; padding: .7rem 1rem; background: var(--red); color: #fff; }
  .skip:focus { top: 1rem; }
  .topline { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-inline: clamp(1rem, 3vw, 3rem); background: var(--red); color: #fff; }
  .site-header { position: fixed; top: 47px; left: 50%; z-index: 50; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.25rem; width: min(calc(100% - 24px), 960px); min-height: 66px; padding-inline: 22px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--ink) 93%, transparent); color: var(--white); box-shadow: 0 14px 50px #0003; backdrop-filter: blur(16px); transform: translateX(-50%); }
  .brand { display: inline-flex; align-items: center; gap: .65rem; justify-self: start; font: 700 1.55rem/1 var(--display); letter-spacing: -.055em; }
  .brand img { width: 68px; height: auto; }
  .brand span { display: none; }
  .brand .dot { color: var(--red); }
  .site-nav { display: none; align-items: center; gap: clamp(1rem, 2.2vw, 2.5rem); white-space: nowrap; }
  .site-nav a, .site-actions a { font: 700 .64rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
  .site-nav a:hover, .site-nav a[aria-current="page"], .site-actions a:hover { color: var(--red); }
  .site-actions { display: flex; align-items: center; justify-content: end; gap: .5rem; }
  .site-actions > .contact-shortcut { display: none; }
  .language { order: 2; display: inline-flex; gap: .15rem; }
  .language a { display: grid; place-items: center; min-width: 28px; min-height: 28px; opacity: .65; }
  .language [aria-current="page"] { color: var(--red); }
  .theme-control { order: 3; display: inline-flex; align-items: center; padding: 2px; border: 1px solid currentColor; border-radius: 999px; }
  .theme-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
  .theme-control label { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--red); cursor: pointer; color: #fff; }
  .theme-control input:focus-visible + label { outline: 2px solid var(--red); outline-offset: 3px; }
  .theme-control label::after { content: '☼'; font: 1.2rem/1 var(--body); }
  html[data-connect-appearance="light"] body .theme-control label::after , body:has(#site-light:checked) .theme-control label::after { content: '☾'; }
  .menu { order: 1; display: block; position: relative; }
  .menu summary { min-height: 42px; display: inline-flex; align-items: center; padding-inline: .55rem; list-style: none; cursor: pointer; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu-panel { position: absolute; top: calc(100% + 12px); right: -8px; min-width: min(340px, calc(100vw - 32px)); padding: .7rem 1.15rem; border: 1px solid var(--line); border-radius: 20px; background: var(--ink); box-shadow: 0 20px 60px #0004; }
  .menu-panel a { display: block; padding: .7rem; }
  .display { font: 560 clamp(4.5rem, 10vw, 11rem)/.82 var(--display); letter-spacing: -.085em; }
  .display em, .section-title em { color: var(--red); font-style: normal; }
  .section-title { margin: 0; font: 540 clamp(3.1rem, 6.4vw, 7rem)/.94 var(--display); letter-spacing: -.07em; }
  .page-intro { max-width: 47rem; margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.6; }
  .page-hero { position: relative; min-height: min(700px, 78svh); display: flex; flex-direction: column; justify-content: end; overflow: hidden; padding-block: clamp(6rem, 12vw, 12rem) clamp(3rem, 6vw, 6rem); }
  .page-hero::before, .home-hero::before { content: ''; position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px), linear-gradient(var(--line) 1px, transparent 1px); background-size: clamp(60px, 8vw, 115px) clamp(60px, 8vw, 115px); mask-image: linear-gradient(90deg, transparent 25%, #000); pointer-events: none; }
  .page-hero > .frame { position: relative; z-index: 2; }
  .page-hero h1 { max-width: 13ch; margin: 2.5rem 0 2rem; }
  .page-hero .page-intro { color: var(--muted); }
  .page-hero__symbol { position: absolute; right: -5vw; top: 15%; width: min(44vw, 650px); opacity: .16; transform: rotate(-27deg); pointer-events: none; }
  .page-hero__symbol img { width: 100%; }
  .section { padding-block: clamp(5rem, 10vw, 10rem); }
  .section-head { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 2.1fr) minmax(170px, .95fr); gap: clamp(1.5rem, 4vw, 5rem); align-items: end; margin-bottom: clamp(3rem, 6vw, 6rem); }
  .section-head p { margin: 0; color: var(--muted); }
  .paper { background: var(--paper); color: var(--ink); }
  html[data-connect-appearance="light"] body .paper , body:has(#site-light:checked) .paper { background: #e6e8e0; color: #1a2421; }
  .paper .muted, .paper .section-head p { color: color-mix(in srgb, currentColor 67%, transparent); }
  .button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 48px; padding: .75rem 1rem; border: 1px solid currentColor; font: 700 .65rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; transition: background .2s ease, color .2s ease, transform .2s ease; }
  .button:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-3px); }
  .button--red { background: var(--red); border-color: var(--red); color: #fff; }
  .button--red:hover { background: var(--red-deep); }
  .stack { display: grid; gap: 1px; border-block: 1px solid var(--line); background: var(--line); }
  .stack > * { background: var(--ink); }
  .work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(.75rem, 1.4vw, 1.5rem); }
  .work-card { grid-column: span 6; min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--ink); overflow: hidden; transition: border-color .35s ease, box-shadow .35s ease; }
  .work-card:first-child { grid-column: span 7; }
  .work-card:nth-child(2) { grid-column: span 5; }
  .work-card:nth-child(3) { grid-column: span 12; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); }
  .work-card:hover, .work-card:focus-within { border-color: var(--red); box-shadow: 0 22px 70px #0002; }
  .work-card__image { position: relative; aspect-ratio: 1.6; overflow: hidden; background: var(--surface); }
  .work-card:nth-child(2) .work-card__image { aspect-ratio: 1.15; }
  .work-card:nth-child(3) .work-card__image { min-height: 440px; aspect-ratio: auto; }
  .work-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.75,.2,1), filter .8s ease; }
  .work-card:hover .work-card__image img, .work-card:focus-within .work-card__image img { transform: scale(1.045); filter: saturate(1.08); }
  .work-card__image::before { content: ''; position: absolute; z-index: 1; inset: 0 auto 0 0; width: 5px; background: var(--red); transform: scaleY(0); transform-origin: top; transition: transform .55s cubic-bezier(.2,.75,.2,1); pointer-events: none; }
  .work-card:hover .work-card__image::before, .work-card:focus-within .work-card__image::before { transform: scaleY(1); }
  .work-card__image::after { content: 'CONCEPT / NOT A PRODUCT SCREENSHOT'; position: absolute; right: .8rem; bottom: .8rem; padding: .4rem .5rem; background: #18211fcc; color: #fff; font: 700 .5rem/1.2 var(--mono); letter-spacing: .09em; }
  html[lang="pt-BR"] .work-card__image::after { content: 'CONCEITO / NÃO É CAPTURA DO PRODUTO'; }
  .work-card__body { flex: 1; display: flex; flex-direction: column; min-height: 290px; padding: clamp(1.5rem, 2.5vw, 2.75rem); }
  .work-card:nth-child(3) .work-card__body { min-height: 440px; }
  .work-card h3 { margin: 2rem 0 1rem; font: 550 clamp(2.6rem, 3.7vw, 4rem)/.9 var(--display); letter-spacing: -.065em; }
  .work-card p { margin: 0 0 2.5rem; color: var(--muted); font-size: .96rem; }
  .work-card .button { margin-top: auto; }
  .preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
  .preview-card { min-height: 310px; display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 3rem); background: var(--ink); }
  .preview-card h3 { margin: auto 0 1rem; font: 540 clamp(2.5rem, 4vw, 4.2rem)/.92 var(--display); letter-spacing: -.065em; }
  .preview-card p { margin: 0; max-width: 28rem; color: var(--muted); }
  .preview-card .status { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--red); }
  .service-row { display: grid; grid-template-columns: 70px minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: clamp(1rem, 3vw, 3rem); align-items: start; padding: clamp(2rem, 4vw, 4rem) 0; border-bottom: 1px solid var(--line); }
  .service-row h2 { margin: 0; font: 530 clamp(2.5rem, 4.3vw, 4.5rem)/.96 var(--display); letter-spacing: -.06em; }
  .service-row p { margin: 0; max-width: 31rem; color: var(--muted); }
  .service-row ul { margin: 1rem 0 0; padding-left: 1.2rem; }
  .service-row li { margin: .35rem 0; }
  .service-row .button { white-space: nowrap; }
  .principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
  .principles article { min-height: 240px; padding: 2rem; background: var(--ink); }
  .principles h3 { margin: 4rem 0 0; font: 530 1.75rem/1 var(--display); letter-spacing: -.04em; }
  .timeline { border-top: 1px solid var(--line); }
  .timeline-row { display: grid; grid-template-columns: minmax(100px, .5fr) minmax(0, 2fr); gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
  .timeline-row p { max-width: 48rem; margin: 0; }
  .case-hero { min-height: 580px; }
  .case-meta { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
  .case-visual { display: grid; grid-template-columns: 1.2fr .8fr; min-height: min(720px, 80svh); background: var(--surface); }
  .case-visual img { width: 100%; height: 100%; max-height: 720px; object-fit: cover; }
  .case-visual__note { display: flex; flex-direction: column; justify-content: end; gap: 1rem; padding: clamp(2rem, 5vw, 6rem); }
  .case-visual__note strong { font: 530 clamp(2rem, 4vw, 4.5rem)/1 var(--display); letter-spacing: -.06em; }
  .case-columns { display: grid; grid-template-columns: minmax(160px, .7fr) minmax(0, 1.4fr) minmax(220px, .9fr); gap: clamp(2rem, 5vw, 6rem); }
  .case-columns h2 { margin: 0; font: 540 clamp(2.8rem, 5vw, 5.5rem)/.95 var(--display); letter-spacing: -.065em; }
  .case-columns p { margin: 0 0 1.5rem; font-size: clamp(1.05rem, 1.35vw, 1.22rem); }
  .case-columns li { margin: .65rem 0; }
  .case-note { padding: 1.5rem; border: 1px solid var(--line); color: var(--muted); }
  .contact-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
  .contact-options article { padding: 2rem; background: var(--ink); }
  .contact-options h2 { margin: 3rem 0 .7rem; font: 530 2rem/1 var(--display); }
  .contact-options p { margin: 0; color: var(--muted); }
  .mail-link { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid currentColor; font: 540 clamp(1.9rem, 5vw, 6rem)/1 var(--display); letter-spacing: -.065em; overflow-wrap: anywhere; }
  .site-footer { position: relative; overflow: hidden; padding: clamp(5rem, 10vw, 10rem) 0 1.5rem; background: var(--red); color: #fff; }
  .site-footer::before { content: ''; position: absolute; right: -7%; top: 10%; width: min(58vw, 760px); aspect-ratio: 278 / 92; background: url('../connectsti-symbol.svg') center / contain no-repeat; filter: brightness(0) invert(1); opacity: .085; transform: rotate(-22deg); pointer-events: none; }
  .site-footer > .frame { position: relative; z-index: 1; }
  .site-footer h2 { max-width: 12ch; margin: 2rem 0 4rem; font: 550 clamp(4rem, 9vw, 10rem)/.88 var(--display); letter-spacing: -.08em; }
  .site-footer .mail-link { max-width: 28ch; margin-bottom: clamp(5rem, 9vw, 9rem); transition: padding .3s ease, color .3s ease; }
  .site-footer .mail-link:hover { padding-left: .7rem; color: #ffd5cf; }
  .site-footer__bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 2rem; padding-top: 1.25rem; border-top: 1px solid #ffffff9a; }
  .site-footer__bottom nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem 1.25rem; }
  .site-footer__bottom > a:last-child { justify-self: end; }
  .site-footer__bottom a { text-underline-offset: 4px; }
  .site-footer__bottom a:hover { text-decoration: underline; }
}

@layer connect.components {
  .home-hero { position: relative; min-height: calc(100svh - 118px); display: grid; align-items: end; overflow: hidden; }
  .home-hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: 1rem; padding-block: 4rem; }
  .home-hero h1 { margin: 2rem 0; }
  .home-hero__left p:last-of-type { max-width: 31rem; font-size: clamp(1.05rem, 1.6vw, 1.45rem); }
  .home-hero__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
  .home-hero__art { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
  .home-hero__art::before, .home-hero__art::after { content: ''; position: absolute; width: 85%; height: 75%; border: 1px solid var(--line); border-radius: 50%; transform: rotate(-29deg); }
  .home-hero__art::after { width: 66%; height: 58%; border-style: dashed; opacity: .6; transform: rotate(20deg); }
  .home-hero__art img { position: relative; z-index: 1; width: 96%; transform: rotate(-28deg); filter: drop-shadow(0 35px 65px #e737282e); }
  .home-hero__foot { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem; border-top: 1px solid var(--line); }
  .home-claim { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: start; }
  .home-claim h2 { max-width: 15ch; }
  .home-claim p { max-width: 40rem; font-size: 1.15rem; }
}

@layer connect.motion {
  @media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: scroll()) {
      .site-header { animation: site-header-settle 1s linear both; animation-timeline: scroll(root block); animation-range: 0px 110px; }
      @keyframes site-header-settle { from { top: 47px; } to { top: 12px; } }
    }
    .home-hero__art img { animation: breathe 7s ease-in-out infinite alternate; }
    .home-hero__art::before { animation: orbit 24s linear infinite; }
    @keyframes breathe { to { transform: translateY(-14px) rotate(-24deg) scale(1.025); } }
    @keyframes orbit { to { rotate: 360deg; } }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .work-card[vl-scroll] { animation: none !important; opacity: 1 !important; transform: none !important; }
  }
  @media (max-width: 1150px) {
    .site-header { grid-template-columns: 1fr auto; }
    .section-head { grid-template-columns: 1fr 2fr; }
    .section-head > p { grid-column: 2; }
    .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .work-card:first-child, .work-card:nth-child(2) { grid-column: auto; }
    .work-card:nth-child(3) { grid-column: span 2; }
    .service-row { grid-template-columns: 50px 1fr 1fr; }
    .service-row .button { grid-column: 2 / -1; justify-self: start; }
  }
  @media (max-width: 750px) {
    .topline span:last-child { display: none; }
    .site-header { min-height: 66px; gap: .35rem; }
    .brand { font-size: 1.2rem; }
    .brand img { width: 58px; }
    .site-actions { gap: .25rem; }
    .display { font-size: clamp(4rem, 15vw, 7rem); }
    .section-head, .home-claim { grid-template-columns: 1fr; }
    .section-head > p { grid-column: 1; }
    .home-hero { min-height: calc(100svh - 102px); }
    .home-hero__inner { grid-template-columns: 1fr; padding-block: 3rem 1rem; }
    .home-hero__art { grid-row: 1; width: min(70vw, 350px); justify-self: end; margin-block: -2rem -2rem; }
    .home-hero__left { grid-row: 2; }
    .home-hero__foot span:last-child { display: none; }
    .page-hero { min-height: 550px; }
    .page-hero h1 { margin: 1.5rem 0; }
    .page-hero__symbol { width: 65vw; top: 10%; }
    .work-grid, .preview-grid, .principles, .contact-options { grid-template-columns: 1fr; }
    .work-card:first-child, .work-card:nth-child(2), .work-card:nth-child(3) { grid-column: auto; }
    .work-card:nth-child(3) { display: flex; }
    .work-card { min-height: 0; }
    .work-card__image, .work-card:nth-child(2) .work-card__image, .work-card:nth-child(3) .work-card__image { min-height: 0; aspect-ratio: 1.6; }
    .work-card:nth-child(3) .work-card__body { min-height: 290px; }
    .service-row { grid-template-columns: 40px 1fr; }
    .service-row p, .service-row .button { grid-column: 2; }
    .case-visual, .case-columns { grid-template-columns: 1fr; }
    .case-visual img { max-height: 500px; }
    .case-visual__note { min-height: 220px; }
    .timeline-row { grid-template-columns: 90px 1fr; }
    .site-footer::before { top: 22%; width: 110vw; }
    .site-footer__bottom { grid-template-columns: 1fr; gap: 1.4rem; }
    .site-footer__bottom nav { justify-content: start; }
    .site-footer__bottom > a:last-child { justify-self: start; }
  }
  @media (max-width: 430px) {
    .menu summary { font-size: .55rem; }
    .theme-control label { width: 27px; height: 27px; }
    .site-footer h2 { font-size: 3.6rem; }
    .mail-link { font-size: 1.8rem; }
  }
}

