:root {
  --bg: #fcfbf3;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-soft: #60a5fa;
  --border: #e5e7eb;
  --shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.05);
  --radius: 24px;
  --container: 1380px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.08), transparent 32%),
    linear-gradient(180deg, #fffcf6 0%, var(--bg) 50%, #f7f5ec 100%);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  padding: 0.16rem 0.4rem;
  border-radius: 0.4rem;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  font-size: 0.92em;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}


.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.95rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.button-small {
  min-height: 2.8rem;
  padding: 0.7rem 1rem;
}

.flash-stack {
  position: fixed;
  top: 5rem;
  right: 1rem;
  z-index: 240;
  width: min(24rem, calc(100vw - 2rem));
  display: grid;
  gap: 0.6rem;
}

.flash-message {
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.flash-message.success {
  border-color: rgba(17, 24, 39, 0.08);
}

.flash-message.info {
  border-color: rgba(37, 99, 235, 0.12);
  background: rgba(37, 99, 235, 0.05);
}

.flash-message.warning {
  border-color: rgba(180, 83, 9, 0.16);
  background: rgba(254, 243, 199, 0.76);
}

.flash-message.error {
  border-color: rgba(220, 38, 38, 0.16);
  background: rgba(254, 242, 242, 0.9);
}

.flash-message.is-hiding {
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
}

@media (max-width: 640px) {
  .flash-stack {
    top: 4.5rem;
    right: 0.75rem;
    width: min(22rem, calc(100vw - 1.5rem));
  }
}

.article-hero {
  padding: 5rem 0 2.5rem;
}

.article-hero h1 {
  margin: 0;
  font-family: "Satoshi", "Inter", sans-serif;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.article-hero-text,
.section-copy {
  max-width: 42rem;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.eyebrow,
.section-kicker,
.meta-line {
  margin: 0 0 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
}

.tag-list,
.footer-links,
.category-strip {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat-pill,
.panel-note {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.7);
}

.stat-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-panel,
.contact-form,
.detail-sidebar,
.blog-sidebar,
.news-rail,
.featured-article,
.article-shell {
  padding: 1.6rem;
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
  box-shadow: var(--shadow);
}

.interactive-card {
  transform: perspective(1200px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  transform-style: preserve-3d;
}

.interactive-card:hover {
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
}

.panel-header,
.rail-head,
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.stack-list,
.news-list {
  display: grid;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
}

.stack-list li,
.news-link {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.compact-list {
  margin-top: 0.75rem;
}

.badge,
.tag-list li,
.category-strip a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
}

.section {
  padding: 2.5rem 0 3rem;
}

.section-tight {
  padding-top: 0;
}

.split-layout,
.contact-grid,
.accent-grid,
.project-detail-grid,
.blog-layout,
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.section-title {
  margin: 0;
  font-family: "Satoshi", "Inter", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.prose-block p,
.prose-article p,
.prose-article li,
.news-link span,
.muted,
.footer-copy {
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.card-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.project-card,
.article-card,
.empty-state {
  padding: 1.45rem;
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.service-index {
  margin: 0 0 1rem;
  color: var(--accent);
  font-family: "Satoshi", "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.project-visual {
  min-height: 14rem;
  padding: 1rem;
  border-radius: 1rem;
  background:
    linear-gradient(160deg, rgba(37, 99, 235, 0.16), rgba(255, 255, 255, 0.92)),
    linear-gradient(120deg, #dbeafe, #f8fafc);
  display: flex;
  align-items: flex-end;
  color: var(--accent);
  font-weight: 700;
  background-size: cover;
  background-position: center;
}

.project-body h3,
.article-card h3,
.featured-article h2,
.service-card h3,
.empty-state h3,
.detail-sidebar h2 {
  margin: 1rem 0 0.6rem;
  font-family: "Satoshi", "Inter", sans-serif;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.accent-panel::before {
  content: "";
  position: absolute;
  inset: 2rem 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.accent-panel {
  position: relative;
}

.tip-board {
  display: grid;
  gap: 1rem;
}

.tip-item {
  padding: 1.2rem;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.7);
}

.photo-card,
.press-card,
.profile-portrait {
  padding: 1.2rem;
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.photo-card img,
.profile-portrait img {
  width: 100%;
  border-radius: 1rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-card figcaption {
  padding-top: 1rem;
}

.photo-card h2,
.press-card h2 {
  margin: 0.2rem 0 0.6rem;
  font-family: "Satoshi", "Inter", sans-serif;
  letter-spacing: -0.04em;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.ad-slot {
  border: 1px dashed rgba(37, 99, 235, 0.22);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(255, 255, 255, 0.9)),
    #fff;
  padding: 0.35rem 0.5rem;
}

.ad-slot__label {
  margin-bottom: 0.15rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1;
}

.ad-slot__body {
  min-height: 32px;
  display: grid;
  place-items: center;
}

.ad-slot__placeholder {
  display: grid;
  gap: 0.35rem;
  text-align: center;
  color: var(--muted);
}

.ad-slot__placeholder strong {
  color: var(--text);
  font-family: "Satoshi", "Inter", sans-serif;
  font-size: 1.05rem;
}

.ad-card-span {
  grid-column: 1 / -1;
}

.blog-sidebar > .ad-slot {
  margin-bottom: 1.4rem;
}

.prose-article .ad-slot {
  margin: 2rem 0;
}

.field {
  display: grid;
  gap: 0.55rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.article-hero-inner {
  max-width: 860px;
}

.article-hero-inner.narrow,
.article-shell {
  max-width: 720px;
  margin: 0 auto;
}

.article-cover {
  margin: 0 0 2rem;
}

.article-cover img {
  width: 100%;
  border-radius: 1.2rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-cover figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.prose-article h2,
.prose-article h3 {
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
  font-family: "Satoshi", "Inter", sans-serif;
  letter-spacing: -0.03em;
}

.prose-article ul {
  padding-left: 1.2rem;
}

.detail-sidebar {
  align-self: start;
  position: sticky;
  top: 6.5rem;
}

.category-strip a {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  color: var(--muted);
}

.category-strip a.is-active,
.category-strip a:hover {
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.06);
}

.site-footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(229, 231, 235, 0.82);
  margin-top: 2rem;
}

.footer-title {
  margin: 0 0 0.35rem;
  font-family: "Satoshi", "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .profile-hero,
  .split-layout,
  .contact-grid,
  .accent-grid,
  .project-detail-grid,
  .blog-layout,
  .blog-preview-grid,
  .card-grid,
  .card-grid-three {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 1.5rem), var(--container));
  }

  .article-hero h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .contact-form .button,
  .hero-actions-legacy .button {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
  }
}
