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

  :root {
    --cream: #F9F6F1;
    --warm-white: #FDFCFA;
    --sand: #EDE8DF;
    --stone: #C9BFB0;
    --ink: #1A1814;
    --ink-light: #4A4540;
    --ink-muted: #8A8278;
    --accent: #C17F4A;
    --accent-light: #E8C99E;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--warm-white);
    color: var(--ink);
    font-weight: 300;
    overflow-x: hidden;
  }

  /* NAV */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 28px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    mix-blend-mode: normal;
    transition: background 0.4s, padding 0.4s;
  }
  nav.scrolled {
    background: rgba(253,252,250,0.92);
    backdrop-filter: blur(12px);
    padding: 18px 60px;
    border-bottom: 1px solid var(--sand);
  }
  .nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: rgba(249,246,241,0.95);
    text-decoration: none;
    transition: color 0.25s;
  }
  .nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
  }
  .nav-links a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(249,246,241,0.85);
    text-decoration: none;
    transition: color 0.25s;
  }
  .nav-links a:hover { color: var(--warm-white); }
  .nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }
  .nav-toggle span {
    width: 18px;
    height: 1.5px;
    background: rgba(249,246,241,0.92);
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  nav.scrolled .nav-logo { color: var(--ink); }
  nav.scrolled .nav-links a { color: var(--ink-light); }
  nav.scrolled .nav-links a:hover { color: var(--ink); }
  nav.scrolled .nav-toggle span { background: var(--ink); }

  /* HERO */
  #hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 140px 60px 80px;
    position: relative;
    background: transparent;
    overflow: hidden;
  }
  .hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: transparent;
    pointer-events: none;
  }
  @media (min-width: 901px) {
    #hero {
      background-image: url('../images/hero-poster.webp');
      background-position: center;
      background-size: cover;
      background-repeat: no-repeat;
    }
    .hero-video-wrap {
      background-image: url('../images/hero-poster.webp');
      background-position: center;
      background-size: cover;
      background-repeat: no-repeat;
    }
  }
  .hero-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: transparent;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
  }
  .hero-video-wrap video.video-blocked,
  .hero-video-wrap video.video-static {
    opacity: 0 !important;
    visibility: hidden;
  }
  .hero-video-wrap video::-webkit-media-controls,
  .hero-video-wrap video::-webkit-media-controls-enclosure,
  .hero-video-wrap video::-webkit-media-controls-panel,
  .hero-video-wrap video::-webkit-media-controls-play-button,
  .hero-video-wrap video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
  }
  .hero-video-wrap.video-active video {
    visibility: visible;
    opacity: 1;
  }
  .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,8,8,0.52) 0%, rgba(8,8,8,0.74) 100%);
  }
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
  }
  .hero-bg-line {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 1;
  }
  .hero-bg-line::before {
    content: '';
    position: absolute;
    top: 15%;
    right: -5%;
    width: 55vw;
    height: 55vw;
    border-radius: 50%;
    border: 1px dashed rgba(249,246,241,0.42);
    background:
      radial-gradient(circle at 52% 1.8%, rgba(232,201,158,0.95) 0 4px, transparent 4.6px),
      radial-gradient(circle at 90% 34%, rgba(249,246,241,0.72) 0 2.6px, transparent 3.2px);
    background-repeat: no-repeat;
    transform-origin: 50% 50%;
    animation: heroRingOuter 64s linear infinite, heroRingFloat 20s ease-in-out infinite;
  }
  .hero-bg-line::after {
    content: '';
    position: absolute;
    top: 30%;
    right: 8%;
    width: 30vw;
    height: 30vw;
    border-radius: 50%;
    border: 1px dashed rgba(249,246,241,0.34);
    background:
      radial-gradient(circle at 46% 2.5%, rgba(232,201,158,0.9) 0 3px, transparent 3.6px),
      radial-gradient(circle at 8% 70%, rgba(249,246,241,0.62) 0 2px, transparent 2.6px);
    background-repeat: no-repeat;
    transform-origin: 50% 50%;
    animation: heroRingInner 78s linear infinite, heroRingFloat 16s ease-in-out infinite reverse;
  }
  .hero-label {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(249,246,241,0.78);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.2s forwards;
  }
  .hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(54px, 6.8vw, 102px);
    font-weight: 300;
    line-height: 1.0;
    letter-spacing: -0.02em;
    color: var(--cream);
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.9s 0.4s forwards;
  }
  .hero-title em {
    font-style: italic;
    color: var(--accent-light);
  }
  .hero-sub {
    margin-top: 32px;
    font-size: 15px;
    font-weight: 300;
    color: rgba(249,246,241,0.8);
    max-width: 420px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.6s forwards;
  }
  #hero .btn-primary {
    background: rgba(249,246,241,0.12);
    border: 1px solid rgba(249,246,241,0.35);
    color: var(--cream);
    backdrop-filter: blur(6px);
  }
  #hero .btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
  }
  #hero .btn-ghost {
    color: rgba(249,246,241,0.76);
    border-bottom-color: rgba(249,246,241,0.26);
  }
  #hero .btn-ghost:hover {
    color: var(--warm-white);
    border-color: var(--warm-white);
  }
  .hero-cta {
    margin-top: 48px;
    display: flex;
    gap: 20px;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.8s forwards;
  }
  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: var(--ink);
    color: var(--warm-white);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, gap 0.2s;
  }
  .btn-primary:hover { background: var(--accent); gap: 16px; }
  .btn-ghost {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
  }
  .btn-ghost:hover { color: var(--ink); border-color: var(--ink); }

  /* MARQUEE */
  .marquee-wrap {
    background: var(--ink);
    padding: 16px 0;
    overflow: hidden;
  }
  .marquee-track {
    display: flex;
    gap: 0;
    width: max-content;
    min-width: max-content;
    animation: marquee 32s linear infinite;
    white-space: nowrap;
    will-change: transform;
  }
  .marquee-sequence {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 32px;
    padding-right: 32px;
  }
  .marquee-item {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 32px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--stone);
  }
  .marquee-item .dot { color: var(--accent); font-size: 16px; }

  /* ABOUT */
  #about {
    padding: 160px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    background: var(--warm-white);
  }
  .about-left { position: relative; }
  .about-image-frame {
    aspect-ratio: 4/5;
    background: var(--sand);
    position: relative;
    overflow: hidden;
  }
  .about-image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--cream) 0%, var(--sand) 100%);
  }
  @media (min-width: 901px) {
    .about-image-frame::before {
      background: url('../images/team-illustration.webp') center/cover no-repeat;
    }
  }
  .about-image-decoration {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 180px;
    height: 180px;
    border: 1px solid var(--stone);
    z-index: -1;
  }
  .about-year-tag {
    position: absolute;
    top: 40px;
    left: -20px;
    background: var(--accent);
    color: white;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 8px 18px;
    font-weight: 400;
  }
  .section-label {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
  }
  .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 32px;
  }
  .section-title em { font-style: italic; color: var(--accent); }
  .about-body {
    font-size: 15px;
    line-height: 1.85;
    color: var(--ink-light);
    margin-bottom: 24px;
  }
  .about-quote {
    margin-top: 48px;
    padding-left: 24px;
    border-left: 2px solid var(--accent-light);
  }
  .about-quote p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-style: italic;
    font-weight: 300;
    line-height: 1.5;
    color: var(--ink);
  }

  /* PROJECTS */
  #projects {
    padding: 160px 60px;
    background: var(--cream);
  }
  .projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 80px;
    gap: 32px;
  }
  .projects-heading {
    max-width: 620px;
  }
  .projects-intro {
    font-size: 14px;
    line-height: 1.8;
    color: var(--ink-muted);
  }
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }
  .project-card {
    background: var(--warm-white);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: block;
    color: inherit;
  }
  .project-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }
  .project-card:hover { background: var(--ink); }
  .project-card:hover .project-name,
  .project-card:hover .project-desc,
  .project-card:hover .project-tags span { color: rgba(255,255,255,0.9); }
  .project-card:hover .project-number { color: rgba(255,255,255,0.15); }
  .project-card:hover::before { transform: scaleX(1); }
  .project-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 64px;
    font-weight: 300;
    color: var(--sand);
    line-height: 1;
    margin-bottom: 24px;
    transition: color 0.3s;
  }
  .project-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 12px;
    transition: color 0.3s;
  }
  .project-desc {
    font-size: 13px;
    line-height: 1.7;
    color: var(--ink-muted);
    transition: color 0.3s;
  }
  .project-tags {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .project-tags span {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
    border: 1px solid var(--stone);
    padding: 4px 10px;
    transition: color 0.3s, border-color 0.3s;
  }
  .project-card:hover .project-tags span { border-color: rgba(255,255,255,0.2); }
  .project-arrow {
    position: absolute;
    top: 48px; right: 40px;
    font-size: 20px;
    color: var(--stone);
    transition: transform 0.3s, color 0.3s;
  }
  .project-card:hover .project-arrow { transform: translate(4px, -4px); color: var(--accent-light); }

  /* BLOG */
  #blog {
    padding: 160px 60px;
    background: var(--warm-white);
  }
  .blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 80px;
  }
  .blog-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2px;
  }
  .blog-card {
    background: var(--cream);
    padding: 48px 40px;
    position: relative;
    cursor: pointer;
    transition: background 0.25s;
    text-decoration: none;
    color: inherit;
    display: block;
  }
  .blog-card:hover { background: var(--sand); }
  .blog-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
  }
  .blog-card.featured { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 500px; }
  .blog-card.featured .blog-title { font-size: 26px; }
  .blog-date {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 14px;
  }
  .blog-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 12px;
  }
  .blog-excerpt {
    font-size: 13px;
    line-height: 1.7;
    color: var(--ink-muted);
  }
  .blog-cat {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 400;
  }


  /* FOOTER */
  .home-footer {
    background: var(--ink);
    color: var(--cream);
    padding: 0 60px 48px;
    border-top: 2px solid var(--accent);
  }

  .home-footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding: 72px 0 56px;
    border-bottom: 0.5px solid rgba(201,191,176,0.12);
  }

  /* — Brand column — */
  .hf-brand-col {
    padding-right: 24px;
  }

  .hf-wordmark {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--cream);
    margin: 0 0 12px;
  }

  .hf-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-style: italic;
    font-weight: 300;
    color: rgba(201,191,176,0.5);
    margin: 0 0 28px;
    line-height: 1.6;
  }

  /* — Nav columns — */
  .hf-nav-heading {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(201,191,176,0.35);
    margin: 0 0 20px;
  }

  .hf-nav-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .hf-nav-col ul li a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(201,191,176,0.6);
    text-decoration: none;
    transition: color 0.25s;
  }

  .hf-nav-col ul li a:hover { color: var(--cream); }

  .hf-arrow-badge {
    font-size: 11px;
    color: var(--accent);
    margin-left: 3px;
  }

  /* — Large wordmark — */
  .hf-wordmark-large {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(52px, 7.5vw, 96px);
    font-weight: 300;
    letter-spacing: -0.025em;
    color: rgba(249,246,241,0.08);
    margin: 48px 0 0;
    line-height: 1;
    user-select: none;
  }

  .hf-wordmark-large .hf-dot {
    color: var(--accent);
    opacity: 0.25;
  }

  /* — Bottom bar — */
  .home-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 24px;
  }

  .hf-copy {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    color: rgba(201,191,176,0.3);
    letter-spacing: 0.02em;
    margin: 0;
  }

  .hf-bottom-links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 26px;
  }

  .hf-bottom-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(201,191,176,0.45);
    transition: color 0.2s ease;
  }

  .hf-bottom-link:hover {
    color: var(--stone);
  }


  /* DIVIDER */
  .divider {
    height: 1px;
    background: var(--sand);
    margin: 0 60px;
  }

  /* ANIMATIONS */
  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
  @keyframes heroRingOuter {
    from { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.02); }
    to { transform: rotate(360deg) scale(1); }
  }
  @keyframes heroRingInner {
    from { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(-180deg) scale(0.985); }
    to { transform: rotate(-360deg) scale(1); }
  }
  @keyframes heroRingFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
  }

  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }

  /* SCROLLBAR */
  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: var(--cream); }
  ::-webkit-scrollbar-thumb { background: var(--stone); }

  @media (max-width: 900px) {
    nav { padding: 22px 28px; }
    nav.scrolled { padding: 16px 28px; }
    .nav-toggle { display: inline-flex; }
    .nav-links {
      display: none;
      position: absolute;
      top: calc(100% + 10px);
      right: 28px;
      min-width: 220px;
      padding: 14px 16px;
      flex-direction: column;
      gap: 12px;
      border-radius: 14px;
      background: rgba(16, 14, 12, 0.8);
      border: 1px solid rgba(249,246,241,0.16);
      backdrop-filter: blur(12px);
    }
    .nav-links.open { display: flex; }
    .nav-links a {
      color: rgba(249,246,241,0.9);
      font-size: 12px;
      letter-spacing: 0.12em;
    }
    nav.scrolled .nav-links {
      background: rgba(253,252,250,0.94);
      border-color: var(--sand);
    }
    nav.scrolled .nav-links a { color: var(--ink-light); }
    #hero, #about, #projects, #blog { padding-left: 28px; padding-right: 28px; }
    #hero {
      min-height: 100svh;
      padding-top: 120px;
      padding-bottom: 72px;
      background-image: url('../images/hero-poster-mobile.webp');
      background-position: center;
      background-size: cover;
      background-repeat: no-repeat;
    }
    .hero-video-wrap {
      background-image: url('../images/hero-poster-mobile.webp');
      background-position: center;
      background-size: cover;
      background-repeat: no-repeat;
    }
    .hero-bg-line { display: none; }
    #about { grid-template-columns: 1fr; gap: 48px; }
    .projects-header {
      flex-direction: column;
      align-items: flex-start;
      margin-bottom: 56px;
    }
    .projects-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-card.featured { min-height: auto; }
    .hero-cta { flex-wrap: wrap; }
    #hero .hero-cta .btn-ghost { display: none; }
    .about-left { display: none; }
    .home-footer { padding: 0 28px 32px; }
    .home-footer-top { grid-template-columns: 1fr 1fr; gap: 32px 28px; padding: 48px 0 36px; }
    .hf-brand-col { grid-column: 1 / -1; padding-right: 0; }
    .hf-wordmark-large { font-size: clamp(36px, 10vw, 56px); margin-top: 28px; text-align: center; }
    .home-footer-bottom {
      flex-direction: column;
      text-align: center;
    }
    .hf-bottom-links {
      flex-wrap: wrap;
      justify-content: center;
      gap: 16px;
    }
    .divider { margin: 0 28px; }
  }

  @media (max-width: 560px) {
    .hero-title {
      font-size: clamp(42px, 12vw, 56px);
      line-height: 1.05;
    }
    .hero-sub {
      margin-top: 24px;
      max-width: 100%;
    }
    .hero-cta {
      margin-top: 36px;
      flex-direction: column;
      align-items: flex-start;
      gap: 14px;
    }
    .home-footer-top { grid-template-columns: 1fr 1fr; gap: 44px 20px; padding: 40px 0 32px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-bg-line::before,
    .hero-bg-line::after {
      animation: none;
    }
  }
