@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,400&display=swap');

/* ── Variables ── */
:root {
  --bg: #FAFAFA;
  --text: #1A1A1A;
  --teal: #08bda2;
  --teal-dark: #159280;
  --muted: #6B7280;
  --subtle: #4B5563;
  --border: #E5E7EB;
  --card-bg: #FFFFFF;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3 {
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }

p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

/* ── Layout ── */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Navigation ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  max-width: 1040px;
  margin: 0 auto;
}

.nav-logo svg {
  height: 68px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Merriweather', serif;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtle);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--teal); }

/* ── Hero ── */
.hero {
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(8,189,162,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
  display: block;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 2rem;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--teal);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--subtle);
  max-width: 560px;
  line-height: 1.9;
  margin-bottom: 3rem;
  font-weight: 300;
}

.hero-cta {
  display: inline-block;
  background: var(--text);
  color: #fff !important;
  padding: 0.85rem 2rem;
  font-family: 'Merriweather', serif;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
}

.hero-cta:hover {
  background: var(--teal);
  transform: translateY(-1px);
}

/* ── Teal rule ── */
.teal-rule {
  width: 48px;
  height: 3px;
  background: var(--teal);
  margin-bottom: 2rem;
}

/* ── Sections ── */
section {
  padding: 5rem 0;
}

section + section {
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  display: block;
}

/* ── What I do grid ── */
.what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.what-item h3 {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.what-item p {
  font-size: 0.92rem;
  color: var(--subtle);
  font-weight: 300;
  line-height: 1.9;
}

/* ── Background strip ── */
.bg-strip {
  background: var(--text);
  color: #fff;
  padding: 5rem 0;
}

.bg-strip .section-label { color: var(--teal); }
.bg-strip h2 { color: #fff; }

.timeline {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.timeline-item:last-child { border-bottom: none; }

.timeline-period {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--teal);
  letter-spacing: 0.05em;
  padding-top: 0.15rem;
}

.timeline-company {
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.timeline-role {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 0;
}

/* ── References cards ── */
.ref-intro {
  font-size: 1rem;
  color: var(--subtle);
  font-weight: 300;
  max-width: 600px;
  margin-bottom: 3.5rem;
  line-height: 1.9;
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.ref-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 2rem;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.ref-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.ref-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--teal);
  opacity: 0;
  transition: opacity 0.2s;
}

.ref-card:hover::before { opacity: 1; }

.ref-company {
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.ref-period {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.ref-role {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.ref-desc {
  font-size: 0.9rem;
  color: var(--subtle);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 0;
}

.ref-repeat {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid var(--teal);
  padding: 0.2rem 0.6rem;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--subtle);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.9;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

.contact-detail a {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--subtle);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.contact-detail a:hover { color: var(--teal); }

.contact-detail span {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.2rem;
  display: block;
}

/* ── Form ── */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: 'Merriweather', serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}

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

.form-group textarea { height: 140px; resize: vertical; }

.form-submit {
  display: inline-block;
  background: var(--text);
  color: #fff;
  border: none;
  padding: 0.9rem 2.2rem;
  font-family: 'Merriweather', serif;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
}

.form-submit:hover {
  background: var(--teal);
  transform: translateY(-1px);
}

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { margin-bottom: 1rem; }

.page-hero p {
  font-size: 1rem;
  color: var(--subtle);
  font-weight: 300;
  max-width: 560px;
  line-height: 1.9;
  margin-bottom: 0;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--teal); }

/* ── Fade-in animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.7s ease forwards;
  opacity: 0;
}
.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.25s; }
.fade-up:nth-child(3) { animation-delay: 0.4s; }
.fade-up:nth-child(4) { animation-delay: 0.55s; }

/* ── Mobile ── */
@media (max-width: 700px) {
  .nav-links { gap: 1.5rem; }
  .nav-links a { font-size: 0.72rem; }
  .what-grid { grid-template-columns: 1fr; gap: 2rem; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  section { padding: 3.5rem 0; }
  .hero { padding: 4rem 0 3rem; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0.85rem 1.25rem; }
  .container { padding: 0 1.25rem; }
  .nav-links { gap: 1rem; }
}

/* ── Hero with photo ── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
}

.hero-photo {
  position: relative;
}

.hero-photo img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-photo::before {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--teal);
  z-index: -1;
}

/* ── Why fractional with photo ── */
.why-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 5rem;
  align-items: center;
}

.why-photo img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── Mobile photo adjustments ── */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-photo {
    order: -1;
  }
  .hero-photo img {
    height: 380px;
  }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .why-photo img {
    height: 320px;
  }
}

/* ── Contact photo ── */
.contact-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 3px solid var(--teal);
  margin-bottom: 1.5rem;
  display: block;
}

/* ── Contact intro: photo left of heading ── */
.contact-intro {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.contact-intro .contact-photo {
  margin-bottom: 0;
  flex-shrink: 0;
}

/* ── Page hero intro: photo next to h1 ── */
.page-hero-intro {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.page-hero-intro .contact-photo {
  margin-bottom: 0;
  flex-shrink: 0;
}
