/* Inter — self-hosted (variable font, weights 100-900). Was a render-blocking @import from
   Google Fonts: a DNS + TLS + CSS round trip before the first paint. Two subsets with a
   unicode-range, so the browser only downloads the one(s) a page actually needs. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================
   DZIGNZ TYPOGRAPHY TOKENS  —  single source of truth
   Defined by the Home page. Every hero heading, section
   heading, eyebrow and body copy across the site resolves
   to these. Change a value here to change it everywhere.
========================================================== */
:root {
  --dz-font-display: "degular", sans-serif;   /* headings */
  --dz-font-body:    "Inter", sans-serif;     /* body */
  --dz-font-button:  var(--dz-font-display);  /* every CTA button label */

  /* Hero heading — Home .dz-hero-heading */
  --dz-hero-size:    clamp(3.5rem, 7vw, 7.3rem);
  --dz-hero-line:    1.05;

  /* Page hero statement — the heading under the wordmark on About,
     Career, Contact, Services and Work. Steps down at 980px / 600px
     (see the media queries below this block). */
  --dz-page-hero-size: 5rem;
  --dz-page-hero-line: 1;

  /* Section heading — Home .dz-about / .dz-brand / .dz-services */
  --dz-section-size: clamp(2rem, 4.8vw, 4.7rem);
  --dz-section-line: 1.2;

  /* Weights — every font-weight on the site is one of these three.
     Light mode steps each one up (see COLOUR THEME below). */
  --dz-heading-weight:  300;   /* thin display type: headings, wordmarks, titles */
  --dz-regular-weight:  400;   /* body copy, regular display type */
  --dz-medium-weight:   500;   /* labels, eyebrows, buttons */
  --dz-heading-tracking: normal;
  --dz-heading-color:   var(--dz-fg);

  /* Body / supporting copy */
  --dz-body-size:  1.1rem;
  --dz-body-line:  1.6;
  --dz-body-color: rgba(var(--dz-fg-rgb), calc(0.75 + var(--dz-text-lift)));

  /* Eyebrow / small label — see .dz-eyebrow in components.css */
  --dz-eyebrow-size:     0.75rem;
  --dz-eyebrow-tracking: 0.15em;
  --dz-eyebrow-gap:      1.25rem;   /* eyebrow -> heading */
  --dz-accent-rgb:       255, 60, 0;
  --dz-accent:           rgb(var(--dz-accent-rgb));   /* #ff3c00 */

  /* Section divider — the hairline between Home sections.
     Raise the alpha to make it brighter, lower it to fade it out. */
  --dz-divider: rgba(var(--dz-fg-rgb), 0.07);

  /* Text selection — see ::selection below */
  --dz-selection-bg: rgba(var(--dz-accent-rgb), 0.18);
}


/* ==========================================================
   TEXT SELECTION
   The browser's default highlight is a blue that belongs to no
   brand and fights every page on the site. Selected text takes the
   orange accent instead: the ink becomes the accent, the highlight
   behind it a wash of the same colour, so it reads as a deliberate
   part of the design rather than an OS artefact.

   The accent does not flip with the theme (see the note below), but
   the wash needs to be heavier on the light page to register at all
   against #f2f2f2.
========================================================== */
::selection {
  background: var(--dz-selection-bg);
  color: var(--dz-accent);
}

:root[data-theme="light"] {
  --dz-selection-bg: rgba(var(--dz-accent-rgb), 0.22);
}


/* ==========================================================
   COLOUR THEME  —  dark (default) and light
   Every page colour resolves to these. "fg" is the ink (text,
   rules, the white fills of hover buttons), "bg" the page. Soft
   tints are written as rgba(var(--dz-fg-rgb), alpha), so they
   flip with the theme too. The orange accent never changes, and
   anything sitting on a photo or video keeps its own colours.

   The theme is html[data-theme]: set before first paint by the
   inline script in each page's <head>, switched by the header
   button (js/main.js → initThemeToggle).
========================================================== */
:root {
  color-scheme: dark;

  --dz-fg-rgb: 255, 255, 255;
  --dz-bg-rgb: 0, 0, 0;
  --dz-fg: rgb(var(--dz-fg-rgb));
  --dz-bg: rgb(var(--dz-bg-rgb));

  /* raised panels — menu layers, dropdowns, tag pills, photo wells */
  --dz-surface-1: #0f0f0f;
  --dz-surface-2: #131313;
  --dz-surface-3: #1d1d1d;

  --dz-success: #7CFF9B;

  /* added to the alpha of every faded text colour / label opacity —
     0 here, raised in light mode so soft greys don't wash out */
  --dz-text-lift: 0;
}

:root[data-theme="light"] {
  color-scheme: light;

  --dz-fg-rgb: 12, 12, 12;
  --dz-bg-rgb: 242, 242, 242;          /* #f2f2f2 */

  --dz-surface-1: #e9e9e9;
  --dz-surface-2: #e3e3e3;
  --dz-surface-3: #d9d9d9;

  --dz-success: #1f9d4c;

  /* Dark ink on a light page reads thinner and fainter than light on
     dark, so weights step up and faded text gets darker.

     Degular gets one step, not two: at 500/600 the display type read
     as a proper medium and looked heavy. Inter keeps the full step
     (--dz-regular-weight) — body copy is where the thinness showed. */
  --dz-heading-weight: 400;
  --dz-regular-weight: 500;
  --dz-medium-weight:  500;
  --dz-text-lift:      0.15;
}

/* Two pieces of big Degular display type follow the body weight rather
   than the heading weight: the footer wordmark heading and the project
   titles on the portfolio cards. In light mode that would leave them a
   step heavier than every other heading — put them with the rest. */
:root[data-theme="light"] :is(.footer-heading, .dz-content h2) {
  font-weight: var(--dz-heading-weight);
}

/* White-only SVG artwork (logo, client logos, service icons, quote
   marks, the hero scroll arrow) sits on the page background — flip it
   to black in light mode. Artwork on photos keeps its white. */
:root[data-theme="light"] :is(
  .nav-logo img,
  .hero-scroll-arrow img,
  .marquee img,
  .service-card__icon,
  .quote-icon img
) {
  filter: invert(1);
}

/* THEME SWITCH — the new theme rises in from the bottom edge to the
   top, easing in and out. js wraps the switch in a View Transition;
   the old page stays put underneath while the new one is unclipped
   upwards over it. */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-new(root) {
  animation: dz-theme-rise 0.9s cubic-bezier(0.65, 0, 0.35, 1) both;
}

@keyframes dz-theme-rise {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* Browsers without View Transitions: a short colour cross-fade instead
   (js adds the class for ~400ms). Only colours animate, nothing moves. */
:root.theme-switching,
:root.theme-switching *,
:root.theme-switching *::before,
:root.theme-switching *::after {
  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    fill 0.35s ease,
    filter 0.35s ease !important;
}

/* a fixed 5rem overflows narrow screens — one override per breakpoint
   and every page hero heading steps down together */
@media (max-width: 980px) {
  :root { --dz-page-hero-size: 3.5rem; }
}

@media (max-width: 600px) {
  :root { --dz-page-hero-size: 2.5rem; }
}

/* ==========================================================
   MOBILE SYSTEM  (≤ 1024px — phones AND tablets)
   Phones and tablets share one simple stacked layout with no
   pinned or scroll-driven animation (the GSAP choreography in
   js/*.js only starts at 1025px). Every rule for it hangs off this
   one breakpoint and these tokens, so all pages share one gutter,
   one section rhythm and one type scale.
========================================================== */
@media (max-width: 1024px) {
  :root {
    --dz-gutter: 1.25rem;                            /* side gutter on every page */
    --dz-section-py: clamp(4rem, 16vw, 5rem);        /* section top + bottom */

    --dz-hero-size: clamp(2.6rem, 12.4vw, 3.4rem);   /* home hero */
    --dz-section-size: clamp(1.85rem, 8.4vw, 2.35rem);
    --dz-section-line: 1.12;
    --dz-body-size: 1rem;
    --dz-eyebrow-gap: 1rem;
  }
}

/* the same system, scaled up for tablet screens (768px – 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --dz-gutter: clamp(2rem, 5vw, 3rem);
    --dz-section-py: clamp(5rem, 10vw, 7rem);

    --dz-hero-size: clamp(3.4rem, 8vw, 5rem);
    --dz-section-size: clamp(2.35rem, 5vw, 3.25rem);
    --dz-body-size: 1.1rem;
    --dz-eyebrow-gap: 1.25rem;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Images carry their real width/height attributes so the browser reserves the exact space before
   they load (no layout shift, and scroll animations measure the right positions). The attributes
   would otherwise act as a fixed pixel height wherever CSS only sets a width — keep the proportions. */
:where(img[width][height]) {
  height: auto;   /* zero specificity: any height the page's own CSS sets still wins */
}

/* visually hidden, still read aloud and still part of a link's text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Images are not draggable and not selectable — the drag handler in
   js/main.js covers the same ground for browsers that ignore these.
   A deterrent only: the files stay reachable by URL. */
img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;   /* no "Save image" sheet on iOS long-press */
  user-select: none;
  -webkit-user-select: none;
}

body {
  font-family: "Inter", sans-serif;
  /* a long word or email address wraps instead of widening the page */
  overflow-wrap: break-word;
  font-weight: var(--dz-regular-weight);
  color: rgba(var(--dz-fg-rgb), calc(0.85 + var(--dz-text-lift)));
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--dz-bg);
  cursor: auto;
  overflow-y: auto;
}

body.portfolio-active {
  cursor: none
}

body.portfolio-active .cursor {
  display: none;
}

html {
  scroll-behavior: auto;
  /* iOS inflates text after a rotate to landscape, which breaks line
     fits that were tuned in portrait */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "degular", sans-serif;
  font-weight: var(--dz-medium-weight);
  font-style: normal;
  color: var(--dz-fg);
}

/* Split line wrapper (REQUIRED) */
.dz-line-wrapper {
  display: block;
  overflow: hidden;
}

/* Hero line mask (used by inner pages) */
.ch-mask {
  display: block;
  overflow: hidden;
}

.dz-heading,
.dz-para {
  will-change: transform, opacity;
}


.cursor {
  position: fixed;
  top: 0;
  left: 0;

  width: 12px;
  height: 12px;
  border-radius: 50%;

  /* BLEND — the dot inverts whatever it passes over: white on the dark
     page, black on the light page and on white text, the negative of a
     photo. Difference only inverts against white, so the dot is white
     in both themes (var(--dz-fg) would be near-black in light mode and
     disappear). For a plain dot, delete the blend line and set the
     background back to var(--dz-fg). */
  background: #fff;
  mix-blend-mode: difference;

  pointer-events: none;
  z-index: 999999;

  transform: translate(-50%, -50%);
  will-change: transform;
}


.cursor-open {
  position: fixed;
  top: 0;
  left: 0;
  will-change: translate;   /* js/main.js dzFollow moves it with the translate property */
  pointer-events: none;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(25px);
  color: #fff;
  font-size: 15px;
  opacity: 0;
   /* mix-blend-mode:normal; */
  transform: scale(.6);
  transition: opacity .25s ease, transform .3s cubic-bezier(.22, 1, .36, 1);
  z-index: 9999;
}

body.portfolio-active .cursor-open {
  opacity: 1;
  transform: scale(1);
}

.work-project-active .cursor{
    opacity:0;
}

.work-project-active .cursor-open{
    opacity:1;
    transform:scale(1);
}

/* NO CUSTOM CURSOR ON TABLET AND MOBILE
   Both layers — the dot and the "View Projects" bubble — follow a
   mouse. A touch screen has none, so the dot just parks where the last
   tap landed and sits over the design as a stray speck.

   Width catches tablets and phones (and a desktop window dragged that
   narrow); hover / pointer catch touch devices at any size, like an
   iPad Pro in landscape at 1366px.

   The portfolio area hides the system pointer (cursor: none) because
   the bubble replaces it — with the bubble gone, give the pointer back
   or a narrow desktop window has no cursor at all over the cards. */
@media (max-width: 1024px), (hover: none), (pointer: coarse) {
  .cursor,
  .cursor-open {
    display: none;
  }

  body.portfolio-active {
    cursor: auto;
  }
}






















