/* Enhancements: new work layered on top of the Webflow port (site.css + custom.css).
   Fonts: Switzer for UI labels, Azeret Mono for display/labels. 30px side margins, 20px pills. */

/* ---------- Menu: scroll lock, button reset, focus ---------- */
html.is-menu-open,
html.is-menu-open body { overflow: hidden; }
html.is-menu-open { padding-right: var(--scrollbar-gutter, 0px); }
html.is-menu-open .nav-wrapper,
html.is-menu-open .nav-wrapper-hero { padding-right: var(--scrollbar-gutter, 0px); }
.menu-overlay { overscroll-behavior: contain; }
/* The menu always sits in front of everything, the footer included; the top bar (logo, language, close) stays in front of the menu. */
html.is-menu-open .footer-wrapper { z-index: 500; }
html.is-menu-open .nav-wrapper-hero,
html.is-menu-open .nav-wrapper { opacity: 1 !important; visibility: visible !important; }

button.menu-button-wrapper {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.menu-button-wrapper:focus-visible,
.nav-roll:focus-visible,
.nav-hero-logo:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* ---------- Site nav: the same logo + MENU button on every page (Home also shows the description) ---------- */
.nav-wrapper-hero { pointer-events: none; }
.nav-wrapper-hero a,
.nav-wrapper-hero button { pointer-events: auto; }

.nav-hero-bar { align-items: flex-start; gap: 24px; }

.nav-hero-intro {
  --logo-s: 0.72;            /* scale of the site's nav lockup (icon 44px + wordmark 250px at 1) */
  margin: 0;
  padding-top: 8px;
  max-width: 470px;
  color: #fff;               /* white + the nav's "exclusion" blend = black on light pages, light on dark ones */
  font-family: Switzer, Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.005em;
  text-align: left;
}
.nav-hero-logo {
  display: inline-flex;
  align-items: flex-end;
  vertical-align: baseline;
  line-height: 0;
}
.nav-hero-icon { display: block; width: calc(44px * var(--logo-s)); height: auto; }
.nav-hero-wordmark { display: block; width: calc(250px * var(--logo-s)); margin-left: calc(12px * var(--logo-s)); }
.nav-hero-wordmark img { display: block; width: 100%; max-width: none; height: auto; }

/* The description (Home only) fades out once you scroll or open the menu. The logo always stays. */
.nav-hero-desc { transition: opacity 0.5s ease 0.1s, filter 0.5s ease 0.1s; }
.nav-wrapper-hero.is-scrolled .nav-hero-desc,
.nav-wrapper-hero.menu-is-open .nav-hero-desc {
  opacity: 0;
  filter: blur(6px);
  visibility: hidden;
  transition: opacity 0.3s ease, filter 0.3s ease, visibility 0s linear 0.3s;
}

.nav-hero-right { display: flex; align-items: center; flex-shrink: 0; }
.nav-wrapper-hero .menu-nav-right { display: flex; align-items: center; gap: 12px; }
.nav-wrapper-hero .menu-button-wrapper { width: 96px; height: 44px; padding: 8px 20px; }
.nav-wrapper-hero .menu-button-text { font-size: 14px; }
.nav-wrapper-hero .menu-button-lines { right: 20px; }
.nav-wrapper-hero .menu-button-wrapper.is-open { width: 44px !important; height: 44px !important; }
.nav-wrapper-hero .menu-nav-cta { height: 44px; }
/* "Let's work together" only takes up room while the menu is open, and only where it fits next to the logo */
.nav-wrapper-hero:not(.menu-is-open) .menu-nav-cta { display: none !important; }
@media screen and (max-width: 659px) {
  .nav-wrapper-hero .menu-nav-cta { display: none !important; }
}

/* Language button: one round button that shows the current language (EN / ES).
   Hover or focus rolls the label to the other language; pressing it switches the whole page. */
.lang-roll { display: block; height: 1.3em; line-height: 1.3em; overflow: hidden; }
.lang-roll > span { display: block; height: 1.3em; transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
a:hover > .lang-roll > span,
a:focus-visible > .lang-roll > span { transform: translateY(-100%); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #fff;                 /* white + the nav's "exclusion" blend = black on light pages, white on dark ones */
  color: #0d0d0f;
  font-family: "Azeret Mono", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.lang-switch:hover { transform: scale(1.06); }
.lang-switch:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

@media screen and (max-width: 767px) {
  .nav-hero-bar { gap: 16px; }
  .nav-hero-intro { --logo-s: 0.6; padding-top: 4px; max-width: min(64vw, 300px); font-size: 16px; }
}

/* Small phones: the logo, EN | ES and MENU all have to fit on one line, so everything shrinks a little */
@media screen and (max-width: 479px) {
  .nav-hero-bar { gap: 10px; padding-left: 20px; padding-right: 20px; }
  .nav-hero-intro { --logo-s: 0.46; max-width: none; font-size: 14px; }
  .nav-wrapper-hero .menu-nav-right { gap: 8px; }
  .nav-wrapper-hero .lang-switch { width: 40px; height: 40px; font-size: 12px; }
  .nav-wrapper-hero .menu-button-wrapper { width: 80px; height: 40px; padding: 8px 12px; }
  .nav-wrapper-hero .menu-button-text { font-size: 12px; }
  .nav-wrapper-hero .menu-button-lines { right: 12px; }
  .nav-wrapper-hero .menu-button-wrapper.is-open { width: 40px !important; height: 40px !important; }
}
@media screen and (max-width: 359px) {
  .nav-hero-bar { padding-left: 16px; padding-right: 16px; }
  .nav-hero-intro { --logo-s: 0.4; }
  .nav-wrapper-hero .menu-nav-right { gap: 6px; }
  .nav-wrapper-hero .menu-button-wrapper { width: 72px; padding: 8px 10px; }
  .nav-wrapper-hero .menu-button-lines { right: 10px; }
}

/* ---------- Hero: cream. The Selected work section slides up over it (see index.js), then scrolls sideways. ---------- */
.hero-section { background-color: var(--_colors-alo-creative---grey); z-index: 1; }
.hero-3d-canvas-wrapper { z-index: 2; }

/* ---------- Home hero: three records. Info bottom right, a hand-drawn line on hover, small dots to jump between records ---------- */
.hero-scroll-spacer { width: 100%; background-color: var(--_colors-alo-creative---grey); }
.hero-scribble { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-info {
  position: absolute; right: 30px; bottom: 30px; z-index: 4;
  width: min(210px, calc(100vw - 60px));
  display: flex; flex-direction: column; gap: 6px;
  color: var(--_colors-alo-creative---darkgrey);
  pointer-events: none;
}
.hero-info .hero-info-title {
  margin: 0; color: var(--_colors-alo-creative---darkgrey);
  font-family: Azeret Mono, Arial, sans-serif;
  font-size: 13px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em;
}
.hero-info-list { margin: 0; padding: 0; border-top: 1px solid var(--_colors-alo-creative---darkgrey); }
.hero-info-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--_colors-alo-creative---darkgrey); }
.hero-info .hero-info-row dt { color: var(--_colors-alo-creative---darkgrey); opacity: .55; text-transform: uppercase; letter-spacing: .06em; font-size: 9px; }
.hero-info .hero-info-row dd { margin: 0; color: var(--_colors-alo-creative---darkgrey); text-align: right; font-size: 11px; line-height: 1.2; }

.hero-dots { position: absolute; left: 30px; bottom: 30px; z-index: 4; display: flex; gap: 8px; align-items: center; }
.hero-dot {
  position: relative; width: 30px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hero-dot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background-color: var(--_colors-alo-creative---darkgrey); opacity: .22; transition: opacity .3s ease, transform .4s cubic-bezier(.22,1,.36,1);
  transform-origin: left center;
}
.hero-dot:hover::before { opacity: .5; }
.hero-dot[aria-current="true"]::before { opacity: 1; }
.hero-dot:focus-visible { outline: 2px solid var(--_colors-alo-creative---darkgrey); outline-offset: 2px; }

@media (max-width: 767px) {
  .hero-info { right: 20px; bottom: 20px; width: min(200px, calc(100vw - 170px)); }
  .hero-dots { left: 20px; bottom: 20px; gap: 4px; }
  .hero-dot { width: 24px; }
}
@media (prefers-reduced-motion: reduce) { .hero-dot::before { transition: none; } }
.selected-work-hscroll { position: relative; z-index: 3; background-color: var(--_colors-alo-creative---darkgrey); }
.selected-work-track { background-color: inherit; }
.selected-work-hscroll.is-hscroll { overflow: hidden; width: 100%; }
.selected-work-hscroll.is-hscroll .selected-work-track { display: flex; width: 200%; will-change: transform; }
.selected-work-hscroll.is-hscroll .selected-work-track > section { flex: 0 0 50%; width: 50%; }

/* ---------- Home: the "See projects" arrow (DREWS section) only appears on hover ---------- */
@media (hover: hover) {
  .see-projects-link .arrow-vector {
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .see-projects-link:hover .arrow-vector,
  .see-projects-link:focus-visible .arrow-vector {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .see-projects-link .arrow-vector { transition-duration: 0.01s !important; }
  .nav-hero-desc { transition-duration: 0.01s !important; transition-delay: 0s !important; }
}

/* =====================================================================
   Home (body.home-b)
   Follows the device's light / dark setting. The hero always stays light (the record sleeves keep their detail).
   Dark: the original look, black sections with white text. Light: the same sections in the light grey with dark text.
   The flowing lines run behind Everything I do, Philosophy and Trusted by too (see index.js).
   ===================================================================== */
/* these three have no background of their own: the lines sit behind them */
.home-b .everything-i-do-section,
.home-b .philosophy-section,
.home-b .trusted-by-section { position: relative; z-index: 1; background-color: transparent; }
body.home-b { --home-ink: var(--_colors-alo-creative---white); }

@media (prefers-color-scheme: light) {
  /* what sits behind the sliding Selected work panels must be the same colour as the panels, or a hairline of it shows between them at some zoom levels and scroll positions */
  .home-b .selected-work-hscroll { background-color: var(--_colors-alo-creative---grey); }
  body.home-b { --home-ink: var(--_colors-alo-creative---darkgrey); background-color: var(--_colors-alo-creative---grey); color: var(--_colors-alo-creative---darkgrey); }
  /* Selected work slides over the hero, so it keeps a background of its own */
  .home-b .selected-work-section,
  .home-b .selected-work-section-drews { background-color: var(--_colors-alo-creative---grey); color: var(--_colors-alo-creative---darkgrey); }
  .home-b :is(.selected-work-section, .selected-work-section-drews, .everything-i-do-section, .philosophy-section, .trusted-by-section) {
    color: var(--_colors-alo-creative---darkgrey);
  }
  .home-b :is(.selected-work-section, .selected-work-section-drews, .everything-i-do-section, .philosophy-section, .trusted-by-section) :is(.text-switzermedium-body, .text-switzerregular-body, .text-switzerh2, .text-switzerh5, .text-azeret-mono-italicsmall-body---italic, .text-azeret-monoh3---azeret, .text-azeret-monosmall-body-azeret, .text-azeret-monoh2---azeret-mono, .learn-more-text, .project-date, .principle-number, .text-block) {
    color: var(--_colors-alo-creative---darkgrey);
  }
  .home-b :is(.selected-work-section, .selected-work-section-drews) .date-pill { border-color: var(--_colors-alo-creative---darkgrey); }
  .home-b .learn-more-link.text-switzermedium-body { border-color: var(--_colors-alo-creative---darkgrey); }
  .home-b .see-projects-link .arrow-vector,
  .home-b .learn-more-link .vector,
  .home-b .logo-track img { filter: invert(1); }
  /* hovering a project fills its date pill with black, text white */
  .home-b .content-wrapper:hover .date-pill,
  .home-b .content-wrapper:focus-visible .date-pill {
    background-color: var(--_colors-alo-creative---darkgrey);
    border-color: var(--_colors-alo-creative---darkgrey);
  }
  .home-b .content-wrapper:hover .date-pill .project-date,
  .home-b .content-wrapper:focus-visible .date-pill .project-date { color: #fff; }
  /* Learn More (Philosophy): on hover the button inverts completely, black with white text and a white arrow */
  .home-b .learn-more-link.text-switzermedium-body { transition: background-color 0.3s ease, border-color 0.3s ease; }
  .home-b .learn-more-link.text-switzermedium-body:hover,
  .home-b .learn-more-link.text-switzermedium-body:focus-visible { background-color: var(--_colors-alo-creative---darkgrey); border-color: var(--_colors-alo-creative---darkgrey); box-shadow: none; }
  .home-b .learn-more-link.text-switzermedium-body:hover .learn-more-text,
  .home-b .learn-more-link.text-switzermedium-body:focus-visible .learn-more-text { color: #fff !important; filter: none; }
  .home-b .learn-more-link.text-switzermedium-body:hover .vector,
  .home-b .learn-more-link.text-switzermedium-body:focus-visible .vector { filter: none; }
}

/* dark: the footer turns black too (its ink is black, so the logo, arrow and icons are flipped to white) */
@media (prefers-color-scheme: dark) {
  .home-b .footer-section { background-color: var(--_colors-alo-creative---darkgrey); border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .home-b .footer-section :is(.text-switzerh2, .footer-cta, .footer-nav-link-text) { color: var(--_colors-alo-creative---white); }
  .home-b .footer-section .footer-cta-button { border-color: var(--_colors-alo-creative---white); }
  .home-b .footer-section .footer-divider { background-color: var(--_colors-alo-creative---white); }
  .home-b .footer-section img { filter: invert(1); }
  .home-b .footer-section .footer-cta-button:hover { background-color: var(--_colors-alo-creative---white); border-color: var(--_colors-alo-creative---white); box-shadow: none; }
  .home-b .footer-section .footer-cta-button:hover .footer-cta { color: var(--_colors-alo-creative---darkgrey) !important; }
  .home-b .footer-section .footer-cta-button:hover .lets-work-together-arrow { filter: none; }
}

/* "See projects": the arrow is always there, and the button gets a little lighter on hover */
.home-b .see-projects-link { transition: opacity 0.3s ease; }
.home-b .see-projects-link .arrow-vector { opacity: 1; transform: none; }
.home-b .see-projects-link:hover,
.home-b .see-projects-link:focus-visible { opacity: 0.55; }

/* separators drawn by hand */
body.home-b .section-divider-top,
body.home-b .section-devider-bottom { position: relative; top: auto; left: auto; right: auto; height: 16px; margin: -7px 0; background-image: none; }
.scribble-line { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

/* Philosophy: a shorter section than the original, the text and the four points do the work */
.home-b .philosophy-section { padding: 120px 30px 80px; grid-row-gap: 90px; row-gap: 90px; }

/* Trusted by: the logos run along in a loop, like the services in Everything I do */
.home-b .logo-marquee-wrapper { overflow: hidden; }
.home-b .logo-track.is-marquee {
  display: flex; flex: none; flex-flow: row nowrap; justify-content: flex-start; align-items: center;
  width: max-content; gap: 0;
  animation: logos-marquee 24s linear infinite; animation-play-state: paused;   /* starts when every logo has loaded (see index.js) */
}
.home-b .logo-track.is-marquee.is-running { animation-play-state: running; }
.home-b .logo-track.is-marquee .logo-set { display: flex; flex: 0 0 auto; align-items: center; gap: 80px; padding-right: 80px; }
.home-b .logo-track.is-marquee img { flex: 0 0 auto; }
@keyframes logos-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--logo-shift, 25%))); } }  /* one copy, in pixels */
@media (prefers-reduced-motion: reduce) { .home-b .logo-track.is-marquee { animation: none; } }


/* ---------- Spanish menu: "Sobre mí" stays on one line; "Pronto" keeps the same 20px gap as the Spotify / Apple Music pills ---------- */
.menu-overlay-link-text { white-space: nowrap; }
@media (min-width: 992px) {
  .menu-overlay-link-item-drews .menu-overlay-soon-pill { position: absolute; left: 46px; transform: translateX(-100%); }
}

/* ---------- Footer headline: both lines centred, like the Contact page ---------- */
.footer-cta-block .text-switzerh2,
.footer-cta-block-color .text-switzerh2 { text-align: center; }

/* ---------- DREWS: the subway billboard is the hero image (whole, edge to edge on large screens); below it the Memories poster sits next to its mockup photo ---------- */
@media (min-width: 992px) {
  .drews-page .drews-hero-image { height: auto; }
  .drews-page .drews-hero-image-photo { height: auto; aspect-ratio: 1200 / 655; }
}
.drews-page .drews-showcase-image-4-photo { object-position: 50% 62%; }

/* ---------- Hand-drawn rules (see js/scribble.js): the straight line is hidden, the pen draws it instead ---------- */
.is-scribbled { background-color: transparent !important; }
.scribble-host { position: relative !important; top: auto !important; left: auto !important; right: auto !important; bottom: auto !important; }
.is-scribbled-bottom { border-bottom-color: transparent !important; }
.is-scribbled-top { border-top-color: transparent !important; }
.scribble-edge { display: block; pointer-events: none; }
.scribble-edge.is-self { position: absolute; left: 0; top: 50%; width: 100%; height: 16px; margin-top: -8px; z-index: 3; }
.scribble-edge.is-top, .scribble-edge.is-bottom { position: relative; z-index: 3; flex: none; width: 100%; height: 16px; margin: -9px 0 -7px; }


/* ---------- Waves and boats (js/waves.js): all black; off-white on the black Home sections in dark mode ---------- */
.aw { --aw-ink: #0d0d0f; display: block; width: 100%; height: auto; overflow: visible; }
.aw-line { stroke: var(--aw-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.aw-stem { stroke: var(--aw-ink); stroke-width: 1.7; stroke-linecap: round; }
.aw-flag { stroke: var(--aw-ink); stroke-width: 1.5; stroke-linecap: round; }
.aw-head { fill: var(--aw-ink); }

/* band above Philosophy (Home) */
.wave-band { position: relative; z-index: 1; display: flex; justify-content: center; padding: 240px 30px 0; }
.wave-band-inner { width: min(100%, 820px); }
@media (prefers-color-scheme: dark) { .home-b .wave-band .aw { --aw-ink: #f0efeb; } }
@media (max-width: 767px) {
  .wave-band { padding: 140px 16px 0; }
  /* the drawing is smaller on a phone, so the strokes are a little thicker to keep the same weight */
  .wave-band .aw-line, .wave-band .aw-flag { stroke-width: 2.3; }
  .wave-band .aw-stem { stroke-width: 2.8; }
}

/* loading screen (js/loader.js): on the page until the waves have been drawn, then it slides up */
.aw-loader { display: none; }
html.has-loader { overflow: hidden; scrollbar-gutter: stable; }   /* keeps the room for the scrollbar, so the page does not shift sideways when the loading screen lets go */
html.has-loader .aw-loader {
  display: flex; position: fixed; inset: 0; z-index: 2000; align-items: center; justify-content: center;
  background-color: #f0efeb;
  animation: aw-failsafe 0.01s linear 12s forwards;       /* if the script ever fails, the screen still goes away */
}
.aw-loader-inner { display: flex; flex-direction: column; align-items: center; gap: 36px; width: min(86vw, 600px); }
.aw-loader-logo { width: min(60%, 260px); height: auto; }
.aw-loader-waves { width: 100%; }
@keyframes aw-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ---------- Contact: two big cards, email and WhatsApp (the whole card is the link; the buttons sit on top) ---------- */
.contact-cards { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-card { position: relative; display: flex; flex-direction: column; gap: 20px; min-height: 380px; padding: 36px; border: 2px solid #0d0d0f; border-radius: 20px; color: #0d0d0f; background-color: transparent; transition: background-color 0.35s ease, color 0.35s ease; }
.contact-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.contact-card-label { font-family: "Azeret Mono", Arial, sans-serif; font-size: 21px; line-height: 1; text-transform: uppercase; }
.contact-card-arrow { width: 30px; height: 30px; flex: none; transition: transform 0.35s ease, filter 0.35s ease; }
.contact-card-main { margin-top: auto; color: inherit; font-size: clamp(20px, 2.9vw, 44px); line-height: 1.1; letter-spacing: -0.01em; text-decoration: none; overflow-wrap: anywhere; }
.contact-card-main::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.contact-card-note { max-width: 34ch; font-size: 18px; line-height: 1.4; opacity: 0.7; }
.contact-card-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }
.contact-card-button { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border: 2px solid currentColor; border-radius: 20px; background: transparent; color: inherit; font-family: "Azeret Mono", Arial, sans-serif; font-size: 14px; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color 0.3s ease, color 0.3s ease; }
@media (hover: hover) {
  .contact-card:hover { background-color: #0d0d0f; color: #f0efeb; }
  .contact-card:hover .contact-card-arrow { filter: invert(1); transform: translate(5px, -5px); }
  .contact-card-button:hover { background-color: #f0efeb; color: #0d0d0f; }
}
.contact-card:has(:focus-visible) { outline: 2px solid #d7632d; outline-offset: 4px; }
@media (max-width: 899px) {
  .contact-cards { grid-template-columns: 1fr; gap: 20px; }
  .contact-card { min-height: 0; }
  .contact-card-main { margin-top: 28px; font-size: clamp(16px, 5.3vw, 36px); }
}
@media (max-width: 767px) {
  .contact-card { padding: 24px; gap: 16px; }
  .contact-card-label { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .contact-card, .contact-card-arrow, .contact-card-button { transition: none; } }

/* ---------- About: Philosophy on the cream page — a statement that lights up as you scroll, then four rows that open.
   The slow flowing lines behind the page fade out on the way here (about.js), so this section sits on a calm background. ---------- */
.phil { position: relative; display: flex; flex-direction: column; gap: 130px; width: 100%; padding: 170px 30px 150px; color: var(--_colors-alo-creative---darkgrey); }
.phil-title { margin: 0; font-family: "Azeret Mono", Arial, sans-serif; font-size: 21px; font-weight: 400; line-height: 1; text-transform: uppercase; color: inherit; }
.phil-statement { max-width: 1240px; margin: 0; font-size: clamp(30px, 4.6vw, 68px); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }
.phil-list { display: flex; flex-direction: column; margin-top: 30px; }
.phil-rule { position: relative; width: 100%; height: 2px; background-color: var(--_colors-alo-creative---darkgrey); }
.phil-trigger { display: grid; grid-template-columns: 120px 1fr 52px; align-items: center; column-gap: 30px; width: 100%; padding: 60px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.phil-number { font-family: "Azeret Mono", Arial, sans-serif; font-size: 21px; line-height: 1; transition: color 0.3s ease; }
.phil-name { display: block; font-size: clamp(30px, 5.2vw, 78px); line-height: 1.02; letter-spacing: -0.02em; transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.phil-icon { position: relative; width: 52px; height: 52px; border: 2px solid currentColor; border-radius: 50%; transition: background-color 0.3s ease, color 0.3s ease; }
.phil-icon::before, .phil-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background-color: currentColor; transform: translate(-50%, -50%); transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.phil-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.phil-item.is-open .phil-icon { background-color: var(--_colors-alo-creative---darkgrey); color: var(--_colors-alo-creative---grey); }
.phil-item.is-open .phil-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.phil-item.is-open .phil-number { color: var(--_colors-alo-creative---orange-500); }
.phil-trigger:focus-visible { outline: 2px solid var(--_colors-alo-creative---orange-500); outline-offset: 4px; }
@media (hover: hover) {
  .phil-trigger:hover .phil-name { transform: translateX(14px); }
  .phil-trigger:hover .phil-number { color: var(--_colors-alo-creative---orange-500); }
  .phil-trigger:hover .phil-icon { background-color: var(--_colors-alo-creative---darkgrey); color: var(--_colors-alo-creative---grey); }
}
.phil-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.6s; }
.phil-item.is-open .phil-panel { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.phil-panel-inner { min-height: 0; overflow: hidden; }
.phil-text { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 0 82px 90px 150px; opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease, transform 0.45s ease; }
.phil-item.is-open .phil-text { opacity: 1; transform: none; transition-delay: 0.15s; }
.phil-text p { margin: 0; }
.phil-text p:first-child { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.3; }
.phil-text p:last-child { font-size: 18px; line-height: 1.55; opacity: 0.72; }
@media (max-width: 991px) {
  .phil { padding: 130px 30px 110px; gap: 100px; }
  .phil-list { margin-top: 16px; }
  .phil-trigger { grid-template-columns: 80px 1fr 48px; column-gap: 20px; padding: 48px 0; }
  .phil-icon { width: 48px; height: 48px; }
  .phil-text { grid-template-columns: 1fr; gap: 22px; padding: 0 68px 68px 100px; }
}
@media (max-width: 767px) {
  .phil { padding: 100px 16px 90px; gap: 76px; }
  .phil-list { margin-top: 10px; }
  .phil-title { font-size: 18px; }
  .phil-trigger { grid-template-columns: 1fr 44px; grid-template-areas: "num icon" "name icon"; row-gap: 14px; column-gap: 16px; padding: 38px 0; }
  .phil-number { grid-area: num; }
  .phil-name { grid-area: name; }
  .phil-icon { grid-area: icon; width: 44px; height: 44px; align-self: start; }
  .phil-text { padding: 0 0 50px; }
  .phil-text p:last-child { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .phil-panel, .phil-text, .phil-name, .phil-icon, .phil-icon::before, .phil-icon::after, .phil-number { transition: none; }
}

/* ---------- Home: Philosophy as one big statement that lights up word by word, then the Learn More button ---------- */
.home-b .philosophy-section.is-statement { align-items: flex-start; padding: 170px 30px 150px; grid-row-gap: 90px; row-gap: 90px; }
.home-b .philosophy-section.is-statement .philosophy-text-block { align-self: stretch; width: 100%; max-width: 1240px; grid-row-gap: 120px; row-gap: 120px; }
.home-b .philosophy-section.is-statement .philosophy-title { margin: 0; font-size: 21px; line-height: 1; text-transform: uppercase; }
.home-b .philosophy-section.is-statement .philosophy-statement { margin: 0; font-size: clamp(30px, 4.6vw, 68px); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }
.home-b .philosophy-section.is-statement .learn-more-link { align-self: flex-start; }
/* Learn More: same size as the footer button */
.home-b .philosophy-section.is-statement .learn-more-link.text-switzermedium-body { padding: 15px 24px; grid-column-gap: 10px; column-gap: 10px; }
.home-b .philosophy-section.is-statement .learn-more-link .learn-more-text { font-size: 17px; line-height: 1.2; }
.home-b .philosophy-section.is-statement .learn-more-link .vector { height: 12px; }
/* tablets (and big phones): the sentence is centred, so the label and the button are centred with it */
@media (max-width: 991px) and (min-width: 480px) {
  .home-b .philosophy-section.is-statement { align-items: center; }
  .home-b .philosophy-section.is-statement .philosophy-text-block { align-items: center; text-align: center; }
  .home-b .philosophy-section.is-statement .philosophy-title,
  .home-b .philosophy-section.is-statement .philosophy-statement { text-align: center; }
  .home-b .philosophy-section.is-statement .learn-more-link { align-self: center; }
}
@media (max-width: 991px) {
  .home-b .philosophy-section.is-statement { padding: 130px 30px 110px; grid-row-gap: 70px; row-gap: 70px; }
  .home-b .philosophy-section.is-statement .philosophy-text-block { grid-row-gap: 90px; row-gap: 90px; }
}
@media (max-width: 767px) {
  .home-b .philosophy-section.is-statement { padding: 100px 16px 90px; grid-row-gap: 56px; row-gap: 56px; }
  .home-b .philosophy-section.is-statement .philosophy-text-block { grid-row-gap: 64px; row-gap: 64px; }
  .home-b .philosophy-section.is-statement .philosophy-title { font-size: 18px; }
  .home-b .philosophy-section.is-statement .learn-more-link.text-switzermedium-body { padding: 13px 20px; }
  .home-b .philosophy-section.is-statement .learn-more-link .learn-more-text { font-size: 16px; }
}

/* ---------- Footer (trial): a full-screen footer that waits under the page; the page lifts like a curtain to uncover it ----------
   Without .rf-fixed (set by footer-reveal.js on big screens when it fits) the footer is just the last block of the page. */
.page-curtain { position: relative; background-color: inherit; }
.about .page-curtain { isolation: isolate; }
.rf-spacer { display: none; }
.rf { --rf-bg: #0d0d0f; --rf-fg: #f0efeb; --rf-soft: rgba(240, 239, 235, 0.68); --rf-faint: rgba(240, 239, 235, 0.46); --rf-focus: var(--_colors-alo-creative---orange-500);
  position: relative; z-index: 1; background-color: var(--rf-bg); color: var(--rf-fg); font-family: Switzer, Arial, sans-serif; }
/* every page has the same footer colour: the site's dark grey (--darkgrey, #0d0d0f) */
.rf a { color: inherit; text-decoration: none; }
.rf-inner { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 100%; padding: 32px 30px 28px; box-sizing: border-box; }
.rf-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.rf-logo { display: flex; align-items: center; }
.rf-logo-icon { display: block; width: 44px; height: auto; }
.rf-lang { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 2px solid var(--rf-fg); border-radius: 50%; font-family: "Azeret Mono", Arial, sans-serif; font-size: 13px; line-height: 1; transition: background-color 0.3s ease, color 0.3s ease; }
.rf-lang:hover, .rf-lang:focus-visible { background-color: var(--rf-fg); color: #0d0d0f; }
.rf-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 60px; align-items: end; }
.rf-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 36px; }
.rf-statement { margin: 0; font-size: clamp(30px, 3.5vw, 54px); font-weight: 400; line-height: 1.08; letter-spacing: -0.02em; }
.rf-button { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border: 2px solid var(--rf-fg); border-radius: 20px; font-size: 17px; line-height: 1.2; transition: background-color 0.3s ease, color 0.3s ease; }
.rf-button-arrow { display: block; width: 13px; height: auto; transition: filter 0.3s ease; }
.rf-button:hover, .rf-button:focus-visible { background-color: var(--rf-fg); color: #0d0d0f; }
.rf-button:hover .rf-button-arrow, .rf-button:focus-visible .rf-button-arrow { filter: invert(1); }
.rf-links { display: grid; grid-template-columns: repeat(3, auto); justify-content: end; gap: 40px 64px; }
.rf-col-title { margin: 0 0 20px; font-family: "Azeret Mono", Arial, sans-serif; font-size: 13px; font-weight: 400; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rf-faint); }
.rf-col ul { display: flex; flex-direction: column; gap: 11px; margin: 0; padding: 0; list-style: none; }
.rf-col a { display: inline-block; font-size: 19px; line-height: 1.25; color: var(--rf-soft); text-underline-offset: 5px; transition: color 0.25s ease; }
.rf-col a:hover, .rf-col a:focus-visible { color: var(--rf-fg); text-decoration: underline; text-decoration-thickness: 1px; }
.rf-mark img { display: block; width: 100%; height: auto; filter: invert(1); opacity: 0.94; }
.rf-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 18px; color: var(--rf-soft); }
.rf-to-top { display: inline-flex; align-items: center; gap: 10px; transition: color 0.25s ease; }
.rf-to-top:hover, .rf-to-top:focus-visible { color: var(--rf-fg); }
.rf a:focus-visible { outline: 2px solid var(--rf-focus); outline-offset: 4px; }

html.rf-fixed .page-curtain { z-index: 20; box-shadow: 0 1px 0 rgba(128, 128, 128, 0.35), 0 24px 60px rgba(0, 0, 0, 0.28); }
html.rf-fixed .rf-spacer { display: block; height: 100vh; }
html.rf-fixed .rf { position: fixed; left: 0; right: 0; bottom: 0; height: 100vh; z-index: 10; overflow: hidden; }
html.rf-fixed .rf-inner { height: 100%; }
html.rf-fixed .rf-mark { transform: translateY(22px); }

@media (max-width: 1199px) {
  .rf-statement { font-size: clamp(30px, 4.6vw, 52px); }
  .rf-main { grid-template-columns: 1fr; gap: 56px; }
  .rf-links { justify-content: start; }
}
@media (max-width: 991px) {
  .rf-inner { gap: 64px; padding: 28px 30px 26px; }
  .rf-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
  .rf-mark { margin-top: 8px; }
}
@media (max-width: 767px) {
  .rf-inner { gap: 52px; padding: 22px 16px 22px; }
  .rf-logo-icon { width: 36px; }
  .rf-lang { width: 40px; height: 40px; }
  .rf-statement { font-size: clamp(26px, 7.2vw, 36px); }
  .rf-cta { gap: 28px; }
  .rf-button { padding: 13px 20px; font-size: 16px; }
  .rf-links { grid-template-columns: 1fr 1fr; }
  .rf-col:last-child { grid-column: 1 / -1; }
  .rf-col a { font-size: 18px; }
  .rf-bottom { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .rf-lang, .rf-button, .rf-button-arrow, .rf-col a, .rf-to-top { transition: none; }
}

/* Contact: the page already asks "Have a project in mind?", so its footer skips that block and starts with the links */
.contact-page .rf-cta { display: none; }
@media (min-width: 1200px) { .contact-page .rf-links { grid-column: 2; } }

/* ---------- 404: page not found ---------- */
.notfound-page { background-color: #f0efeb; color: #0d0d0f; }
.notfound-section { box-sizing: border-box; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px; padding: 160px 30px 100px; }
.notfound-label { margin: 0; font-family: "Azeret Mono", Arial, sans-serif; font-size: 21px; line-height: 1; text-transform: uppercase; }
.notfound-title { margin: 0; font-family: Switzer, Arial, sans-serif; font-size: clamp(36px, 6vw, 88px); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; }
.notfound-text { margin: 0; max-width: 40ch; font-size: 21px; line-height: 1.4; opacity: 0.7; }
.notfound-button { display: inline-flex; align-items: center; margin-top: 12px; padding: 15px 24px; border: 2px solid #0d0d0f; border-radius: 20px; color: #0d0d0f; font-size: 17px; line-height: 1.2; text-decoration: none; transition: background-color 0.3s ease, color 0.3s ease; }
.notfound-button:hover, .notfound-button:focus-visible { background-color: #0d0d0f; color: #f0efeb; }
@media (max-width: 767px) { .notfound-section { padding: 130px 16px 80px; } .notfound-text { font-size: 18px; } .notfound-button { padding: 13px 20px; font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .notfound-button { transition: none; } }

/* ---- message shown when a mail link opens nothing (see mailto.js) ---- */
.alo-toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px)); z-index: 1100;
  display: flex; align-items: center; gap: 14px; box-sizing: border-box;
  width: max-content; max-width: min(92vw, 600px);
  padding: 12px 10px 12px 20px; border-radius: 20px;
  background: #0d0d0f; color: #f0efeb; border: 2px solid rgba(240, 239, 235, 0.75);
  font-family: Switzer, Arial, sans-serif; font-size: 15px; line-height: 1.35;
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.alo-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.alo-toast-text { min-width: 0; overflow-wrap: anywhere; }
.alo-toast-link {
  flex: none; color: inherit; text-decoration: none; border: 2px solid currentColor; border-radius: 20px; padding: 6px 14px 7px;
  font-family: "Azeret Mono", Arial, sans-serif; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.alo-toast-link:is(:hover, :focus-visible) { background: #f0efeb; color: #0d0d0f; }
.alo-toast-close { flex: none; background: none; border: 0; color: inherit; font-size: 24px; line-height: 1; padding: 2px 8px; cursor: pointer; opacity: 0.7; }
.alo-toast-close:is(:hover, :focus-visible) { opacity: 1; }
@media (max-width: 560px) { .alo-toast { flex-wrap: wrap; row-gap: 10px; } .alo-toast-close { margin-left: auto; } }
@media (prefers-reduced-motion: reduce) { .alo-toast, .alo-toast-link { transition: none; } }

/* DREWS logo row: the two images carry their real proportions, so the row has its full height before they arrive
   and the separator (which stretches to that height) is never a 0px line while the reveal plays. */
.drews-logo-showcase-trademark, .drews-logo-showcase-logo { height: auto; }
