/* Theme variables */
:root {
  /* Refined Palette - Lighter Warm Background + High Contrast */
  --bg: #f7f2eb;
  /* Lighter warm beige (balanced) */
  --surface: #ffffff;
  /* Pure white for cards (high contrast) */
  --surface-subtle: #ffffff;
  /* Inputs also white */

  --text: #1a1816;
  /* Darker, sharper text */
  --text-light: #4a423e;
  /* Secondary text */
  --muted: #7a6f69;
  /* Muted text */

  --brand: #5e3a2a;
  /* Deep espresso/terra */
  --brand-dark: #3d261b;
  /* Even darker for hover */
  --accent: #c18f65;
  /* Warm sand accent */

  --border: rgba(94, 58, 42, 0.12);
  --border-hover: rgba(94, 58, 42, 0.25);

  --ring: rgba(94, 58, 42, 0.2);
  --radius: 24px;
  --radius-sm: 12px;

  --shadow-sm: 0 2px 8px rgba(26, 24, 22, 0.04);
  --shadow-md: 0 8px 24px rgba(26, 24, 22, 0.06);
  --shadow-lg: 0 16px 48px rgba(26, 24, 22, 0.08);

  --pp: 280px;
  --header-height: 72px;

  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Global Reset & Typography */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  /* Subtle noise texture for paper feel */
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E"),
    radial-gradient(circle at 0% 0%, rgba(193, 143, 101, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(94, 58, 42, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem 0;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1.5rem;
}

p {
  margin: 0 0 1rem 0;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 65ch;
  line-height: 1.7;
}

/* Layout */
.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
  position: relative;
}

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(252, 248, 242, 0.82);
  /* Slightly lighter tint for the top bar */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.site .row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.brand .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 0 0 4px rgba(94, 58, 42, 0.1);
}

nav {
  display: flex;
  gap: 4px;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s var(--ease-out);
}

nav a:hover {
  color: var(--brand);
  background: rgba(94, 58, 42, 0.06);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding: 60px 0 80px;
}

.pp-container {
  position: relative;
}

.pp {
  width: var(--pp);
  height: var(--pp);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  /* Floating animation */
  animation: float 6s ease-in-out infinite;
  margin: 0;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(-2deg);
  }

  50% {
    transform: translateY(-10px) rotate(0deg);
  }

  100% {
    transform: translateY(0px) rotate(-2deg);
  }
}

.pp:hover {
  animation-play-state: paused;
  transform: rotate(0deg) scale(1.02);
}

.pp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--brand);
  background: rgba(94, 58, 42, 0.08);
  padding: 6px 12px;
  border-radius: 99px;
  width: fit-content;
}

/* Buttons */
.cta {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s var(--ease-out);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(94, 58, 42, 0.2);
}

.btn.primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(94, 58, 42, 0.3);
}

.btn:not(.primary) {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn:not(.primary):hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--surface-subtle);
  transform: translateY(-2px);
}

/* Cards & Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.4s var(--ease-out);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card:hover::after {
  opacity: 1;
}

/* Stats */
.stat {
  text-align: center;
  align-items: flex-start;
  justify-content: center;
}

.stat .num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 8px;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Details View */
.timeline {
  position: relative;
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 32px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}

.timeline .item {
  position: relative;
}

.timeline .dot2 {
  position: absolute;
  left: -32px;
  top: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--brand);
  z-index: 1;
}

.timeline .dot2::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--brand);
  border-radius: 50%;
}

.role {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.company {
  color: var(--brand);
  font-family: 'Inter', sans-serif;
  /* Keep company name clean */
  font-size: 0.95em;
}

.meta {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

ul {
  padding-left: 20px;
  margin: 0;
}

li {
  margin-bottom: 8px;
  color: var(--text-light);
}

/* Contact Form */
form.card {
  max-width: 700px;
  margin: 0 auto;
}

form .btn {
  width: 100%;
  margin-top: 8px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

input,
textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(94, 58, 42, 0.25);
  /* Darker border */
  background: var(--surface-subtle);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  transition: all 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--ring);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

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

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 32px;
  }

  .hero-content {
    align-items: center;
  }

  .pp {
    transform: rotate(0);
    width: 240px;
    height: 240px;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  nav {
    display: none;
    /* Simple hide for mobile for now, or could be improved */
  }

  /* Mobile Nav tweak if needed, but keeping simple as requested */
  .site .row {
    justify-content: center;
  }

  nav {
    display: flex;
    margin-top: 12px;
    width: 100%;
    justify-content: center;
  }

  header.site {
    height: auto;
    padding: 12px 0;
  }

  .site .row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
