/* ============================================================
   bycracus — style.css
   Dark, minimal, motion-heavy portfolio
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --bg:           #0a0a0a;
  --bg-elevated:  #111111;
  --bg-subtle:    #161616;
  --text:         #f0ede8;
  --text-muted:   #6a6a6a;
  --accent:       #c9a96e;
  --accent-hover: #dbb97e;
  --border:       #1f1f1f;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);

  --container:    1320px;
  --gutter:       clamp(20px, 5vw, 80px);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  cursor: none;
}

/* --- Drum Scroll --- */
body.drum-active {
  overflow: hidden;
}

body.drum-active .drum-face {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  transform-origin: 50% 50%;
  will-change: transform;
  overflow: hidden;
  background: var(--bg);
}

body.drum-active .drum-hide {
  display: none;
}

body.drum-active .works,
body.drum-active .services,
body.drum-active .about,
body.drum-active .process,
body.drum-active .contact {
  padding: clamp(60px, 8vw, 100px) 0 clamp(30px, 4vw, 50px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.drum-active .section-header {
  margin-bottom: clamp(28px, 4vw, 48px);
}

body.drum-active .services-grid {
  gap: 20px;
}

body.drum-active .service-item {
  padding: 24px;
}

a { color: inherit; text-decoration: none; cursor: none; }
button { cursor: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--bg); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- Grain Overlay --- */
.grain {
  position: fixed;
  inset: -100%;
  width: 300%;
  height: 300%;
  pointer-events: none;
  z-index: 10000;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* --- Custom Cursor --- */
.cursor {
  position: fixed;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out),
              background 0.4s, border-radius 0.4s var(--ease-out), opacity 0.3s;
  opacity: 0;
  mix-blend-mode: difference;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor::before,
.cursor::after {
  content: '';
  position: absolute;
  background: var(--text);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}

.cursor::before {
  width: 100%;
  height: 1px;
}

.cursor::after {
  width: 1px;
  height: 100%;
}

.cursor-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  opacity: 0;
  transition: opacity 0.3s;
  position: relative;
  z-index: 1;
}

/* Hover on links/buttons: cross rotates 45° */
.cursor.active {
  width: 36px;
  height: 36px;
}

.cursor.active::before { transform: rotate(45deg); }
.cursor.active::after { transform: rotate(45deg); }

/* Hover on work items: morphs to circle with "View" label */
.cursor.view {
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
}

.cursor.view::before,
.cursor.view::after {
  opacity: 0;
}

.cursor.view .cursor-label {
  opacity: 1;
}


/* --- Preloader --- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-text {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  gap: 2px;
}

.preloader-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: preloaderLetter 0.5s var(--ease-out) forwards;
}

.preloader-text span:nth-child(1) { animation-delay: 0.05s; }
.preloader-text span:nth-child(2) { animation-delay: 0.1s; }
.preloader-text span:nth-child(3) { animation-delay: 0.15s; }
.preloader-text span:nth-child(4) { animation-delay: 0.2s; }
.preloader-text span:nth-child(5) { animation-delay: 0.25s; }
.preloader-text span:nth-child(6) { animation-delay: 0.3s; }
.preloader-text span:nth-child(7) { animation-delay: 0.35s; }
.preloader-text span:nth-child(8) { animation-delay: 0.4s; }

@keyframes preloaderLetter {
  to { opacity: 1; transform: translateY(0); }
}

.preloader-bar {
  width: 120px;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  animation: preloaderBar 1.2s 0.3s var(--ease-in-out) forwards;
}

@keyframes preloaderBar {
  to { width: 100%; }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--gutter);
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s var(--ease-out);
}

.nav.scrolled {
  padding-top: 16px;
  padding-bottom: 16px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}

.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out);
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 24px !important;
  border: 1px solid var(--text);
  border-radius: 100px;
  transition: background 0.3s, color 0.3s, border-color 0.3s !important;
}

.nav-cta:hover {
  background: var(--text) !important;
  color: var(--bg) !important;
  border-color: var(--text) !important;
}

.nav-cta::after { display: none !important; }

.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  cursor: none;
  transition: color 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
  line-height: 1;
}

.lang-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.lang-current {
  display: inline-block;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.lang-toggle.switching .lang-current {
  transform: translateY(-100%);
  opacity: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  position: absolute;
  left: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}

.nav-toggle span:first-child { top: 0; }
.nav-toggle span:last-child { bottom: 0; }

.nav-toggle.open span:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav-toggle.open span:last-child {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  color: var(--text-muted);
}
.hero-grid--base {
  opacity: 0.05;
}
.hero-grid--reveal {
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(300px circle at 50% 50%, black, transparent);
  mask-image: radial-gradient(300px circle at 50% 50%, black, transparent);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-glow--gold {
  right: -15%;
  top: -15%;
  width: 35%;
  height: 35%;
  background: rgba(201, 169, 110, 0.15);
  filter: blur(100px);
}
.hero-glow--warm {
  left: -10%;
  bottom: -20%;
  width: 35%;
  height: 35%;
  background: rgba(201, 169, 110, 0.08);
  filter: blur(120px);
}

.hero-content {
  padding-top: 80px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 13vw, 200px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}

.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
}

.hero-line-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}

body.loaded .hero-line-inner {
  transform: translateY(0);
}

.hero-sub {
  max-width: 560px;
}

.hero-tagline {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 16px 40px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: background 0.3s, transform 0.3s var(--ease-out);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  display: inline-block;
  padding: 16px 40px;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}

.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  z-index: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-scroll-line {
  width: 60px;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 2s var(--ease-in-out) infinite;
}

@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(260%); }
}

/* --- Marquee --- */
.marquee {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
  will-change: transform;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.marquee-dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* --- Section Headers --- */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-number {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* --- Works --- */
.works {
  padding: clamp(80px, 10vw, 160px) 0;
}

.works .container {
  margin-bottom: 0;
}

.works-list {
  border-top: 1px solid var(--border);
}

.work-item {
  display: block;
  border-bottom: 1px solid var(--border);
  transition: background 0.4s var(--ease-out);
  position: relative;
}

.work-item:hover {
  background: var(--bg-elevated);
}

.work-item-inner {
  display: grid;
  grid-template-columns: 60px 1fr 1fr 80px 40px;
  align-items: center;
  gap: 20px;
  padding: 32px var(--gutter);
  transition: transform 0.4s var(--ease-out);
}

.work-item:hover .work-item-inner {
  transform: translateX(8px);
}

.work-index {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.work-name {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}

.work-item:hover .work-name {
  color: var(--accent);
}

.work-cat {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.work-year {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-muted);
}

.work-arrow {
  color: var(--text-muted);
  transition: color 0.3s, transform 0.4s var(--ease-out);
}

.work-item:hover .work-arrow {
  color: var(--accent);
  transform: translate(4px, -4px);
}

/* Works hover preview — scaled iframe of actual site */
.work-preview {
  position: fixed;
  width: 420px;
  height: 265px;
  pointer-events: none;
  z-index: 200;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  background: var(--bg-elevated);
}

.work-preview.visible {
  opacity: 1;
  transform: scale(1);
}

.preview-frame {
  width: 1440px;
  height: 900px;
  border: none;
  transform: scale(0.292);
  transform-origin: top left;
  pointer-events: none;
  display: block;
}

/* --- Services --- */
.services {
  padding: clamp(80px, 10vw, 160px) 0;
  background: var(--bg-subtle);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.service-item {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.4s, background 0.4s;
}

.service-item:hover {
  border-color: #2a2a2a;
  background: var(--bg-elevated);
}

.tilt-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.2s ease-out, border-color 0.4s, background 0.4s;
}

.tilt-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s;
}
.tilt-card:hover .tilt-spotlight {
  opacity: 1;
}
.tilt-spotlight-dot {
  position: absolute;
  width: 200%;
  height: 200%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.12) 0%, transparent 40%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.service-icon {
  color: var(--accent);
  margin-bottom: 24px;
}

.service-item h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.service-item p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- About --- */
.about {
  padding: clamp(80px, 10vw, 160px) 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
}

.about-text p {
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.about-lead {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 32px) !important;
  font-weight: 600;
  color: var(--text) !important;
  letter-spacing: -0.02em;
  line-height: 1.3 !important;
  margin-bottom: 32px !important;
}

.about-principles {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.principle {
  padding-left: 24px;
  position: relative;
}

.principle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--border);
  transition: height 0.7s var(--ease-out) calc(var(--delay, 0s) + 0.4s),
              background 0.4s,
              box-shadow 0.4s;
}

.principle.visible::before {
  height: 100%;
}

.principle:hover::before {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(201, 169, 110, 0.3), 0 0 4px rgba(201, 169, 110, 0.2);
}

.principle-number {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}

.principle h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.principle p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Process --- */
.process {
  padding: clamp(80px, 10vw, 160px) 0;
  background: var(--bg-subtle);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.process-step {
  padding: 40px 32px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: border-color 0.4s, background 0.4s;
  position: relative;
}

.process-step:hover {
  border-color: #2a2a2a;
  background: var(--bg-elevated);
}

.process-step-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--bg);
  -webkit-text-stroke: 1px var(--border);
  display: block;
  margin-bottom: 24px;
  line-height: 1;
  transition: -webkit-text-stroke-color 0.4s;
}

.process-step:hover .process-step-num {
  -webkit-text-stroke-color: var(--accent);
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.process-step p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Contact --- */
.contact {
  padding: clamp(100px, 12vw, 200px) 0;
  text-align: center;
}

.contact-content {
  max-width: 700px;
  margin: 0 auto;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.contact-sub {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 480px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.contact-form button {
  align-self: flex-start;
  border: none;
  cursor: none;
  transition: background 0.3s, transform 0.3s var(--ease-out), opacity 0.3s;
}

.contact-form button:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.form-status {
  font-size: 14px;
  min-height: 20px;
  text-align: center;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
}

.social-link:hover {
  color: var(--bg);
  border-color: var(--text);
  background: var(--text);
}

/* --- Footer --- */
.footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Reveal Animations --- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.tilt-card.reveal-up {
  transform: none;
  transition: opacity 0.8s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.tilt-card.reveal-up.visible {
  transform: none;
}

/* About — clip-path text reveal */
.about-text .reveal-up {
  opacity: 1;
  transform: translateY(30px);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.about-text .reveal-up.visible {
  clip-path: inset(0 0 0 0);
  transform: translateY(0);
}

/* Work items reveal */
.work-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out),
              background 0.4s var(--ease-out);
}

.work-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.work-item:nth-child(1) { transition-delay: 0s; }
.work-item:nth-child(2) { transition-delay: 0.08s; }
.work-item:nth-child(3) { transition-delay: 0.16s; }
.work-item:nth-child(4) { transition-delay: 0.24s; }

/* --- Responsive — Tablet --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .work-item-inner {
    grid-template-columns: 40px 1fr auto 60px 32px;
    gap: 16px;
    padding: 24px var(--gutter);
  }

  .work-preview { display: none; }
}

/* --- Responsive — Mobile --- */
@media (max-width: 768px) {
  body { cursor: auto; }
  a, button { cursor: auto; }
  .cursor { display: none; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 24px;
  }

  .nav-cta {
    font-size: 18px !important;
  }

  .nav-toggle { display: block; }
  .lang-toggle { order: 1; margin-left: auto; margin-right: 16px; }

  .hero-title {
    font-size: clamp(48px, 15vw, 120px);
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-primary, .btn-outline {
    width: 100%;
    text-align: center;
  }

  .hero-scroll { display: none; }

  .work-item-inner {
    grid-template-columns: 30px 1fr 24px;
    gap: 12px;
    padding: 20px var(--gutter);
  }

  .work-cat, .work-year { display: none; }

  .work-name {
    font-size: clamp(20px, 6vw, 32px);
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-item {
    padding: 28px 24px;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .process-step {
    padding: 28px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form button {
    cursor: auto;
    align-self: stretch;
  }

  .contact-title {
    font-size: clamp(36px, 10vw, 56px);
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* --- Responsive — Small phones --- */
@media (max-width: 400px) {
  :root {
    --gutter: 16px;
  }

  .hero-title {
    font-size: 48px;
  }

  .section-title {
    font-size: 28px;
  }
}
