/* Lotus IT shared styles: base, layout, header, footer, buttons, sections, forms.
   Ported from docs/v3/design/concept/site.css with the inline styles of the concept moved into classes. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 var(--s0)/1.6 var(--body); -webkit-font-smoothing: antialiased; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -.03em; }
p { margin: 0; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(74px + 1.5rem); }
.wrap { max-width: var(--max); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); width: 100%; }
@media (min-width: 720px) { .wrap { padding-left: max(36px, env(safe-area-inset-left, 0px)); padding-right: max(36px, env(safe-area-inset-right, 0px)); } }
.dim { color: var(--dim); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* skip link */
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 30; background: var(--petal); color: var(--petal-ink); padding: .75rem 1.1rem; border-radius: 999px; font-weight: 600; text-decoration: none; transition: top .15s; }
.skip:focus { top: 1rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: 0 1.5rem; border-radius: 999px; font: 600 var(--s0)/1 var(--body); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s; }
.btn-petal { background: var(--petal); color: var(--petal-ink); box-shadow: 0 10px 30px -12px var(--petal); }
.btn-petal:hover { box-shadow: 0 14px 40px -10px var(--petal); background: color-mix(in oklab, var(--petal) 88%, var(--fg)); }
.btn-ghost { border-color: var(--line-2); color: var(--fg); background: color-mix(in oklab, var(--bg) 40%, transparent); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-danger { border-color: var(--petal); color: var(--petal); background: transparent; }
.btn-danger:hover { background: var(--petal); color: var(--petal-ink); }
.btn-sm { min-height: 44px; padding-inline: 1rem; font-size: var(--s-1); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .6; cursor: default; box-shadow: none; }
.link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--petal); text-decoration-thickness: 1.5px; text-underline-offset: 5px; min-height: 44px; display: inline-flex; align-items: center; background: none; border: 0; padding: 0; color: inherit; font-family: inherit; font-size: inherit; cursor: pointer; }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); }
.head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--glass); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 1.25rem; min-height: 74px; }
@media (min-width: 980px) { .head-row { gap: 2rem; } }
/* Strand lotus lockup (ADR-025): gradient stops and stroke widths follow the theme tokens. */
.lg-base { stop-color: var(--cyan); } .lg-tip { stop-color: var(--petal); }
.mk-petals { stroke-width: var(--mark-stroke); } .mk-inner { stroke-width: var(--mark-stroke-inner); }
.mk-water { stroke: var(--cyan); stroke-width: var(--mark-water); } .mk-water-2 { stroke-width: var(--mark-water-2); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; min-height: 44px; color: var(--fg); }
.brand .mark { flex: none; }
.brand .mark-full { width: 42px; height: 43px; }
.brand .mark-small { display: none; width: 30px; height: 31px; }
.brand b { display: flex; flex-direction: column; gap: .2rem; font-family: var(--display); font-weight: 400; font-size: 1.7rem; letter-spacing: -.03em; line-height: .92; white-space: nowrap; }
.brand b span { font-family: var(--body); font-weight: 400; font-size: .42em; letter-spacing: .02em; line-height: 1; color: var(--dim); }
@media (max-width: 480px) { .brand .mark-full { display: none; } .brand .mark-small { display: block; } .brand b { font-size: 1.4rem; } }
.nav { display: none; gap: 1.75rem; }
.nav a { text-decoration: none; color: var(--dim); font-weight: 500; padding-block: .6rem; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--petal); }
@media (min-width: 980px) { .nav { display: flex; } }
.head .btn { min-height: 44px; padding-inline: 1.15rem; }
@media (max-width: 440px) { .head .btn-petal { display: none; } }
.head-tools { display: flex; align-items: center; gap: .5rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--fg); cursor: pointer; padding: 0; }
.icon-btn:hover { border-color: var(--fg); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun, .theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root:not([data-theme]) .theme-toggle .sun { display: block; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .theme-toggle .sun { display: none; } :root:not([data-theme]) .theme-toggle .moon { display: block; } }
.menu-btn { display: inline-flex; }
@media (min-width: 980px) { .menu-btn { display: none; } }
.menu-btn .close { display: none; }
.menu-btn[aria-expanded="true"] .open { display: none; }
.menu-btn[aria-expanded="true"] .close { display: block; }
.menu { display: none; border-top: 1px solid var(--line); }
.menu.is-open { display: block; }
@media (min-width: 980px) { .menu, .menu.is-open { display: none; } }
.menu nav { display: grid; padding-block: .75rem 1rem; }
.menu a { text-decoration: none; color: var(--fg); font-weight: 500; font-size: var(--s1); font-family: var(--display); padding: .8rem 0; min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.menu a[aria-current="page"] { color: var(--petal); }
.menu .btn { margin-top: 1rem; justify-self: start; }

/* sections */
.band { padding-block: clamp(4rem, 9vw, 7.5rem); border-top: 1px solid var(--line); }
.band-flush { border-top: 0; }
.sec-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 900px) { .sec-head { grid-template-columns: 6fr 5fr; align-items: end; gap: 4rem; } }
.sec-head h2 { font-size: var(--s3); font-weight: 600; line-height: 1; }
.sec-head p { color: var(--dim); max-width: 50ch; font-size: 1.1rem; }
.sec-head-1 { grid-template-columns: none; }
.prose { max-width: 68ch; display: grid; gap: 1rem; }
.prose h2 { font-size: var(--s2); font-weight: 600; margin-top: 1.5rem; }
.prose h3 { font-size: var(--s1); font-weight: 600; margin-top: .75rem; }
.prose p, .prose li { color: var(--dim); }
.prose ul, .prose ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .4rem; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--fg); text-decoration-color: var(--petal); text-underline-offset: 4px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--fg); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .8rem; height: .45rem; border-left: 2px solid var(--petal); border-bottom: 2px solid var(--petal); transform: rotate(-45deg); }

/* page hero (inner pages) */
.p-hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.p-hero canvas { position: absolute; z-index: -1; right: -8%; top: 0; width: 60%; height: 100%; opacity: .9; }
.p-hero .wrap { padding-block: clamp(4rem, 9vw, 7rem); }
.p-hero h1 { font-size: var(--s4); font-weight: 600; line-height: .93; letter-spacing: -.045em; max-width: 10ch; }
.p-hero p { margin-top: 1.5rem; color: var(--dim); font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 42ch; }
.p-hero .hero-actions { margin-top: 2rem; }
@media (max-width: 760px) { .p-hero canvas { width: 100%; right: -30%; opacity: .45; } }
.p-hero-quiet h1 { font-size: var(--s3); max-width: 16ch; }
.p-hero-quiet .wrap { padding-block: clamp(3rem, 6vw, 4.5rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.25rem; }

/* illustration slots */
.art { position: relative; aspect-ratio: 400 / 260; max-width: 100%; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(70% 70% at 50% 60%, color-mix(in oklab, var(--petal) 10%, transparent), transparent 70%), linear-gradient(170deg, var(--panel), var(--bg)); overflow: hidden; min-width: 0; }
.art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-wide { aspect-ratio: 400 / 150; margin-bottom: clamp(2rem, 4vw, 3rem); }
.art-soon { box-shadow: 0 50px 100px -50px var(--shadow); background: radial-gradient(70% 70% at 50% 50%, color-mix(in oklab, var(--petal) 8%, transparent), transparent 70%), linear-gradient(170deg, var(--panel), var(--bg)); }
@media (max-width: 700px) { .art-wide { aspect-ratio: 400 / 220; } }
.shot { position: relative; overflow: hidden; border-radius: 22px; margin: 0; background:
  radial-gradient(120% 90% at 85% 10%, color-mix(in oklab, var(--petal) 30%, transparent), transparent 55%),
  radial-gradient(90% 80% at 10% 100%, color-mix(in oklab, var(--cyan) 22%, transparent), transparent 60%),
  linear-gradient(160deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); max-width: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; font-size: .8rem; color: var(--dim); background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); padding: .55rem .8rem; border-radius: 10px; }
.shot figcaption b { color: var(--fg); font-weight: 600; }

/* two-column pairs (art + copy) */
.pair { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 980px) { .pair { grid-template-columns: 7fr 5fr; gap: 4.5rem; } .pair-flip { grid-template-columns: 5fr 7fr; } .pair-flip .art { order: 2; } }
.pair-copy { display: grid; gap: 1.3rem; align-content: start; }
.pair-copy h2, .pair-copy h1 { font-size: var(--s3); font-weight: 600; line-height: 1; }
.pair-copy > p { color: var(--dim); max-width: 46ch; font-size: 1.08rem; }
.pair-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem; margin-top: .4rem; }

/* process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { counter-increment: s; padding: 1.75rem 0; border-top: 1px solid var(--line-2); display: grid; gap: .7rem; align-content: start; }
@media (min-width: 900px) { .step { padding: 2rem 1.75rem 0 0; } .step + .step { padding-left: 1.75rem; border-left: 1px solid var(--line); } }
.step::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-size: 3.4rem; line-height: 1; font-weight: 300; letter-spacing: -.05em; background: linear-gradient(120deg, var(--petal), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: var(--s1); font-weight: 600; letter-spacing: -.02em; }
.step p { color: var(--dim); font-size: .97rem; max-width: 30ch; }

/* service disciplines */
.disciplines { display: grid; gap: 3rem; }
@media (min-width: 700px) { .disciplines { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2.5rem; } }
@media (min-width: 1180px) { .disciplines { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }
.disc h3 { font-size: var(--s1); font-weight: 600; padding-bottom: 1rem; border-bottom: 1px solid var(--fg); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.disc h3 a { text-decoration: none; }
.disc h3 span { font: 400 var(--s-1)/1 var(--body); color: var(--dim); letter-spacing: 0; }
.disc dl { margin: 0; }
.disc div { padding-block: 1.15rem; border-bottom: 1px solid var(--line); }
.disc dt { font-weight: 600; font-size: 1.05rem; }
.disc dd { margin: .25rem 0 0; color: var(--dim); font-size: .97rem; line-height: 1.55; }

/* fact lists (job facts, product facts) */
.facts { margin: 0; border-top: 1px solid var(--line-2); }
.facts div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding-block: .85rem; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--dim); font-size: .95rem; }
.facts dd { margin: 0; font-weight: 500; }

/* tags and chips */
.tags { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.tags li, .tags span { font-size: .8rem; color: var(--dim); border: 1px solid var(--line-2); border-radius: 8px; padding: .3rem .6rem; }
.sites { list-style: none; padding: 0; margin: 3rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.sites li { font-size: var(--s-1); color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; background: var(--glass); }
.chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-open { color: var(--open); } .chip-soon { color: var(--petal); } .chip-closed { color: var(--dim); }
.badge { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 6px; padding: .2rem .5rem; border: 1px solid var(--line-2); color: var(--dim); }
.badge-draft { border-color: var(--petal); color: var(--petal); border-style: dashed; }

/* call to action rows */
.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem; }
.cta h2 { font-size: var(--s3); font-weight: 600; line-height: 1; max-width: 14ch; }
.cta p { color: var(--dim); margin-top: 1rem; max-width: 42ch; }

/* contact band and forms */
.talk { background: radial-gradient(80% 120% at 100% 0%, color-mix(in oklab, var(--petal) 18%, transparent), transparent 60%), var(--bg-2); border-top: 1px solid var(--line); }
.talk .wrap { padding-block: clamp(4rem, 9vw, 7rem); display: grid; gap: 3rem; }
@media (min-width: 980px) { .talk .wrap { grid-template-columns: 5fr 7fr; gap: 5rem; } }
.talk h2, .talk h1 { font-size: var(--s3); font-weight: 600; line-height: 1; max-width: 12ch; }
.talk-copy > p { margin-top: 1.1rem; color: var(--dim); max-width: 40ch; }
.direct { margin-top: 2.25rem; display: grid; gap: 1.1rem; }
.direct span { display: block; font-size: var(--s-1); color: var(--dim); }
.direct b, .direct a { font-weight: 600; font-size: var(--s1); user-select: all; text-decoration: none; }
form { display: grid; gap: 1.1rem; min-width: 0; }
.row2 { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .row2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; min-width: 0; }
.field label, .field legend { font-size: var(--s-1); font-weight: 600; }
.field .hint { font-size: var(--s-1); color: var(--dim); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: .85rem 1rem; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--bg); color: var(--fg); font: inherit; }
.field input[type="file"] { padding: .7rem 1rem; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--petal); box-shadow: 0 0 0 4px color-mix(in oklab, var(--petal) 25%, transparent); }
.field [aria-invalid="true"] { border-color: var(--petal); }
.field .error { color: var(--petal); font-size: var(--s-1); font-weight: 600; }
.field .error:empty { display: none; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: .2rem; accent-color: var(--petal); padding: 0; }
.check label { font-size: var(--s0); font-weight: 400; color: var(--dim); }
.check label a { color: var(--fg); text-decoration-color: var(--petal); text-underline-offset: 4px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.form-foot small { color: var(--dim); max-width: 36ch; }
.sent { padding: 1rem 1.2rem; border-radius: 14px; border: 1.5px solid var(--open); }
.alert { padding: 1rem 1.2rem; border-radius: 14px; border: 1.5px solid var(--petal); }
.alert ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 2.75rem 3rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: .25rem 1.6rem; }
.foot nav a { text-decoration: none; color: var(--dim); min-height: 44px; display: inline-flex; align-items: center; }
.foot nav a:hover { color: var(--fg); }
.foot small { display: block; margin-top: 1.25rem; color: var(--dim); }
.foot-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Candidate account link in the header tools; the mobile menu carries it on small screens. */
.acct-link { display: none; color: var(--dim); text-decoration: none; font-weight: 500; min-height: 44px; align-items: center; padding: 0 .5rem; }
.acct-link:hover, .acct-link[aria-current="page"] { color: var(--fg); }
@media (min-width: 900px) { .acct-link { display: inline-flex; } }
.resume-choice { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.resume-choice legend { font-weight: 600; margin-bottom: .25rem; }
