/* ==========================================================================
   Kreeative — base styles: fonts, design tokens, reset, typography, page frame
   Values are taken 1:1 from the original Framer build (see docs/DESIGN.md).
   ========================================================================== */

/* ---- Fonts (self-hosted) ------------------------------------------------- */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 400; font-display: swap; src: url("../fonts/fraunces-300-400-latin.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; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 400; font-display: swap; src: url("../fonts/fraunces-300-400-latin-ext.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: "Fraunces"; font-style: italic; font-weight: 300 400; font-display: swap; src: url("../fonts/fraunces-italic-300-400-latin.woff2") format("woff2"); }

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/inter-400-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/inter-700-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter Variable"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-variable-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-tight-600-latin.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; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-tight-600-latin-ext.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: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-mono-400-latin.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; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-mono-400-latin-ext.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: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dm-mono-500-latin.woff2") format("woff2"); }

/* Metric-matched fallbacks so text doesn't jump while fonts load */
@font-face { font-family: "Fraunces Placeholder"; src: local("Times New Roman"); ascent-override: 84.71%; descent-override: 22.09%; line-gap-override: 0%; size-adjust: 115.45%; }
@font-face { font-family: "Inter Placeholder"; src: local("Arial"); ascent-override: 89.79%; descent-override: 22.36%; line-gap-override: 0%; size-adjust: 107.89%; }
@font-face { font-family: "Inter Tight Placeholder"; src: local("Arial"); ascent-override: 99.65%; descent-override: 24.81%; line-gap-override: 0%; size-adjust: 97.21%; }

/* ---- Tokens -------------------------------------------------------------- */
:root {
  /* colour */
  --c-black: #0f0f0f;                 /* headings, footer bg, dark buttons */
  --c-text: #313336;                  /* body copy */
  --c-text-60: rgba(0, 0, 0, 0.6);    /* secondary text */
  --c-text-40: rgba(0, 0, 0, 0.4);    /* mono labels */
  --c-muted: rgba(49, 51, 54, 0.6);   /* captions */
  --c-dashed: rgba(49, 51, 54, 0.3);  /* dashed borders */
  --c-white: #fff;
  --c-white-60: rgba(255, 255, 255, 0.6);
  --c-page: #fcfcfc;                  /* light page background */
  --c-page-dark: #262626;             /* case-study / 404 page background */
  --c-surface-2: #f8f8f8;             /* project card bg */
  --c-line: #ededed;                  /* light borders */
  --c-line-2: #e8e8e8;
  --c-line-3: #e3e3e3;
  --c-hairline: rgba(0, 0, 0, 0.08);
  --c-nav-link: #666;
  --c-pink: #ff0090;                  /* primary CTA */
  --c-pink-border: #ffe0f7;
  --c-pink-glow: rgba(255, 36, 149, 0.96);
  --c-blue: #09f;                     /* rich-text links */
  --c-link-case: #2652ff;             /* links on case-study pages */
  --c-link-case-hover: #2e2e2e;
  --c-orange: #fe4c22;                /* 404 accent */

  /* type */
  --f-serif: "Fraunces", "Fraunces Placeholder", serif;
  --f-sans: "Inter", "Inter Placeholder", sans-serif;
  --f-sans-tight: "Inter Tight", "Inter Tight Placeholder", sans-serif;
  --f-mono: "DM Mono", monospace;
  --f-inter-var: "Inter Variable", "Inter", "Inter Placeholder", sans-serif;

  /* radii */
  --r-card: 24px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;

  /* shadows (exact) */
  --sh-section: 0 0.602187px 0.602187px -1.25px rgba(0, 0, 0, 0.72), 0 2.28853px 2.28853px -2.5px rgba(0, 0, 0, 0.64), 0 10px 10px -3.75px rgba(0, 0, 0, 0.25);
  --sh-nav: 0 0.602187px 0.602187px -1.25px rgba(61, 61, 61, 0.35), 0 2.28853px 2.28853px -2.5px rgba(61, 61, 61, 0.31), 0 10px 10px -3.75px rgba(61, 61, 61, 0.12);
  --sh-photo: 0 0.722625px 0.722625px -1.08333px rgba(0, 0, 0, 0.286), 0 2.74624px 2.74624px -2.16667px rgba(0, 0, 0, 0.263), 0 12px 12px -3.25px rgba(0, 0, 0, 0.157);
  --sh-avatar: 0 0.722625px 0.722625px -1px rgba(0, 0, 0, 0.15), 0 2.74624px 2.74624px -2px rgba(0, 0, 0, 0.14), 0 12px 12px -3px rgba(0, 0, 0, 0.1);
  --sh-logo: 0 0.602187px 0.602187px -1.25px rgba(0, 0, 0, 0.18), 0 2.28853px 2.28853px -2.5px rgba(0, 0, 0, 0.159), 0 10px 10px -3.75px rgba(0, 0, 0, 0.0625);
  --sh-toggle: 0 0.722625px 0.722625px -1.08333px rgba(0, 0, 0, 0.076), 0 2.74624px 2.74624px -2.16667px rgba(0, 0, 0, 0.07), 0 12px 12px -3.25px rgba(0, 0, 0, 0.042);
  --sh-card: 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --sh-cta-hero: 0 1px 2px 0 rgba(255, 36, 149, 0.96);
  --sh-cta-footer: 0 0.602187px 1.08394px -1.25px rgba(255, 255, 255, 0.18), 0 2.28853px 4.11936px -2.5px rgba(255, 255, 255, 0.16), 0 10px 18px -3.75px rgba(255, 255, 255, 0.06), inset 0 -0.722625px 1.01167px -0.833333px rgba(255, 255, 255, 0.5), inset 0 -2.74624px 3.84474px -1.66667px rgba(255, 255, 255, 0.5), inset 0 -12px 16.8px -2.5px rgba(255, 255, 255, 0.5);
  --sh-back: 0 0.602187px 0.48175px -1.16667px rgba(0, 0, 0, 0.17), 0 2.28853px 1.83083px -2.33333px rgba(0, 0, 0, 0.15), 0 10px 8px -3.5px rgba(0, 0, 0, 0.08);

  /* layout */
  --frame: 8px;          /* gap + padding around the section cards */
  --container: 1560px;
  --pad-x: 36px;         /* section side padding, desktop/tablet */
}
@media (max-width: 809.98px) { :root { --pad-x: 15px; } }

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; padding: 0; }
body { background: var(--c-page); color: var(--c-black); font-family: var(--f-sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body.theme-dark { background: var(--c-page-dark); }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-pink); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Typography presets (Framer text styles) ----------------------------- */
.t-display { font-family: var(--f-serif); font-weight: 300; font-size: 48px; line-height: 1.2; letter-spacing: -0.08em; color: var(--c-black); text-align: center; }
.t-h2      { font-family: var(--f-serif); font-weight: 300; font-size: 44px; line-height: 1.15; letter-spacing: -0.06em; color: var(--c-black); text-align: center; }
.t-h3      { font-family: var(--f-serif); font-weight: 300; font-size: 38px; line-height: 1.2; letter-spacing: -0.06em; color: var(--c-black); text-align: left; }
.t-h4      { font-family: var(--f-sans); font-weight: 400; font-size: 24px; line-height: 1.4; letter-spacing: -0.04em; color: var(--c-black); font-feature-settings: "blwf" on, "cv09" on, "cv03" on, "cv04" on, "cv11" on; }
.t-h5      { font-family: var(--f-sans); font-weight: 700; font-size: 18px; line-height: 1.4; letter-spacing: -0.04em; color: #000; font-feature-settings: "blwf" on, "cv09" on, "cv03" on, "cv04" on, "cv11" on; }
.t-body-l  { font-family: var(--f-sans); font-weight: 400; font-size: 18px; line-height: 1.65; letter-spacing: -0.03em; color: var(--c-text); }
.t-body-m  { font-family: var(--f-sans); font-weight: 400; font-size: 16px; line-height: 1.65; letter-spacing: -0.03em; color: var(--c-text); }
.t-caption { font-family: var(--f-sans); font-weight: 400; font-size: 14px; line-height: 1.2; letter-spacing: -0.03em; color: var(--c-muted); }
.t-link    { font-family: var(--f-sans); font-weight: 400; font-size: 15px; line-height: 1.8; letter-spacing: -0.04em; color: var(--c-text-60); }
.t-mono    { font-family: var(--f-mono); font-weight: 400; font-size: 16px; line-height: 1.25; letter-spacing: -0.02em; color: var(--c-text-40); }
.t-nav     { font-family: var(--f-sans); font-weight: 500; font-size: 15px; line-height: 2; letter-spacing: -0.2px; color: var(--c-nav-link); }
strong, b { font-weight: 700; }
.t-display strong, .t-h2 strong, .t-h3 strong { font-weight: 400; }

@media (max-width: 1199.98px) {
  .t-display { font-size: 38px; }
  .t-h2 { font-size: 40px; }
  .t-h3 { font-size: 32px; }
}
@media (max-width: 809.98px) {
  .t-h2 { font-size: 32px; }
  .t-h4 { font-size: 22px; }
  .t-body-l { font-size: 16px; letter-spacing: -0.02em; }
}

/* Rich text (multi-paragraph copy) */
.rich > * + * { margin-top: 20px; }
.rich a { color: var(--c-blue); text-decoration: underline; }
.rich ul { position: relative; padding-inline-start: 1.1em; }
.rich ul > li { position: relative; }
.rich ul > li::before { content: "•"; position: absolute; inset-inline-start: -1.1em; }
.rich ul > li + li { margin-top: 0; }
.pre-wrap { white-space: pre-wrap; word-break: break-word; }

/* ---- Page frame ----------------------------------------------------------- */
.page { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--frame); padding: var(--frame); min-height: 100vh; width: 100%; overflow: clip; }
.card { position: relative; width: 100%; background: var(--c-white); border-radius: var(--r-card); box-shadow: var(--sh-section); }
.container { width: 100%; max-width: var(--container); }
