:root {
  --bg: #f4f3ef;
  --card-bg: #ffffff;
  --ink: #1b2340;
  --ink-soft: #4a4f5c;
  --navy: #1b2a55;
  --navy-dark: #14203f;
  --accent: #c98a3e;
  --border: #e2e0d8;
  --pill-bg: #ffffff;
  --work-blue: #2b52d6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

h1, h2, h3, .logo {
  font-family: Georgia, "Times New Roman", serif;
}

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

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

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

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 40px;
}

.logo {
  font-size: 26px;
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  row-gap: 10px;
  margin-left: auto;
  margin-right: 32px;
}

.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  padding-bottom: 6px;
}

.main-nav a.active {
  border-bottom: 2px solid var(--navy);
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  align-items: start;
  padding: 12px 40px 30px;
  max-width: 1420px;
  margin: 0 auto;
}

.hero-copy {
  margin-left: -16px;
}

.flow-diagram {
  display: none;
  width: 100%;
  max-width: 130px;
  flex-direction: column;
  align-items: center;
  padding: 18px 10px;
  margin-left: -24px;
  background-image: radial-gradient(rgba(90, 100, 120, 0.22) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
  align-self: start;
  opacity: 0.55;
  font-family: 'Architects Daughter', cursive;
}

@media (min-width: 1150px) {
  .hero { grid-template-columns: 150px 1fr 1fr; }
  .flow-diagram { display: flex; }
}

.flow-box {
  width: 100%;
  border: 1.5px solid #a6adba;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  background: transparent;
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  padding: 9px 6px;
  line-height: 1.3;
  box-sizing: border-box;
}

.flow-box:nth-child(1) { transform: rotate(-1.2deg); }
.flow-box:nth-child(3) { transform: rotate(1deg); }
.flow-box:nth-child(5) { transform: rotate(-0.8deg); }
.flow-box:nth-child(7) { transform: rotate(1.3deg); }
.flow-box:nth-child(9) { transform: rotate(-1deg); }

.flow-arrow {
  color: #a6adba;
  font-size: 15px;
  line-height: 1;
  padding: 5px 0;
}

.flow-star {
  align-self: flex-end;
  margin-top: 10px;
  margin-right: 8px;
  color: #b6bcc7;
  font-size: 20px;
  transform: rotate(-8deg);
}

.hero-eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  line-height: 1.8;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(26px, 2.8vw, 42px);
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 20px;
}

.hero-rule {
  width: 90px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 20px;
}

.hero p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 16px;
  font-size: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: #fff;
  padding: 14px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  margin-top: 12px;
}

.hero-visual {
  position: relative;
  width: 79%;
  align-self: center;
  margin-left: auto;
  margin-right: 78px;
}

.hero-photo-frame {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(20, 30, 60, 0.12);
  flex-shrink: 0;
}

.header-social {
  width: 40px;
  height: 40px;
  font-size: 14px;
  box-shadow: none;
  border: 1px solid var(--border);
}

.browse-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.browse-social {
  width: 30px;
  height: 30px;
  font-size: 12px;
  box-shadow: none;
  border: 1px solid var(--border);
}

/* Latest from me */
.latest-section {
  background: #fff;
  border-radius: 16px;
  max-width: 1300px;
  margin: 0 auto 60px;
  padding: 40px;
}

.latest-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
}

.latest-header h2 {
  font-size: 28px;
  color: var(--navy);
  margin: 0 0 6px;
}

.latest-header .rule {
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 12px;
}

.latest-header p {
  color: var(--ink-soft);
  max-width: 620px;
  white-space: nowrap;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.browse-link {
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-viewport {
  flex: 1;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

.video-card {
  flex: 0 0 calc((100% - 40px) / 3);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-thumb {
  height: 150px;
  position: relative;
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-weight: 700;
}

.video-thumb .duration {
  align-self: flex-end;
  background: rgba(0,0,0,0.55);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.video-info {
  padding: 18px;
}

.video-info h3 {
  font-size: 15px;
  color: var(--navy);
  margin: 0 0 8px;
}

.video-info p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 14px;
}

.watch-link {
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.dots span.active {
  background: var(--navy);
}

/* Footer */
.site-footer {
  max-width: 1300px;
  margin: 0 auto;
  padding: 30px 40px 40px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 30px;
}

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.footer-items {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 180px;
}

.footer-item .badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef1f8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-item strong {
  display: block;
  font-size: 14px;
  color: var(--navy);
}

.footer-item span {
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-item a {
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom .logo {
  font-size: 18px;
}

.footer-tagline {
  color: var(--ink-soft);
  font-size: 13px;
}

.copyright {
  font-size: 13px;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { margin-left: 0; }
  .hero-visual { width: 100%; margin-left: 0; margin-right: 0; margin-top: 24px; }
  .video-card { flex: 0 0 100%; }
}

@media (max-width: 600px) {
  .site-header { padding: 20px; }
  .main-nav { gap: 16px; margin-left: 0; margin-right: 0; }
  .hero { padding: 20px 20px 40px; }
  .hero h1 { font-size: 32px; }
  .latest-section { padding: 24px; border-radius: 12px; }
  .latest-header { flex-direction: column; }
  .latest-header p { white-space: normal; }
  .carousel { flex-direction: column; }
  .carousel-btn { display: none; }
  .carousel-track { transform: none !important; flex-direction: column; }
  .site-footer { padding: 24px 20px 30px; }
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Blank page */
.blank-page {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.blank-page h1 {
  font-size: 36px;
  color: var(--navy);
  margin-bottom: 12px;
}

.blank-page p {
  color: var(--ink-soft);
}

/* Work page */
.work-hero {
  padding: 12px 40px 24px;
}

.work-hero h1 {
  font-size: 34px;
  color: var(--navy);
  margin: 0 0 14px;
}

.work-hero-rule {
  width: 50px;
  height: 3px;
  background: var(--navy);
}

.work-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  max-width: 1300px;
  margin: 0 auto 30px;
}

.work-card-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
}

.work-card-left {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-label {
  color: var(--work-blue);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.work-card-left h2 {
  font-size: 36px;
  color: var(--navy);
  margin: 8px 0 16px;
}

.work-rule {
  width: 36px;
  height: 3px;
  background: var(--navy);
  margin-bottom: 20px;
}

.work-card-left p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 24px;
  font-size: 15px;
}

.work-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--work-blue);
  color: #fff;
  padding: 13px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  width: fit-content;
}

.work-card-right {
  position: relative;
  min-height: 300px;
}

.work-links {
  display: flex;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.work-links a {
  flex: 1;
  text-align: center;
  padding: 20px 10px;
  color: var(--work-blue);
  font-weight: 600;
  font-size: 14px;
  border-right: 1px solid var(--border);
  min-width: 140px;
}

.work-links a:last-child {
  border-right: none;
}

/* AI illustration */
.ai-illustration {
  height: 100%;
  background: linear-gradient(135deg, #f3e7d2, #e8d6b8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.notebook {
  background: #fdfaf2;
  border-radius: 6px;
  box-shadow: 0 20px 40px rgba(30, 20, 10, 0.18);
  padding: 26px 22px;
  width: 100%;
  max-width: 380px;
  transform: rotate(-1deg);
  font-family: "Architects Daughter", cursive;
}

.notebook-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.flow-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 88%;
}

.n-box {
  border: 1.5px solid var(--navy);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--navy);
  white-space: nowrap;
}

.n-box.wide {
  white-space: normal;
  text-align: center;
}

.n-circle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
}

.n-arrow {
  color: var(--navy);
  font-size: 15px;
  opacity: 0.7;
}

.n-arrow-down {
  color: var(--navy);
  font-size: 16px;
  opacity: 0.7;
}

/* Tags row */
.tags-row {
  display: flex;
  align-items: stretch;
  height: 100%;
  padding: 48px 40px;
}

.tag-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center; 
  gap: 16px;
  padding: 0 12px;
  border-right: 0.5px solid var(--border);
}

.tag-col:last-child {
  border-right: none;
}

.tag-svg {
  width: 40px;
  height: 40px;
  color: var(--navy);
  flex-shrink: 0;
}

.tag-icon {
    width: 65px;
    height: 65px;
    object-fit: contain;
    margin-bottom: 0px;
}

.tag-col span {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  line-height: 1.4;
}

/* Timeline */
.timeline-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 40px;
  max-width: 1300px;
  margin: 0 auto 50px;
  text-align: center;
}

.timeline-label {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 26px;
}

.timeline-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.timeline-item {
  color: var(--navy);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  white-space: nowrap;
}

.timeline-arrow {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--ink-soft);
  flex-shrink: 0;
}

.timeline-arrow::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border-style: solid;
  border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent var(--ink-soft);
}

/* Work footer */
.work-footer {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0px 40px 40px;
}

.work-footer-inner {
  background: #eef1fb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 30px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.collab-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
}

.collab-cta .icon {
  font-size: 22px;
  color: var(--work-blue);
}

.footer-social-links {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.footer-social-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
}

.icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}

.icon-badge.linkedin { background: #0a66c2; }
.icon-badge.github { background: #111; }
.icon-badge.youtube { background: #ff0000; }

.work-footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 40px 30px;
  max-width: 1300px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--ink-soft);
}

.work-footer-bottom .tagline {
  color: var(--work-blue);
}

@media (max-width: 900px) {
  .work-card-grid { grid-template-columns: 1fr; }
  .work-card-right { min-height: 0; }
  .ai-illustration { min-height: 320px; }
  .tags-row { display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 28px; column-gap: 16px; padding: 36px 24px; height: auto; }
  .tag-col { border-right: none; }
  .timeline-track { gap: 14px; }
  .timeline-arrow { width: 50px; }
}

@media (max-width: 600px) {
  .work-hero { padding: 32px 20px 16px; }
  .work-hero h1 { font-size: 34px; }
  .work-card-left { padding: 32px 24px; }
  .work-links { flex-direction: column; }
  .work-links a { border-right: none; border-bottom: 1px solid var(--border); }
  .work-links a:last-child { border-bottom: none; }
  .tags-row { grid-template-columns: repeat(2, 1fr); padding: 28px 20px; row-gap: 24px; column-gap: 14px; }
  .timeline-section { padding: 28px 20px; }
  .timeline-item { white-space: normal; text-align: center; max-width: 140px; }
  .timeline-arrow { width: 28px; }
  .work-footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-social-links { gap: 20px; }
  .work-footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .tags-row { grid-template-columns: 1fr; }
}

.tags-row{display:grid;grid-template-columns:repeat(4,1fr);padding:40px 24px}
.tag-col{justify-content:flex-start;padding:0 22px;min-height:220px}
.tag-col strong{display:block;font-size:17px;color:var(--navy);text-align:center;margin:8px 0}
.tag-col small{display:block;font-size:14px;color:var(--ink-soft);text-align:center;line-height:1.5}
.work-links a:hover{background:#f7f8fc}
@media(max-width:900px){.tags-row{grid-template-columns:repeat(2,1fr)}}
@media(max-width:500px){.tags-row{grid-template-columns:1fr}}

.tag-col{
  justify-content:center;
}
.tag-col strong{
  margin-top:12px;
  margin-bottom:0;
}

/* ---------------- ABOUT PAGE ---------------- */

.about-hero{
    max-width:1300px;
    margin:10px auto 40px;
    padding:0 40px;
}

.about-hero img{
    width:100%;
    height:300px;
    object-fit:cover;
    border-radius:18px;
    border:1px solid var(--border);
}

.about-container{
    max-width:1300px;
    margin:0 auto 70px;
    padding:0 40px;
}

.about-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:18px;
    padding:56px 72px;
}

.about-title{
    margin-bottom:42px;
}

.about-title h1{
    margin:18px 0 0;
    color:var(--navy);
    font-size:40px;
}

.about-copy{
    max-width:860px;
}

.about-copy p{
    color:var(--ink-soft);
    font-size:17px;
    line-height:1.95;
    margin:0 0 28px;
}

@media(max-width:900px){

  .about-card{
    padding:40px;
  }

  .about-title h1{
    font-size:34px;
  }

  .about-copy p{
    font-size:16px;
    line-height:1.85;
  }
}

@media(max-width:600px){
  .about-container,

  .about-hero{
    padding:0 20px;
  }

  .about-card{
    padding:28px;
  }

  .about-hero img{
    height:110px;
  }

  .about-title h1{
    font-size:30px;
  }
}

/* ======================================================

   CONTACT PAGE

====================================================== */

.contact-page{

    max-width:900px;

    margin:0px auto 80px;

    padding:0 40px;

}

.contact-card{

    background:#fff;

    border:1px solid var(--border);

    border-radius:18px;

    padding:70px 80px;

    text-align:center;

}

.contact-card h1{

    font-size:42px;

    color:var(--navy);

    margin:0 0 28px;

}

.contact-intro{

    max-width:650px;

    margin:0 auto 22px;

    color:var(--ink-soft);

    font-size:18px;

    line-height:1.8;

}

.contact-links{

    display:flex;

    justify-content:center;

    gap:22px;

    flex-wrap:wrap;

    margin:50px 0;

}

.contact-links a{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    min-width:160px;

    padding:14px 28px;

    border:1px solid var(--border);

    border-radius:999px;

    text-decoration:none;

    color:var(--navy);

    font-weight:600;

    transition:all .25s ease;

}

.contact-links a:hover{

    background:var(--navy);

    color:white;

    transform:translateY(-2px);

}

.contact-footer{

    margin-top:55px;

    padding-top:30px;

    border-top:1px solid var(--border);

}

.contact-footer p{

    margin:0;

    color:var(--navy);

    font-weight:600;

    font-size:18px;

}

.contact-footer span{

    display:block;

    margin-top:8px;

    color:var(--ink-soft);

    font-size:15px;

}

/* ---------- Mobile ---------- */

@media (max-width:768px){

.contact-page{

padding:0 20px;

}

.contact-card{

padding:40px 26px;

}

.contact-card h1{

font-size:34px;

}

.contact-intro{

font-size:16px;

}

.contact-links{

gap:14px;

}

.contact-links a{

width:100%;

max-width:280px;

}

}