:root{
    --blush: #fbeef1;
    --blush-deep: #f6dde3;
    --cream: #fffcf8;
    --ink: #2b241f;
    --ink-soft: #5c5148;
    --rose: #a8496b;
    --rose-deep: #7d3350;
    --hedge: #3f4f34;
    --rule: rgba(43,36,31,0.15);
  }

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

  html{ scroll-behavior:smooth; }

  body{
    background-color: var(--blush);
    color: var(--ink);
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    overflow-x:hidden;
  }

  ::selection{ background: var(--rose); color: var(--cream); }

  h1,h2,h3,.serif{
    font-family: 'Fraunces', serif;
    font-weight: 400;
    letter-spacing: -0.01em;
  }

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

  .sketch-bg{
    position: fixed;
    inset: 0;
    background-image: url('assets/hamptons-sketch.png');
    background-repeat: no-repeat;
    background-size: 2520px auto;
    background-position: -80px -1180px;
    opacity: 0.11;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
  }

  .wash{
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(251,238,241,0.12) 0%, rgba(251,238,241,0.22) 45%, rgba(251,238,241,0.35) 100%);
    z-index: 0;
    pointer-events: none;
  }

  .content{ position: relative; z-index: 1; }

  /* NAV */
  nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 30px 6vw;
    position: sticky;
    top:0;
    z-index: 20;
    background: rgba(251,238,241,0.78);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule);
  }

  .brandmark{
    display:flex;
    align-items:center;
    gap:12px;
    font-family:'Fraunces', serif;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
  }

  .brandmark svg{ width:46px; height:46px; }

  .navlinks{
    display:flex;
    gap: 40px;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  .navlinks a{ position:relative; transition: color .3s ease; }
  .navlinks a:hover{ color: var(--rose-deep); }
  .navlinks a::after{
    content:'';
    position:absolute;
    left:0; right:0; bottom:-6px;
    height:1px;
    background: var(--rose);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
  }
  .navlinks a:hover::after{ transform: scaleX(1); }

  .nav-cta{
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid var(--ink);
    padding: 10px 22px;
    transition: all .3s ease;
  }
  .nav-cta:hover{ background: var(--ink); color: var(--cream); }

  /* HERO */
  .hero{
    min-height: 92vh;
    display:flex;
    flex-direction: column;
    justify-content: center;
    padding: 8vh 6vw 10vh;
    position: relative;
  }

  .eyebrow{
    font-size: 0.75rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--rose-deep);
    margin-bottom: 26px;
  }

  .hero h1{
    font-size: clamp(3rem, 8vw, 6.4rem);
    max-width: 15ch;
    line-height: 0.98;
  }

  .hero h1 em{
    font-style: italic;
    color: var(--rose-deep);
    font-weight: 400;
  }

  .hero-sub{
    max-width: 42ch;
    margin-top: 34px;
    font-size: 1.08rem;
    color: var(--ink-soft);
  }

  .hero-row{
    display:flex;
    align-items:center;
    gap: 30px;
    margin-top: 48px;
  }

  .btn-primary{
    background: var(--ink);
    color: var(--cream);
    padding: 16px 34px;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid var(--ink);
    transition: all .35s ease;
  }
  .btn-primary:hover{ background: transparent; color: var(--ink); }

  .hero-note{
    font-size: 0.78rem;
    color: var(--ink-soft);
    font-style: italic;
    font-family: 'Fraunces', serif;
  }

 /* MARQUEE STRIP */
  .strip{
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 18px 0;
    overflow:hidden;
    white-space: nowrap;
    background: var(--blush-deep);
  }
  .strip-track{
    display:inline-block;
    animation: scroll 38s linear infinite;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--rose-deep);
  }
  .strip-track span{ margin: 0 2.2em; }
  @keyframes scroll{
    from{ transform: translateX(0); }
    to{ transform: translateX(-50%); }
  }

  /* SECTION HEADER */
  .section{ padding: 130px 6vw; }
  .section-head{
    display:flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 70px;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 28px;
  }
  .section-head .eyebrow{ margin-bottom: 14px; }
  .section-head h2{ font-size: clamp(2rem, 4vw, 3rem); max-width: 14ch; }
  .section-head p{ max-width: 32ch; color: var(--ink-soft); font-size: 0.95rem; padding-bottom: 4px; }

  /* SERVICES - editorial rows */
  .service-row{
    display:grid;
    grid-template-columns: 1fr 2.4fr 1.4fr;
    gap: 30px;
    align-items: start;
    padding: 38px 0;
    border-bottom: 1px solid var(--rule);
    transition: padding-left .4s ease;
  }
  .service-row:hover{ padding-left: 14px; }
  .service-tag{
    font-family:'Fraunces', serif;
    font-style: italic;
    color: var(--rose-deep);
    font-size: 1.05rem;
  }
  .service-row h3{ font-size: 1.55rem; font-weight: 400; }
  .service-row p{ color: var(--ink-soft); font-size: 0.92rem; }
  .service-arrow{
    justify-self:end;
    align-self:center;
    font-size: 1.4rem;
    color: var(--ink-soft);
    transition: transform .35s ease;
  }
  .service-row:hover .service-arrow{ transform: translateX(8px); color: var(--rose-deep); }

  /* PHILOSOPHY / SPLIT */
  .split{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items:center;
  }
  .split-card{
    background: var(--cream);
    border: 1px solid var(--rule);
    padding: 54px 46px;
    position: relative;
  }
  .split-card .quote-mark{
    font-family:'Fraunces', serif;
    font-size: 4rem;
    color: var(--rose);
    line-height: 0.6;
    display:block;
    margin-bottom: 14px;
  }
  .split-card p{ font-size: 1.28rem; font-family:'Fraunces', serif; line-height: 1.5; color: var(--ink); }
  .split-card .attribution{
    margin-top: 26px;
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  .quote-track{
    position: relative;
    min-height: 230px;
  }
  .quote-slide{
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.1s ease;
  }
  .quote-slide.active{
    opacity: 1;
    visibility: visible;
    position: relative;
  }
  .quote-dots{
    display:flex;
    gap: 10px;
    margin-top: 30px;
  }
  .quote-dots button{
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--rose);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background .3s ease, transform .3s ease;
  }
  .quote-dots button.active{
    background: var(--rose);
    transform: scale(1.2);
  }
  .quote-dots button:hover{ background: var(--rose); opacity: 0.6; }

  .split-copy .eyebrow{ margin-bottom: 20px; }
  .split-copy h2{ font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 26px; }
  .split-copy p{ color: var(--ink-soft); margin-bottom: 20px; max-width: 44ch; }

  .stat-row{ display:flex; gap: 50px; margin-top: 40px; }
  .stat h4{ font-family:'Fraunces', serif; font-size: 2.1rem; color: var(--rose-deep); }
  .stat span{ font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }

  /* AREAS */
  .area-grid{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
  }
  .area-cell{
    background: var(--blush);
    padding: 40px 28px;
    transition: background .35s ease;
  }
  .area-cell:hover{ background: var(--cream); }
  .area-cell .num{ font-size: 0.72rem; color: var(--rose-deep); letter-spacing: 0.1em; }
  .area-cell h3{ font-size: 1.3rem; margin-top: 12px; font-weight:400; }
  .area-cell p{ font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }
  .area-cell ul{ list-style: none; margin-top: 12px; }
  .area-cell ul li{
    font-size: 0.85rem;
    color: var(--ink-soft);
    padding: 5px 0;
  }

  /* CTA */
  .cta-section{
    text-align:center;
    padding: 160px 6vw;
    position: relative;
  }
  .cta-section h2{
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    max-width: 18ch;
    margin: 0 auto 34px;
    line-height: 1.05;
  }
  .cta-section p{ color: var(--ink-soft); max-width: 44ch; margin: 0 auto 44px; }

  footer{
    padding: 60px 6vw 40px;
    border-top: 1px solid var(--rule);
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    flex-wrap: wrap;
    gap: 30px;
    font-size: 0.8rem;
    color: var(--ink-soft);
  }
  footer .fbrand{ font-family:'Fraunces', serif; font-size: 1.1rem; color: var(--ink); }
  footer .fcols{ display:flex; gap: 60px; }
  footer .fcol h5{
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--ink); margin-bottom: 12px; font-weight:400;
  }
  footer .fcol a{ display:block; margin-bottom: 8px; color: var(--ink-soft); transition: color .3s; }
  footer .fcol a:hover{ color: var(--rose-deep); }

  /* MOBILE NAV TOGGLE */
  .nav-toggle{
    display:none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--ink);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }
  .nav-toggle span{
    display:block;
    width: 18px;
    height: 1px;
    background: var(--ink);
    transition: transform .3s ease, opacity .3s ease;
  }
  .nav-toggle.open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2){ opacity: 0; }
  .nav-toggle.open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

  .mobile-panel{
    display:none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--blush);
    z-index: 30;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px 8vw;
    transform: translateY(-100%);
    transition: transform .4s ease;
  }
  .mobile-panel.open{ transform: translateY(0); }
  .mobile-panel a{
    font-family:'Fraunces', serif;
    font-size: 2rem;
    color: var(--ink);
  }
  .mobile-panel .mobile-cta{
    margin-top: 20px;
    font-family:'Jost', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid var(--ink);
    padding: 14px 30px;
  }
  body.menu-open{ overflow: hidden; }

  @media (max-width: 900px){
    .navlinks{ display:none; }
    .nav-toggle{ display:flex; }
    .mobile-panel{ display:flex; }
    .split{ grid-template-columns: 1fr; }
    .service-row{ grid-template-columns: 1fr; gap: 10px; }
    .service-arrow{ display:none; }
    .area-grid{ grid-template-columns: repeat(2,1fr); }
    .section-head{ flex-direction: column; align-items:flex-start; }
  }

  @media (max-width: 640px){
    nav{ padding: 22px 6vw; }
    .brandmark{ font-size: 1rem; }
    .brandmark svg{ width: 38px; height: 38px; }
    .hero{ padding: 6vh 6vw 8vh; min-height: auto; }
    .eyebrow{ font-size: 0.68rem; letter-spacing: 0.22em; margin-bottom: 18px; }
    .hero h1{ font-size: clamp(2.2rem, 10vw, 3.2rem); line-height: 1.05; }
    .hero-sub{ font-size: 1rem; margin-top: 24px; }
    .hero-row{
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
      margin-top: 34px;
    }
    .btn-primary{ width: 100%; text-align:center; padding: 16px 24px; }
    .strip-track{ font-size: 0.85rem; }
    .section{ padding: 70px 6vw; }
    .section-head{ margin-bottom: 44px; padding-bottom: 20px; gap: 16px; }
    .section-head h2{ font-size: clamp(1.7rem, 7vw, 2.4rem); }
    .service-row{ padding: 28px 0; }
    .service-row h3{ font-size: 1.3rem; }
    .split-card{ padding: 36px 26px; }
    .split-card p{ font-size: 1.08rem; }
    .split-copy h2{ font-size: clamp(1.6rem, 7vw, 2rem); }
    .stat-row{ gap: 30px; flex-wrap: wrap; }
    .area-grid{ grid-template-columns: 1fr; }
    .cta-section{ padding: 90px 6vw; }
    .cta-section h2{ font-size: clamp(2rem, 9vw, 2.8rem); }
    footer{ padding: 44px 6vw 30px; flex-direction: column; align-items:flex-start; gap: 26px; }
    .fcols{ gap: 40px; flex-wrap: wrap; }
    .mobile-panel a{ font-size: 1.6rem; }
  }

  /* APPLICATION MODAL */
  .modal-overlay{
    position: fixed;
    inset: 0;
    background: rgba(43,36,31,0.55);
    z-index: 200;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 24px;
    overflow-y: auto;
  }
  .modal-overlay.open{ display: flex; }

  .modal{
    background: var(--cream);
    max-width: 620px;
    width: 100%;
    padding: 54px 56px 48px;
    position: relative;
    border: 1px solid var(--rule);
  }

  .modal h2{
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.1;
    margin-bottom: 14px;
  }

  .modal-sub{
    color: var(--ink-soft);
    font-size: 0.95rem;
    max-width: 44ch;
    margin-bottom: 34px;
  }

  .modal-close{
    position: absolute;
    top: 24px;
    right: 26px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--rule);
    font-size: 1.35rem;
    line-height: 1;
    color: var(--ink);
    cursor: pointer;
    padding: 0;
    transition: color .25s ease, border-color .25s ease;
  }
  .modal-close:hover{ color: var(--rose); border-color: var(--rose); }

  .form-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 20px;
  }
  .form-field{ display: flex; flex-direction: column; }
  .form-field.full{ grid-column: 1 / -1; }

  .form-field label,
  .select-wrap-label{
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 8px;
  }

  .form-field input,
  .form-field select,
  .form-field textarea{
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--ink);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--rule);
    padding: 10px 2px;
    transition: border-color .25s ease;
  }
  .form-field textarea{
    border: none;
    border-bottom: 1px solid var(--rule);
    padding: 10px 2px;
    min-height: 96px;
    resize: vertical;
  }
  .form-field input:focus,
  .form-field select:focus,
  .form-field textarea:focus{
    outline: none;
    border-color: var(--rose);
  }
  .form-field textarea::placeholder{ color: var(--ink-soft); }

  .form-submit-row{ margin-top: 34px; }

  .modal-thanks{
    display: none;
    padding: 20px 0 10px;
  }
  .modal-thanks h3{ font-size: 1.5rem; margin-bottom: 12px; }
  .modal-thanks p{ color: var(--ink-soft); font-size: 0.95rem; max-width: 42ch; }

  @media (max-width: 640px){
    .modal-overlay{ padding: 24px 14px; }
    .modal{ padding: 44px 24px 36px; }
    .form-grid{ grid-template-columns: 1fr; }
  }

  /* CUSTOM VILLAGE DROPDOWN */
  .select-wrap{ position: relative; }

  .select-toggle{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--rule);
    padding: 10px 2px;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: border-color .25s ease;
  }
  .select-toggle:hover{ border-color: var(--rule); }
  .select-toggle:focus-visible{ outline: none; border-color: var(--rose); }
  .select-wrap.open .select-toggle{ border-color: var(--rose); }

  .select-value.placeholder{ color: var(--ink-soft); }

  .select-arrow{
    width: 8px; height: 8px;
    border-right: 1px solid var(--ink-soft);
    border-bottom: 1px solid var(--ink-soft);
    transform: rotate(45deg) translate(-2px,-2px);
    transition: transform .3s ease, border-color .25s ease;
    flex: none;
  }
  .select-wrap.open .select-arrow{
    transform: rotate(225deg) translate(-3px,-3px);
    border-color: var(--rose);
  }

  .select-list{
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: var(--cream);
    border: 1px solid var(--rule);
    list-style: none;
    max-height: 232px;
    overflow-y: auto;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    box-shadow: 0 14px 34px rgba(43,36,31,0.10);
  }
  .select-wrap.open .select-list{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .select-list li{
    padding: 11px 16px;
    font-size: 0.92rem;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
  }
  .select-list li:hover,
  .select-list li.active{
    background: var(--blush);
    color: var(--rose-deep);
  }
  .select-list li[aria-selected="true"]{
    color: var(--rose);
  }

  .select-wrap.drop-up .select-list{
    top: auto;
    bottom: calc(100% + 6px);
    transform: translateY(6px);
    box-shadow: 0 -14px 34px rgba(43,36,31,0.10);
  }
  .select-wrap.drop-up.open .select-list{ transform: translateY(0); }


  /* ============================================================
     SCROLL CONTAINMENT — house rule: only the front-most layer
     scrolls. Nothing behind an open overlay moves.
     ============================================================ */
  html, body{ overscroll-behavior-y: none; }

  body.scroll-locked{
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
  }

  .mobile-panel,
  .modal-overlay,
  .select-list,
  .quote-track{
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-panel{ overflow-y: auto; }

  /* ============================================================
     MOBILE MENU — explicit close control
     ============================================================ */
  .mobile-close{
    position: absolute;
    top: 22px;
    right: 6vw;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--ink);
    color: var(--ink);
    font-family: 'Jost', sans-serif;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    transition: color .25s ease, border-color .25s ease;
  }
  .mobile-close:hover,
  .mobile-close:focus-visible{ color: var(--rose); border-color: var(--rose); }

  /* ============================================================
     QUOTES — horizontal swipe track on small screens
     ============================================================ */
  @media (max-width: 900px){
    /* min-width:0 keeps the swipe track from inflating the mobile
       layout viewport via automatic min-content sizing */
    .split,
    .split-card{ min-width: 0; }

    .quote-track{
      display: flex;
      min-width: 0;
      min-height: 0;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: x mandatory;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    .quote-track::-webkit-scrollbar{ display: none; }

    .quote-slide,
    .quote-slide.active{
      position: relative;
      inset: auto;
      flex: 0 0 100%;
      width: 100%;
      min-width: 0;
      opacity: 1;
      visibility: visible;
      transition: none;
      scroll-snap-align: start;
    }
  }

  /* ============================================================
     PHONE READABILITY — lighter ground, darker type
     ============================================================ */
  @media (max-width: 640px){
    :root{
      --blush: #fdf5f7;
      --blush-deep: #fae9ee;
      --cream: #fffdfa;
      --ink: #1f1a16;
      --ink-soft: #453c34;
      --rose-deep: #6f2c46;
      --rule: rgba(43,36,31,0.14);
    }
    nav{ background: rgba(253,245,247,0.88); }
    .sketch-bg{ opacity: 0.055; }
    .wash{
      background: linear-gradient(180deg,
        rgba(253,245,247,0.30) 0%,
        rgba(253,245,247,0.42) 45%,
        rgba(253,245,247,0.55) 100%);
    }
    .split-card p{ color: var(--ink); }
    .hero-sub,
    .section-head p,
    .service-row p,
    .split-copy p,
    .area-cell ul li,
    .cta-section p{ color: var(--ink-soft); }
  }
