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

:root {
  --bg: #fbfaf9;
  --fg: #1a1a1a;
  --muted: #666;
  --secondary: #e8e7e5;
  --border: #d9d9d9;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(251, 250, 249, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-circle {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--fg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-circle span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  font-weight: 500;
}

.brand-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.nav-contact {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--fg);
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-contact:hover {
  opacity: 0.5;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 24px 0;
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.03;
  pointer-events: none;
}

.hero-outer {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content {
  max-width: 896px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 10vw, 128px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 32px;
}

.hero h1 em {
  font-weight: 300;
}

.hero-subtitle {
  font-size: clamp(18px, 2vw, 20px);
  color: var(--muted);
  max-width: 512px;
  line-height: 1.65;
  margin-left: 8px;
}

/* Sections */
.section {
  padding: 128px 0;
}

.section-white {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.section-tinted {
  background: rgba(232, 231, 229, 0.4);
}

/* Grid layouts */
.grid-2 {
  display: grid;
  gap: 64px;
}

.grid-3 {
  display: grid;
  gap: 48px;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 128px;
  }

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

  .brand-name {
    display: inline;
  }
}

@media (max-width: 767px) {
  .brand-name {
    display: none;
  }

  .section {
    padding: 80px 0;
  }
}

/* Typography */
h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

p {
  color: var(--muted);
  margin-bottom: 16px;
}

p strong {
  color: var(--fg);
}

/* Pull quote */
.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--fg);
  border-left: 2px solid var(--fg);
  padding-left: 24px;
  margin-top: 32px;
}

/* Testimonial */
.testimonial-section {
  padding: 96px 0;
  text-align: center;
}

.testimonial {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto 24px;
  color: var(--fg);
  border: none;
  padding: 0;
}

.testimonial-attr {
  font-size: 14px;
  color: var(--muted);
}

.section-white-nb {
  background: #fff;
}

/* Philosophy cards */
.card {
  cursor: default;
}

.card-line {
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  transition: background 0.5s;
}

.card:hover .card-line {
  background: rgba(0, 0, 0, 1);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.icon {
  color: var(--muted);
}

.card p {
  font-size: 15px;
}

/* Residency */
.residency-section {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.residency-tagline {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--muted);
  margin-top: 8px;
}

/* CTA */
.cta-section {
  background: #000;
  padding: 160px 0;
}

.cta-content {
  text-align: center;
}

.cta-section h2 {
  color: #fff;
}

.cta-section h2 em {
  opacity: 0.5;
}

.cta-sub {
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  margin: 24px auto 48px;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.2s;
}

.cta-link:hover {
  border-color: #fff;
}

.cta-link svg {
  transition: transform 0.2s;
}

.cta-link:hover svg {
  transform: translateX(4px);
}

/* Footer */
.footer {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 15px;
}

.footer-dot {
  width: 8px;
  height: 8px;
  background: #000;
  border-radius: 50%;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
  opacity: 0.5;
  margin: 0;
}
