/* Shared studio surfaces. The workflow and offer pages style their own controls. */
:root {
  --forest: #18201d;
  --walnut: #302b26;
  --paper: #f4ecdf;
  --muted: #c6c2b5;
  --copper: #e2ab79;
  --sage: #aec2a8;
  --edge: #484940;
}
html { background: var(--forest); scrollbar-color: #8e785f var(--forest); }
html, body { height: auto; min-height: 100%; }
body { overflow-x: clip !important; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--forest) !important;
  color: var(--paper);
}
body::before, body::after, .gradient-mesh, .hero-fade { display: none !important; }
.skip-link {
  position: fixed; left: 1rem; top: .5rem; z-index: 150;
  padding: .75rem 1rem; background: var(--paper); color: var(--forest);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--sage) !important; outline-offset: 3px; }
#siteHeader.studio-header {
  position: sticky; top: 0; z-index: 55; padding: 0; transform: none;
  background: #19201d; border: 0; border-bottom: 1px solid #465044;
  backdrop-filter: none; box-shadow: none;
}
.studio-bar {
  width: min(100% - 3rem, 78rem); min-height: 4.4rem; margin: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.studio-brand, .studio-tools, .studio-plan, #studio-nav, #langBtn, #langMenu a {
  display: flex; align-items: center;
}
.studio-brand { gap: .65rem; color: var(--paper); font-size: 1.16rem; font-weight: 665; letter-spacing: -.047em; white-space: nowrap; min-height: 44px; }
#siteHeader.studio-header img { filter: none; }
.studio-brand img { width: 2.2rem; height: 2.2rem; }
#studio-nav { gap: clamp(.55rem,1.65vw,1.55rem); }
#studio-nav a {
  color: #ddd9ce; font-weight: 530; font-size: .9rem; gap: .45rem;
  min-height: 44px; display: inline-flex; align-items: center; position: relative;
}
#studio-nav a :is(.action-icon,.shell-icon) { color: #bbb7a0; width: 1.01rem; height: 1.01rem; }
#studio-nav a:is(:hover,:focus-visible,[aria-current]) { color: #fff2df; }
#studio-nav a:is(:hover,:focus-visible,[aria-current]) .shell-icon { color: #f0bc84; }
#studio-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 2px; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .14s ease-out; }
#studio-nav a:is(:hover,:focus-visible)::after { transform: scaleX(1); }
#siteHeader.studio-header #studio-nav a[aria-current]::after { transform: scaleX(1); background: var(--copper); bottom: 1px; }
.studio-tools { gap: .6rem; }
.locale { position: relative; }
.locale > summary { cursor: pointer; list-style: none; }
.locale > summary::-webkit-details-marker { display: none; }
#langBtn, .studio-menu-toggle {
  min-width: 44px; min-height: 44px; justify-content: center; gap: 4px;
  border-radius: 6px; color: var(--muted);
}
.studio-bar svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#langBtn svg { width: .68rem; height: .68rem; fill: none; stroke: currentColor; stroke-width: 1.7; transition: transform .15s ease; }
.locale[open] #langBtn svg { transform: rotate(180deg); }
.locale img { width: 21px; height: 15px; border-radius: 2px; object-fit: cover; }
#langBtn:hover, .locale[open] #langBtn, .studio-menu-toggle:hover { background: #303932; }
.studio-tools .locale { border-right: 1px solid #434a3f; padding-right: .4rem; }
#langMenu {
  position: absolute; right: 0; top: calc(100% + .35rem); z-index: 4;
  min-width: 10rem; padding: .3rem; border-radius: .35rem;
  background: #263029; border: 1px solid #596052; box-shadow: 0 8px 18px #13171344;
}
#langMenu a {
  width: 100%; gap: .7rem; padding: .65rem; min-height: 44px;
  color: var(--paper); border-radius: .25rem; font-size: .9rem;
}
#langMenu a:hover, #langMenu a[aria-current] { background: #384238; }
#langMenu a[aria-current]::after { content: "✓"; color: var(--sage); margin-left: auto; }
.studio-plan {
  min-height: 44px; padding: .55rem 1rem; gap: .58rem; border-radius: .25rem;
  background: #e3ba91; color: #262119; font-size: .9rem; font-weight: 650; white-space: nowrap;
  box-shadow: inset 0 -1px 0 #775740; transition: background-color .14s ease;
}
.studio-plan:hover { background: #f2cda8; }
.studio-menu-toggle { display: none; align-items: center; }
#mobileMenuToggle[aria-expanded="false"] svg:last-child, #mobileMenuToggle[aria-expanded="true"] svg:first-child { display: none; }
.studio-header ~ .project-planner-trigger { display: none !important; }
main > section:not(.page-stage)::before, main section h2::after { content: none; }
main:not(.offer-page) > section:not(.page-stage) {
  background: #1c231f !important; border-color: var(--edge) !important;
}
main:not(.offer-page) > section:nth-child(even):not(.page-stage) { background: #252923 !important; }
html[data-page="home"] #top {
  min-height: 0; isolation: isolate; background-color: var(--forest) !important;
  background-image: linear-gradient(90deg,#18211df5 5%,#1b211ce0 43%,#362b21a6),url("../assets/images/wefrogecodes-hero.webp") !important;
}
#top::before, #top::after { display: none; }
#top, main section.workflow-lab { padding: 0 !important; }
#top > .container { width: min(100% - 3rem,78rem); max-width: none; padding: clamp(3.5rem,6.5vw,7rem) 0; }
#top .hero__grid { align-items: center; }
#top .hero__title {
  max-width: 13em; margin: .8rem 0 1.1rem; font-family: Georgia,"Times New Roman",serif;
  font-size: clamp(3.2rem,5.25vw,5.4rem) !important; font-weight: 400;
  letter-spacing: -.046em !important; line-height: 1.02 !important;
  color: var(--paper); text-shadow: none; text-wrap: balance;
}
#top p[data-i18n="home.hero.tagline"] { color: var(--sage) !important; font-size: .92rem; font-weight: 570; letter-spacing: .02em; }
#top p[data-i18n="home.hero.subtitle"] { font-size: clamp(1.05rem,1.35vw,1.2rem); line-height: 1.6; color: #d5d7cb !important; max-width: 43ch; }
#top .hero__visual { filter: none; }
main .forge-btn, main .ghost-btn {
  min-height: 44px; padding: .72rem 1.05rem; border-radius: .4rem;
  box-shadow: none !important; font-size: .95rem; font-weight: 640;
}
main .forge-btn { background: var(--copper) !important; color: #231e18 !important; }
main .forge-btn:hover { background: #edbd94 !important; transform: none !important; }
main .forge-btn::before, main .ghost-btn::before { content: none !important; }
main .ghost-btn { background: transparent !important; color: var(--paper) !important; border: 1px solid #74776a; }
main .ghost-btn:hover { background: #373e35 !important; transform: none !important; }
#top .hero__actions .action-icon { color: inherit; }
main .svc { border-radius: 0; border: 0 !important; border-top: 1px solid #6c7165 !important; background: transparent !important; padding: 1.35rem 0; box-shadow: none !important; }
main .svc:hover { transform: none !important; }
main .svc { animation: none; }
main .svc::before { content: none; }
main .svc .card-icon { background: none; border: none; box-shadow: none; width: auto; height: auto; justify-content: start; color: var(--sage); }
main .svc p, main .svc li { color: var(--muted); }
footer { background: #151c18; }
.studio-footer.reading-footer {
  display: block; padding: 0; background: #151d19; color: var(--paper);
  border-top: 1px solid #5b6455;
}
.colophon {
  width: min(100% - 3rem,76rem); margin: auto; padding: clamp(1.8rem,4vw,3.3rem) 0 .9rem;
  display: grid; grid-template-columns: minmax(12rem,1fr) minmax(12rem,1.25fr) minmax(9rem,.55fr);
  gap: .75rem clamp(1.3rem,4vw,4.2rem); align-items: center;
}
.colophon-studio { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; align-content: center; }
.colophon-studio img { grid-row: span 2; width: 2.6rem; height: 2.6rem; }
.studio-footer .colophon-studio a { color: var(--paper); font-size: clamp(1.2rem,1.9vw,1.65rem); font-weight: 640; letter-spacing: -.045em; text-decoration: none; line-height: 1.3; min-height: 0; }
.colophon-studio span, .colophon-legal { color: #c2c4b6; font-size: .83rem; }
.colophon-shore { height: clamp(6rem,9vw,8rem); background: url("/assets/images/studio-shore.svg") no-repeat center / contain; }
.colophon-links { display: grid; }
.studio-footer .colophon-links a { justify-content: space-between; min-height: 44px; color: #e9e6d9; font-size: .88rem; border-bottom: 1px solid #404b40; text-decoration: none; display: flex; align-items: center; gap: .9rem; }
.colophon-links svg { width: .95rem; height: .95rem; color: var(--copper); transition: transform .15s ease-out; }
.colophon-links a:hover svg { transform: translateX(2px); }
.colophon-legal { display: flex; justify-content: space-between; align-items: center; gap: .5rem; grid-column: 1/-1; border-top: 1px solid #404b40; margin-top: 1rem; padding-top: .4rem; }
.colophon-legal small { font-size: .79rem; }
.colophon-legal div { display: flex; gap: 1.4rem; }
.studio-footer .colophon-legal a { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; font-size: .8rem; color: #c6cbbf; text-decoration: none; }
.studio-footer a:hover { color: #f5cfab; text-decoration: underline; text-underline-offset: .2em; }
@media(max-width: 660px) {
  .colophon { width: calc(100% - 2.5rem); grid-template-columns: 1fr; gap: .85rem; }
  .colophon-shore { display: none; }
  .colophon-links { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
  .studio-footer .colophon-links a { gap: .35rem; }
  .colophon-legal { flex-wrap: wrap; margin-top: .3rem; }
}
html:is([data-page="about"],[data-page="contact"],[data-page="work"]) .page-stage {
  min-height: 0; padding-block: clamp(3rem,6.5vw,6rem) !important;
  background-color: var(--forest) !important;
}
html:is([data-page="about"],[data-page="contact"],[data-page="work"]) .page-stage::after {
  background: linear-gradient(90deg,#1c241ed9,transparent) !important;
}
html:is([data-page="about"],[data-page="contact"],[data-page="work"]) h1 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--paper); font-size: clamp(2.6rem,5.2vw,5rem);
  line-height: 1.08; font-weight: 400; letter-spacing: -.045em;
}
html[data-page="about"] img[alt][src*="selfie"] { object-fit: cover; }
html[data-page="about"] .founder-profile {
  border: 0; border-radius: 0; border-top: 1px solid var(--edge);
  padding: 1.75rem 0 0; background: transparent; box-shadow: none;
}
html[data-page="about"] .founder-profile__photo img { border-radius: .4rem; }
.founder-profile .founder-profile__badge { color: var(--sage); background: none; padding: 0; border: none; }
html[data-page="about"] .about-step {
  padding: 1rem 0; background: none; border: 0; border-top: 1px solid var(--edge); border-radius: 0;
}
.about-step .about-step__desc { color: var(--muted); font-size: .97rem; }
html[data-page="contact"] .page-stage ul { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
html[data-page="contact"] .page-stage li { background: none; border: 0; padding: 0; font-size: .9rem; }
html:is([data-page="privacy"],[data-page="terms"]) main > .container { max-width: 48rem; }
#siteHeader.studio-header { background: var(--forest) !important; }
dialog.project-planner, dialog.work-modal, dialog.cs-lightbox {
  box-sizing: border-box; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; border: 0; background: transparent; color: inherit;
}
dialog.cs-lightbox { background: #141714ed; }
dialog:not([open]), .planner-step[hidden] { display: none !important; }

/* A forest cover and a warm paper worksheet for the shared project planner. */
.project-planner[open] {
  position: fixed; inset: 0; display: grid; place-items: center; padding: 12px;
  overflow: hidden; overscroll-behavior: contain;
}
.project-planner::backdrop { background: rgb(14 21 18 / 78%); }
.project-planner__backdrop { position: absolute; inset: 0; }
.project-planner__dialog {
  --ink: #25362e; --paper-edge: #c8c4b4;
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(12rem, .69fr) minmax(0, 1.75fr);
  width: min(52rem, 100%); max-height: 100%; max-height: calc(100dvh - 24px);
  overflow: auto; overscroll-behavior: contain; background: #f3eee2; color: var(--ink);
  border: 1px solid #91816b; border-radius: .85rem; box-shadow: 0 1rem 3.5rem #10181355;
}
.project-planner__dialog svg {
  width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.65;
  stroke-linecap: round; stroke-linejoin: round; flex: none;
}
.planner-cover {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  padding: 1.55rem 1.35rem; background: #24352e; color: var(--paper); border-right: 2px solid #ba9672;
}
.planner-cover__title { display: flex; align-items: center; gap: .6rem; font: 620 .91rem/1.3 system-ui,sans-serif; }
.planner-cover__title svg { color: var(--copper); }
.planner-cover__drawing { width: 100%; aspect-ratio: 240 / 185; align-self: center; }
@media (min-width: 42rem) {
  .project-planner[open] .planner-cover__drawing { background: url("/assets/images/planner-folio.svg") center / contain no-repeat; }
  .project-planner__dialog { min-height: min(29rem, calc(100dvh - 24px)); }
}
.planner-stages { display: grid; gap: .75rem; margin: 0; padding: 1rem 0 0; list-style: none; border-top: 1px solid #526157; }
.planner-stages li { display: flex; gap: .6rem; align-items: center; color: #c2c9bf; font: 500 .83rem/1.25 system-ui,sans-serif; }
.planner-stages li[aria-current] { color: #f5e5d0; font-weight: 700; }
.planner-stages__mark {
  flex: none; display: grid; place-items: center; width: 1.45rem; height: 1.45rem;
  border: 1px solid #76857a; border-radius: 50%; font: 560 .72rem/1 system-ui,sans-serif;
}
.planner-stages li[aria-current] .planner-stages__mark { border-color: var(--copper); background: var(--copper); color: #26352c; }
.planner-stages__mark svg { display: none; width: .85rem; height: .85rem; }
.planner-stages li.is-complete .planner-stages__mark svg { display: block; }
.planner-stages li.is-complete .planner-stages__mark span { display: none; }
.project-planner__close {
  position: absolute; z-index: 1; inset: .6rem .6rem auto auto; width: 44px; height: 44px;
  display: grid; place-items: center; background: transparent; border-radius: 50%; color: #4a594c;
}
.project-planner__close:hover { background: #e0ddcf; color: var(--ink); }
.planner-paper { display: grid; align-content: center; padding: 3rem clamp(1.4rem, 4vw, 2.8rem) 2.1rem; min-width: 0; }
.planner-paper h2 {
  color: var(--ink); font: 500 clamp(2.1rem, 4.4vw, 3.25rem)/1.04 Georgia,serif;
  letter-spacing: -.045em; text-wrap: balance; margin: 0 0 1.35rem; max-width: 16ch;
}
.planner-paper h2:focus { outline: none !important; }
.planner-options { display: grid; border-top: 1px solid var(--paper-edge); }
.planner-options button {
  display: grid; width: 100%; grid-template-columns: auto minmax(0,1fr) auto; align-items: center;
  gap: .85rem; min-height: 3.8rem; padding: .6rem .3rem; text-align: start;
  border-bottom: 1px solid var(--paper-edge); color: var(--ink); background: transparent;
  font: 650 1rem/1.3 system-ui,sans-serif; transition: background-color .13s;
}
.planner-options b { display: block; font-weight: 650; }
.planner-options small { display: block; color: #526055; margin-top: .1rem; font: 450 .83rem/1.4 system-ui,sans-serif; }
.planner-options .planner-option__icon { width: 1.45rem; height: 1.45rem; color: #456351; }
.planner-options .planner-arrow { color: #80532e; width: 1rem; transition: transform .15s ease-out; }
.planner-options button:is(:hover,:focus-visible) { background: #e4e6d9; }
.planner-options button:is(:hover,:focus-visible) .planner-arrow { transform: translateX(3px); }
.planner-options button:active { background: #d6ddcc; }
.planner-paper :is(button,a):focus-visible, .project-planner__close:focus-visible { outline: 2px solid #906038 !important; outline-offset: -2px; }
.planner-back, .planner-contact {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px;
  padding: .6rem .85rem; border-radius: .35rem; font: 650 .87rem/1.35 system-ui,sans-serif;
}
.planner-back { color: #3b5445; background: transparent; }
.planner-back svg { transform: rotate(180deg); width: 1rem; }
.planner-back:hover { background: #e2e4d7; }
.planner-options + .planner-back { margin-top: .7rem; }
.planner-result p { color: #4e5c50 !important; font-size: .95rem; line-height: 1.55; margin: -.45rem 0 1.25rem; max-width: 42ch; }
.planner-summary { margin: 0; border-top: 1px solid var(--paper-edge); }
.planner-summary > div { padding: .9rem 0; border-bottom: 1px solid var(--paper-edge); }
.planner-summary dt { color: #536052; font: 600 .78rem/1.5 system-ui,sans-serif; }
.planner-summary dd { color: var(--ink); margin: .1rem 0 0; font: 500 1.4rem/1.25 Georgia,serif; }
.planner-actions { display: flex; flex-wrap: wrap; gap: .4rem .65rem; margin-top: 1.3rem; }
.planner-contact { color: #fff5e5; background: #2e493a; }
.planner-contact:hover { background: #3d5e4c; }
@media (prefers-reduced-motion: no-preference) {
  .planner-step.is-active { animation: planner-paper-in .16s ease-out; }
  @keyframes planner-paper-in { from { opacity: .65; transform: translateY(3px); } }
}
@media (prefers-reduced-motion: reduce) {
  .planner-options button, .planner-options .planner-arrow { transition: none; }
  .planner-options button:is(:hover,:focus-visible) .planner-arrow { transform: none; }
}
@media (max-width: 41.999rem) {
  .project-planner__dialog { grid-template-columns: minmax(0,1fr); width: min(31rem,100%); }
  .planner-cover { padding: .9rem 1rem .75rem; gap: .7rem; border: 0; border-bottom: 2px solid #ba9672; }
  .planner-cover__title { padding-right: 2.8rem; min-height: 1.6rem; }
  .planner-cover__drawing { display: none; }
  .planner-stages { display: flex; align-items: center; max-width: 12rem; padding: 0; border: 0; gap: .4rem; }
  .planner-stages li:not(:last-child) { flex: 1; gap: .4rem; }
  .planner-stages li:not(:last-child)::after { content: ""; height: 1px; flex: 1; background: #718074; }
  .planner-stages li > span:last-child {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  }
  .project-planner__close { inset: .25rem .25rem auto auto; color: var(--paper); }
  .project-planner__close:hover { background: #3a4d41; color: var(--paper); }
  .planner-paper { padding: 1.4rem 1.1rem 1.25rem; }
  .planner-paper h2 { font-size: clamp(1.85rem,7.3vw,2.65rem); margin-bottom: 1rem; }
  .planner-options button { gap: .65rem; min-height: 3.3rem; }
}
@media(min-width: 980px) {
  #top .hero__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.98fr); gap: clamp(2rem,5vw,5rem); }
}
@media(max-width: 979px) {
  #top .hero__grid { grid-template-columns: minmax(0,1fr); gap: 2rem; }
  #top .hero__visual { width: 100%; justify-self: start; max-width: 44rem; }
  #studio-nav { display: none; }
  .studio-menu-toggle { display: inline-flex; order: 3; }
  .studio-tools { margin-left: auto; }
  #studio-nav.is-open {
    display: grid; position: absolute; top: 100%; inset-inline: 0; gap: 0;
    padding: .65rem max(1.25rem, calc((100vw - 75rem)/2)); background: #202923;
    border-bottom: 1px solid var(--edge); max-height: 70svh; overflow-y: auto;
  }
  #siteHeader.studio-header #studio-nav a { padding: .5rem .75rem; border-radius: 0; }
  #studio-nav a + a { border-top: 1px solid #404b41; }
  #studio-nav .shell-icon { margin-right: .2rem; }
  #studio-nav a::after { content: none; }
  #studio-nav a[aria-current] { border-left: 2px solid var(--copper); }
}
@media(max-width: 600px) {
  html[data-page="home"] #top {
    background-image: linear-gradient(100deg,#18211df5,#23271ede 75%,#332c22ba),url("../assets/images/wefrogecodes-hero-small.webp") !important;
  }
  .studio-bar { min-height: 3.65rem; width: calc(100% - 1.25rem); gap: .2rem; }
  .studio-brand { font-size: .98rem; gap: .35rem; }
  .studio-brand img { width: 1.7rem; height: 1.7rem; }
  .studio-tools { gap: .15rem; }
  .studio-tools .locale { border: 0; padding: 0; }
  .studio-plan { width: 44px; justify-content: center; padding: 0; }
  .studio-plan span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #top > .container { width: calc(100% - 2.25rem); padding: 2.85rem 0; }
  #top .hero__title { font-size: clamp(2.65rem,10vw,3.7rem) !important; }
  main .hero__actions { gap: .6rem; }
  main .hero__actions a { padding-inline: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
}
@media print {
  #siteHeader.studio-header, body > .studio-footer, .skip-link { display: none; }
}
@media (scripting: none) {
  .studio-menu-toggle { display: none; }
  .studio-bar { flex-wrap: wrap; padding-block: .5rem; }
  #studio-nav { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
  @media (max-width: 979px) {
    #studio-nav { order: 4; width: 100%; }
  }
}
