:root {
  --brand: #39727E;
  --brand-deep: #214B55;
  --brand-light: #4A8A97;
  --brand-glow: rgba(57, 114, 126, 0.15);
  --brand-text: #4A9BAA;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-brand: 'Montserrat', 'DM Sans', system-ui, sans-serif;
  --max-width: 1200px;
  --section-gap: 120px;
  --radius: 16px;
  --transition: 0.35s ease;
}

[data-theme="dark"] {
  --bg: #0A0E0F;
  --bg-elevated: #111617;
  --bg-card: #151B1D;
  --bg-card-hover: #1A2224;
  --bg-warm: #121A1C;
  --text: #E2E8EA;
  --text-secondary: #8A9CA1;
  --text-tertiary: #556469;
  --border: #1E2724;
  --border-light: #161E20;
  --border-hover: #2A3638;
  --accent-bg: rgba(57, 114, 126, 0.15);
  --accent-border: rgba(74, 138, 151, 0.25);
  --nav-bg: rgba(10, 14, 15, 0.8);
  --nav-bg-scroll: rgba(10, 14, 15, 0.95);
  --shadow-card: 0 2px 20px rgba(0,0,0,0.3);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.4);
  --mark-color: var(--brand-text);
}

[data-theme="light"] {
  --bg: #F8FAFA;
  --bg-elevated: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --bg-warm: #EFF5F6;
  --text: #1A2426;
  --text-secondary: #506468;
  --text-tertiary: #7E9498;
  --border: #DDE6E8;
  --border-light: #EBF0F1;
  --border-hover: #C8D4D7;
  --accent-bg: #E6F0F2;
  --accent-border: #C8DDE1;
  --nav-bg: rgba(248, 250, 250, 0.85);
  --nav-bg-scroll: rgba(248, 250, 250, 0.95);
  --shadow-card: 0 2px 20px rgba(0,0,0,0.04);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.08);
  --mark-color: var(--brand);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); color: var(--text); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light); transition: all var(--transition);
  width: 100%;
}
nav.scrolled { background: var(--nav-bg-scroll); box-shadow: 0 1px 20px rgba(0,0,0,0.1); }
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 40px;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
  width: 100%; box-sizing: border-box;
}
.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); min-width: 0; }
.nav-logo-mark { height: 32px; width: 32px; display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-mark svg { height: 32px; width: 32px; color: var(--mark-color); }
.nav-logo-text {
  font-family: var(--font-brand); font-weight: 600; font-size: 15px;
  letter-spacing: -0.02em; color: var(--text); transition: color var(--transition);
}
.nav-logo-text span { color: var(--text-tertiary); font-weight: 400; }
.nav-right { display: flex; align-items: center; gap: 32px; min-width: 0; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 450; color: var(--text-secondary);
  text-decoration: none; transition: color 0.2s ease; letter-spacing: -0.01em;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: 13px !important; font-weight: 500 !important; color: #FFFFFF !important;
  background: var(--brand); padding: 9px 20px; border-radius: 8px;
  transition: background 0.2s ease, transform 0.15s ease !important;
}
.nav-cta:hover { background: var(--brand-light) !important; transform: translateY(-1px); }

.mobile-menu-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--bg-card); cursor: pointer;
  align-items: center; justify-content: center; transition: all 0.2s ease;
  color: var(--text-secondary);
}
.mobile-menu-toggle:hover { border-color: var(--border-hover); color: var(--text); }
.mobile-menu-toggle svg {
  width: 20px; height: 20px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.mobile-menu-toggle .icon-close { display: none; }
.mobile-menu-toggle.open .icon-menu { display: none; }
.mobile-menu-toggle.open .icon-close { display: block; }

.mobile-drawer {
  position: fixed; top: 72px; left: 0; right: 0; bottom: 0; z-index: 95;
  background: var(--bg-elevated); transform: translateX(100%);
  transition: transform 0.3s ease; overflow-y: auto;
  border-top: 1px solid var(--border-light);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-nav-links {
  list-style: none; padding: 24px 20px; display: flex; flex-direction: column; gap: 12px;
}
.mobile-nav-links a {
  display: block; padding: 18px 20px; font-size: 16px; font-weight: 500;
  color: var(--text); text-decoration: none; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 12px; transition: all 0.2s ease;
  min-height: 56px; display: flex; align-items: center;
}
.mobile-nav-links a:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.mobile-nav-links a.nav-cta {
  color: #FFFFFF !important; background: var(--brand); border-color: var(--brand);
}
.mobile-nav-links a.nav-cta:hover { background: var(--brand-light); }

.theme-toggle {
  width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-card); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s ease; color: var(--text-secondary);
}
.theme-toggle:hover { border-color: var(--border-hover); color: var(--text); }
.theme-toggle svg {
  width: 18px; height: 18px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.container {
  max-width: var(--max-width); margin: 0 auto; padding: 0 40px;
}

.hero {
  padding: 160px 0 100px;
}
.hero-content { max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500;
  color: var(--brand-text); background: var(--accent-bg); border: 1px solid var(--accent-border);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 28px; letter-spacing: -0.01em;
}
.hero-badge-dot { width: 6px; height: 6px; background: var(--brand-text); border-radius: 50%; }
.hero h1 {
  font-family: var(--font-display); font-size: 54px; line-height: 1.1;
  letter-spacing: -0.03em; font-weight: 400; margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--brand-text); }
.hero-description {
  font-size: 17px; line-height: 1.7; color: var(--text-secondary);
  margin-bottom: 40px; max-width: 640px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body);
  font-size: 14px; font-weight: 500; color: #FFFFFF; background: var(--brand);
  padding: 14px 28px; border-radius: 10px; text-decoration: none;
  transition: all 0.2s ease; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--brand-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(57,114,126,0.25); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body);
  font-size: 14px; font-weight: 500; color: var(--text); background: transparent;
  padding: 14px 28px; border-radius: 10px; text-decoration: none;
  transition: all 0.2s ease; border: 1.5px solid var(--border); cursor: pointer;
}
.btn-secondary:hover { border-color: var(--border-hover); transform: translateY(-2px); }

.section {
  padding: var(--section-gap) 0;
}
.section-header { max-width: 720px; margin-bottom: 64px; }
.section-label { 
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; 
  text-transform: uppercase; color: var(--brand-text); margin-bottom: 16px; 
}
.section-title { 
  font-family: var(--font-display); font-size: 40px; line-height: 1.15; 
  letter-spacing: -0.03em; margin-bottom: 16px; 
}
.section-description { font-size: 16px; color: var(--text-secondary); line-height: 1.7; }

.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(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; transition: all var(--transition); position: relative; overflow: hidden;
}
.card:hover { 
  border-color: var(--border-hover); box-shadow: var(--shadow-hover); 
  transform: translateY(-4px); background: var(--bg-card-hover); 
}
.card-icon {
  width: 44px; height: 44px; background: var(--accent-bg); border: 1px solid var(--accent-border);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; color: var(--brand-text); font-size: 18px;
}
.card-label {
  font-size: 12px; font-weight: 500; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px;
}
.card h3 { 
  font-family: var(--font-display); font-size: 22px; 
  letter-spacing: -0.02em; margin-bottom: 12px; 
}
.card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

.work-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all var(--transition); text-decoration: none; display: block;
}
.work-item:hover { 
  border-color: var(--border-hover); box-shadow: var(--shadow-hover); transform: translateY(-4px); 
}
.work-item-image {
  width: 100%; aspect-ratio: 16/9; background: var(--bg-warm);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border); color: var(--text-tertiary);
}
.work-item-content { padding: 28px; }
.work-item-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; 
  text-transform: uppercase; color: var(--brand-text); margin-bottom: 8px;
}
.work-item h3 { 
  font-family: var(--font-display); font-size: 20px; 
  letter-spacing: -0.02em; margin-bottom: 8px; color: var(--text);
}
.work-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

.contact-section {
  padding: var(--section-gap) 0;
}
.contact-card {
  background: var(--brand-deep); border-radius: 24px; padding: 80px;
  position: relative; overflow: hidden;
}
.contact-card::before {
  content: ''; position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(57,114,126,0.2) 0%, transparent 70%);
  top: -200px; right: -100px; pointer-events: none;
}
.contact-content { position: relative; z-index: 1; max-width: 600px; }
.contact-content h2 { 
  font-family: var(--font-display); font-size: 40px; line-height: 1.15; 
  letter-spacing: -0.03em; color: #FFFFFF; margin-bottom: 16px; 
}
.contact-content p { 
  font-size: 16px; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 32px; 
}
.contact-email {
  display: inline-flex; align-items: center; gap: 10px; font-size: 18px; 
  font-weight: 500; color: #FFFFFF; text-decoration: none;
  background: rgba(255,255,255,0.1); padding: 14px 24px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15); transition: all 0.2s ease;
}
.contact-email:hover { 
  background: rgba(255,255,255,0.15); transform: translateY(-2px); 
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

footer { border-top: 1px solid var(--border); background: var(--bg-elevated); transition: all var(--transition); }
.footer-inner { 
  max-width: var(--max-width); margin: 0 auto; padding: 48px 40px; 
  display: flex; justify-content: space-between; align-items: center; 
}
.footer-left { display: flex; align-items: center; gap: 24px; }
.footer-copy { font-size: 13px; color: var(--text-tertiary); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { 
  font-size: 13px; color: var(--text-tertiary); text-decoration: none; 
  transition: color 0.2s ease; display: flex; align-items: center; gap: 6px; 
}
.footer-links a:hover { color: var(--text); }

@media (max-width: 960px) {
  :root { --section-gap: 80px; }
  .nav-links { display: none; }
  .mobile-menu-toggle { display: flex; }
  .nav-logo-text { display: none; }
  .nav-right { gap: 16px; }
  .hero { padding-top: 120px; }
  .hero h1 { font-size: 42px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 24px; text-align: center; }
  .footer-left { flex-direction: column; }
  .contact-page-grid { grid-template-columns: 1fr !important; }
  .about-founder-grid { grid-template-columns: 1fr !important; gap: 40px !important; text-align: center; }
  .about-founder-grid img { margin: 0 auto !important; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .nav-right { gap: 12px; }
  .hero h1 { font-size: 34px; }
  .section-title { font-size: 32px; }
  .contact-card { padding: 40px 24px; position: relative; }
}

@media (max-width: 400px) {
  .nav-inner { padding: 0 16px; }
  .nav-right { gap: 8px; }
  .theme-toggle { width: 36px; height: 36px; }
  .mobile-menu-toggle { width: 36px; height: 36px; }
}
