/* Figtree, self-hosted (latin subset, variable 300-600). Replaces the Google Fonts request: one less render-blocking round trip and no late font swap. */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../assets/fonts/figtree-latin.woff2") format("woff2");
}

/* Design tokens, carried over from the Webflow site (swatch -> role -> theme).
   :root holds the dark roles, but both pages set class "theme-light" on <html>, so the page itself is light;
   dark sections (Expertise, with the testimonial card inside it) opt in with "theme-dark". */
:root {
  --size-404-figure: 12.5rem; /* width of the Drawer figure on the 404 page (200px, as in the hairline demo) */
  /* Swatches */
  --swatch-dark: #050505; /* was #0a0f12 (blue-ish); testing a near-black neutral */
  --swatch-white: #ffffff;
  --swatch-off-white: #e2e5e3;
  --swatch-grey: #949494;
  --swatch-light: #f2f2f2;
  --swatch-tag: #121212; /* card surface, neutral to match the background */
  --swatch-stroke-light: #e5e5e5;
  --swatch-text-tertiary-light: #646a69;

  /* Roles: dark */
  --dark-background: var(--swatch-dark);
  --dark-text-primary: var(--swatch-white);
  --dark-text-secondary: var(--swatch-off-white);
  --dark-text-tertiary: var(--swatch-grey);
  --dark-stroke: color-mix(in srgb, var(--swatch-white) 16%, transparent); /* translucent white: follows the background tone (a fixed #2c2c2c grey read brownish on it) */
  --dark-surface: var(--swatch-tag);

  /* Roles: light */
  --light-text-primary: var(--swatch-dark);
  --light-text-tertiary: var(--swatch-text-tertiary-light);
  --light-stroke: var(--swatch-stroke-light);

  /* Theme (active) */
  --color-background: var(--dark-background);
  --color-text: var(--dark-text-primary);
  --color-text-secondary: var(--dark-text-secondary);
  --color-text-muted: var(--dark-text-tertiary);
  --color-text-desc: color-mix(in srgb, var(--color-text) 70%, transparent); /* every description paragraph; declared per theme because var() resolves where it is declared */
  --color-stroke: var(--dark-stroke);
  --color-surface: var(--dark-surface);

  /* Type */
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem; /* 18px: card type tag, text link, CTA */
  --text-statement: clamp(1.75rem, 4.17vw, 3.75rem); /* About statement: 60px/60px from 1440px up, as measured on berrielbrands.com */
  --text-title: clamp(1.75rem, 3.19vw, 2.875rem); /* medium title: 46px from 1440px up. Case "Confira outros projetos" (Thiago, 26/10/2026; 60px and 56px were too big), marquee message, card placeholder. Below the h1 (72px) */
  --weight-title: 400; /* page h1 and the case "Confira outros projetos" heading: Regular (test 26/10/2026; was Light 300). The Expertise heading stays Light */
  --link-fade: 0.2s;
  --ease-link: cubic-bezier(0.5, 0, 0.88, 0.77);
  --text-label:var(--text-sm); /* section tags (Projetos selecionados, Expertise, Contexto...): 14px uppercase, as on pauloravel.framer.media */
  --text-card-title: var(--text-base); /* project name on the home card: 16px uppercase */
  --tracking-label: -0.04em; /* uppercase tags and card names: -0.56px at 14px (Paulo Ravel) */
  --text-nav: 1rem;
  --text-btn-lg: clamp(1rem, 1.25vw, 1.5rem); /* large call-to-action button: 18px at 1440px (same as --text-md), 24px max; the header button uses --text-sm */
  --text-desc: clamp(1rem, 1.11vw, 1.5rem); /* descriptions, hero subtitle, case facts and lists: 16px at 1440px (was 14.4px, too close to 14 and 16), 21px at 1920px. One size for the whole site */
  --text-case: clamp(1.125rem, 1.53vw, 1.375rem); /* Challenge and Solution text: 22px from 1440px up (about 54 characters per line in its column) */
  --text-h3: clamp(1.5rem, 2.23vw, 2rem); /* h3 and quotes: 32px from 1440px up (Expertise row titles, testimonial quote; Milan Design Studio scale) */
  --leading-body: 1.5;

  /* Space */
  --swatch-black: #000000;
  --swatch-tile-gray: #e9e9e9; /* Vimeo grid animation frame */
  --swatch-mockup: #ececec; /* flat background behind device mockups */
  --nest-green: #213b2f; /* Nest case palette */
  --nest-lime: #c4eb6c;
  --nest-lime-soft: #e1f4b6;
  --petblue-deep: #006491; /* Pet Blue Care: logo tile */
  --petblue-ice: #beecff; /* Pet Blue Care: team screen tile */
  --logo-brand-h: 5.75rem; /* Pet Blue Care logo inside its tile (native height of the SVG) */
  --inset-bleed: clamp(2rem, 5vw, 4rem); /* space above and left of a screen that bleeds off the right and bottom of its tile */
  --petblue-sky: #008cc3; /* Pet Blue Care: blue behind the tablet mockup (same as the Webflow site) */
  --outline-on-dark: oklch(1 0 0 / 0.16); /* 1px edge of image tiles on the black band, so a black device that bleeds to the tile edge does not melt into the page */
  --overlay-menu: color-mix(in srgb, var(--swatch-black) 82%, transparent); /* language menu panel */
  --overlay-line: color-mix(in srgb, var(--swatch-white) 15%, transparent); /* language menu border */
  --overlay-hover: color-mix(in srgb, var(--swatch-white) 10%, transparent); /* language menu hover */
  --header-cta-w: 12rem; /* header button: fits the longest label ("Vamos conversar" is 139px wide, needs 13px more than the old 11rem) */
  --header-height: 98px; /* desktop header */
  --header-height-mobile: 4rem;
  --brand-mark-w: 28px; /* mobile monogram */
  --brand-name-w: 204px; /* desktop wordmark */
  --text-brand: 19.63px; /* wordmark text */
  --icon-btn: 36px; /* round icon button (language) */
  --lang-menu-w: 160px;
  --radius-menu: 12px;
  --radius-item: 6px;
  --blur-menu: 12px;
  --focus-w: 2px; /* keyboard focus ring */
  --focus-offset: 3px;
  --pill-h: 52px; /* pill button with an icon (float CTA) */
  --gap-pill: 10px;
  --pad-pill-end: 18px;
  --stripe-lg: 22px; /* placeholder stripes */
  --stripe-sm: 14px;
  --about-support-gap: 18px; /* space under the About statement */
  --nudge: 2px; /* small hover nudge of an arrow */
  --toggle-size: 28px; /* mobile menu button */
  --toggle-gap: 6px;
  --toggle-bar: 2px;
  --toggle-shift: 8px; /* bars travel to form the X */
  --menu-pad-top: 148px; /* mobile menu: clears the header */
  --perspective: 1200px; /* panorama pin */
  --curtain-in: 600ms; /* page change: the white shape rises (cuberto.com) */
  --curtain-out: 600ms; /* new page: the white screen dissolves, then the effects start */
  --curtain-dim: color-mix(in srgb, var(--swatch-black) 30%, transparent); /* dim behind the rising shape */
  --ease-curtain: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-fade: cubic-bezier(0.4, 0, 0.2, 1);
  --space-1: 0.25rem;
  --logo-testimonial-h: 3rem; /* client logo symbol in the testimonial box */
  --size-testimonial-photo: 6.5rem; /* small square photo in the testimonial box (104px, same as the N4 results cards) */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --float-zoom-web: 1.25; /* Expertise hover, row 1 (4:3 scene in a 16:9 frame): enlarges the scene inside the frame so the side margins shrink; the frame itself keeps its size */
  --size-testimonial-photo-mobile: 4rem; /* photo beside the name on mobile and tablet (64px) */
  --logo-testimonial-h-mobile: 2.25rem; /* client logo symbol on mobile and tablet: 36px (3rem on desktop) */
  --text-quote: 1.5rem; /* testimonial quote on desktop: 24px, for the 330-character Vapperi quote (32px gave 7 lines) */
  --text-quote-mobile: 1.25rem; /* testimonial quote on mobile and tablet: 20px (24px at 375px before) */
  --gap-text-media: clamp(2.5rem, 5vw, 5rem); /* case pages, all screens: space from a text block (Context, Challenge, Solution) to its first image; 40px at 375px, 72px at 1440px */
  --gap-case-media: clamp(1rem, 3vw, 3rem); /* case pages: space above a wide image or a bento of images; halved from 3rem-6rem on 27/10/2026 (24px mobile, 43px at 1440) */
  --gap-testimonial-sign: 3rem; /* desktop: quote to signature (Victor Siriani), doubled from 24px on 27/10/2026 to compare */
  --gap-accordion-topics: 4.6875rem; /* Expertise accordion (mobile): title to first tag, 75px as measured on milandesignstudio.cc services at 375px */
  --gap-accordion-desc: 2.1875rem; /* last tag to description, 35px (same reference); about half of the title-to-tags gap */
  --size-accordion-icon: 1.125rem; /* Expertise accordion plus / minus icon (mobile and tablet) */
  --stroke-accordion-icon: 1.5px; /* thickness of the icon bars */
  --gap-expertise-row: 2.5rem; /* Expertise: space between the number / title line and the topics / description line (Milan Design Studio reference) */
  --inset-case: clamp(1rem, 2.2vw, 2rem); /* side room of the case text and facts, so both share the same column lines */
  --pad-card: clamp(1.25rem, 2.6vw, 2.5rem); /* inner padding of a card or stat tile */
  --odo-dur: 3.6s; /* time each digit of the Audiência number takes to roll */
  --odo-stagger: 0.18s; /* delay between one digit and the next */
  --odo-tile-stagger: 0.4s; /* delay between one results tile and the next */
  --odo-ease: cubic-bezier(0.65, 0, 0.35, 1); /* slow start, slow stop */
  --text-stat-tile: clamp(3rem, 6vw, 6rem); /* the numbers in the results bento tiles */
  --stat-weight: 500; /* medium: weight of the results numbers */
  --gutter: clamp(1rem, 1.5vw, 1.75rem);
  --container: 2400px;
  --margin-page: 4.4444vw; /* page side margin from 992px: 64px at 1440, so the project cards are 637 x 477 like pauloravel.framer.media (measured 26/10/2026); was 5.5vw (79px) */
  /* Radius scale: buttons are pills; tags and badges are filled boxes (--radius-tag); large containers (cards, images, frames) use --radius */
  --radius: 8px; /* the one radius for every image, card, frame and block (home cards, case images, Expertise frame, testimonial); standardized 25/10/2026 */
  --radius-pill: 999px;
  --parallax-extra: 10%; /* extra image height above and below its frame, so the parallax never shows the frame background */
  --gap-facts: calc(var(--gap-chapter) / 2); /* space between the top media and the facts strip (Client, Year, Category, Deliverables) */
  --gap-chapter: clamp(3rem, 6vw, 6rem); /* space above a chapter label (Challenge, Solution, Results) */
  --gap-heading: clamp(2rem, 4vw, 4rem); /* space between a chapter label and its content */
  --gap-col: var(--space-5); /* 24px: space between cards side by side, as in the home project grid */
  --gap-row: var(--space-6); /* 32px: space between rows of cards, as in the home project grid */
  /* Phone screens tile: number of columns, and where the second card of each column starts (% of the tile width, from a 1920px reference frame) */
  --screens-cols: 4;
  --screens-cols-narrow: 2;
  --screens-split-1: 19.22;
  --screens-split-2: 31.67;
  --screens-split-3: 43.23;
  --screens-split-4: 27.66;
  --pano-cta-top: calc(84% + 5svh); /* About button: below the photos, which sit 4vh lower (cardsDown in main.js), plus 1vh more air; more than that pushes it against the bottom edge */
  --pano-scroll: 320svh; /* scroll length of the About gallery: how long the cards take to spread (shortened from 400vh: less scroll after the arch settles) */
  --shadow-card: 0 25px 50px -12px color-mix(in srgb, var(--swatch-dark) 40%, transparent); /* gallery card */
  --float-w: clamp(14rem, 21vw, 22rem); /* Expertise hover frame: 302px at 1440px, the width of the 3 right columns (10-12) of the 12-column grid; 16:9 (169px high, inside the 165px content of a row), straight, on the right of the row (Ivan Carlos reference, 25/10/2026) */
  --radius-tag: 2px; /* tags are filled boxes with almost square corners (N4 Studio reference); only buttons are pills */
  --color-tag: #1c1c1c;


  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration: 300ms;
  --measure-support: 66ch; /* About supporting text: keeps it narrower than the title, in the 60-75 character reading range */
  --btn-rise: 0.5s; /* button hover (cuberto.com/projects/find): fill rises from the bottom */
  --btn-rise-radius: 0.9s; /* the rounded top of the fill flattens more slowly */
  --btn-text: 0.8s; /* label slides up and the copy slides in */
  --btn-spring: 0.6s; /* the button stretches 2% with a spring */
  --btn-stretch: 1.02;
  --ease-rise: cubic-bezier(0.4, 0, 0, 1);
  --ease-text: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 5.56, 0.64, 1);
}

/* Light theme: add class "theme-light" to a section to flip it to the light roles (white background, dark text) */
.theme-light {
  --color-background: var(--swatch-white);
  --color-text: var(--light-text-primary);
  --color-text-secondary: color-mix(in srgb, var(--swatch-dark) 85%, var(--swatch-white));
  --color-text-muted: var(--light-text-tertiary);
  --color-text-desc: color-mix(in srgb, var(--color-text) 70%, transparent); /* every description paragraph; declared per theme because var() resolves where it is declared */
  --color-stroke: color-mix(in srgb, var(--swatch-dark) 14%, transparent);
  --color-tag: var(--swatch-light);
  --color-surface: var(--swatch-light);
  background: var(--color-background);
  color: var(--color-text);
}

/* Dark theme: the default roles, re-asserted so a dark section can sit inside a light page (e.g. <html class="theme-light">) */
.theme-dark {
  --color-background: var(--dark-background);
  --color-text: var(--dark-text-primary);
  --color-text-secondary: var(--dark-text-secondary);
  --color-text-muted: var(--dark-text-tertiary);
  --color-text-desc: color-mix(in srgb, var(--color-text) 70%, transparent); /* every description paragraph; declared per theme because var() resolves where it is declared */
  --color-stroke: var(--dark-stroke);
  --color-surface: var(--dark-surface);
  --color-tag: #1c1c1c;
  background: var(--color-background);
  color: var(--color-text);
}
