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

    :root {
      --red: #fc221c;
      --dark: #000000;
      --bg: #f8dfdb;
      --footer-bg: #ffeae7;
      --font-alice: 'Alice', serif;
      --font-cursive: 'Learning Curve', cursive;
    }

    html {
        font-size: 18px;
        scroll-behavior: smooth;
    }
    body {
      background: var(--bg);
      font-family: var(--font-alice);
      color: var(--red);
      min-height: 100vh;
    }

    /* ─── Layout wrapper ─── */
    .page { max-width: 1440px; margin: 0 auto; padding: 0 64px; }

    /* ─── HEADER ─── */
    header {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      padding: 40px 64px 16px;
      max-width: 100%;
      margin: 0 auto;
      position: sticky;
      top: 0;
      background: var(--bg);
      z-index: 100;
      transition: background-color 0.35s ease, padding 0.35s ease;
    }

    header.scrolled {
      background: var(--footer-bg);
      padding-top: 16px;
      padding-bottom: 10px;
    }

    .logo {
      text-decoration: none;
      display: flex;
      align-items: center;
    }

    .logo img {
      height: 92px;
      width: auto;
      transition: height 0.35s ease;
    }

    header.scrolled .logo img {
      height: 62px;
    }

    nav {
      display: flex;
      align-items: center;
      gap: 18px;
      padding-bottom: 8px;
      transition: transform 0.35s ease;
    }

    header.scrolled nav {
      transform: translateY(-4px);
    }

    nav a {
      font-family: var(--font-alice);
      font-size: 16px;
      color: #000;
      text-decoration: none;
    }
    nav a.active, nav .nav-link.active { text-decoration: underline; }
    nav .social-icon { width: 36px; height: 36px; }

    /* ─── Scroll offset for sticky header ─── */
    #about, #work, #contact { scroll-margin-top: 100px; }

    /* ─── HERO ─── */
    .hero {
      padding: 60px 64px 0;
      max-width: 1440px;
      margin: 0 auto;
    }

    .hero-headline {
      font-size: clamp(40px, 4.5vw, 64px);
      color: var(--red);
      max-width: 1090px;
      line-height: 1.15;
      margin-bottom: 32px;
      font-weight: normal;
    }

    .hero-sub {
      font-size: clamp(16px, 1.4vw, 24px);
      color: var(--red);
      max-width: 979px;
      margin-left: auto;
      line-height: 1.5;
    }

    /* ─── HIGHLIGHTS ─── */
    .highlights {
      display: flex;
      gap: 72px;
      padding: 80px 64px 0;
      max-width: 1440px;
      margin: 0 auto;
    }

    .highlight-card {
      flex: 1;
      border-top: 1px solid #000;
      padding: 36px 0;
      display: flex;
      flex-direction: column;
      gap: 28px;
      text-align: center;
    }

    .highlight-card h3 { font-size: clamp(22px, 2vw, 36px); color: var(--red); font-weight: normal; }
    .highlight-card p  { font-size: 18px; color: var(--red); line-height: 1.5; }
    .highlight-card a  { font-size: 18px; color: #000; text-decoration: underline; }

    /* ─── FLOURISH divider ─── */
    .flourish-row {
      display: flex;
      justify-content: center;
      padding: 200px 0;
    }
    .flourish-row img { height: 34px; }

    /* ─── ABOUT ─── */
    .about {
      padding: 80px 64px 0;
      max-width: 1440px;
      margin: 0 auto;
    }

    .about-headline {
      font-size: clamp(36px, 4.5vw, 64px);
      color: var(--red);
      max-width: 1090px;
      line-height: 1.15;
      margin-bottom: 48px;
      font-weight: normal;
    }

    .about-intro {
      font-size: clamp(16px, 1.5vw, 24px);
      color: var(--red);
      max-width: 869px;
      margin-left: auto;
      line-height: 1.5;
      margin-bottom: 60px;
    }

    .principle {
      display: grid;
      grid-template-columns: 425px 1fr;
      gap: 24px;
      margin-bottom: 48px;
      position: relative;
    }

    .principle-left {
      position: relative;
    }

    .principle-line {
      border: none;
      border-top: 1px solid var(--dark);
      width: 100%;
      margin: 14px 0 18px 0;
    }

    .principle-number {
      font-size: 96px;
      color: var(--red);
      line-height: 1;
      text-align: right;
    }

    .principle-right { padding-top: 0; }

    .principle-label {
      font-size: 24px;
      color: var(--red);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 24px;
    }

    .principle-text {
      font-size: clamp(22px, 2vw, 36px);
      color: var(--red);
      line-height: 1.4;
    }

    .about-closing {
      font-size: clamp(16px, 1.5vw, 24px);
      color: var(--red);
      margin-left: auto;
      max-width: 869px;
      line-height: 1.5;
      margin-top: 24px;
      margin-bottom: 8px;
    }

    /* ─── PORTFOLIO ─── */
    .portfolio {
      padding: 80px 64px 0;
      max-width: 1440px;
      margin: 0 auto;
    }

    .portfolio-headline {
      font-size: clamp(36px, 4.5vw, 64px);
      color: var(--red);
      max-width: 980px;
      line-height: 1.15;
      margin-bottom: 60px;
      font-weight: normal;
    }

    .portfolio-layout {
      display: grid;
      grid-template-columns: 314px 1fr;
      gap: 0;
    }

    .portfolio-lines {
        position: relative;
        margin-top: 18px;
        border-top: 1px var(--dark) solid;
        width: 314px;
    }

    .portfolio-items { }

    .portfolio-item {
      display: flex;
      gap: 48px;
      align-items: flex-start;
      padding: 60px 40px;
    }
    /* .portfolio-item:last-child { border-bottom: 1px solid var(--red); } */

    .portfolio-logo {
      width: 122px;
      height: 32px;
      flex-shrink: 0;
    }
    .portfolio-logo img {
      max-width: 100%;
      height: auto;
    }

    .portfolio-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .portfolio-content h3 {
      font-size: clamp(22px, 2vw, 36px);
      color: var(--red);
      line-height: 1.3;
      font-weight: normal;
    }

    .portfolio-content a {
      font-size: 18px;
      color: #000;
      text-decoration: underline;
    }

    /* ─── FOOTER ─── */
    footer {
      background: var(--footer-bg);
      margin-top: 100px;
      padding: 52px 64px 60px;
    }

    .footer-cta {
      font-size: clamp(40px, 4.5vw, 64px);
      color: var(--red);
      max-width: 757px;
      line-height: 1.15;
      margin-bottom: 32px;
      font-weight: normal;
    }

    .footer-sub {
      font-size: clamp(22px, 2vw, 36px);
      color: var(--red);
      max-width: 425px;
      line-height: 1.3;
      margin-bottom: 36px;
    }

    .footer-socials {
      display: flex;
      gap: 16px;
    }
    .footer-socials img { width: 36px; height: 36px; }

    /* ─── MODALS ─── */
    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(252, 34, 28, 0.76);
      z-index: 1000;
      overflow-y: auto;
    }
    .modal-overlay.is-open { display: block; }

    .modal {
      background: var(--bg);
      max-width: 868px;
      margin: 0 auto;
      position: relative;
      overflow: hidden;
    }

    .modal-inner { padding: 48px; }

    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 32px;
    }

    .modal-logo { height: auto; width: 162px; }

    .modal-close {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--red);
      border: none;
      color: #fff;
      font-size: 18px;
      line-height: 1;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .modal-title {
      font-family: var(--font-alice);
      font-size: clamp(28px, 3.5vw, 46px);
      color: var(--red);
      font-weight: normal;
      line-height: 1.2;
      margin-bottom: 24px;
    }

    .modal-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 3px;
      margin-bottom: 40px;
    }

    .modal-tag {
      background: var(--red);
      color: var(--bg);
      font-family: var(--font-alice);
      font-size: 13px;
      padding: 4px 14px;
      border-radius: 999px;
    }

    .modal-section { margin-bottom: 36px; }

    .modal-section-header {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 24px;
    }

    .modal-section-label {
      font-family: var(--font-alice);
      font-size: 24px;
      color: var(--red);
      text-transform: uppercase;
      white-space: nowrap;
    }

    .modal-section-header hr {
      flex: 1;
      border: none;
      border-top: 1px solid #000;
    }

    .modal-impact-list {
      list-style: decimal;
      padding-left: 173px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .modal-impact-list li {
      font-family: var(--font-alice);
      font-size: 17px;
      color: var(--red);
      line-height: 1.5;
      padding-left: 8px;
    }

    .modal-media {
      width: 100%;
      margin: 40px 0;
    }

    .carousel-track-wrapper {
      position: relative;
      overflow: hidden;
    }

    .carousel-track {
      display: flex;
      transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      will-change: transform;
    }

    .carousel-slide {
      flex: 0 0 100%;
      aspect-ratio: 16 / 9;
      background: var(--bg);
      overflow: hidden;
    }

    .carousel-slide img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    .carousel-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 2;
      width: 44px;
      height: 44px;
      border: 2px solid var(--red);
      background: rgba(252, 34, 28, 0.76);
      color: #fff;
      font-size: 20px;
      line-height: 1;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      transition: background 0.2s, border-color 0.2s;
    }

    .carousel-arrow--prev { left: 18px; }
    .carousel-arrow--next { right: 18px; }

    .carousel-arrow:hover {
      background: rgba(252, 34, 28, 1);
    }

    .modal-body p {
      font-family: var(--font-alice);
      font-size: 17px;
      color: var(--red);
      line-height: 1.4;
      margin-bottom: 20px;
      padding-left: 173px;
    }
    .modal-body p:last-child { margin-bottom: 0; }

    .modal-footer {
      background: var(--footer-bg);
      padding: 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 48px;
    }

    .modal-footer-text {
      font-family: var(--font-alice);
      font-size: clamp(18px, 2vw, 24px);
      color: var(--red);
    }

    .modal-footer-link {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: #000;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      text-decoration: none;
    }

    .modal-footer-link img { width: 36px; height: 36px; }

    @media (max-width: 600px) {
      .modal-inner { padding: 28px 20px 0; }
      .modal-footer { padding: 20px; }
      .modal-impact-list { padding-left: 24px; }
      .modal-body p { padding-left: 0; }
    }

    /* ─── Responsive — tablet ─── */
    @media (max-width: 900px) {
      header, .hero, .highlights, .about, .portfolio { padding-left: 24px; padding-right: 24px; }
      footer { padding-left: 24px; padding-right: 24px; }

      /* Highlights */
      .highlights { flex-wrap: wrap; gap: 24px; }
      .highlight-card { min-width: 220px; }

      /* About */
      .principle { gap: 12px; }
      .about-intro, .about-closing { margin-left: 0; max-width: 100%; }

      /* Portfolio */
      .portfolio-lines { display: none; }
      .portfolio-item { border-top: 1px solid var(--dark); padding: 40px 0; gap: 32px; }
      .portfolio-item:first-child { border-top: none; }
    }

    /* ─── Responsive — mobile ─── */
    @media (max-width: 600px) {
      header, .hero, .highlights, .about, .portfolio { padding-left: 20px; padding-right: 20px; }
      footer { padding-left: 20px; padding-right: 20px; }

      /* Flourish */
      .flourish-row { padding: 80px 0; }
      .flourish-row img { height: 17px; }

      /* About */
      .about { padding-top: 60px; }
      .about-headline { margin-bottom: 32px; }
      .about-intro { margin-bottom: 40px; }
      .principle { grid-template-columns: 1fr; margin-bottom: 32px; }
      .principle-number { font-size: 64px; text-align: left; }

      /* Portfolio */
      .portfolio { padding-top: 60px; }
      .portfolio-headline { margin-bottom: 40px; }
      .portfolio-item { flex-direction: column; gap: 20px; padding: 32px 0; }
    }