/* ==========================================================================
   tucs.me — base styles
   Breakpoints (same as the Framer site):
     Desktop  ≥ 1200px
     Tablet   810px – 1199.98px
     Phone    ≤ 809.98px
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Antonio"; src: url("/assets/fonts/antonio-latin-ext.woff2") format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; 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: "Antonio"; src: url("/assets/fonts/antonio-latin.woff2") format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; 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"; src: url("/assets/fonts/inter-300-latin-ext.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; 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"; src: url("/assets/fonts/inter-300-latin.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; 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"; src: url("/assets/fonts/inter-400-latin-ext.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; 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"; src: url("/assets/fonts/inter-400-latin-b.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; 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"; src: url("/assets/fonts/inter-400i-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; 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"; src: url("/assets/fonts/inter-600-latin-ext.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; 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"; src: url("/assets/fonts/inter-600-latin.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; 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"; src: url("/assets/fonts/inter-700-latin-ext.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; 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"; src: url("/assets/fonts/inter-700-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; 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"; src: url("/assets/fonts/inter-700i-latin.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; 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; }

/* ---------- Colour tokens (names match the Framer colour styles) ---------- */
:root {
  --text: #303030;          /* Grey 200 | White      */
  --accent: #5e67e6;        /* Purple | Green        */
  --on-accent: #fff;        /* White | Dark          */
  --bg: #fff;               /* Theme White | Dark    */
  --grey-100: #dadada;
  --grey-150: #8f8f8f;
  --grey-50: #f5f5f5;       /* Grey 50 | Dark        */
  --red: #f24;
  --green: #0bde66;
  --nav-bg: #ffffffe6;
  --nav-border: #dadada;
  --spot-dodge: #000;       /* 404 Color Dodge       */
  --spot-soft: #8f8f8f;     /* 404 Soft Light        */
  --loading: #fff0;
  --black: #000;
  --white: #fff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text: #fff; --accent: #d0ff71; --on-accent: #303030; --bg: #1a1a1b;
    --grey-100: #5c5c5c; --grey-150: #b5b5b5; --grey-50: #333;
    --nav-bg: #0f0f0fe6; --nav-border: #0f0f0f;
    --spot-dodge: #e3af20; --spot-soft: #d4d4d4; --loading: #0f0f0f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --text: #fff; --accent: #d0ff71; --on-accent: #303030; --bg: #1a1a1b;
  --grey-100: #5c5c5c; --grey-150: #b5b5b5; --grey-50: #333;
  --nav-bg: #0f0f0fe6; --nav-border: #0f0f0f;
  --spot-dodge: #e3af20; --spot-soft: #d4d4d4; --loading: #0f0f0f;
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Inter Placeholder", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; }

/* ---------- Text styles (Framer text presets) ---------- */
.t-h1 { font-family: "Antonio", sans-serif; font-weight: 700; font-size: 120px; line-height: 1.1em; letter-spacing: -0.03em; text-transform: uppercase; color: var(--text); }
.t-h2 { font-family: "Antonio", sans-serif; font-weight: 700; font-size: 60px; line-height: 1.3em; text-transform: uppercase; color: var(--text); text-align: left; }
.t-h3 { font-family: "Antonio", sans-serif; font-weight: 400; font-size: 32px; line-height: 1.3em; text-transform: uppercase; color: var(--text); text-align: left; }
.t-h4 { font-family: "Antonio", sans-serif; font-weight: 400; font-size: 26px; line-height: 1.3em; text-transform: uppercase; color: var(--text); text-align: left; }
.t-h5 { font-family: "Inter", sans-serif; font-weight: 700; font-size: 18px; line-height: 1.4em; letter-spacing: -0.04em; }
.t-h6 { font-family: "Inter", sans-serif; font-weight: 600; font-size: 16px; line-height: 1.4em; letter-spacing: -0.02em; }
.t-body-l { font-family: "Inter", sans-serif; font-weight: 400; font-size: 40px; line-height: 1em; text-align: center; color: var(--on-accent); }
.t-body-m { font-family: "Inter", sans-serif; font-weight: 300; font-size: 18px; line-height: 1.5em; color: var(--text); text-align: left; }
.t-body-mb { font-family: "Inter", sans-serif; font-weight: 600; font-size: 18px; line-height: 1.3em; color: var(--text); text-align: left; }
.t-body-s { font-family: "Inter", sans-serif; font-weight: 300; font-size: 14px; line-height: 1.5em; color: var(--grey-150); text-align: left; }
.t-body-sb { font-family: "Inter", sans-serif; font-weight: 600; font-size: 14px; line-height: 1em; color: var(--text); }
.t-nav { font-family: "Inter", sans-serif; font-weight: 300; font-size: 16px; line-height: 1.5em; color: var(--grey-150); white-space: pre; }

@media (min-width: 810px) and (max-width: 1199.98px) {
  .t-h1 { font-size: 96px; }
  .t-h2 { font-size: 48px; }
  .t-h4 { font-size: 20px; }
  .t-body-l { font-size: 32px; }
  .t-body-m, .t-body-mb { font-size: 16px; }
}
@media (max-width: 809.98px) {
  .t-h1 { font-size: 56px; }
  .t-h2 { font-size: 42px; }
  .t-h3 { font-size: 24px; }
  .t-h4 { font-size: 20px; }
  .t-body-l { font-size: 20px; }
  .t-body-m, .t-body-mb { font-size: 16px; }
}

/* Rich text (project write-ups) */
.rich { width: 100%; color: var(--text); }
.rich p, .rich li { font-family: "Inter", sans-serif; font-weight: 300; font-size: 18px; line-height: 1.5em; }
.rich p + p, .rich ul + p, .rich ol + p, .rich h4 + p, .rich p + h4, .rich ul + h4 { margin-top: 20px; }
.rich ul, .rich ol { padding-left: 1.5em; display: flex; flex-direction: column; }
.rich li { padding-left: 0.4em; }
.rich li::marker { font-size: 0.8em; }
.rich strong { font-weight: 700; }
.rich em { font-style: italic; }
.rich h4 { font-family: "Antonio", sans-serif; font-weight: 400; font-size: 26px; line-height: 1.3em; text-transform: uppercase; }
.rich a { color: var(--text); transition: color .2s cubic-bezier(.5,0,.88,.77); }
.rich a:hover { color: var(--accent); }
@media (max-width: 1199.98px) {
  .rich p, .rich li { font-size: 16px; }
  .rich h4 { font-size: 20px; }
}

/* Plain text links (contact info) — Framer link style */
.link { color: var(--accent); transition: color .2s cubic-bezier(.5,0,.88,.77); }

/* ---------- Spring easings (pre-computed from Framer's spring settings) ---------- */
:root{
  --ease-stiff500: linear(0, 0.0206, 0.0686, 0.1298, 0.1959, 0.2624, 0.3264, 0.3868, 0.4429, 0.4946, 0.5418, 0.5849, 0.6241, 0.6597, 0.692, 0.7212, 0.7477, 0.7717, 0.7934, 0.8131, 0.8308, 0.8469, 0.8615, 0.8747, 0.8866, 0.8974, 0.9072, 0.916, 0.924, 0.9312, 0.9378, 0.9437, 0.949, 0.9539, 0.9583, 0.9623, 0.9658, 0.9691, 0.972, 0.9747, 0.9771, 0.9793, 0.9813, 0.983, 0.9847, 0.9861, 0.9874, 0.9886, 0.9897, 0.9907, 0.9916, 0.9924, 0.9931, 0.9938, 0.9944, 0.9949, 0.9954, 0.9958, 0.9962, 0.9966, 0.9969, 0.9972, 0.9975, 0.9977, 0.9979, 0.9981, 0.9983, 0.9985, 0.9986, 0.9987, 0.9989, 0.999, 1);  --dur-stiff500: 720ms;
  --ease-d04b0: linear(0, 0.0229, 0.0788, 0.1532, 0.2361, 0.3208, 0.403, 0.4802, 0.5509, 0.6146, 0.6711, 0.7207, 0.7638, 0.801, 0.8329, 0.8601, 0.8832, 0.9027, 0.9191, 0.9329, 0.9445, 0.9541, 0.9621, 0.9688, 0.9743, 0.9789, 0.9827, 0.9858, 0.9884, 0.9905, 0.9922, 0.9936, 0.9948, 0.9958, 0.9965, 0.9972, 0.9977, 0.9981, 0.9985, 0.9988, 1);  --dur-d04b0: 400ms;
  --ease-d04b02: linear(0, 0.0224, 0.0794, 0.1581, 0.2486, 0.3435, 0.4375, 0.5269, 0.6093, 0.6833, 0.7484, 0.8044, 0.8518, 0.8911, 0.9231, 0.9487, 0.9688, 0.9841, 0.9954, 1.0036, 1.0091, 1.0125, 1.0144, 1.0151, 1.015, 1.0142, 1.0131, 1.0118, 1.0104, 1.0089, 1.0076, 1.0063, 1.0051, 1.0041, 1.0032, 1.0024, 1.0018, 1.0013, 1.0009, 1.0006, 1);  --dur-d04b02: 400ms;
  --ease-d1b0: linear(0, 0.0151, 0.0535, 0.107, 0.1694, 0.2361, 0.3039, 0.3706, 0.4346, 0.4949, 0.5509, 0.6024, 0.6493, 0.6917, 0.7298, 0.7638, 0.794, 0.8207, 0.8443, 0.865, 0.8832, 0.8991, 0.9129, 0.925, 0.9354, 0.9445, 0.9523, 0.9591, 0.9649, 0.97, 0.9743, 0.978, 0.9812, 0.984, 0.9863, 0.9884, 0.9901, 0.9916, 0.9928, 0.9939, 0.9948, 0.9956, 0.9963, 0.9968, 0.9973, 0.9977, 0.9981, 0.9984, 0.9986, 0.9988, 1);  --dur-d1b0: 1000ms;
}

/* ==========================================================================
   Components (each block mirrors a Framer component)
   ========================================================================== */

/* ---------- Page shell ---------- */
.page { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; background: var(--bg); }
.page > * { width: 100%; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; position: relative; }

/* Noise overlay (fixed) */
.noise {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 0;
  mix-blend-mode: color-dodge; opacity: .12; overflow: hidden; pointer-events: none;
  background-image: url("/assets/img/AVsssNQRylEZc5orEWvz8Q1wQT4.gif");
  background-repeat: repeat; background-position: left top; background-size: 250px auto;
}

/* Page transition (Framer: fade 0.2s, ease [.27,0,.51,1]) */
body.fade-in { animation: page-in .2s cubic-bezier(.27,0,.51,1) both; }
body.is-leaving { animation: page-out .2s cubic-bezier(.27,0,.51,1) both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes page-out { from { opacity: 1; } to { opacity: 0; } }

/* ---------- Navigation ---------- */
.nav-wrap { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 10; }
.nav {
  display: flex; flex-direction: row; align-items: center; justify-content: flex-end;
  gap: 40px; padding: 8px 10px; border-radius: 28px; overflow: hidden;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  will-change: transform; position: relative;
}
.nav__left { display: flex; align-items: center; gap: 10px; flex: none; }
.nav__menu { display: flex; align-items: center; gap: 40px; overflow: hidden; flex: none; transform-origin: 0% 50%; }
.nav__links { display: flex; align-items: center; gap: 20px; overflow: hidden; }
.nav__toggle { display: none; position: relative; flex: none; width: 40px; height: 40px; border-radius: 99px; background: var(--accent); overflow: hidden; cursor: pointer; }
.nav__toggle span { position: absolute; height: 2px; width: 12px; left: calc(50% - 6px); background: var(--on-accent); transition: all var(--dur-stiff500) var(--ease-stiff500); }
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { bottom: 16px; }

/* Desktop / Closed (after scrolling down) */
.nav[data-state="closed"] { gap: 0; padding: 8px 20px 8px 10px; }
.nav[data-state="closed"] .nav__menu { width: 1px; opacity: 0; }

/* Avatar + status pill */
.avatar-status { display: flex; align-items: center; gap: 10px; overflow: hidden; flex: none; }
.avatar-status__img { width: 40px; aspect-ratio: 1; border-radius: 99px; overflow: hidden; flex: none; }
.avatar-status__img img { width: 100%; height: 100%; object-fit: cover; }
.avatar-status__status { display: none; align-items: center; gap: 10px; position: relative; }
.avatar-status__dot { width: 6px; height: 6px; border-radius: 99px; background: var(--green); flex: none; order: 1; }
.avatar-status__glow { position: absolute; top: 50%; left: 98%; width: 6px; height: 6px; border-radius: 99px; background: var(--green); opacity: .5; transform: translate(-50%, -50%); z-index: 1; order: 2; }
.avatar-status__glow.is-glow { width: 40px; height: 40px; opacity: 0; transition: width .7s cubic-bezier(.12,.23,.5,1), height .7s cubic-bezier(.12,.23,.5,1), opacity .7s cubic-bezier(.12,.23,.5,1); }
.nav[data-state="closed"] .avatar-status { overflow: visible; }
.nav[data-state="closed"] .avatar-status__status { display: flex; }

/* Nav link (3D flip on hover) */
.nav-link { display: flex; height: 24px; overflow: hidden; flex: none; }
.nav-link__wrap { display: flex; flex-direction: column; align-items: center; height: 24px; transform-style: preserve-3d; transform-origin: 50% 0%; transform: perspective(1200px) rotateX(0deg); transition: transform var(--dur-d04b0) var(--ease-d04b0); }
.nav-link__text { color: var(--text); }
.nav-link__text--hover { color: var(--accent); transform-origin: 50% 0%; transform: rotateX(90deg); }
@media (hover: hover) and (min-width: 1200px) {
  .nav-link:hover .nav-link__wrap { transform: perspective(1200px) rotateX(-90deg); }
}

/* Secondary button (nav "Contact", 404 "Back Home") */
.btn-secondary {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 40px; padding: 3px 30px 4px; border-radius: 99px; overflow: hidden; flex: none;
  background: var(--text); will-change: transform;
}
.btn-secondary__fill { position: absolute; z-index: 1; width: 20px; height: 20px; bottom: -20px; left: -20px; border-radius: 99px; background: var(--accent); overflow: hidden; transition: all var(--dur-stiff500) var(--ease-stiff500); }
.btn-secondary__label { position: relative; z-index: 1; color: var(--on-accent); }
@media (hover: hover) and (min-width: 1200px) {
  .btn-secondary:hover .btn-secondary__fill { width: 180px; height: 180px; bottom: -75px; left: -31px; }
}

/* Primary button (outline, fill sweeps in on hover) */
.btn-primary {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 40px 8px; border-radius: 99px; overflow: hidden; flex: none;
  will-change: transform; background: transparent;
}
.btn-primary__fill { position: absolute; z-index: 1; border-radius: 99px; background: var(--accent);
  top: 100%; right: calc(100% + 4px); bottom: -15px; left: -19px;
  transition: top var(--dur-stiff500) var(--ease-stiff500), right var(--dur-stiff500) var(--ease-stiff500), bottom var(--dur-stiff500) var(--ease-stiff500), left var(--dur-stiff500) var(--ease-stiff500); }
.btn-primary__label { position: relative; z-index: 1; color: var(--accent); white-space: pre; transition: color var(--dur-stiff500) var(--ease-stiff500); }
@media (hover: hover) and (min-width: 1200px) {
  .btn-primary:hover .btn-primary__fill { top: -126px; right: -27px; bottom: -58px; left: -26px; }
  .btn-primary:hover .btn-primary__label { color: var(--on-accent); }
}

/* Submit button */
.btn-submit {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 40px 10px; border-radius: 99px; overflow: hidden; flex: none;
  background: transparent; transition: background-color var(--dur-stiff500) var(--ease-stiff500), opacity var(--dur-stiff500) var(--ease-stiff500);
}
.btn-submit__fill { position: absolute; z-index: 1; width: 15px; height: 19px; bottom: -15px; left: -19px; border-radius: 99px; background: var(--accent); overflow: hidden; transition: width var(--dur-stiff500) var(--ease-stiff500), height var(--dur-stiff500) var(--ease-stiff500); }
.btn-submit__label { position: relative; z-index: 1; color: var(--accent); user-select: none; transition: color var(--dur-stiff500) var(--ease-stiff500); white-space: pre; }
.btn-submit__spinner { display: none; position: relative; width: 20px; height: 20px; overflow: hidden;
  -webkit-mask: url("/assets/img/spinner-mask.svg") center / cover no-repeat; mask: url("/assets/img/spinner-mask.svg") center / cover no-repeat; }
.btn-submit__spinner::before { content: ""; position: absolute; inset: 0; background: conic-gradient(from 0deg at 50% 50%, var(--loading) 7.2deg, #fff 342deg); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (hover: hover) and (min-width: 1200px) {
  .btn-submit:hover::after { opacity: 0; }
  .btn-submit:hover .btn-submit__fill { width: 182px; height: 81px; }
  .btn-submit:hover .btn-submit__label { color: var(--on-accent); }
  .btn-submit:active { background: var(--accent); }
}
.btn-submit[data-state="loading"] { background: var(--accent); padding: 10px 40px; }
.btn-submit[data-state]::after { display: none; }
.btn-submit[data-state="loading"] .btn-submit__label { display: none; }
.btn-submit[data-state="loading"] .btn-submit__spinner { display: block; }
.btn-submit[data-state="success"] { background: var(--green); }
.btn-submit[data-state="success"] .btn-submit__label { color: var(--black); }
.btn-submit[data-state="error"] { background: var(--red); }
.btn-submit[data-state="error"] .btn-submit__label { color: var(--white); }
.btn-submit[data-state] .btn-submit__fill { display: none; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; justify-content: center; padding: 3px 15px; border-radius: 99px; overflow: hidden; flex: none; white-space: pre; }
.badge--solid { background: var(--accent); }
.badge--solid .t-body-s { color: var(--on-accent); }
.badge--outline { position: relative; }
.badge--outline .t-body-s { color: var(--accent); }

/* ---------- Circle "Hi" badge ---------- */
.circle-badge { width: 100%; height: 100%; border-radius: 99px; background: var(--accent); display: flex; align-items: center; justify-content: center; overflow: hidden; will-change: transform; }
.hi-anim { width: 50%; height: 50%; overflow: hidden; position: relative; }
.hi-anim__track { display: flex; flex-direction: column; width: 100%; height: 200%; transition: transform var(--dur-stiff500) var(--ease-stiff500); }
.hi-anim[data-state="wave"] .hi-anim__track { transform: translateY(-50%); }
.hi-anim__hi, .hi-anim__lottie { flex: none; width: 100%; height: 50%; display: flex; align-items: center; justify-content: center; }
.hi-anim__hi { white-space: pre; }
.hi-anim__lottie svg { width: 100% !important; height: 100% !important; }

/* ---------- Icons ---------- */
.icon { display: block; flex: none; }
.icon svg { display: block; width: 100%; height: 100%; }

/* ---------- Service accordion ---------- */
.accordion { width: 100%; display: flex; flex-direction: column; align-items: flex-start; }
.acc-item { width: 100%; border-bottom: 1px solid var(--grey-100); display: flex; flex-direction: column; transition: border-color var(--dur-stiff500) var(--ease-stiff500), padding var(--dur-stiff500) var(--ease-stiff500); cursor: pointer; }
.acc-item__top { width: 100%; height: 82px; display: flex; align-items: center; justify-content: space-between; }
.acc-item__title { color: var(--text); transition: color var(--dur-stiff500) var(--ease-stiff500); }
.acc-item__icon { width: 30px; height: 30px; color: var(--text); transform: rotate(180deg); transition: transform var(--dur-stiff500) var(--ease-stiff500); }
.acc-item__body { width: 100%; height: 1px; overflow: hidden; display: flex; flex-direction: column; gap: 20px; transition: height var(--dur-stiff500) var(--ease-stiff500); }
.acc-item.is-open { border-bottom-color: var(--accent); padding-bottom: 20px; }
.acc-item.is-open .acc-item__title { color: var(--accent); }
.acc-item.is-open .acc-item__icon { transform: none; }
@media (hover: hover) and (min-width: 1200px) {
  .acc-item:hover .acc-item__title { color: var(--accent); }
}
.bullet { display: flex; flex: none; align-items: flex-start; gap: 10px; width: 100%; overflow: hidden; }
.bullet__icon { width: 20px; height: 27px; color: var(--accent); }
.bullet__icon svg { width: 20px; height: 20px; margin-top: 3.5px; }
.bullet .t-body-m { flex: 1; }
@media (max-width: 1199.98px) {
  .acc-item__top { height: auto; padding: 20px 0; }
  .acc-item__icon { width: 24px; height: 24px; }
  .bullet__icon { width: 16px; height: 24px; }
  .bullet__icon svg { width: 16px; height: 16px; margin-top: 4px; }
}

/* ---------- Number card ---------- */
.number-card { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; overflow: hidden; }
.number-card__value { font-family: "Antonio", sans-serif; font-weight: 700; font-size: 60px; line-height: 1em; letter-spacing: 0; color: var(--accent); font-feature-settings: "zero", "tnum"; white-space: pre; margin: 0; }
.number-card__label { white-space: pre; }
@media (max-width: 809.98px) {
  .number-card { flex-direction: row; align-items: flex-end; gap: 10px; }
  .number-card__value { font-size: 48px; line-height: 1.1em; }
}

/* ---------- Info card (phone / email) ---------- */
.info-card { display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; }
.info-card .t-body-mb, .info-card .t-body-m { white-space: pre; }
.info-card a.t-body-m { color: var(--text); transition: color .2s cubic-bezier(.5,0,.88,.77); }
@media (hover: hover) { .info-card a.t-body-m:hover { color: var(--accent); } }
@media (max-width: 809.98px) {
  .info-card { flex-direction: row; align-items: center; gap: 5px; }
}

/* Social icon links */
.social { display: flex; align-items: center; justify-content: center; flex: none; }
.social .icon { width: 30px; height: 30px; color: var(--text); }
.social--empty { width: 0; height: 30px; }

/* ---------- Featured project card ---------- */
.fp-card { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.fp-card__cover { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; border-radius: 20px; overflow: hidden; will-change: transform; }
.fp-card__img { width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; display: block; }
.fp-card__overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .6;
  background: linear-gradient(180deg, rgba(12,12,13,.45) 0%, rgba(12,12,13,.8) 100%); }
.fp-card__info { position: absolute; inset: 0; z-index: 1; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.fp-card__text { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fp-card__title { color: var(--white); text-align: center; max-width: 800px; }
.fp-card__desc { color: var(--white); text-align: center; max-width: 600px; }
.fp-card__below { display: none; max-width: 600px; color: var(--text); }
@media (min-width: 810px) and (max-width: 1199.98px) {
  .fp-card { align-items: flex-start; }
  .fp-card__img { aspect-ratio: auto; height: 500px; }
}
@media (max-width: 809.98px) {
  .fp-card { gap: 20px; }
  .fp-card__img { aspect-ratio: auto; height: 350px; }
  .fp-card__info { gap: 10px; }
  .fp-card__text { padding: 0 20px; }
  .fp-card__title { font-family: "Antonio", sans-serif; font-weight: 400; font-size: 24px; line-height: 1.3em; }
  .fp-card__desc { display: none; }
  .fp-card__below { display: block; }
}

/* ---------- Project card (grid) ---------- */
.project-card { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.project-card__img { width: 100%; height: 320px; border-radius: 20px; overflow: hidden; }
.project-card__img img { width: 100%; height: 100%; object-fit: cover; }
.project-card__info { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; overflow: hidden; }
.project-card__title, .project-card__desc { width: 100%; }
.project-card__desc { color: var(--text); }
@media (min-width: 810px) and (max-width: 1199.98px) { .project-card__img { height: 260px; } }
@media (max-width: 809.98px) { .project-card__img { height: 200px; } }

/* ---------- Contact form ---------- */
.contact-form { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.contact-form__row { width: 100%; display: flex; gap: 20px; overflow: hidden; }
.field { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.field > .t-body-s { color: var(--accent); }
.input {
  width: 100%; padding: 12px 20px; border-radius: 99px; border: 0; outline: none;
  background: var(--grey-50); color: var(--text);
  font-family: "Inter", sans-serif; font-weight: 300; font-size: 16px; line-height: 1.2em; letter-spacing: 0;
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--grey-150); opacity: 1; }
.input:focus { box-shadow: inset 0 0 0 1px var(--accent); }
textarea.input { border-radius: 20px; padding: 20px; min-height: 140px; resize: vertical; display: block; }
.select-wrap { position: relative; width: 100%; }
.select-wrap select.input { padding-right: 46px; cursor: pointer; }
.select-wrap select.input:invalid { color: var(--grey-150); }
.select-wrap::after { content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -6px; pointer-events: none;
  background: var(--text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 809.98px) { .contact-form__row { flex-direction: column; } .contact-form .btn-submit { width: 100%; } }
@media (max-width: 1199.98px) {
  .contact-form .btn-submit { background: var(--accent); }
  .contact-form .btn-submit .btn-submit__label { color: var(--on-accent); }
  .contact-form .btn-submit .btn-submit__fill { display: none; }
}

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 9; width: 100%; background: var(--accent); display: flex; justify-content: center; overflow: hidden; }
.footer__inner { width: 100%; max-width: 1200px; padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 20px; }
.footer__top { width: 100%; display: flex; align-items: center; gap: 10px; }
.footer__col { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.footer__col--left { align-items: flex-start; }
.footer__col--center { align-items: center; }
.footer__col--right { align-items: flex-end; align-self: stretch; justify-content: space-between; }
.footer__item { display: flex; flex-direction: column; align-items: flex-start; }
.footer__col--right .footer__item { height: 100%; justify-content: space-between; }
.footer .t-body-s, .footer .t-body-mb, .footer a { color: var(--on-accent); }
.footer__social { display: flex; align-items: center; gap: 10px; }
.footer__social .icon { width: 24px; height: 24px; color: var(--on-accent); }
.footer__divider { width: 100%; height: 1px; background: var(--on-accent); }
.footer__bottom { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.footer__bottom > div { flex: 1; max-width: 50%; display: flex; flex-direction: column; }
@media (max-width: 809.98px) {
  .footer__inner { gap: 40px; padding: 40px 20px; }
  .footer__top { flex-direction: column; align-items: flex-start; gap: 20px; width: auto; align-self: center; }
  .footer__col { flex: none; align-items: flex-start; }
  .footer__col--right { align-self: auto; justify-content: center; }
  .footer__item { flex-direction: row; align-items: center; gap: 10px; }
  .footer__col--right .footer__item { height: auto; justify-content: flex-start; }
  .footer__social { gap: 20px; }
  .footer__bottom { flex-direction: column; justify-content: flex-start; gap: 20px; }
  .footer__bottom > div { max-width: 100%; align-items: center; }
}

/* ---------- Theme switch ---------- */
.theme-switch { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 9;
  width: 40px; height: 20px; border-radius: 10px; background: var(--grey-150); cursor: pointer; padding: 0 5px; }
.theme-switch__knob { position: absolute; top: 2.5px; left: 2.5px; width: 15px; height: 15px; border-radius: 50%; background: var(--on-accent); transition: left .2s; }
.theme-switch[aria-pressed="true"] .theme-switch__knob { left: calc(100% - 17.5px); }

/* ---------- Custom cursor (desktop only) ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none; display: none; }
@media (hover: hover) and (pointer: fine) { .cursor.is-active { display: block; } html.has-cursor, html.has-cursor * { cursor: none !important; } }
.cursor__body { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  width: 16px; height: 16px; border-radius: 99px; background: var(--accent); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: width var(--dur-d04b02) var(--ease-d04b02), height var(--dur-d04b02) var(--ease-d04b02), border-radius var(--dur-d04b02) var(--ease-d04b02), background-color var(--dur-d04b02) var(--ease-d04b02), transform var(--dur-d04b02) var(--ease-d04b02); }
.cursor__arrow { width: 30px; height: 30px; color: var(--on-accent); display: none; flex: none; transform: rotate(-45deg); }
.cursor__images { position: absolute; top: 0; left: 50%; margin-left: -97.5px; width: 195px; display: none; flex-direction: column; transition: transform var(--dur-d04b02) var(--ease-d04b02); }
.cursor__images img { width: 195px; height: 114px; object-fit: cover; display: block; flex: none; }
.cursor[data-variant="blend"] .cursor__body { mix-blend-mode: color-burn; }
.cursor[data-variant="project"] .cursor__body { width: 70px; height: 70px; }
.cursor[data-variant="project"] .cursor__arrow { display: block; }
.cursor[data-variant^="service"] .cursor__body { width: 195px; height: 114px; border-radius: 10px; background: transparent; transform: translate(20px, -50%) rotate(8deg); }
.cursor[data-variant^="service"] .cursor__images { display: flex; }
.cursor[data-variant="service-2"] .cursor__images { transform: translateY(-114px); }
.cursor[data-variant="service-3"] .cursor__images { transform: translateY(-228px); }
.cursor[data-variant="service-4"] .cursor__images { transform: translateY(-342px); }

/* Utility */
.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; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }

/* Appear-on-load initial states (only when JS runs) */
.js [data-appear="left"] { opacity: 0; transform: translateX(150px); }
.js [data-appear="right"] { opacity: 0; transform: translateX(-150px); }
.js [data-avatar-fx] { transform: perspective(1200px) scale(0) rotateX(-180deg); }

/* ---------- Tablet & phone navigation ---------- */
@media (max-width: 1199.98px) {
  .nav { flex-direction: column; justify-content: center; gap: 0; padding: 8px 10px; }
  .nav__left { gap: 20px; width: 100%; justify-content: center; }
  .nav__toggle { display: block; }
  .nav .avatar-status { overflow: visible; }
  .nav .avatar-status__status { display: flex; }
  .nav__menu { display: none; }
  .nav[data-state="m-open"] { width: 300px; gap: 40px; padding: 10px 10px 20px; }
  .nav[data-state="m-open"] .nav__left { justify-content: space-between; }
  .nav[data-state="m-open"] .avatar-status__status { display: none; }
  .nav[data-state="m-open"] .nav__toggle span { width: 20px; left: calc(50% - 10px); }
  .nav[data-state="m-open"] .nav__toggle span:first-child { top: 19px; transform: rotate(45deg); }
  .nav[data-state="m-open"] .nav__toggle span:last-child { bottom: 19px; transform: rotate(-45deg); }
  .nav[data-state="m-open"] .nav__menu { display: flex; flex-direction: column; width: 100%; gap: 40px; }
  .nav[data-state="m-open"] .nav__links { flex-direction: column; gap: 40px; width: 100%; overflow: visible; }
  .nav .nav-link__text--hover { display: none; }
  .nav .btn-secondary { background: var(--accent); }
  .nav .btn-secondary__fill { display: none; }
}

/* Framer draws borders on top of the box without changing its size */
.nav::after, .btn-primary::after, .btn-submit::after, .badge--outline::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  border: 1px solid var(--accent); transition: opacity var(--dur-stiff500) var(--ease-stiff500);
}
.nav::after { border-color: var(--nav-border); }

.contact-form__msg { min-height: 0; color: var(--text); }
.contact-form__msg:empty { display: none; }
.cf-turnstile:empty { display: none; }

/* ==========================================================================
   Page layouts
   ========================================================================== */

/* ---------- Shared section bits ---------- */
.text-wrap { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; overflow: hidden; }
.text-wrap > * { width: 100%; }
.lede { max-width: 500px; }

/* ==========================  HOME  ========================== */
.hero-stage { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* Sticky avatar track (Hero → Service → About) */
.sticky-wrap { position: relative; z-index: 1; width: 100%; height: 300vh; display: flex; flex-direction: row; align-items: flex-start; justify-content: center; }
.sticky-container { position: sticky; top: 0; z-index: 1; flex: 1 0 0; height: 100vh; display: flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden; }

.avatar-wrap { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; transform-style: preserve-3d; transform: perspective(1200px); will-change: transform; }
.avatar-flip { position: relative; flex: none; width: 340px; aspect-ratio: .714286; transform-style: preserve-3d; transform: perspective(2000px); }
.avatar-face { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; border-radius: 20px; overflow: hidden; transform: translate(-50%, -50%) perspective(1200px); will-change: transform; }
.avatar-face img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.avatar-face--back { transform: translate(-50%, -50%) perspective(1200px) rotateY(180deg); backface-visibility: visible; }
.avatar-face--front { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.avatar-badge { position: absolute; z-index: 10; top: 99%; left: 1%; width: 120px; aspect-ratio: 1; transform: translate(-50%, -50%) translateZ(30px); }

/* Hero / Service / About overlay */
.home-content { position: absolute; top: 0; left: 0; z-index: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.hero { position: relative; z-index: 1; width: 100%; height: 100vh; display: flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden; }
.hero__container { width: 100%; max-width: 1200px; height: 100vh; display: flex; align-items: center; justify-content: center; gap: 370px; overflow: hidden; }
.hero__side { flex: 1 0 0; max-width: 50%; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero__side--left { align-items: flex-end; }
.hero__side--right { align-items: flex-start; }
.hero__heading { position: relative; display: flex; }
.hero__heading--left { flex-direction: column; align-items: center; padding-right: 10px; }
.hero__heading--right { flex-direction: row; align-items: center; gap: 10px; }
.hero__heading .t-h1 { white-space: pre; }
.hero__name { position: absolute; z-index: 1; left: 5px; top: -45px; width: 293px; display: flex; overflow: hidden; }
.hero__name .t-h3 { white-space: pre; }
.hero__loc { position: absolute; z-index: 1; right: 0; bottom: -40px; width: 89.9094%; display: flex; justify-content: center; overflow: hidden; }
.hero__loc .t-body-m { flex: 1 0 0; text-align: right; }

.service, .about { position: relative; z-index: 1; width: 100%; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.about { flex-direction: column; gap: 10px; }
.service .container, .about .container { padding: 0 40px; display: flex; align-items: center; justify-content: flex-start; overflow: hidden; }
.service__col { width: 600px; display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }
.about__wrap { flex: 1 0 0; max-width: 600px; display: flex; flex-direction: column; align-items: flex-start; gap: 40px; overflow: hidden; }
.about__wrap .text-wrap { gap: 10px; }
.about__numbers { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(50px, 1fr)); gap: 0; align-items: start; overflow: hidden; }
.about__contact { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(50px, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 0; overflow: hidden; }
.about__social { display: flex; align-items: center; gap: 20px; }

/* Featured projects (home + /projects) */
.projects { position: relative; width: 100%; display: flex; justify-content: center; align-items: center; gap: 10px; }
.projects__container { z-index: 1; padding: 120px 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }
.featured { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 120px; }
.featured__item { position: sticky; top: 80px; z-index: 1; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 120px; will-change: transform; }
.projects__btn { width: 100%; display: flex; justify-content: center; align-items: center; gap: 10px; overflow: hidden; }

/* Contact */
.contact { position: relative; z-index: 1; width: 100%; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.contact__container { padding: 120px 40px; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; }
.contact__avatar-col { width: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.contact__avatar { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; transform-style: preserve-3d; transform: perspective(1200px); }
.contact__img { width: 340px; aspect-ratio: .714286; border-radius: 20px; overflow: hidden; flex: none; }
.contact__img img { width: 100%; height: 100%; object-fit: cover; }
.contact__col { width: 50%; display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }

/* ---------- Home: tablet ---------- */
@media (min-width: 810px) and (max-width: 1199.98px) {
  .avatar-flip, .contact__img { width: 260px; }
  .avatar-badge { width: 80px; }
  .hero__container { flex-direction: column; gap: 430px; }
  .hero__side { height: auto; max-width: 100%; width: 100%; flex: none; }
  .hero__side--left { overflow: visible; padding: 7px 0 0 100px; align-items: flex-start; }
  .hero__side--right { padding: 0 100px 0 0; align-items: flex-end; }
  .hero__heading--left { align-items: flex-start; }
  .hero__name { position: relative; left: auto; top: auto; width: 100%; padding-left: 5px; }
  .hero__heading--right { flex-direction: column; align-items: flex-end; }
  .hero__loc { position: relative; right: auto; bottom: auto; width: 100%; }
  .service__col { width: 50%; }
  .about .container { flex-direction: column; align-items: flex-start; gap: 60px; }
  .about__wrap { max-width: 55%; flex: none; width: 100%; }
  .about__wrap .text-wrap { width: 365px; }
  .about__numbers { grid-template-columns: repeat(2, minmax(50px, 1fr)); gap: 20px; }
  .about__contact { grid-template-columns: repeat(2, minmax(50px, 1fr)); gap: 20px; }
  .contact__container { flex-direction: column; gap: 80px; }
  .contact__col { width: 100%; }
}

/* ---------- Home: phone ---------- */
@media (max-width: 809.98px) {
  .avatar-flip, .contact__img { width: 180px; }
  .sticky-wrap { position: absolute; top: 0; height: 100vh; flex-direction: column; }
  .avatar-badge, .contact .avatar-badge { width: 50px; top: auto; bottom: 30px; left: -23px; transform: none; }
  .home-content { position: relative; }
  .hero__container { flex-direction: column; gap: 280px; }
  .hero__side { height: auto; max-width: 100%; width: 100%; flex: none; align-items: center; }
  .hero__side--left { overflow: visible; padding-top: 25px; }
  .hero__heading--left { padding: 0; }
  .hero__name { position: relative; left: auto; top: auto; width: 100%; justify-content: center; }
  .hero__heading--right { flex-direction: column; width: 100%; }
  .hero__loc { position: relative; right: auto; bottom: auto; width: 100%; padding: 0 20px; gap: 0; }
  .hero__loc .t-body-m { text-align: center; }
  .service, .about { height: auto; flex-direction: column; }
  .service .container, .about .container { padding: 80px 20px; }
  .about .container { flex-direction: column; align-items: flex-start; gap: 40px; }
  .service__col { width: 100%; }
  .about__wrap { max-width: 100%; flex: none; width: 100%; }
  .sticky-container { flex: none; width: 100%; }
  .about__numbers { display: flex; flex-direction: column; align-items: flex-start; gap: 40px; width: auto; }
  .about__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
  .projects { flex-direction: column; }
  .projects__container { padding: 80px 20px; }
  .featured { gap: 80px; }
  .featured__item { position: relative; top: auto; gap: 80px; }
  .contact { flex-direction: column; }
  .contact__container { flex-direction: column; gap: 40px; padding: 80px 20px; }
  .contact__avatar-col, .contact__col { width: 100%; }
}

/* ==========================  /projects  ========================== */
.projects-page { width: 100%; padding-top: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.more { padding: 0 40px 120px; display: flex; justify-content: center; align-items: flex-start; }
.more__wrap { flex: 1 0 0; display: flex; flex-direction: column; align-items: center; gap: 40px; overflow: hidden; }
.more__head { width: 100%; display: flex; align-items: center; gap: 20px; overflow: hidden; }
.more__head .t-h2 { white-space: pre; }
.more__line { flex: 1 0 0; height: 1px; background: var(--grey-150); }
.more__grid { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(50px, 1fr)); gap: 80px 40px; align-items: start; }
@media (max-width: 1199.98px) { .projects-page { padding-top: 40px; } }
@media (max-width: 809.98px) {
  .more { padding: 0 20px 80px; }
  .more__grid { display: flex; flex-direction: column; gap: 80px; }
}

/* ==========================  Project detail  ========================== */
.case { width: 100%; padding-top: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.case__container { width: 100%; max-width: 1000px; padding: 120px 0; display: flex; justify-content: center; align-items: flex-start; gap: 80px; }
.case__wrap { flex: 1 0 0; max-width: 1200px; display: flex; flex-direction: column; align-items: center; gap: 120px; }
.case__info { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.case__info .text-wrap { align-items: center; overflow: visible; }
.case__meta { width: 100%; padding-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(50px, 1fr)); gap: 10px; align-items: start; overflow: hidden; }
.case__meta-item { display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; }
.case__meta-item > * { width: 100%; }
.case__meta-item .t-body-mb { color: var(--accent); }
.case__content { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 68px; }
.case__cover { width: 100%; height: 600px; border-radius: 20px; overflow: hidden; }
.case__cover img, .case__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case__block { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 40px; overflow: hidden; }
.case__block .text-wrap { align-items: center; }
.case__row { width: 100%; display: flex; align-items: center; justify-content: center; gap: 32px; overflow: hidden; }
.case__row--tight { gap: 10px; }
.case__img { flex: 1 0 0; display: flex; overflow: hidden; }
.case__img--r { border-radius: 20px; }
.case__img--h300 { height: 300px; }
.case__img--h500 img { height: 500px; }
.case__more { width: 100%; max-width: 1000px; padding: 0 0 120px; display: flex; justify-content: center; align-items: flex-start; }
@media (min-width: 810px) and (max-width: 1199.98px) {
  .case { padding-top: 40px; }
  .case__container { padding: 120px 40px; }
  .case__cover { height: 500px; }
  .case__img--h300 { height: 250px; }
  .case__img--h300.case__img--wide { height: 240px; }
  .case__img--h500 img { height: 400px; }
  .case__more { padding: 0 40px 120px; }
}
@media (max-width: 809.98px) {
  .case { padding-top: 40px; }
  .case__container { padding: 80px 20px; }
  .case__wrap { gap: 40px; }
  .case__meta { grid-template-columns: repeat(2, minmax(50px, 1fr)); }
  .case__content { gap: 80px; }
  .case__cover { height: 350px; }
  .case__row { flex-direction: column; }
  .case__img--h300 { height: auto; }
  .case__img--h300 img { height: 250px; }
  .case__img--h300.case__img--wide { height: 110px; }
  .case__img--h300.case__img--wide img { height: 100%; }
  .case__img--h500 img { height: 330px; }
  .case__img { width: 100%; flex: none; }
  .case__more { padding: 0 20px 80px; }
}

/* ==========================  404  ========================== */
.e404 { position: relative; width: 100%; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; overflow: hidden; }
.e404 .hero { overflow: hidden; }
.e404__image-wrap { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; overflow: hidden; }
.e404__image { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; transform-style: preserve-3d; transform: perspective(1200px); }
.e404__img { width: 340px; aspect-ratio: .714286; border-radius: 20px; overflow: hidden; flex: none; transform: perspective(2000px); }
.e404__img img { width: 100%; height: 100%; object-fit: cover; }
.e404__btn { position: absolute; z-index: 10; bottom: 26px; left: 50%; transform: translateX(-50%); }
.e404__text { text-align: center; color: var(--text); }
.e404__btn { background: var(--accent); }
.e404__btn .btn-secondary__fill { display: none; }
.e404__spot { position: absolute; pointer-events: none; border-radius: 999px; overflow: hidden; left: 50%; top: 50vh; transform: translate(-50%, -50%); }
.e404__spot--soft { width: 645px; height: 329px; background: var(--spot-soft); filter: blur(100px); mix-blend-mode: soft-light; }
.e404__spot--dodge { width: 607px; height: 523px; background: var(--spot-dodge); filter: blur(62px); mix-blend-mode: color-dodge; opacity: .15; }
@media (min-width: 810px) and (max-width: 1199.98px) {
  .e404 .hero__container { flex-direction: column; gap: 450px; }
  .e404 .hero__side { height: auto; max-width: 100%; width: 100%; flex: none; align-items: center; }
  .e404 .hero__side--left { overflow: visible; padding-top: 7px; }
  .e404 .hero__side--right { height: 110px; }
  .e404__img { width: 260px; }
  .e404__text { width: 100%; }
  .e404__spot--soft { width: 492px; height: 304px; }
  .e404__spot--dodge { width: 557px; height: 483px; }
}
@media (max-width: 809.98px) {
  .e404 .hero__container { flex-direction: column; gap: 300px; }
  .e404 .hero__side { height: auto; max-width: 100%; width: 100%; flex: none; align-items: center; }
  .e404 .hero__side--left { overflow: visible; padding-bottom: 30px; }
  .e404 .hero__side--right { padding-bottom: 15px; }
  .e404__image-wrap { padding: 0 20px; }
  .e404__img { width: 180px; }
  .e404__btn { bottom: 14px; }
  .e404__text { width: 100%; }
  .e404__spot--soft { width: 265px; height: 193px; }
  .e404__spot--dodge { width: 250px; height: 277px; opacity: .23; }
}
