/*
Theme Name: Ayaz Paracha
Theme URI: https://ayazparacha.com
Author: Hashtag Media
Description: Portfolio landing theme for Ayaz Paracha. Every section, image and link is edited with the Ayaz Content Manager plugin.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ayaz
License: GPLv2 or later
*/

/* Theme additions (on top of the approved landing design) */
[hidden] { display: none !important; }
.svc-item.anim { animation: panelIn .5s cubic-bezier(.2,.7,.2,1); }
  :root {
    --brand: #e66b4c;
    --brand-deep: #c9502f;
    --brand-tint: #ffe7df;
    --ink: #1c1412;
    --ink-soft: #5b4f4a;
    --cream: #fff7f2;
    --sand: #f6ebe4;
    --white: #ffffff;
    --line: rgba(28,20,18,.12);
    --display: 'Bricolage Grotesque', system-ui, sans-serif;
    --body: 'DM Sans', system-ui, sans-serif;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { font-family: var(--body); background: var(--cream); color: var(--ink); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
  h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; }
  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; }
  button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
  .wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
  ::selection { background: var(--brand); color: #fff; }

  /* Cursor (desktop only) */
  .cursor { position: fixed; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); pointer-events: none; z-index: 999; transform: translate(-50%,-50%); transition: width .25s, height .25s, background .25s; mix-blend-mode: multiply; display: none; }
  .cursor.big { width: 64px; height: 64px; background: rgba(230,107,76,.25); }
  @media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

  /* Progress bar */
  .progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--brand); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }

  /* Buttons */
  .btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 14px; font-weight: 700; font-size: 15px; transition: transform .25s, box-shadow .25s, background .25s, color .25s; position: relative; }
  .btn-brand { background: var(--brand); color: #fff; box-shadow: 0 10px 0 var(--brand-deep); }
  .btn-brand:hover { transform: translateY(-3px); box-shadow: 0 13px 0 var(--brand-deep); }
  .btn-brand:active { transform: translateY(6px); box-shadow: 0 4px 0 var(--brand-deep); }
  .btn-ghost { border: 2px solid var(--ink); }
  .btn-ghost:hover { background: var(--ink); color: var(--cream); }
  .btn .arr { transition: transform .3s; display: inline-block; }
  .btn:hover .arr { transform: translateX(4px) rotate(-45deg); }

  /* Nav */
  .nav { position: sticky; top: 14px; z-index: 50; margin: 14px auto 0; max-width: 1180px; padding: 0 20px; }
  .nav-bar { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.8); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 18px; padding: 10px 10px 10px 20px; box-shadow: 0 12px 30px -18px rgba(28,20,18,.3); }
  .logo { display: flex; align-items: center; }
  .logo img { height: 34px; width: auto; }
  .logo-fallback { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--brand); letter-spacing: -0.04em; }
  .logo-fallback span { color: var(--ink); }
  .links { display: flex; gap: 6px; }
  .links a { padding: 9px 14px; border-radius: 10px; font-weight: 500; font-size: 15px; color: var(--ink-soft); transition: background .2s, color .2s; }
  .links a:hover, .links a.active { background: var(--brand-tint); color: var(--brand-deep); }
  .nav-right { display: flex; align-items: center; gap: 10px; }
  .nav-right .btn { padding: 11px 18px; font-size: 14px; box-shadow: none; }
  .nav-right .btn:hover { box-shadow: none; transform: translateY(-1px); }
  .burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--sand); position: relative; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); transition: transform .3s; }
  .burger::before { top: 17px; } .burger::after { top: 25px; }
  .nav.open .burger::before { transform: translateY(4px) rotate(45deg); }
  .nav.open .burger::after { transform: translateY(-4px) rotate(-45deg); }

  /* Hero */
  .hero { position: relative; padding: 80px 0 60px; }
  .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; animation: float 14s ease-in-out infinite; }
  .blob.b1 { width: 420px; height: 420px; background: #ffb9a6; top: -80px; left: -120px; }
  .blob.b2 { width: 360px; height: 360px; background: var(--brand); opacity: .25; top: 120px; right: -100px; animation-delay: -6s; }
  @keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px,-24px); } }
  .hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; position: relative; }
  .pill { display: inline-flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); padding: 8px 16px 8px 8px; border-radius: 999px; font-size: 14px; font-weight: 500; }
  .pill i { font-style: normal; background: var(--brand); color: #fff; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
  .hero h1 { font-size: clamp(54px, 7.6vw, 108px); margin: 26px 0 24px; }
  .rot-wrap { display: inline-block; position: relative; height: 1.1em; vertical-align: bottom; overflow: hidden; }
  .rot { display: block; color: var(--brand); transition: transform .6s cubic-bezier(.7,0,.2,1), opacity .6s; }
  .rot.out { transform: translateY(-100%); opacity: 0; }
  .rot.in { transform: translateY(100%); opacity: 0; transition: none; }
  .hero p.lead { font-size: 19px; color: var(--ink-soft); max-width: 500px; }
  .hero-ctas { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
  .hero-meta { display: flex; align-items: center; gap: 14px; margin-top: 40px; font-size: 14px; color: var(--ink-soft); }
  .avatars { display: flex; }
  .avatars span { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--cream); margin-left: -10px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; }
  .avatars span:first-child { margin-left: 0; }
  .avatars span:nth-child(1) { background: var(--brand); }
  .avatars span:nth-child(2) { background: #2d2421; }
  .avatars span:nth-child(3) { background: #f2a58e; color: var(--ink); }
  .avatars span:nth-child(4) { background: #8f3b24; }

  /* Hero stack cards */
  .stack { position: relative; height: 520px; perspective: 1000px; }
  .card { position: absolute; background: var(--white); border-radius: 24px; padding: 26px; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(28,20,18,.35); transition: transform .4s cubic-bezier(.2,.7,.2,1); will-change: transform; }
  .card.main { inset: 0 40px 90px 0; background: var(--ink); color: var(--cream); border-color: var(--ink); }
  .card.main .big { font-family: var(--display); font-size: 110px; font-weight: 800; color: var(--brand); line-height: .9; letter-spacing: -0.05em; }
  .card.main .cap { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; opacity: .65; }
  .card.main .bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; margin-top: 22px; }
  .card.main .bars i { flex: 1; background: rgba(255,255,255,.12); border-radius: 8px 8px 3px 3px; height: var(--h); transition: height 1.2s cubic-bezier(.2,.7,.2,1); }
  .card.main .bars i.hot { background: var(--brand); }
  .card.float1 { right: -10px; bottom: 150px; width: 230px; animation: bob 6s ease-in-out infinite; }
  .card.float2 { left: -20px; bottom: 10px; width: 260px; animation: bob 7s ease-in-out infinite reverse; }
  @keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
  .card .k { font-size: 12px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .1em; }
  .card .v { font-family: var(--display); font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 4px; }
  .card .d { font-size: 14px; color: var(--brand-deep); font-weight: 700; }
  .card .row { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; }
  .card .dot { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-tint); display: grid; place-items: center; color: var(--brand-deep); font-weight: 800; }

  /* Marquee */
  .strip { background: var(--brand); color: #fff; overflow: hidden; padding: 20px 0; transform: rotate(-2deg); margin: 30px -40px 0; position: relative; z-index: 2; }
  .strip-track { display: flex; width: max-content; animation: slide 30s linear infinite; }
  .strip:hover .strip-track { animation-play-state: paused; }
  .strip-track span { font-family: var(--display); font-weight: 700; font-size: 30px; padding: 0 22px; white-space: nowrap; letter-spacing: -0.02em; }
  .strip-track span.star { color: var(--ink); }
  @keyframes slide { to { transform: translateX(-50%); } }

  /* Sections */
  section { padding: 130px 0; position: relative; }
  .eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-deep); background: var(--brand-tint); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; }
  .head { max-width: 760px; margin-bottom: 64px; }
  .head h2 { font-size: clamp(44px, 5.6vw, 80px); }
  .head p { margin-top: 20px; font-size: 18px; color: var(--ink-soft); max-width: 560px; }

  /* Services tabs */
  .svc-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: stretch; }
  .svc-tabs { display: grid; gap: 10px; }
  .svc-tab { text-align: left; padding: 24px 28px; border-radius: 22px; background: var(--white); border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: space-between; transition: all .3s; }
  .svc-tab .t { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
  .svc-tab .n { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
  .svc-tab:hover { border-color: var(--brand); }
  .svc-tab.on { background: var(--ink); color: var(--cream); border-color: var(--ink); transform: translateX(10px); }
  .svc-tab.on .n { color: var(--brand); }
  .svc-panel { background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 44px; position: relative; overflow: hidden; min-height: 420px; }
  .svc-panel .ico { width: 64px; height: 64px; border-radius: 20px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 28px; margin-bottom: 28px; }
  .svc-panel h3 { font-size: 40px; margin-bottom: 14px; }
  .svc-panel > p { color: var(--ink-soft); font-size: 17px; max-width: 520px; }
  .svc-panel ul { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
  .svc-panel li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
  .svc-panel li::before { content: "✓"; width: 24px; height: 24px; border-radius: 8px; background: var(--brand-tint); color: var(--brand-deep); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
  .svc-panel .anim { animation: panelIn .5s cubic-bezier(.2,.7,.2,1); }
  @keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .meter { margin-top: 30px; display: grid; gap: 14px; }
  .meter div { display: grid; grid-template-columns: 120px 1fr 52px; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; }
  .meter .track { height: 12px; background: var(--sand); border-radius: 99px; overflow: hidden; }
  .meter .fill { height: 100%; width: 0; background: var(--brand); border-radius: 99px; transition: width 1.2s cubic-bezier(.2,.7,.2,1); }

  /* Process: scroll-linked timeline */
  .process { background: var(--ink); color: var(--cream); border-radius: 48px; margin: 0 16px; overflow: hidden; }
  .process .eyebrow { background: rgba(230,107,76,.18); color: #ffb49f; }
  .process .head p { color: #cbbcb5; }
  .timeline { position: relative; display: grid; gap: 22px; padding-left: 60px; }
  .timeline::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.12); }
  .timeline::after { content: ""; position: absolute; left: 22px; top: 0; height: calc(var(--p, 0) * 100%); width: 2px; background: var(--brand); transition: height .15s linear; }
  .tl-item { position: relative; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 30px 34px; display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; transition: background .4s, border-color .4s, transform .4s; }
  .tl-item::before { content: ""; position: absolute; left: -49px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--ink); border: 3px solid rgba(255,255,255,.2); transition: all .4s; }
  .tl-item.lit { background: rgba(230,107,76,.12); border-color: rgba(230,107,76,.5); transform: translateX(6px); }
  .tl-item.lit::before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 6px rgba(230,107,76,.22); }
  .tl-item .step { font-family: var(--display); font-size: 64px; font-weight: 800; color: var(--brand); letter-spacing: -0.05em; line-height: 1; }
  .tl-item h4 { font-size: 30px; margin-bottom: 8px; }
  .tl-item p { color: #cbbcb5; }

  /* Stats count-up */
  .stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stats div { padding: 46px 28px; border-right: 1px solid var(--line); }
  .stats div:last-child { border-right: none; }
  .stats b { display: block; font-family: var(--display); font-size: 68px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
  .stats b em { font-style: normal; color: var(--brand); }
  .stats div > span { display: block; margin-top: 10px; color: var(--ink-soft); font-weight: 500; }

  /* Work grid with tilt + modal */
  .work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
  .work { position: relative; border-radius: 26px; overflow: hidden; cursor: pointer; min-height: 300px; transform-style: preserve-3d; transition: transform .25s ease-out; color: var(--cream); display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; }
  .work .bg { position: absolute; inset: 0; z-index: 0; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
  .work:hover .bg { transform: scale(1.06); }
  .work::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(28,20,18,.85)); z-index: 1; }
  .work > * { position: relative; z-index: 2; }
  .work .tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #ffc9b8; }
  .work h3 { font-size: 32px; margin-top: 8px; }
  .work .go { position: absolute; top: 24px; right: 24px; z-index: 2; width: 52px; height: 52px; border-radius: 50%; background: var(--cream); color: var(--ink); display: grid; place-items: center; font-size: 20px; transform: scale(.6) rotate(-45deg); opacity: 0; transition: all .4s cubic-bezier(.2,.7,.2,1); }
  .work:hover .go { transform: scale(1) rotate(0); opacity: 1; }
  .w1 { grid-column: span 7; min-height: 440px; }
  .w2 { grid-column: span 5; }
  .w3 { grid-column: span 5; }
  .w4 { grid-column: span 7; }
  .bg-1 { background: linear-gradient(135deg, #e66b4c 0%, #ff9c7d 45%, #2d1c17 100%); }
  .bg-2 { background: linear-gradient(160deg, #2d1c17 0%, #6b2f1f 100%); }
  .bg-3 { background: linear-gradient(120deg, #f7c7b5 0%, #e66b4c 100%); }
  .bg-4 { background: radial-gradient(circle at 30% 20%, #ffb89f, #c9502f 60%, #1c1412); }
  .work .bg::after { content: ""; position: absolute; width: 60%; height: 60%; right: -10%; top: -10%; border-radius: 50%; border: 40px solid rgba(255,255,255,.12); }

  /* Testimonials slider */
  .slider { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 36px; padding: 70px 70px 60px; overflow: hidden; }
  .slider-track { display: flex; transition: transform .7s cubic-bezier(.7,0,.2,1); }
  .slide { min-width: 100%; }
  .slide blockquote { font-family: var(--display); font-size: clamp(28px, 3.4vw, 46px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; max-width: 920px; }
  .slide blockquote::before { content: "“"; color: var(--brand); font-size: 1.4em; line-height: 0; vertical-align: -.3em; margin-right: 4px; }
  .slide .who { margin-top: 36px; display: flex; align-items: center; gap: 14px; font-weight: 700; }
  .slide .who small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 14px; }
  .slide .who .av { width: 52px; height: 52px; border-radius: 16px; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; }
  .slider-ctrl { display: flex; align-items: center; justify-content: space-between; margin-top: 44px; gap: 20px; }
  .dots { display: flex; gap: 8px; }
  .dots button { width: 10px; height: 10px; border-radius: 99px; background: var(--line); transition: all .4s; }
  .dots button.on { width: 36px; background: var(--brand); }
  .arrows { display: flex; gap: 10px; }
  .arrows button { width: 56px; height: 56px; border-radius: 18px; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 20px; transition: all .25s; }
  .arrows button:hover { background: var(--ink); color: var(--cream); }

  /* Planner */
  .planner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
  .plan-box { background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 40px; }
  .plan-box h3 { font-size: 28px; margin-bottom: 8px; }
  .plan-box > p { color: var(--ink-soft); margin-bottom: 26px; }
  .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
  .chip { padding: 12px 18px; border-radius: 14px; border: 1.5px solid var(--line); font-weight: 600; font-size: 15px; transition: all .25s; }
  .chip:hover { border-color: var(--brand); }
  .chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 0 var(--brand-deep); transform: translateY(-2px); }
  .seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: var(--sand); padding: 6px; border-radius: 18px; }
  .seg button { padding: 16px 10px; border-radius: 14px; font-weight: 700; font-size: 15px; transition: all .3s; }
  .seg button[aria-checked="true"] { background: var(--ink); color: var(--cream); box-shadow: 0 8px 18px -8px rgba(28,20,18,.6); }
  .summary { background: var(--ink); color: var(--cream); border-radius: 28px; padding: 40px; display: flex; flex-direction: column; }
  .summary small { text-transform: uppercase; letter-spacing: .14em; color: var(--brand); font-weight: 700; font-size: 12px; }
  .summary h3 { font-size: 34px; margin: 14px 0 18px; }
  .summary .list { color: #d9ccc6; font-size: 15px; display: grid; gap: 8px; min-height: 96px; }
  .summary .list span { display: block; animation: panelIn .4s both; }
  .summary .btn { margin-top: auto; justify-content: center; }
  .summary .btn-brand { box-shadow: 0 10px 0 var(--brand-deep); }

  /* FAQ */
  .faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
  .faq-items { display: grid; gap: 12px; }
  .qa { background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
  .qa:hover { border-color: rgba(230,107,76,.5); }
  .qa.open { border-color: var(--brand); box-shadow: 0 16px 30px -22px rgba(230,107,76,.8); }
  .qa button { width: 100%; text-align: left; padding: 24px 28px; font-family: var(--display); font-size: 20px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 16px; letter-spacing: -0.01em; }
  .qa .pm { width: 36px; height: 36px; border-radius: 12px; background: var(--sand); display: grid; place-items: center; flex-shrink: 0; transition: transform .4s, background .3s; font-size: 20px; }
  .qa.open .pm { transform: rotate(135deg); background: var(--brand); color: #fff; }
  .qa .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2,.7,.2,1); }
  .qa.open .ans { grid-template-rows: 1fr; }
  .qa .ans > div { overflow: hidden; }
  .qa .ans p { padding: 0 28px 26px; color: var(--ink-soft); font-size: 16px; }

  /* Contact */
  .contact { background: var(--brand); color: #fff; border-radius: 48px; margin: 0 16px; padding: 110px 60px; text-align: center; position: relative; overflow: hidden; }
  .contact::before, .contact::after { content: ""; position: absolute; border-radius: 50%; border: 60px solid rgba(255,255,255,.1); }
  .contact::before { width: 420px; height: 420px; left: -140px; top: -140px; }
  .contact::after { width: 320px; height: 320px; right: -110px; bottom: -110px; }
  .contact h2 { font-size: clamp(56px, 8vw, 120px); position: relative; }
  .contact p { position: relative; font-size: 19px; margin: 24px auto 44px; max-width: 540px; opacity: .92; }
  .mail-row { position: relative; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
  .mail-pill { background: #fff; color: var(--ink); padding: 18px 28px; border-radius: 16px; font-weight: 700; font-size: 18px; box-shadow: 0 10px 0 rgba(0,0,0,.18); transition: transform .25s, box-shadow .25s; }
  .mail-pill:hover { transform: translateY(-3px); box-shadow: 0 13px 0 rgba(0,0,0,.18); }
  .copy-btn { background: var(--ink); color: var(--cream); padding: 18px 28px; border-radius: 16px; font-weight: 700; font-size: 16px; transition: transform .25s; }
  .copy-btn:hover { transform: translateY(-3px); }

  footer { padding: 70px 0 40px; }
  .foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
  .foot nav { display: flex; gap: 22px; font-weight: 500; color: var(--ink-soft); }
  .foot nav a:hover { color: var(--brand-deep); }
  .foot .small { margin-top: 30px; width: 100%; font-size: 14px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 24px; }

  /* Modal */
  dialog { border: none; padding: 0; border-radius: 28px; width: min(640px, 92vw); background: var(--white); color: var(--ink); }
  dialog::backdrop { background: rgba(28,20,18,.6); backdrop-filter: blur(4px); }
  dialog .m-top { height: 240px; border-radius: 28px 28px 0 0; }
  dialog .m-body { padding: 32px 36px 36px; }
  dialog h3 { font-size: 36px; }
  dialog p { color: var(--ink-soft); margin-top: 12px; }
  dialog .x { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.9); font-size: 20px; }
  dialog form { position: relative; }

  /* Reveal */
  .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
  .rv.in { opacity: 1; transform: none; }

  /* Work images */
  .work .bg img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

  /* About */
  .about { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
  .about-photo { position: relative; }
  .about-photo .frame { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 4/5; background: var(--brand); }
  .about-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .8s; filter: grayscale(1); }
  .about-photo:hover img { transform: scale(1.04); filter: grayscale(0); }
  .about-photo .badge { position: absolute; right: -18px; bottom: 36px; background: var(--ink); color: var(--cream); padding: 18px 22px; border-radius: 18px; box-shadow: 0 20px 40px -20px rgba(28,20,18,.5); }
  .about-photo .badge b { display: block; font-family: var(--display); font-size: 34px; font-weight: 800; color: var(--brand); line-height: 1; }
  .about-photo .badge span { font-size: 13px; color: #d9ccc6; }
  .about-copy h2 { font-size: clamp(44px, 5vw, 72px); margin: 22px 0 26px; }
  .about-copy p { font-size: 18px; color: var(--ink-soft); margin-bottom: 18px; max-width: 560px; }
  .about-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 30px 0 36px; }
  .about-list li { display: flex; gap: 12px; align-items: center; font-weight: 600; padding: 14px 16px; background: var(--cream); border-radius: 14px; border: 1px solid var(--line); }
  .about-list li::before { content: "✓"; width: 24px; height: 24px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
  .about-sign { font-family: var(--display); font-weight: 700; font-size: 20px; }
  .about-sign small { display: block; font-family: var(--body); font-weight: 400; color: var(--ink-soft); font-size: 14px; }
  @media (max-width: 1040px) {
    .about-grid { grid-template-columns: 1fr; gap: 50px; }
    .about-photo { max-width: 460px; }
  }
  @media (max-width: 600px) {
    .about-list { grid-template-columns: 1fr; }
    .about-photo .badge { right: 12px; }
  }

  /* Responsive */
  @media (max-width: 1040px) {
    .links { display: none; }
    .burger { display: block; }
    .nav.open .links { display: grid; position: absolute; top: 76px; left: 20px; right: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.3); }
    .hero-grid, .svc-wrap, .faq, .planner { grid-template-columns: 1fr; }
    .stack { height: 460px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stats div:nth-child(2) { border-right: none; }
    .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .w1, .w2, .w3, .w4 { grid-column: span 12; min-height: 320px; }
    .process { margin: 0 8px; border-radius: 32px; }
    .tl-item { grid-template-columns: 1fr; gap: 6px; }
  }
  @media (max-width: 600px) {
    section { padding: 90px 0; }
    .wrap { padding: 0 20px; }
    .nav-right .btn { display: none; }
    .slider { padding: 44px 26px; }
    .plan-box, .summary, .svc-panel { padding: 28px; }
    .strip { margin: 30px -20px 0; }
    .contact { margin: 0 8px; padding: 80px 24px; border-radius: 32px; }
    .timeline { padding-left: 44px; }
    .timeline::before, .timeline::after { left: 14px; }
    .tl-item::before { left: -37px; }
    .card.main { inset: 0 20px 80px 0; }
    .card.float1 { right: 0; width: 190px; }
    .card.float2 { left: 0; width: 210px; }
    .stats b { font-size: 52px; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .rv { opacity: 1; transform: none; }
  }

/* Stop decorative blobs from widening the page (caused a sideways scroll and an off-centre look) */
.hero { overflow-x: clip; }
html, body { overflow-x: clip; }

/* Services: price tag */
.svc-price { display: inline-block; margin: 2px 0 14px; background: var(--brand-tint); color: var(--brand-deep); font-weight: 700; font-size: 14px; padding: 7px 14px; border-radius: 999px; }

/* Photos in the hero avatars and review avatars */
.avatars span.has-img { padding: 0; overflow: hidden; }
.avatars span img, .slide .who .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide .who .av { overflow: hidden; }

/* Contact form */

/* Enquiry form section */

/* Enquiry section */
.enquire-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.enq-copy h2 { font-size: clamp(44px, 5.6vw, 80px); margin-top: 22px; }
.enq-copy > p { color: var(--ink-soft); font-size: 18px; margin-top: 18px; max-width: 480px; }
.enq-points { list-style: none; display: grid; gap: 14px; margin: 30px 0 34px; }
.enq-points li { position: relative; padding-left: 36px; font-weight: 500; font-size: 16px; }
.enq-points li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 8px; background: var(--brand-tint); color: var(--brand-deep); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.enq-copy .mail-pill { display: inline-flex; }

.cform { position: relative; background: var(--ink); color: var(--cream); border-radius: 32px; padding: 40px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(28,20,18,.55); }
.cform::before { content: ""; position: absolute; top: -120px; right: -120px; width: 280px; height: 280px; border-radius: 50%; background: var(--brand); opacity: .2; filter: blur(12px); pointer-events: none; }
.cform-head { position: relative; font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; padding-bottom: 20px; margin-bottom: 26px; border-bottom: 1px solid rgba(255,247,242,.14); }
.cform-body { position: relative; display: grid; gap: 18px; }
.cform label { display: grid; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,247,242,.7); }
.cform input, .cform select, .cform textarea { font: inherit; font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: none; width: 100%; padding: 14px 16px; border: 1px solid rgba(255,247,242,.16); border-radius: 14px; background: rgba(255,255,255,.05); color: var(--cream); }
.cform select option { color: var(--ink); }
.cform input::placeholder, .cform textarea::placeholder { color: rgba(255,247,242,.4); }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(230,107,76,.25); }
.cform textarea { resize: vertical; min-height: 130px; }
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cform .btn { width: 100%; justify-content: center; margin-top: 6px; }
.cform-foot { font-size: 13px; color: rgba(255,247,242,.6); text-align: center; font-weight: 400; letter-spacing: 0; text-transform: none; }
.cform-msg { padding: 14px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; }
.cform-msg.ok { background: rgba(46,160,96,.2); color: #c4f2d6; }
.cform-msg.err { background: rgba(230,107,76,.22); color: #ffd6c9; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .enquire-grid, .cform-row { grid-template-columns: 1fr; } .cform { padding: 28px; } }

/* Hero enquiry form: fills the right column of the hero */
.hform { position: relative; margin: 0; background: var(--ink); color: var(--cream); border-radius: 32px; padding: 34px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(28,20,18,.55); }
.hform::before { content: ""; position: absolute; top: -120px; right: -120px; width: 260px; height: 260px; border-radius: 50%; background: var(--brand); opacity: .2; filter: blur(12px); pointer-events: none; }
.hform-head { position: relative; font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid rgba(255,247,242,.14); }
.hform-msg { position: relative; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; }
.hform-msg.ok { background: rgba(46,160,96,.2); color: #c4f2d6; }
.hform-msg.err { background: rgba(230,107,76,.22); color: #ffd6c9; }
.hform-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hform .full { grid-column: 1 / -1; }
.hform input, .hform select, .hform textarea { font: inherit; font-size: 15px; width: 100%; padding: 13px 15px; border: 1px solid rgba(255,247,242,.16); border-radius: 14px; background: rgba(255,255,255,.05); color: var(--cream); }
.hform select option { color: var(--ink); }
.hform textarea { resize: vertical; min-height: 110px; font-family: inherit; }
.hform input::placeholder, .hform textarea::placeholder { color: rgba(255,247,242,.45); }
.hform input:focus, .hform select:focus, .hform textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(230,107,76,.25); }
.hform .btn { justify-content: center; margin-top: 4px; }
.hform .btn:disabled { opacity: .7; }
.hform-foot { position: relative; margin: 16px 0 0; font-size: 13px; color: rgba(255,247,242,.6); text-align: center; }
@media (max-width: 560px) { .hform { padding: 24px; } .hform-grid { grid-template-columns: 1fr; } .hform .full { grid-column: auto; } }
