/* ============ Design tokens ============ */
:root {
  --bg: #EFEAE0;
  --bg-elev: #E6DFD3;
  --bg-elev-2: #DBD3C0;
  --accent: #4F5443;
  --accent-2: #5B6152;
  --accent-dim: #656C5A;
  --accent-soft: rgba(125, 130, 113, 0.16);

  /* Brand mark colors, pulled from the logo */
  --logo-blue: #1878A8;
  --logo-green: #7CB342;
  --logo-purple: #8A5DA0;
  --logo-gradient: linear-gradient(90deg, var(--logo-blue), var(--logo-green), var(--logo-purple));
  --logo-gradient-v: linear-gradient(180deg, var(--logo-blue), var(--logo-green), var(--logo-purple));
  --text-hi: #1C1F19;
  --text-mid: #383C30;
  --text-low: #565A4C;
  --border: rgba(42, 46, 38, 0.12);
  --border-strong: rgba(42, 46, 38, 0.22);

  --nav-bg: #232922;
  --nav-text: #EFEAE0;
  --nav-text-mid: #B7BBAC;

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1180px;
  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 10px;

  --glass-bg: rgba(230, 223, 211, 0.9);
  --glass-bg-2: rgba(219, 211, 192, 0.95);
  --glass-border: rgba(42, 46, 38, 0.1);
  --card-shadow: 0 20px 44px -22px rgba(35, 41, 34, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-hi);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(700px circle at 12% -6%, rgba(125,130,113,0.14), transparent 55%),
    radial-gradient(600px circle at 96% 8%, rgba(125,130,113,0.10), transparent 55%);
}
.site-header, main, .site-footer { position: relative; z-index: 1; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}

h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--text-mid); }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #ffffff;
  padding: 10px 16px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ Utility ============ */
.center { text-align: center; margin-left: auto; margin-right: auto; }
.muted { color: var(--text-low); font-size: 0.92rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
}
.eyebrow.center {
  display: flex;
  width: fit-content;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}
.eyebrow .rule {
  width: 14px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(125,130,113,0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(125,130,113,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(125,130,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(125,130,113,0); }
}

.text-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}
.hl-box {
  display: inline-block;
  background: none;
  color: var(--accent);
  padding: 0;
  border-radius: 0;
}

.section-sub {
  max-width: 560px;
  margin-top: -6px;
  margin-bottom: 44px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}
.check-list li::before {
  content: '✓';
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid {
  background: var(--accent);
  color: #F5F1E8;
  box-shadow: 0 10px 28px -10px rgba(125,130,113,0.5);
}
.btn-solid:hover { filter: brightness(1.1); box-shadow: 0 14px 34px -10px rgba(125,130,113,0.6); }
.btn-outline {
  border-color: rgba(125,130,113,0.4);
  color: var(--accent);
  background: var(--accent-soft);
}
.btn-outline:hover { background: rgba(125,130,113,0.2); border-color: var(--accent); }
.btn-ghost {
  color: var(--text-hi);
  border-color: var(--glass-border);
  background: var(--glass-bg);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ============ Header (full-width top navbar) ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 72px;
  max-width: var(--wrap);
  width: 100%;
  margin: 0 auto;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 0 24px;
  box-shadow: none;
}
.main-nav a {
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--nav-text-mid);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
  color: var(--nav-text);
}
.brand-mark {
  display: inline-flex;
  flex: none;
}
.brand-mark img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.brand-text {
  background: var(--logo-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.main-nav {
  display: flex;
  gap: 30px;
  margin-left: 12px;
  font-size: 0.92rem;
  color: var(--nav-text-mid);
}
.main-nav a {
  position: relative;
  transition: color 0.2s ease;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--logo-gradient);
  transition: right 0.25s ease;
}
.main-nav a:hover { color: var(--nav-text); }
.main-nav a:hover::after { right: 0; }
.nav-cta {
  margin-left: 8px;
  padding: 9px 22px;
  font-size: 0.88rem;
  background: var(--accent);
  color: #F5F1E8;
  border-color: transparent;
}
.nav-cta:hover { filter: brightness(1.12); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 86px; left: 16px; right: 16px;
    background: var(--glass-bg-2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    flex-direction: column;
    padding: 18px 24px;
    gap: 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a { color: var(--text-mid); }
  .main-nav a:hover { color: var(--accent); }
  .nav-cta { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    margin-left: auto;
    padding: 6px;
    cursor: pointer;
  }
  .nav-toggle span {
    width: 22px; height: 2px;
    background: var(--nav-text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============ Sidebar (desktop persistent nav) ============ */
.sidebar {
  display: none;
  position: fixed;
  top: 20px;
  bottom: 20px;
  left: 20px;
  width: 232px;
  z-index: 100;
  flex-direction: column;
  background: var(--glass-bg-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px 18px;
  box-shadow: var(--card-shadow);
  overflow-y: auto;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding: 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--text-hi);
}
.sidebar-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: none;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--text-mid);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.sidebar-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.sidebar-nav .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  flex: none;
}
.sidebar-cta {
  margin-top: 18px;
  width: 100%;
  justify-content: center;
}

.sidebar { display: none !important; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  width: 420px;
  height: 420px;
  right: 6%;
  top: 12%;
  background: radial-gradient(circle, rgba(125,130,113,0.32), transparent 70%);
}
.hero::after {
  width: 320px;
  height: 320px;
  right: 22%;
  bottom: 6%;
  background: radial-gradient(circle, rgba(91,97,82,0.28), transparent 70%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero-title {
  font-size: clamp(2.6rem, 6.6vw, 5.2rem);
  max-width: 16ch;
  margin-bottom: 0.4em;
}
.hero-sub {
  max-width: 46ch;
  font-size: 1.08rem;
  margin-bottom: 2em;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ Hero rotating rings (decorative animation) ============ */
.hero-orbit-anim {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  z-index: 1;
  pointer-events: none;
  display: none;
}
.orbit-ring {
  position: absolute;
  border: 1px dashed var(--border-strong);
  border-radius: 50%;
}
.ring-1 { inset: 90px; animation: spinRing 16s linear infinite; }
.ring-2 { inset: 45px; animation: spinRing 24s linear infinite reverse; }
.ring-3 { inset: 0; animation: spinRing 34s linear infinite; }
.orbit-dot {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px rgba(125,130,113,0.55);
}
.ring-1 .orbit-dot {
  background: linear-gradient(135deg, var(--logo-blue), #4FA6D6);
  box-shadow: 0 0 14px rgba(24,120,168,0.55);
}
.ring-2 .orbit-dot {
  background: linear-gradient(135deg, var(--logo-green), #A6D97F);
  box-shadow: 0 0 14px rgba(124,179,66,0.55);
}
.ring-3 .orbit-dot {
  background: linear-gradient(135deg, var(--logo-purple), #B98FCB);
  box-shadow: 0 0 14px rgba(138,93,160,0.55);
}
@keyframes spinRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (min-width: 981px) {
  .hero-orbit-anim { display: block; }
}

/* ============ About ============ */
.about { padding: 120px 0; border-bottom: 1px solid var(--border); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
}
.stat-card:first-child { grid-column: 1 / -1; }
.stat-highlight { background: var(--glass-bg-2); }
.stat-security { background: linear-gradient(160deg, rgba(125,130,113,0.1), rgba(125,130,113,0.02)); border-color: rgba(125,130,113,0.25); }
.stat-icon { font-size: 1.4rem; display: inline-block; margin-bottom: 10px; }
.stat-card h3 { margin-bottom: 6px; }
.stat-card p { font-size: 0.9rem; margin-bottom: 0; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--accent);
  display: block;
  line-height: 1;
}
.stat-label { color: var(--text-mid); font-size: 0.85rem; }

.meter { margin-top: 16px; }
.meter-row { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-mid); margin-bottom: 6px; }
.meter-track { height: 5px; background: rgba(42,46,38,0.1); border-radius: 4px; overflow: hidden; }
.meter-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 4px;
  transition: width 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.meter-fill.filled { width: var(--val); }

.about-copy h2 { max-width: 14ch; }
.lede { font-size: 1.05rem; color: var(--text-hi); }

/* ============ Services ============ */
.services { padding: 120px 0; border-bottom: 1px solid var(--border); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  padding-left: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--logo-gradient-v);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.service-card::after {
  content: '';
  position: absolute;
  top: -40%; right: -30%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(125,130,113,0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.service-card:hover {
  border-color: rgba(125,130,113,0.4);
  transform: translateY(-5px);
  background: var(--glass-bg-2);
  box-shadow: 0 26px 46px -22px rgba(35,41,34,0.32);
}
.service-card:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}
.service-card:hover::after {
  opacity: 1;
}
.service-card:hover .service-icon {
  background: linear-gradient(155deg, var(--accent), var(--accent-2));
  border-color: var(--accent-2);
  transform: scale(1.08) rotate(-6deg);
}
.service-card:hover .service-index {
  color: var(--accent);
  transform: translateX(2px);
}
.service-card:hover .tag {
  border-color: rgba(125,130,113,0.4);
}
.service-index {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--text-low);
  letter-spacing: 0.1em;
  transition: color 0.3s ease, transform 0.3s ease;
}
.service-icon {
  width: 46px; height: 46px;
  border-radius: 6px;
  background: linear-gradient(155deg, rgba(125,130,113,0.28), rgba(91,97,82,0.2));
  border: 1px solid rgba(125,130,113,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin: 14px 0 16px;
  transition: transform 0.35s cubic-bezier(0.2,0.8,0.2,1), background 0.3s ease, border-color 0.3s ease;
}
.service-card h3 { margin-bottom: 8px; font-size: 1.3rem; }
.service-card p { font-size: 0.92rem; margin-bottom: 16px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-mid);
}

/* ============ Projects ============ */
.projects { padding: 120px 0; border-bottom: 1px solid var(--border); }
.project-list { display: grid; gap: 24px; }
.project-card {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.project-visual {
  background:
    radial-gradient(circle at 30% 20%, rgba(125,130,113,0.22), transparent 60%),
    linear-gradient(150deg, #1c1c1c, #101010);
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
}
.project-category {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(5,8,10,0.5);
  border: 1px solid rgba(125,130,113,0.3);
  padding: 5px 12px;
  border-radius: 999px;
}
.project-body { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.project-body h3 { font-size: 1.4rem; margin-bottom: 10px; }
.project-body p { font-size: 0.98rem; }
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 8px;
}

/* ============ Testimonials ============ */
.testimonials { padding: 120px 0; border-bottom: 1px solid var(--border); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}
.stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 14px; font-size: 0.9rem; }
.testimonial-quote { font-size: 0.95rem; color: var(--text-hi); flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--accent), var(--accent-2));
  color: #ffffff;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--text-low); }

/* ============ Team ============ */
.team { padding: 120px 0; border-bottom: 1px solid var(--border); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card { text-align: left; }
.team-avatar {
  width: 104px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.team-card h3 { margin-bottom: 2px; }
.team-role { color: var(--accent); font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; display: block; }
.team-card p { font-size: 0.9rem; }

/* ============ Process ============ */
.process { padding: 120px 0; border-bottom: 1px solid var(--border); }
.process-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.process-list li {
  position: relative;
  padding: 28px 22px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.process-list li::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--logo-gradient);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.process-list li:hover::before,
.process-list li:focus-within::before {
  opacity: 1;
}
.process-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.process-list li:hover,
.process-list li:focus-within {
  border-color: rgba(125,130,113,0.4);
  box-shadow: 0 22px 40px -22px rgba(35,41,34,0.3);
}
.process-list li:hover .process-card-link {
  transform: translateY(-3px);
}
.process-card-cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.process-list li:hover .process-card-cta,
.process-list li:focus-within .process-card-cta {
  opacity: 1;
  transform: translateY(0);
}
.process-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.process-list h3 { margin-bottom: 8px; }
.process-list p { font-size: 0.9rem; margin-bottom: 0; }
.process-list li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 44px;
  right: -14px;
  width: 8px; height: 8px;
  border-top: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
  transform: rotate(45deg);
  display: none;
}
@media (min-width: 861px) {
  .process-list li:not(:last-child)::after { display: block; }
}

/* ============ Contact ============ */
.contact { padding: 120px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-info { margin-top: 32px; display: grid; gap: 22px; }
.info-item { display: flex; gap: 16px; }
.info-icon {
  width: 44px; height: 44px;
  border-radius: 6px;
  background: linear-gradient(155deg, rgba(125,130,113,0.28), rgba(91,97,82,0.2));
  border: 1px solid rgba(125,130,113,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  flex: none;
}
.info-item h3 { margin-bottom: 2px; font-size: 1rem; }
.info-item a { color: var(--accent); font-weight: 600; }
.info-item a:hover { text-decoration: underline; }
.social-link { display: flex; align-items: center; gap: 8px; }
.social-icon { border-radius: 4px; object-fit: cover; flex: none; }

.contact-form {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--card-shadow);
}
.contact-form h3 { margin-bottom: 20px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; color: var(--text-mid); }
.field input, .field textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text-hi);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: #e2665a;
}
.field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.form-status {
  margin: 12px 0 0;
  font-size: 0.88rem;
  min-height: 1.2em;
}
.form-status.success { color: var(--accent); }
.form-status.error { color: #e2665a; }

/* ============ Footer ============ */
.site-footer {
  border-top: none;
  padding: 26px 0;
  background: var(--nav-bg);
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--nav-text-mid);
}
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner nav a {
  position: relative;
  color: var(--nav-text-mid);
  text-decoration: none;
  padding-bottom: 3px;
}
.footer-inner nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--logo-gradient);
  transition: right 0.25s ease;
}
.footer-inner nav a:hover { color: var(--nav-text); }
.footer-inner nav a:hover::after,
.footer-inner nav a:focus-visible::after { right: 0; }
.footer-inner > p { color: #FFFFFF; }

/* ============ Reveal-on-scroll ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-card { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .about-cards { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 20px; }
  .hero-inner { padding-top: 40px; padding-bottom: 40px; }
  .about, .services, .projects, .testimonials, .team, .process, .contact { padding: 72px 0; }
}

/* ============ Hover-to-blink interaction (services, process cards) ============ */
@keyframes blinkGlow {
  0%, 100% {
    border-color: var(--border);
    box-shadow: 0 0 0 rgba(79, 84, 67, 0);
  }
  50% {
    border-color: rgba(79, 84, 67, 0.75);
    box-shadow: 0 0 22px rgba(79, 84, 67, 0.28);
  }
}
.blink-hover {
  cursor: pointer;
}
.blink-hover:hover,
.blink-hover:focus-visible {
  animation: blinkGlow 1.1s ease-in-out infinite;
}

/* Service cards are now links; restore block layout + link resets */
a.service-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.service-card .card-cta {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.service-card:hover .card-cta,
.service-card:focus-visible .card-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Detail pages (service.html / project.html) ============ */
.detail-header {
  border-bottom: 1px solid var(--border);
  padding: 100px 0 60px;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-mid);
  font-size: 0.88rem;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}
.detail-back:hover { color: var(--accent); }
.detail-icon {
  width: 56px; height: 56px;
  border-radius: 8px;
  background: linear-gradient(155deg, rgba(125,130,113,0.28), rgba(91,97,82,0.2));
  border: 1px solid rgba(125,130,113,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 22px;
}
.detail-title { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 18ch; }
.detail-lede { font-size: 1.08rem; color: var(--text-hi); max-width: 62ch; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.detail-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}
.detail-header-row .detail-tags { margin-top: 0; }
.detail-report {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.detail-report-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-low);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.detail-report-actions { display: flex; gap: 10px; }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }
@media (max-width: 640px) {
  .detail-report { width: 100%; }
  .detail-report-actions { width: 100%; }
  .detail-report-actions .btn { flex: 1; justify-content: center; }
}

.detail-body { padding: 64px 0 120px; }
.detail-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: start;
}
.detail-section { margin-bottom: 40px; }
.detail-section h2 { font-size: 1.4rem; margin-bottom: 14px; }
.detail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.detail-list li {
  display: flex;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--text-mid);
}
.detail-list li::before {
  content: '→';
  color: var(--accent);
  flex: none;
}
.detail-side {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
  position: sticky;
  top: 96px;
}
.detail-side h3 { font-size: 1rem; margin-bottom: 14px; }
.detail-quote {
  font-style: italic;
  color: var(--text-hi);
  font-size: 0.98rem;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  margin: 0 0 12px;
}
.detail-quote-author { font-size: 0.85rem; color: var(--text-low); }
.detail-cta { margin-top: 20px; }
.detail-visual {
  border-radius: var(--radius);
  min-height: 200px;
  margin-bottom: 36px;
  background:
    radial-gradient(circle at 30% 20%, rgba(125,130,113,0.22), transparent 60%),
    linear-gradient(150deg, #1c1c1c, #101010);
  border: 1px solid var(--border);
}
.detail-loading, .detail-error {
  padding: 140px 24px;
  text-align: center;
  color: var(--text-mid);
}
.detail-error a { color: var(--accent); font-weight: 600; }

@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
}

/* ============ Team photos (additive) ============ */
.team-avatar-photo {
  width: 104px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  display: block;
  border: 2px solid var(--glass-border);
  box-shadow: var(--card-shadow);
}
.team-email {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--accent);
}
.team-email:hover { text-decoration: underline; }

/* ============ View router (index.html now covers home/project/service) ============ */
/* Prevents a flash of the wrong view before js/main.js finishes initializing. */
html[data-view="project"] #main,
html[data-view="project"] #serviceContent,
html[data-view="project"] #processContent,
html[data-view="service"] #main,
html[data-view="service"] #projectContent,
html[data-view="service"] #processContent,
html[data-view="process"] #main,
html[data-view="process"] #projectContent,
html[data-view="process"] #serviceContent {
  display: none;
}
