/* Drangel Webb — dark premium portfolio */

:root {
  --bg: #07070c;
  --bg-2: #0c0d14;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #f3f4fa;
  --muted: #b7b8c9;
  --blue: #7aa6ff;
  --blue-2: #4f7cff;
  --violet: #b69bff;
  --violet-2: #8b5cf6;
  --glow: 0 0 0 1px rgba(122, 166, 255, 0.18), 0 12px 40px rgba(79, 124, 255, 0.18);
  --radius: 1.25rem;
  --header-h: 4.4rem;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.8rem);
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(79, 124, 255, 0.4);
  color: #fff;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #c4b5fd;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 120;
  padding: 0.65rem 0.95rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
  color: var(--bg);
}

.wrap {
  width: min(1160px, calc(100% - 2.75rem));
  margin-inline: auto;
}

/* Background */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(79, 124, 255, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(139, 92, 246, 0.14), transparent 50%),
    var(--bg);
}

#bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: orb 18s var(--ease) infinite alternate;
}

.bg-orb-a {
  width: 42vw;
  height: 42vw;
  max-width: 560px;
  max-height: 560px;
  left: -8%;
  top: 8%;
  background: #2a4dcc;
}

.bg-orb-b {
  width: 38vw;
  height: 38vw;
  max-width: 480px;
  max-height: 480px;
  right: -6%;
  top: 20%;
  background: #6d3ad8;
  animation-duration: 22s;
  animation-delay: -4s;
}

.bg-orb-c {
  width: 30vw;
  height: 30vw;
  max-width: 380px;
  max-height: 380px;
  left: 35%;
  bottom: 0;
  background: #1f3f8a;
  opacity: 0.35;
  animation-duration: 26s;
}

@keyframes orb {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(4%, 6%) scale(1.08); }
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
  opacity: 0.7;
}

/* Scroll progress */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 80;
  background: transparent;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-2), var(--violet-2));
  box-shadow: 0 0 12px rgba(122, 166, 255, 0.7);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(7, 7, 12, 0.55);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 7, 12, 0.78);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
}

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

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.35), rgba(139, 92, 246, 0.28));
  border: 1px solid rgba(186, 170, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.logo-text {
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem 1.15rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--ink);
}

.nav-cta {
  padding: 0.42rem 0.9rem !important;
  border-radius: 999px;
  color: var(--ink) !important;
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.28), rgba(139, 92, 246, 0.22));
  border: 1px solid rgba(186, 170, 255, 0.28);
}

.nav-cta:hover {
  border-color: rgba(186, 170, 255, 0.5);
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  margin: 6px auto;
  background: var(--ink);
  transition: transform 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, #5b82ff, #7b5cff);
  color: #fff;
  box-shadow: 0 8px 28px rgba(79, 124, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(79, 124, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  border-color: var(--line-strong);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: rgba(186, 170, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

/* Glass */

.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius);
}

/* Hero */

.hero {
  position: relative;
  padding: 5.2rem 0 4.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(122, 166, 255, 0.7);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(122, 166, 255, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(122, 166, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(122, 166, 255, 0); }
}

.hero h1,
.section-head h2,
.contact-intro h2,
.about-head h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.hero h1 {
  font-size: clamp(3.6rem, 9.2vw, 7rem);
  margin-bottom: 1.35rem;
}

.grad-text {
  background: linear-gradient(120deg, #ffffff 0%, #c9d8ff 32%, #d7c8ff 58%, #ffffff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 8s ease-in-out infinite;
}

@keyframes sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.lede,
.section-intro,
.about-panel p,
.contact-intro > p {
  color: var(--muted);
}

.lede {
  margin: 0 0 2rem;
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.55;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-stage {
  position: relative;
  min-height: 22rem;
}

.hero-glow {
  position: absolute;
  inset: 10% 8%;
  background: radial-gradient(circle, rgba(79, 124, 255, 0.35), rgba(139, 92, 246, 0.12) 45%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
}

.hero-browser {
  position: relative;
  z-index: 1;
  transform: perspective(1400px) rotateY(-12deg) rotateX(6deg);
  animation: float 7s ease-in-out infinite;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 80px rgba(79, 124, 255, 0.18);
}

@keyframes float {
  0%, 100% { transform: perspective(1400px) rotateY(-12deg) rotateX(6deg) translateY(0); }
  50% { transform: perspective(1400px) rotateY(-10deg) rotateX(5deg) translateY(-14px); }
}

/* Browser chrome */

.browser {
  border-radius: 16px;
  overflow: hidden;
  background: #12131a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 2rem;
  padding: 0 0.75rem;
  background: #1a1b24;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.browser-dots {
  display: flex;
  gap: 0.32rem;
}

.browser-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a3b48;
}

.browser-dots i:nth-child(1) { background: #ff6b6b; }
.browser-dots i:nth-child(2) { background: #ffd166; }
.browser-dots i:nth-child(3) { background: #4ade80; }

.browser-url {
  flex: 1;
  height: 1.25rem;
  border-radius: 999px;
  background: #101118;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #8c8d9c;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  padding: 0 0.65rem;
}

.mock {
  min-height: 14rem;
}

.mock-hero {
  padding: 1.15rem 1.2rem 1.3rem;
  background:
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.22), transparent 40%),
    linear-gradient(180deg, #151624, #0e0f16);
  min-height: 20rem;
}

.mh-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.6rem;
}

.mh-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.mh-links {
  width: 38%;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, #2a2c3a, #222433 60%, transparent);
}

.mh-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9bb6ff;
}

.mh-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
  line-height: 1.15;
  max-width: 16rem;
}

.mh-cta {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.mh-cta span {
  height: 1.15rem;
  width: 4.2rem;
  border-radius: 99px;
  background: linear-gradient(135deg, #5b82ff, #7b5cff);
}

.mh-cta span:last-child {
  width: 3.4rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.mh-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.mh-cards span {
  height: 4.4rem;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Marquee */

.marquee-wrap {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.95rem 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-group {
  display: flex;
  gap: 2.4rem;
  padding-right: 2.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-group span::before {
  content: "◆";
  margin-right: 2.4rem;
  color: var(--blue);
  font-size: 0.55rem;
  vertical-align: middle;
}

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

/* Sections */

.section {
  padding: 6rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.8rem;
}

.section-head h2,
.contact-intro h2,
.about-head h2 {
  font-size: clamp(2.3rem, 5.2vw, 3.5rem);
}

.section-intro {
  margin: 0;
  font-size: 1.08rem;
}

/* Services */

.service-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: -0.6rem 0 2rem;
}

.service-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.service-tabs a:hover,
.service-tabs a[aria-current="true"] {
  color: var(--ink);
  border-color: rgba(186, 170, 255, 0.45);
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.22), rgba(139, 92, 246, 0.14));
}

.service-groups {
  display: grid;
  gap: 2.35rem;
}

.service-group {
  scroll-margin-top: calc(var(--header-h) + 0.9rem);
}

.service-group-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 0.55rem;
}

.service-group-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.service-group-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(122, 166, 255, 0.4), transparent);
}

.service-group-note {
  margin: 0 0 0.95rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.service-card {
  padding: 1.05rem 1rem 1.1rem;
  min-height: 100%;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(122, 166, 255, 0.35);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.75rem;
  border-radius: 0.6rem;
  color: var(--blue);
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.22), rgba(139, 92, 246, 0.14));
  border: 1px solid rgba(186, 170, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.service-card h3,
.service-card h4,
.timeline-step h3,
.project-body h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.service-card h4 {
  font-size: 1rem;
}

.timeline-step h3,
.project-body h3 {
  font-size: 1.28rem;
}

.service-card p,
.timeline-step p,
.project-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.service-card p {
  font-size: 0.86rem;
  line-height: 1.5;
}

/* Timeline */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  position: relative;
  counter-reset: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 3%;
  right: 3%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122, 166, 255, 0.45), rgba(182, 155, 255, 0.45), transparent);
  z-index: 0;
}

.timeline-step {
  position: relative;
  z-index: 1;
  padding-top: 0.1rem;
}

.timeline-node {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  margin-bottom: 1.15rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #5b82ff, #7b5cff);
  box-shadow: 0 0 0 6px rgba(7, 7, 12, 1), 0 0 24px rgba(79, 124, 255, 0.45);
}

/* Projects */
/* Example showcase */

.example-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: -0.6rem 0 1.6rem;
}

.example-filters button {
  min-height: 2.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.example-filters button:hover,
.example-filters button[aria-pressed="true"] {
  color: var(--ink);
  border-color: rgba(186, 170, 255, 0.45);
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.22), rgba(139, 92, 246, 0.14));
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.example-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.example-card[hidden] {
  display: none;
}

.example-card:hover {
  transform: translateY(-7px);
  border-color: rgba(122, 166, 255, 0.35);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.example-thumb {
  display: block;
  padding: 0.9rem 0.9rem 0;
  text-decoration: none;
  background: radial-gradient(circle at 50% 0%, rgba(79, 124, 255, 0.12), transparent 60%);
}

.example-thumb .browser {
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

.example-thumb img {
  display: block;
  width: 100%;
  height: 11.4rem;
  object-fit: cover;
  object-position: top center;
  background: #111;
}

.example-body {
  padding: 1.15rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.example-body p:not(.project-label) {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.example-link {
  margin-top: 0.7rem;
  align-self: start;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.example-link:hover {
  color: var(--violet);
}

.more-examples {
  margin-top: 3.2rem;
}

.more-head {
  max-width: 38rem;
  margin-bottom: 1.4rem;
}

.more-head h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  letter-spacing: -0.03em;
}

.more-head p:last-child {
  margin: 0;
  color: var(--muted);
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.more-card {
  padding: 1.15rem 1.15rem 1.2rem;
}

.more-card h4 {
  margin: 0.15rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.webbtext {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
}

.more-note {
  margin: 0.8rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.ig {
  background: #111318;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.ig-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.7rem;
  font-size: 0.8rem;
}

.ig-avatar {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #d9a8a6, #b4636a);
}

.ig-photo {
  height: 7.2rem;
  background:
    radial-gradient(circle at 30% 30%, #f7d5ce, transparent 42%),
    radial-gradient(circle at 70% 70%, #d9a8a6, transparent 40%),
    linear-gradient(160deg, #3a2a2c, #1c1415);
}

.ig-caption {
  margin: 0;
  padding: 0.65rem 0.7rem 0.75rem;
  font-size: 0.78rem;
  color: #c9c4c2;
  line-height: 1.45;
}

.ig-caption strong {
  color: #fff;
}

.banner-ex {
  border-radius: 12px;
  min-height: 8.2rem;
  padding: 1.1rem 1.15rem;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(120deg, rgba(93, 107, 79, 0.2), transparent 45%),
    linear-gradient(160deg, #8a9a7a, #3f4a36);
  color: #f3f0ea;
}

.banner-ex span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.banner-ex strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  margin: 0.2rem 0 0.15rem;
}

.banner-ex em {
  font-style: normal;
  font-size: 0.78rem;
  opacity: 0.8;
}

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.flow li {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.flow li:not(:last-child)::after {
  content: "↓";
  display: block;
  text-align: center;
  color: var(--blue);
  font-weight: 700;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.85rem;
  z-index: 1;
}

.flow li:not(:last-child) {
  margin-bottom: 0.55rem;
}



.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.project-card:hover {
  transform: translateY(-7px);
  border-color: rgba(122, 166, 255, 0.35);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project-visual {
  padding: 1rem 1rem 0;
  background: radial-gradient(circle at 50% 0%, rgba(79, 124, 255, 0.12), transparent 60%);
}

.project-card:hover .browser {
  transform: translateY(-3px);
}

.project-visual .browser {
  transition: transform 0.3s var(--ease);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

/* Cafe mock */

.mock-cafe {
  background: linear-gradient(180deg, #f4e7d4, #ead5bc);
  color: #3a2618;
  padding: 0.95rem 1rem 1.05rem;
  min-height: 16.2rem;
}

.cafe-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.05rem;
  font-size: 0.62rem;
  color: #6a4a34;
}

.cafe-logo {
  font-family: "Times New Roman", serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #5a3320;
}

.cafe-hero {
  margin: 0 0 1rem;
  font-family: "Times New Roman", serif;
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #3a2216;
}

.cafe-pills {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.2rem;
}

.cafe-pills span {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #d9b896;
  font-size: 0.62rem;
  font-weight: 600;
  color: #4a301e;
}

.cafe-pills span:nth-child(2) { background: #c89a6e; color: #2f1c10; }
.cafe-pills span:nth-child(3) { background: #efe0cc; }

.cafe-hours {
  font-size: 0.68rem;
  color: #6a4a34;
  border-top: 1px solid rgb(58 38 24 / 0.12);
  padding-top: 0.65rem;
}

/* Craft mock */

.mock-craft {
  background: linear-gradient(180deg, #1c212b, #14181f);
  color: #eceef3;
  padding: 0.9rem 0.95rem 1rem;
  min-height: 16.2rem;
}

.craft-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.craft-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.craft-chip {
  font-size: 0.58rem;
  font-weight: 600;
  padding: 0.22rem 0.5rem;
  border-radius: 99px;
  background: #f2f3f7;
  color: #16181f;
}

.craft-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0.7rem;
  align-items: stretch;
}

.craft-photo {
  min-height: 9.4rem;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 28%, rgba(186, 198, 216, 0.28), transparent 42%),
    linear-gradient(160deg, #4a5363, #232833);
}

.craft-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.craft-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.68rem;
  color: #c5c8d4;
  display: grid;
  gap: 0.28rem;
}

.craft-copy li::before {
  content: "";
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: #8bb0ff;
}

/* Shop mock */

.mock-shop {
  background: linear-gradient(180deg, #f3f6f1, #e4ebe0);
  color: #243026;
  padding: 0.85rem 0.9rem 0.95rem;
  min-height: 16.2rem;
}

.shop-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.shop-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
}

.shop-cart {
  width: 1rem;
  height: 1rem;
  border: 1.5px solid #243026;
  border-radius: 3px 3px 4px 4px;
  position: relative;
}

.shop-cart::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: -4px;
  height: 5px;
  border: 1.5px solid #243026;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.shop-grid figure {
  margin: 0;
}

.shop-img {
  display: block;
  height: 4.35rem;
  border-radius: 8px;
}

.shop-img-a { background: #6f8660; }
.shop-img-b { background: #c5d0ba; }
.shop-img-c { background: #a3b897; }
.shop-img-d { background: #4e6146; }

.shop-grid figcaption {
  margin-top: 0.28rem;
  font-size: 0.68rem;
  font-weight: 600;
}

.project-body {
  padding: 1.2rem 1.25rem 1.4rem;
}

.project-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

/* About */

.about-grid,
.faq-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem 3.5rem;
  align-items: start;
}

.about-head {
  margin-bottom: 0;
}

.about-panel {
  padding: 1.6rem 1.55rem;
  font-size: 1.12rem;
  color: var(--muted);
}

.about-panel p {
  margin: 0 0 0.9rem;
}

.about-panel p:last-child {
  margin-bottom: 0;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  overflow: hidden;
}

.faq-item h3 {
  margin: 0;
  font-size: inherit;
}

.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--blue);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.faq-icon::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  transform: translateY(-50%);
}

.faq-icon::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1.5px;
  transform: translateX(-50%);
}

.faq-item.is-open .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-panel p {
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Contact */

.section-contact {
  padding-bottom: 6.5rem;
}

.contact-intro p {
  margin: 0 0 1.1rem;
  font-size: 1.08rem;
}

.email-note {
  color: var(--ink) !important;
  font-size: 0.98rem !important;
  padding: 1.05rem 1.15rem;
  margin-top: 1.4rem !important;
}

.email-link {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--blue);
  text-decoration: none;
}

.email-link:hover {
  color: var(--violet);
}

.contact-panel {
  padding: 1.5rem 1.4rem 1.4rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 8.2rem;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(122, 166, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.22);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #f0a0a0;
}

.field-error {
  margin: 0;
  color: #ffb4b4;
  font-size: 0.82rem;
}

.form-hint,
.form-success p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.form-success {
  display: grid;
  gap: 0.85rem;
}

.form-success[hidden],
.field-error[hidden] {
  display: none;
}

.form-success-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink) !important;
}

.contact-form .btn,
.form-success .btn {
  justify-self: start;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 1.7rem;
  background: rgba(0, 0, 0, 0.25);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner p {
  margin: 0;
}

/* Reveals */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.stagger .reveal.is-visible:nth-child(1) { transition-delay: 0.02s; }
.stagger .reveal.is-visible:nth-child(2) { transition-delay: 0.1s; }
.stagger .reveal.is-visible:nth-child(3) { transition-delay: 0.18s; }
.stagger .reveal.is-visible:nth-child(4) { transition-delay: 0.26s; }
.stagger .reveal.is-visible:nth-child(5) { transition-delay: 0.34s; }
.stagger .reveal.is-visible:nth-child(6) { transition-delay: 0.42s; }
.stagger .reveal.is-visible:nth-child(7) { transition-delay: 0.5s; }
.stagger .reveal.is-visible:nth-child(8) { transition-delay: 0.58s; }
.stagger .reveal.is-visible:nth-child(9) { transition-delay: 0.66s; }
.stagger .reveal.is-visible:nth-child(10) { transition-delay: 0.74s; }

/* Responsive */

@media (max-width: 1020px) {
  .hero-inner,
  .service-grid,
  .timeline,
  .project-grid,
  .example-grid,
  .more-grid,
  .about-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-inner {
    gap: 2.2rem;
  }

  .timeline {
    gap: 1.5rem 1.2rem;
  }

  .timeline::before {
    display: none;
  }

  .about-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .section-head {
    margin-bottom: 1.8rem;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(1160px, calc(100% - 1.5rem));
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 0 1.1rem;
    background: rgba(7, 7, 12, 0.94);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.8rem 1.25rem;
  }

  .nav-cta {
    margin: 0.45rem 1.25rem 0;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    width: calc(100% - 2.5rem);
  }


  .service-tabs {
    flex-wrap: wrap;
  }

  .service-tabs a {
    white-space: nowrap;
  }

  .hero {
    padding: 3.2rem 0 3rem;
  }

  .hero-inner,
  .service-grid,
  .timeline,
  .project-grid,
  .example-grid,
  .more-grid {
    grid-template-columns: 1fr;
  }

  .hero-browser {
    transform: none;
    animation: float-mobile 7s ease-in-out infinite;
  }

  @keyframes float-mobile {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }

  .mock-hero {
    min-height: 14.5rem;
  }

  .section {
    padding: 3.8rem 0;
  }

  .section-contact {
    padding-bottom: 4.4rem;
  }

  .timeline::before {
    display: block;
    top: 1.15rem;
    bottom: 2.2rem;
    left: 1.14rem;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, rgba(122, 166, 255, 0.5), rgba(182, 155, 255, 0.15), transparent);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.25rem;
  }

  .logo-text {
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .bg-orb,
  .hero-browser,
  .grad-text,
  .marquee-track,
  .eyebrow-dot,
  .btn,
  .service-card,
  .example-card,
  .project-card,
  .project-visual .browser {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .hero-browser {
    transform: none !important;
  }
}

.contact-cta-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0.4rem 0 0.8rem; }
.contact-panel .btn { margin-top: 1.2rem; }
