/* ============================================
   TYLER MURANAKA — tylermuranaka.com
   Dark Minimal + Topographic
   ============================================ */

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

:root {
  --bg:          #0a0a0a;
  --bg-card:     #111111;
  --bg-dark:     #080808;
  --border:      #1e1e1e;
  --border-l:    #2a2a2a;
  --text:        #e8e4dc;
  --text-muted:  #6b6760;
  --text-dim:    #3a3734;
  --accent:      #c8a96e;
  --white:       #f0ece4;
  --font-d:      'Syne', sans-serif;
  --font-b:      'DM Sans', sans-serif;
  --nav-h:       68px;
  --r:           4px;
  --r-lg:        6px;
  --ease:        0.2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-b); font-weight: 300; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* TOPO */
.topo {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden; z-index: 0;
}
.topo::before {
  content: ''; position: absolute; inset: -10%;
  background-image:
    repeating-radial-gradient(circle at 28% 38%, transparent 0, transparent 44px, rgba(200,169,110,0.045) 44px, rgba(200,169,110,0.045) 45px),
    repeating-radial-gradient(circle at 72% 62%, transparent 0, transparent 60px, rgba(200,169,110,0.03) 60px, rgba(200,169,110,0.03) 61px),
    repeating-radial-gradient(circle at 50% 18%, transparent 0, transparent 72px, rgba(200,169,110,0.025) 72px, rgba(200,169,110,0.025) 73px),
    repeating-radial-gradient(circle at 80% 20%, transparent 0, transparent 36px, rgba(200,169,110,0.02) 36px, rgba(200,169,110,0.02) 37px);
  animation: topoShift 30s ease-in-out infinite alternate;
}
.topo::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 60%, rgba(200,169,110,0.04) 0%, transparent 70%);
}
.topo--subtle::before { opacity: 0.5; }
@keyframes topoShift {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-2%,-3%) scale(1.05); }
}

/* CONTAINER */
.container { max-width: 1120px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; z-index: 100;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-logo {
  font-family: var(--font-d); font-weight: 800;
  font-size: 1rem; letter-spacing: 0.12em; color: var(--accent);
  transition: opacity var(--ease);
}
.nav-logo:hover { opacity: 0.7; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); position: relative; padding-bottom: 2px;
  transition: color var(--ease);
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--accent); transition: width 0.25s;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: all 0.25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(6,6,6,0.98); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 32px 20px; gap: 24px;
  z-index: 99; transform: translateY(-110%); transition: transform 0.3s;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-link { font-family: var(--font-d); font-size: 1.5rem; font-weight: 700; color: var(--text); transition: color var(--ease); }
.mobile-link:hover { color: var(--accent); }
@media (max-width: 768px) { .nav { padding: 0 20px; } .nav-links { display: none; } .nav-toggle { display: flex; } }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; font-family: var(--font-b);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: var(--r); transition: all var(--ease);
  cursor: pointer; border: none; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #0a0a0a; }
.btn-primary:hover { background: #d4b87a; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-l); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-full { width: 100%; justify-content: center; }

/* SECTION */
.section { padding: 96px 0; }
.section--dark { background: var(--bg-dark); }
.section--tight { padding: 40px 0; }
.section-tag {
  display: inline-block; font-size: 0.65rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-d); font-size: clamp(1.8rem,3.5vw,2.8rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--white);
}
.section-header { margin-bottom: 56px; }
.section-cta { margin-top: 48px; text-align: center; }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding-top: var(--nav-h); }
.hero-content { position: relative; z-index: 1; padding: 0 48px; max-width: 900px; animation: fadeUp 0.9s ease both; }
.hero-eyebrow { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; font-weight: 400; }
.hero-title { font-family: var(--font-d); font-size: clamp(3.8rem,9vw,8.5rem); font-weight: 800; line-height: 0.92; letter-spacing: -0.02em; color: var(--white); margin-bottom: 32px; }
.hero-title .accent { color: var(--accent); display: block; }
.hero-sub { font-size: 1.05rem; font-weight: 300; color: var(--text-muted); line-height: 1.6; margin-bottom: 44px; max-width: 380px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 40px; left: 48px; display: flex; align-items: center; gap: 14px; z-index: 1; }
.hero-scroll span { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); writing-mode: vertical-rl; }
.scroll-line { width: 1px; height: 56px; background: linear-gradient(to bottom, var(--accent), transparent); opacity: 0.6; animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
@media (max-width: 768px) { .hero-content { padding: 0 20px; } .hero-scroll { display: none; } }

/* PAGE HERO */
.page-hero { position: relative; padding: calc(var(--nav-h) + 80px) 0 72px; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.page-title { font-family: var(--font-d); font-size: clamp(2.4rem,5.5vw,4.5rem); font-weight: 800; line-height: 1.0; letter-spacing: -0.02em; color: var(--white); margin-top: 14px; animation: fadeUp 0.7s ease both; }

/* CARDS GRID */
.cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.card { background: var(--bg-card); padding: 44px 36px; display: flex; flex-direction: column; gap: 14px; transition: background var(--ease); }
.card:hover { background: #161616; }
.card-icon { color: var(--accent); margin-bottom: 6px; }
.card-title { font-family: var(--font-d); font-size: 1.2rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.card-body { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; flex: 1; }
.card-link { font-size: 0.78rem; font-weight: 500; color: var(--accent); margin-top: 8px; transition: opacity var(--ease); }
.card-link:hover { opacity: 0.7; }
@media (max-width: 900px) { .cards-grid { grid-template-columns: 1fr; } }

/* PROJECT ROWS */
.projects-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.project-row { display: flex; align-items: center; justify-content: space-between; padding: 28px 36px; border-bottom: 1px solid var(--border); background: var(--bg-card); transition: all var(--ease); gap: 20px; }
.project-row:last-child { border-bottom: none; }
.project-row:hover { background: #161616; padding-left: 48px; }
.project-type { display: block; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.project-name { font-family: var(--font-d); font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.project-meta { font-size: 0.8rem; color: var(--text-muted); }
.project-arrow { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; transition: transform var(--ease); }
.project-row:hover .project-arrow { transform: translateX(4px); }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 340px; gap: 72px; align-items: start; }
.about-heading { font-family: var(--font-d); font-size: 2.2rem; font-weight: 800; color: var(--white); margin-bottom: 14px; }
.about-lead { font-size: 1.05rem; color: var(--text); font-weight: 400; margin-bottom: 28px; line-height: 1.5; }
.about-text p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 18px; }
.about-text strong { color: var(--text); font-weight: 500; }
.inline-link { color: var(--accent); border-bottom: 1px solid rgba(200,169,110,0.3); transition: border-color var(--ease); }
.inline-link:hover { border-color: var(--accent); }
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--nav-h) + 32px); }
.sidebar-block { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px 26px; background: var(--bg-card); }
.sidebar-label { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; font-weight: 500; }
.sidebar-list li { font-size: 0.86rem; color: var(--text-muted); padding: 7px 0; border-bottom: 1px solid var(--border); line-height: 1.4; }
.sidebar-list li:last-child { border-bottom: none; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } .sidebar { position: static; } }

/* VENTURES */
.venture-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.venture-item { display: flex; align-items: center; justify-content: space-between; padding: 32px 40px; border-bottom: 1px solid var(--border); background: var(--bg-card); transition: all var(--ease); gap: 20px; }
.venture-item:last-child { border-bottom: none; }
.venture-item:hover { background: #161616; padding-left: 52px; }
.venture-name { font-family: var(--font-d); font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.venture-desc { font-size: 0.86rem; color: var(--text-muted); line-height: 1.6; }
.venture-desc em { color: var(--accent); font-style: italic; }
.venture-arrow { font-size: 1.2rem; color: var(--accent); flex-shrink: 0; transition: transform var(--ease); }
.venture-item:hover .venture-arrow { transform: translate(3px,-3px); }

/* PORTFOLIO */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn { background: transparent; border: 1px solid var(--border-l); color: var(--text-muted); padding: 8px 20px; border-radius: 100px; font-family: var(--font-b); font-size: 0.75rem; letter-spacing: 0.08em; cursor: pointer; transition: all var(--ease); }
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #0a0a0a; font-weight: 500; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.portfolio-item { background: var(--bg-card); padding: 44px 40px; display: flex; flex-direction: column; gap: 11px; transition: background var(--ease); }
.portfolio-item:hover { background: #141414; }
.portfolio-item.hidden { display: none; }
.p-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.p-tag { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.p-scale { font-size: 0.72rem; color: var(--text-dim); }
.p-title { font-family: var(--font-d); font-size: 1.2rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.p-client { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }
.p-role { font-size: 0.72rem; color: var(--accent); letter-spacing: 0.04em; }
.p-date { font-size: 0.72rem; color: var(--text-dim); }
.p-desc { font-size: 0.86rem; color: var(--text-muted); line-height: 1.75; flex: 1; }
.p-more { background: none; border: none; color: var(--accent); font-size: 0.75rem; letter-spacing: 0.06em; cursor: pointer; text-align: left; padding: 0; margin-top: -4px; font-family: var(--font-b); }
.p-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.p-tag-item { font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--border-l); border-radius: 100px; color: var(--text-dim); }
@media (max-width: 900px) { .portfolio-grid { grid-template-columns: 1fr; } .portfolio-item { padding: 36px 28px; } }

/* SKILLS */
.skills-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.skill-item { background: var(--bg-card); padding: 32px 28px; display: flex; flex-direction: column; gap: 10px; transition: background var(--ease); }
.skill-item:hover { background: #141414; }
.skill-bar { width: 28px; height: 2px; background: var(--accent); margin-bottom: 4px; }
.skill-item h4 { font-family: var(--font-d); font-size: 0.95rem; font-weight: 700; color: var(--white); }
.skill-item p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 900px) { .skills-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .skills-grid { grid-template-columns: 1fr; } }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 320px; gap: 72px; align-items: start; }
.contact-heading { font-family: var(--font-d); font-size: 2rem; font-weight: 800; color: var(--white); margin-bottom: 14px; }
.contact-intro { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 44px; max-width: 460px; }
.contact-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.contact-item { display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--border); background: var(--bg-card); transition: all var(--ease); padding: 24px 28px; }
.contact-item:last-child { border-bottom: none; }
.contact-item:hover { background: #161616; padding-left: 40px; }
.contact-icon { color: var(--accent); width: 38px; height: 38px; border: 1px solid var(--border-l); border-radius: var(--r); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-label { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.contact-value { font-size: 0.88rem; color: var(--text); }
.contact-arrow { margin-left: auto; color: var(--accent); font-size: 1rem; flex-shrink: 0; transition: transform var(--ease); }
.contact-item:hover .contact-arrow { transform: translate(3px,-3px); }
.contact-aside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--nav-h) + 32px); }
.contact-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; }
.contact-card h3 { font-family: var(--font-d); font-size: 0.95rem; font-weight: 700; color: var(--white); }
.contact-card p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; }
.contact-location { display: flex; align-items: center; gap: 8px; font-size: 0.76rem; color: var(--text-dim); padding: 0 4px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } .contact-aside { position: static; } }

/* PROFILE (SEO) */
.profile-body { max-width: 800px; }
.profile-section { margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--border); }
.profile-section:last-child { border-bottom: none; }
.profile-h2 { font-family: var(--font-d); font-size: 1.3rem; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.profile-p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.85; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-name { font-family: var(--font-d); font-weight: 700; font-size: 0.9rem; color: var(--text); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); transition: color var(--ease); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 0.72rem; color: var(--text-dim); }
@media (max-width: 600px) { .footer { flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px 20px; } }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
