/* Shared Reynolds West design system. Loaded after each page's inline styles so
   every page matches the homepage: full-bleed square hero and booking band,
   light hero headline, compact buttons, white footer, phone menu. */

:root{--edge:max(54px,calc((100vw - 1228px)/2 + 54px))}
.wrap{max-width:1228px;margin:0 auto;padding:0 54px}
@media (max-width:1100px){.wrap{padding:0 33px}}
@media (max-width:860px){.wrap{padding:0 15px}}

/* Hero */
.hero{margin:0;border-radius:0}
.hero h1{font-size:54px;line-height:1.08;font-weight:400;letter-spacing:-.03em}
.hero .btn{font-size:15px;padding:12px 22px}
@media (max-width:1100px){.hero h1{font-size:50px}}
@media (max-width:860px){.hero{margin:0;border-radius:0}.hero h1{font-size:40px}}

/* Booking band */
.book{padding:128px 0 0;background:none;color:inherit;border-top:0}
.book-card{margin:0;border-radius:0;color:#fff;padding:112px 0;text-align:center;background:radial-gradient(800px 420px at 50% -20%,rgba(151,252,228,.16),transparent 62%),var(--deep)}
.book .book-card .wrap{display:block}
.book-card h2{color:#fff;font-size:52px;line-height:1.1;font-weight:600;letter-spacing:-.025em;max-width:none}
.book-card p{margin:22px auto 0;color:#BFD0CC;font-size:21px;line-height:1.55;max-width:640px}
.book-card .btn{margin-top:40px;background:var(--mint);color:var(--deep);font-size:17px;padding:17px 34px}
.book-card .btn:hover{filter:brightness(.95)}
@media (max-width:860px){.book{padding-top:88px}.book-card{padding:64px 0}.book-card h2{font-size:34px}.book-card p{font-size:18px}}

/* Footer */
footer{background:#fff;color:var(--green)}
footer .wrap{color:var(--green)}
footer a{text-decoration:none;color:var(--green);font-weight:500;transition:color .2s}
footer a:hover{color:var(--deep)}

/* Articles */
.art-head h1{font-weight:400;letter-spacing:-.03em}

/* Phone menu (button and panel are added by site.js) */
.m-toggle{display:none}
.m-panel{display:none}
@media (max-width:860px){
  .m-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;margin-left:8px;border:1px solid var(--line);background:#fff;cursor:pointer;padding:0}
  .m-toggle span,.m-toggle span:before,.m-toggle span:after{display:block;width:16px;height:1.5px;background:var(--deep);position:relative;transition:transform .25s,background .25s}
  .m-toggle span:before,.m-toggle span:after{content:"";position:absolute;left:0}
  .m-toggle span:before{top:-5px}
  .m-toggle span:after{top:5px}
  nav.m-open .m-toggle span{background:transparent}
  nav.m-open .m-toggle span:before{transform:translateY(5px) rotate(45deg)}
  nav.m-open .m-toggle span:after{transform:translateY(-5px) rotate(-45deg)}
  nav .wrap>ul{margin-left:auto}
  .m-panel{display:block;position:absolute;left:0;right:0;top:100%;background:#fff;border-top:1px solid var(--line);box-shadow:0 18px 30px rgba(15,36,32,.08);padding:8px 15px 20px;max-height:0;overflow:hidden;opacity:0;visibility:hidden;transition:max-height .35s ease,opacity .25s ease,visibility .25s}
  nav.m-open .m-panel{max-height:80vh;overflow:auto;opacity:1;visibility:visible}
  .m-panel p{margin:16px 0 4px;font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--green)}
  .m-panel a{display:block;padding:10px 0;font-size:17px;color:var(--ink);text-decoration:none;border-bottom:1px solid var(--line)}
}

/* Buttons: rounded, tighter padding, site-wide */
.btn,nav ul .btn,.hero .btn,.book-card .btn,.bform button.btn{border-radius:999px}
.btn{padding:10px 20px}
nav ul .btn{padding:8px 16px}
.hero .btn{padding:10px 20px}
.book-card .btn{padding:12px 26px}
.bform button.btn{padding:12px}

/* Homepage statement: space below the hero, and the About anchor lands on it */
.statement.wrap{padding-top:120px}
#about{scroll-margin-top:-60px}
@media (max-width:860px){.statement.wrap{padding-top:72px}}

/* Homepage section headers: white on a full-width deep green band */
.sec-band{background:radial-gradient(700px 300px at 90% -40%,rgba(151,252,228,.14),transparent 62%),var(--deep);padding:52px 0}
.sec-band h2{color:#fff}
.sec-band .all-writing{color:var(--mint)}
.sec-band .all-writing:hover{color:#fff}
#who .who-list{border-top:0}
@media (max-width:860px){.sec-band{padding:36px 0}}
.w-more{margin-top:36px}

/* Homepage writing: full roster in a sideways carousel */
#writing .rail{grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:calc((100% - 56px)/3);gap:28px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;cursor:grab;margin:36px 0 0;padding:8px 0 12px}
#writing .rail.drag{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto}
.w-dots{display:flex;justify-content:center;gap:8px;margin-top:28px}
.w-dots button{width:28px;height:3px;padding:0;border:0;border-radius:2px;background:var(--line);cursor:pointer;transition:background .25s,width .25s}
.w-dots button:hover{background:#BFCBC7}
.w-dots button.on{width:44px;background:var(--deep)}
.w-dots[hidden]{display:none}
@media (max-width:1100px){#writing .rail{grid-template-columns:none;grid-auto-columns:calc((100% - 28px)/2)}}
@media (max-width:620px){#writing .rail{grid-template-columns:none;grid-auto-columns:84%;gap:20px}}

/* Homepage writing: featured article above the carousel */
.w-feature{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:48px;align-items:center;margin-top:48px;text-decoration:none;color:inherit}
.wf-img{aspect-ratio:5/2;background-size:cover;background-position:center;border-radius:16px;border:1px solid rgba(15,36,32,.07);transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s}
.w-feature:hover .wf-img{transform:translateY(-4px);box-shadow:0 18px 36px rgba(15,36,32,.12)}
.wf-body .meta{font-size:14px;color:var(--gray)}
.wf-body h3{margin-top:10px;font-size:30px;line-height:1.2;font-weight:600;letter-spacing:-.02em;color:var(--deep)}
.wf-body p{margin-top:16px;font-size:17px;line-height:1.6;color:var(--gray)}
.wf-read{display:inline-block;margin-top:20px;font-size:15px;font-weight:600;color:var(--green)}
.w-feature:hover .wf-read{text-decoration:underline;text-underline-offset:5px}
#writing .w-feature+.rail{margin-top:56px;border-top:1px solid var(--line);padding-top:40px}
@media (max-width:1100px){.w-feature{grid-template-columns:1fr;gap:24px}}
@media (max-width:620px){.wf-body h3{font-size:24px}.wf-body p{font-size:16px}}

/* Writing page: featured article, then a three-column catalog */
.writing-page .w-feature{margin-top:40px}
.writing-page .w-grid{display:grid;grid-auto-flow:row;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-columns:auto;gap:40px 28px;overflow:visible;cursor:default;margin:56px 0 0;padding:48px 0 0;border-top:1px solid var(--line);scroll-snap-type:none}
.writing-page .w-grid .thumb{aspect-ratio:5/2}
@media (max-width:1100px){.writing-page .w-grid{grid-template-columns:1fr 1fr}}
@media (max-width:620px){.writing-page .w-grid{grid-template-columns:1fr;gap:32px}}

/* Homepage statement: scroll-built words with a green accent on the close */
.st-build .sw{display:inline-block;opacity:.14;transition:opacity .15s linear,transform .15s linear;will-change:opacity,transform}
.st-build .sw-accent{background:linear-gradient(90deg,#1E8C72 0%,#2BB38F 60%,#5FD9B8 100%);-webkit-background-clip:text;background-clip:text;color:transparent;background-size:200% 100%;background-position:100% 0;transition:opacity .15s linear,transform .15s linear,background-position 1.2s cubic-bezier(.2,.7,.2,1)}
.st-build.st-done .sw-accent{background-position:0 0}
@media (prefers-reduced-motion:reduce){.st-build .sw{opacity:1!important;transform:none!important}}

/* All writing: small, centred under the carousel dashes */
#writing .w-more{margin-top:20px;text-align:center}
#writing .w-more .all-writing{font-size:14px}

/* Booking confirmation toast */
.rw-toast{position:fixed;left:50%;bottom:32px;z-index:100;display:flex;align-items:center;gap:12px;background:var(--deep);color:#fff;font-size:15px;font-weight:500;padding:14px 22px 14px 16px;border-radius:999px;box-shadow:0 18px 40px rgba(15,36,32,.28);opacity:0;transform:translate(-50%,16px);transition:opacity .35s ease,transform .35s cubic-bezier(.2,.7,.2,1);max-width:calc(100vw - 32px)}
.rw-toast.in{opacity:1;transform:translate(-50%,0)}
.rw-toast svg{flex:0 0 26px;width:26px;height:26px;border-radius:50%;background:var(--mint);padding:5px;fill:none;stroke:var(--deep);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.rw-toast.err svg{background:#F6D5D2;stroke:#B3261E}

/* Homepage: How we work together, three-step flow */
.flow{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:48px;margin-top:56px;counter-reset:none}
.flow-s{position:relative}
.flow-node{position:relative;z-index:1;width:64px;height:64px;border-radius:50%;background:var(--deep);display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 8px #fff,0 0 0 9px var(--line)}
.flow-node svg{width:26px;height:26px;fill:none;stroke:var(--mint);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.flow-s:not(:last-child):after{content:"";position:absolute;top:31px;left:82px;right:-30px;height:2px;background:linear-gradient(90deg,var(--green),#5FD9B8);transform:scaleX(0);transform-origin:left;transition:transform 1s cubic-bezier(.2,.7,.2,1)}
.flow-s:not(:last-child):before{content:"";position:absolute;top:27px;right:-34px;width:10px;height:10px;border-top:2px solid #5FD9B8;border-right:2px solid #5FD9B8;transform:rotate(45deg);opacity:0;transition:opacity .3s ease}
.flow.in .flow-s:not(:last-child):after{transform:scaleX(1)}
.flow.in .flow-s:not(:last-child):before{opacity:1}
.flow.in .flow-s:nth-child(2):after{transition-delay:.7s}
.flow.in .flow-s:nth-child(1):before{transition-delay:.9s}
.flow.in .flow-s:nth-child(2):before{transition-delay:1.6s}
.flow-s h3{margin-top:28px;font-size:22px;font-weight:600;letter-spacing:-.015em;color:var(--deep)}
.flow-s p{margin-top:10px;font-size:17px;line-height:1.6;color:var(--gray);max-width:340px}
@media (max-width:860px){
  .flow{grid-template-columns:1fr;gap:40px;margin-top:40px}
  .flow-s{padding-left:88px;min-height:64px}
  .flow-node{position:absolute;left:0;top:0}
  .flow-s h3{margin-top:4px}
  .flow-s:not(:last-child):after{top:80px;left:31px;right:auto;bottom:-32px;width:2px;height:auto;background:linear-gradient(180deg,var(--green),#5FD9B8);transform:scaleY(0);transform-origin:top}
  .flow.in .flow-s:not(:last-child):after{transform:scaleY(1)}
  .flow-s:not(:last-child):before{display:none}
}
@media (prefers-reduced-motion:reduce){.flow-s:after{transform:none!important;transition:none!important}.flow-s:before{opacity:1!important}}

/* Career grid: Hyperdash highlighted by default, logos 15% larger */
#about-me .xp-card.xp-home .logo{box-shadow:0 0 0 3px rgba(30,140,114,.35),0 0 24px 8px rgba(30,140,114,.45)}
#about-me .xp-card .logo{width:55px;height:55px}
@media (max-width:860px){#about-me .xp-card .logo{width:51px;height:51px}}

/* Statement: fill the full content width on one line */
.statement h2{font-size:min(31px,calc((100vw - 110px) / 36));max-width:none}
@media (max-width:860px){.statement h2{font-size:30px}}

/* How we work together: centred steps */
@media (min-width:861px){
  .flow{max-width:1040px;margin-left:auto;margin-right:auto}
  .flow-s{text-align:center}
  .flow-node{margin:0 auto}
  .flow-s p{margin-left:auto;margin-right:auto;max-width:300px}
  .flow-s:not(:last-child):after{left:calc(50% + 46px);right:calc(-50% - 2px)}
  .flow-s:not(:last-child):before{right:calc(-50% - 8px)}
}

/* About Me: header, name with social links, title, then the bio */
#about-me .about-left{position:sticky;top:120px}
#about-me .about-left .about-bio{position:static;margin-top:24px}
.about-h{font-size:36px;line-height:1.1;font-weight:600;letter-spacing:-.025em;color:var(--deep)}
.about-id{margin-top:20px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.about-who{font-size:22px;font-weight:600;letter-spacing:-.015em;color:var(--deep)}
.about-id .soc{width:34px;height:34px}
.about-id .soc svg{width:15px;height:15px}
#about-me .about-role{margin-top:4px;font-size:16px;color:var(--green);font-weight:500}
@media (max-width:1100px){#about-me .about-left{position:static}}
@media (max-width:860px){.about-h{font-size:30px}.about-who{font-size:20px}}
.about-id{margin-top:0}
.hero h1 .hw-accent{background:linear-gradient(90deg,#97FCE4,#5FD9B8);-webkit-background-clip:text;background-clip:text;color:transparent}

/* Homepage writing: featured plus the three latest in a static row */
#writing .rail{grid-auto-flow:row;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-columns:auto;overflow:visible;cursor:default;scroll-snap-type:none}
#writing .w-more{margin-top:40px}
@media (max-width:1100px){#writing .rail{grid-template-columns:1fr 1fr}}
@media (max-width:620px){#writing .rail{grid-template-columns:1fr;gap:32px}}

/* Hero headline: larger */
.hero h1{font-size:66px;line-height:1.05;letter-spacing:-.035em}
@media (max-width:1100px){.hero h1{font-size:56px}}
@media (max-width:860px){.hero h1{font-size:44px}}


/* Who I work with: one rounded deep green panel */
.who-panel{margin:0 24px;border-radius:28px;padding:88px 0 72px;color:#fff;background:radial-gradient(900px 420px at 95% -10%,rgba(151,252,228,.14),transparent 62%),radial-gradient(700px 380px at 0% 120%,rgba(30,140,114,.28),transparent 60%),var(--deep)}
.who-panel h2{color:#fff}
.who-panel .who-list{margin-top:40px;border-top:1px solid rgba(255,255,255,.14)}
.who-panel .who-i{color:#fff;border-bottom-color:rgba(255,255,255,.14)}
.who-panel .who-i:last-child{border-bottom:0}
.who-panel .who-i p{color:#BFD0CC}
.who-panel .who-i:hover h3,.who-panel .who-i:hover p,.who-panel .who-i:focus-visible h3{color:var(--mint)}
.who-panel .who-i:hover,.js .who-panel .who-i.rv.in:hover{box-shadow:inset 0 -2px 0 var(--mint)}
.who-panel .who-arrow{color:var(--mint)}
@media (max-width:860px){.who-panel{margin:0 10px;border-radius:22px;padding:56px 0 40px}}

/* Process heading centred */
#process h2{text-align:center}

/* Process: header line styled like the statement above the bio */
#process .st-line{margin:0 auto;text-align:center;font-size:min(31px,calc((100vw - 110px) / 36));line-height:1.3;font-weight:400;letter-spacing:-.02em;color:var(--ink);white-space:nowrap}
@media (max-width:860px){#process .st-line{font-size:28px;white-space:normal;text-wrap:balance}}
#process{padding-top:88px}
@media (max-width:860px){#process{padding-top:56px}}
#process .flow{margin-top:96px}
@media (max-width:860px){#process .flow{margin-top:56px}}
#about-me{padding-top:128px}
@media (max-width:860px){#about-me{padding-top:64px}}

/* Booking band: LinkedIn and X under the button */
.book-socs{margin-top:36px;display:flex;justify-content:center;gap:12px}
.book-socs a{width:44px;height:44px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.22);transition:background .2s,border-color .2s}
.book-socs svg{width:18px;height:18px;fill:#fff;transition:fill .2s}
.book-socs a:hover{background:var(--mint);border-color:var(--mint)}
.book-socs a:hover svg{fill:var(--deep)}
.book-socs a{width:33px;height:33px}
.book-socs svg{width:13.5px;height:13.5px}
.book-socs{gap:10px}

/* Who I work with: small line icon beside each client type */
.who-i h3{display:flex;align-items:center;gap:18px}
.who-ic{flex:0 0 44px;width:44px;height:44px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(151,252,228,.3);background:rgba(151,252,228,.06);transition:background .2s,border-color .2s}
.who-ic svg{width:20px;height:20px;fill:none;stroke:var(--mint);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.who-i:hover .who-ic{background:var(--mint);border-color:var(--mint)}
.who-i:hover .who-ic svg{stroke:var(--deep)}
@media (max-width:860px){.who-i h3{gap:14px}.who-ic{flex-basis:38px;width:38px;height:38px}.who-ic svg{width:17px;height:17px}}
/* Client pages: upcoming writing cards */
#insights .q-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:40px}
#insights .q-card{display:flex;flex-direction:column;gap:14px;min-height:190px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:30px 28px 32px}
#insights .q-card .meta{font-size:12.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--green)}
#insights .q-card h3{margin-top:auto;font-size:21px;line-height:1.35;font-weight:600;letter-spacing:-.015em;color:var(--deep)}
@media (max-width:1100px){#insights .q-grid{grid-template-columns:1fr 1fr}}
@media (max-width:620px){#insights .q-grid{grid-template-columns:1fr}#insights .q-card{min-height:0}}
/* What I help with: service lines drawn from the client pages */
#services .help-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-top:40px}
#services .help-c{background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px 26px 30px}
#services .help-c h3{font-size:18px;line-height:1.3;font-weight:600;letter-spacing:-.015em;color:var(--deep)}
#services .help-c p{margin-top:12px;font-size:15px;line-height:1.6;color:var(--gray)}
@media (max-width:1100px){#services .help-grid{grid-template-columns:1fr 1fr}}
@media (max-width:620px){#services .help-grid{grid-template-columns:1fr}}
#about-me .about-loc{margin-top:2px;font-size:15px;color:var(--gray)}
.book-mail{display:inline-block;margin-top:22px;color:#BFD0CC;font-size:16px;text-decoration:none;border-bottom:1px solid rgba(191,208,204,.35)}
.book-mail:hover{color:var(--mint);border-bottom-color:var(--mint)}
#services .help-c{transition:background .2s,border-color .2s,box-shadow .2s,opacity .85s cubic-bezier(.2,.7,.2,1),transform .85s cubic-bezier(.2,.7,.2,1)}
#services .help-c h3{transition:color .2s}
#services .help-c:hover{background:#EEF9F5;border-color:rgba(30,140,114,.35);box-shadow:0 8px 24px rgba(30,140,114,.08)}
#services .help-c:hover h3{color:#1E8C72}
#services .help-grid:not(:has(.help-c:hover)) .help-c:first-child{background:#EEF9F5;border-color:rgba(30,140,114,.35);box-shadow:0 8px 24px rgba(30,140,114,.08)}
#services .help-grid:not(:has(.help-c:hover)) .help-c:first-child h3{color:#1E8C72}
.book-mail-row{margin-top:18px}.book-mail-row .book-mail{margin-top:0;font-size:15px}
/* Nav logo: Reynolds / West with a gradient slash */
.brand .rw-mark{display:inline-flex;align-items:center;font-weight:600}
.brand .rw-slash{margin:0 4px;font-size:24px;font-weight:300;line-height:1;background:linear-gradient(90deg,#1E8C72 0%,#2BB38F 60%,#5FD9B8 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
