/* ==========================================================================
   Dharma Designs — Boutique Studio
   Dark, editorial, Boathouse-inspired
   ========================================================================== */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #f4ede2;
  --ink: #f4ede2;
  --ink-dim: #8a857d;
  --ink-mute: #4a463f;
  --accent: #d97757;
  --accent-2: #c4a574;
  --line: rgba(244, 237, 226, 0.08);
  --line-strong: rgba(244, 237, 226, 0.2);
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Inter Tight', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

@media (max-width: 768px) {
  body { cursor: auto; }
}

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

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

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Cursor */
.cursor-dot {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease;
  transform: translate(-50%, -50%);
}
.cursor-dot.hover {
  width: 48px;
  height: 48px;
  background: var(--ink);
}

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  mix-blend-mode: difference;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: inline-block;
  color: var(--accent);
  font-size: 22px;
  animation: spin 18s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: opacity 0.2s ease;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 20px !important;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--bg);
}

@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav-links { gap: 16px; }
  .nav-links li:not(:last-child) { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100vh;
  padding: 140px 40px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  text-transform: uppercase;
  animation: fadeUp 1s ease 0.2s both;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 13vw, 220px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.04em;
  margin: 40px 0;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line span,
.hero-title .line {
  animation: revealUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-title .line:nth-child(1) { animation-delay: 0.3s; }
.hero-title .line:nth-child(2) { animation-delay: 0.45s; }
.hero-title .line:nth-child(3) { animation-delay: 0.6s; }
.hero-title .line:nth-child(4) { animation-delay: 0.75s; }
.hero-title .line:nth-child(5) { animation-delay: 0.9s; }

@keyframes revealUp {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.italic {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  animation: fadeUp 1s ease 1.2s both;
}

.hero-sub {
  max-width: 480px;
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--ink-dim);
  line-height: 1.45;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 22px 36px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.3s ease;
}

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

.hero-cta svg { transition: transform 0.3s ease; }
.hero-cta:hover svg { transform: translateX(4px); }

.hero-tag {
  margin-top: 80px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  text-transform: uppercase;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  animation: fadeUp 1s ease 1.4s both;
}

@media (max-width: 768px) {
  .hero { padding: 100px 20px 40px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .hero-cta { padding: 18px 28px; }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
  background: var(--bg);
}

.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 90px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.marquee-track .sep {
  color: var(--accent);
  font-weight: 400;
}

@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Section labels
   ========================================================================== */
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 60px;
}

.section-label.light { color: var(--ink-mute); }
.services .section-label.light { color: rgba(10, 10, 10, 0.45); }
.process .section-label.light { color: rgba(10, 10, 10, 0.45); }
.contact .section-label.light { color: rgba(10, 10, 10, 0.45); }

.section-label .num {
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

/* ==========================================================================
   Manifesto
   ========================================================================== */
.manifesto {
  padding: 140px 40px;
  border-bottom: 1px solid var(--line);
}

.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
  max-width: 1200px;
  margin-bottom: 100px;
}

.manifesto-text em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  padding-top: 60px;
  border-top: 1px solid var(--line);
}

.manifesto-grid .big-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1;
}

.manifesto-grid p {
  font-size: 14px;
  color: var(--ink-dim);
  max-width: 240px;
}

@media (max-width: 768px) {
  .manifesto { padding: 80px 20px; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  background: var(--bg-3);
  color: var(--bg);
  padding: 140px 40px;
}

.services-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 12vw, 180px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 100px;
}

.services-title .italic { color: #b85d3a; }

.services-list {
  border-top: 1px solid rgba(10, 10, 10, 0.15);
}

.service {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding: 60px 0;
  border-bottom: 1px solid rgba(10, 10, 10, 0.15);
  transition: padding 0.4s ease, background 0.4s ease;
  position: relative;
}

.service:hover {
  padding-left: 24px;
  padding-right: 24px;
}

.service::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: rgba(217, 119, 87, 0.08);
  transition: width 0.4s ease;
  z-index: -1;
}

.service:hover::before { width: 100%; }

.service-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(10, 10, 10, 0.5);
  display: block;
  margin-bottom: 8px;
}

.service-left h3 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.service-right p {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  max-width: 560px;
  margin-bottom: 24px;
  color: rgba(10, 10, 10, 0.75);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.service-tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border: 1px solid rgba(10, 10, 10, 0.2);
  border-radius: 999px;
  color: rgba(10, 10, 10, 0.7);
}

@media (max-width: 768px) {
  .services { padding: 80px 20px; }
  .service { grid-template-columns: 1fr; gap: 20px; padding: 40px 0; }
  .service:hover { padding-left: 0; padding-right: 0; }
}

/* ==========================================================================
   Work
   ========================================================================== */
.work {
  padding: 140px 40px;
  border-bottom: 1px solid var(--line);
}

.work-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 12vw, 180px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 80px;
}

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

.work-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}

.work-card.span-2 { grid-column: span 2; }

.work-visual {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.visual-a { background: linear-gradient(135deg, #d97757 0%, #8a3b22 100%); }
.visual-b { background: linear-gradient(135deg, #c4a574 0%, #5a4a2e 100%); }
.visual-c { background: linear-gradient(135deg, #4a5a6e 0%, #1f2a3a 100%); }
.visual-d { background: linear-gradient(135deg, #2a4a3e 0%, #0e2218 100%); }

.visual-shape {
  font-size: clamp(120px, 18vw, 240px);
  color: rgba(244, 237, 226, 0.12);
  font-family: var(--font-display);
  transition: transform 0.6s ease, color 0.6s ease;
}

.work-card:hover .visual-shape {
  transform: scale(1.1) rotate(8deg);
  color: rgba(244, 237, 226, 0.2);
}

.work-info {
  padding: 28px;
}

.work-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.work-info h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.work-info p {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card.span-2 { grid-column: span 1; }
  .work { padding: 80px 20px; }
}

/* ==========================================================================
   Process
   ========================================================================== */
.process {
  background: var(--bg-3);
  color: var(--bg);
  padding: 140px 40px;
}

.process-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 12vw, 180px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 100px;
}

.process-title .italic { color: #b85d3a; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  border-top: 1px solid rgba(10, 10, 10, 0.15);
  padding-top: 60px;
}

.step {
  position: relative;
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 700;
  color: rgba(10, 10, 10, 0.12);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.step p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(10, 10, 10, 0.7);
}

@media (max-width: 900px) {
  .process { padding: 80px 20px; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 500px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  background: var(--bg-3);
  color: var(--bg);
  padding: 140px 40px;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 13vw, 200px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 40px;
}

.contact-title .line { display: block; }
.contact-title .italic { color: #b85d3a; }

.contact-sub {
  max-width: 600px;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  color: rgba(10, 10, 10, 0.7);
  margin-bottom: 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.contact-card {
  padding: 36px;
  border: 1px solid rgba(10, 10, 10, 0.15);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  min-height: 180px;
  justify-content: space-between;
}

.contact-card:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}

.contact-card.primary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}

.contact-card.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

.card-value {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.card-arrow {
  align-self: flex-end;
  font-size: 24px;
  transition: transform 0.3s ease;
}

.contact-card:hover .card-arrow { transform: translate(4px, -4px); }

@media (max-width: 900px) {
  .contact { padding: 80px 20px; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 80px 40px 40px;
  background: var(--bg);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}

.footer-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-tag {
  max-width: 400px;
  font-size: 14px;
  color: var(--ink-dim);
  text-align: right;
}

.footer-bottom {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.footer-bottom a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .footer { padding: 60px 20px 30px; }
  .footer-top { flex-direction: column; }
  .footer-tag { text-align: left; }
}
