@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Lora:ital@0;1&display=swap');

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

:root {
  --navy: #0C447C;
  --navy-deep: #042C53;
  --navy-mid: #185FA5;
  --navy-light: #378ADD;
  --sky: #85B7EB;
  --fog: #E6F1FB;
  --teal: #5DCAA5;
  --teal-deep: #0F6E56;
  --teal-dark: #04342C;
  --text: #E6F1FB;
  --text-muted: #85B7EB;
  --border: rgba(55, 138, 221, 0.3);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 48px;
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--navy);
  z-index: 100;
}

.nav-logo {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: .02em;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color .2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--teal-dark) !important;
  background: var(--teal);
  padding: 8px 20px;
  border-radius: 6px;
  transition: opacity .2s !important;
}

.nav-cta:hover { opacity: .85; }

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 65px);
  max-height: 700px;
}

.hero-left-wrap {
  display: flex;
}

.hero-social {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 52px 24px 52px 48px;
  justify-content: center;
  border-right: 0.5px solid var(--border);
}

.hero-social a {
  color: var(--navy-light);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transition: color .2s;
}

.hero-social a:hover { color: var(--teal); }

.hero-content {
  padding: 52px 40px 52px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-tag {
  font-size: 11px;
  color: var(--teal);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-content h1 {
  font-family: 'Lora', serif;
  font-size: 42px;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-bio {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 400px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  font-size: 13px;
  font-weight: 500;
  color: var(--teal-dark);
  background: var(--teal);
  padding: 10px 22px;
  border-radius: 6px;
  transition: opacity .2s;
}

.btn-primary:hover { opacity: .85; }

.btn-ghost {
  font-size: 13px;
  color: var(--text-muted);
  border: 0.5px solid var(--border);
  padding: 10px 22px;
  border-radius: 6px;
  transition: border-color .2s, color .2s;
}

.btn-ghost:hover { border-color: var(--sky); color: var(--text); }

.hero-photo {
  overflow: hidden;
  border-left: 0.5px solid var(--border);
}

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

/* SECTIONS */
.section {
  padding: 52px 48px;
  border-top: 0.5px solid var(--border);
}

.section-label {
  font-size: 11px;
  color: var(--teal);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

/* CASE STUDY CARDS */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.case-card {
  background: var(--navy-deep);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  display: block;
  transition: border-color .2s, background .2s;
}

.case-card:hover {
  border-color: var(--teal);
  background: var(--teal-deep);
}

.case-tag {
  font-size: 10px;
  color: var(--teal);
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.case-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 8px;
}

.case-meta {
  font-size: 12px;
  color: var(--navy-light);
}

.case-arrow {
  display: block;
  font-size: 16px;
  color: var(--teal);
  margin-top: 18px;
}

/* CASE STUDY PAGE */
.page-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 48px 96px;
}

.page-eyebrow {
  font-size: 11px;
  color: var(--teal);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-wrap h1 {
  font-family: 'Lora', serif;
  font-size: 34px;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 14px;
}

.page-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 0.5px solid var(--border);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}

.stat {
  background: var(--navy-deep);
  border-radius: 8px;
  padding: 16px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
}

.cs-section { margin-bottom: 40px; }

.cs-section h2 {
  font-size: 11px;
  color: var(--teal);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.cs-section h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin: 24px 0 8px;
}

.cs-section p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

.cs-section p + p { margin-top: 14px; }

.page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 48px;
  border-top: 0.5px solid var(--border);
  margin-top: 48px;
}

.page-nav a {
  font-size: 13px;
  color: var(--teal);
}

.page-nav a:hover { color: var(--text); }

/* CONTACT PAGE */
.contact-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 80px 48px;
}

.contact-wrap h1 {
  font-family: 'Lora', serif;
  font-size: 34px;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  margin-bottom: 16px;
}

.contact-wrap p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-muted);
}

.contact-list li a {
  color: var(--teal);
  border-bottom: 0.5px solid transparent;
  transition: border-color .2s;
}

.contact-list li a:hover { border-color: var(--teal); }

.contact-label {
  font-size: 11px;
  color: var(--navy-light);
  width: 70px;
  flex-shrink: 0;
  letter-spacing: .04em;
}

/* PORTFOLIO INDEX */
.portfolio-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 48px 96px;
}

.portfolio-wrap h1 {
  font-family: 'Lora', serif;
  font-size: 34px;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  margin-bottom: 14px;
}

.portfolio-intro {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 0.5px solid var(--border);
}

.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.portfolio-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 0.5px solid var(--border);
  gap: 24px;
  transition: opacity .2s;
}

.portfolio-item:hover { opacity: .75; }

.portfolio-item-left { flex: 1; }

.portfolio-item-tag {
  font-size: 10px;
  color: var(--teal);
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.portfolio-item-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.portfolio-item-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.portfolio-item-arrow {
  font-size: 18px;
  color: var(--teal);
  margin-top: 4px;
  flex-shrink: 0;
}

/* FOOTER */
.footer {
  padding: 24px 48px;
  border-top: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-contact {
  font-size: 12px;
  color: var(--teal);
}

.footer-copy {
  font-size: 11px;
  color: var(--navy-light);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav { padding: 18px 24px; gap: 16px; }
  .nav-links { gap: 16px; }
  .hero { grid-template-columns: 1fr; max-height: none; min-height: auto; }
  .hero-photo { height: 320px; border-left: none; border-top: 0.5px solid var(--border); }
  .hero-social { display: none; }
  .hero-content { padding: 40px 24px 32px; }
  .hero-content h1 { font-size: 30px; }
  .case-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .section { padding: 40px 24px; }
  .page-wrap, .portfolio-wrap, .contact-wrap { padding: 40px 24px 64px; }
  .footer { padding: 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
