/* ==========================================================================
   Hermes — additive stylesheet
   --------------------------------------------------------------------------
   Loaded AFTER phanoliax.css. Everything here is either:
     (a) a new component that had no equivalent in the legacy design, or
     (b) a rule the legacy sheets already implied but never expressed.
   No existing colour, spacing, font or component rule is overridden.
   ========================================================================== */

/* Use the existing monochrome storefront palette on all added components. */
html[data-theme='dark'] { --primary_color: #dedede; --plx-surface: #191919; --plx-text: #fff; color-scheme: dark; }
html[data-theme='light'] { --primary_color: #323232; --plx-surface: #ffffff; --plx-text: #111; color-scheme: light; }
/* The legacy loading curtain otherwise covers interactive content after load. */
.preloader { display: none; }
a { color: inherit; }
code { color: inherit; }
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
    html [data-aos] { opacity: 1; transform: none; transition: none; }
}
select option { background: var(--plx-surface); color: inherit; }
select option:checked, select option:hover { background: #323232; color: #fff; }
@supports (appearance: base-select) {
    select, ::picker(select) { appearance: base-select; }
    ::picker(select) { background: var(--plx-surface); color: inherit; border: 1px solid var(--plx-border); border-radius: 14px; padding: 6px; }
    select option { padding: 10px 12px; border-radius: 8px; }
    select option:checked, select option:hover, select option:focus { background: #323232; color: #fff; }
    select::picker-icon { margin-left: auto; }
}

/* Product editor image upload and product detail storefront layout. */
.hermes-product-media-editor { display: grid; gap: 12px; }
.hermes-product-library-action { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.hermes-product-library-action [data-product-library-status] { min-height: 18px; font-size: 12px; }
.hermes-product-media-editor h3 { margin: 0; }
.hermes-product-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.hermes-product-image { position: relative; min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--plx-border); border-radius: 15px; background: var(--plx-surface); }
.hermes-product-image img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.hermes-product-image.is-cover { border-color: var(--primary_color); box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.hermes-product-cover { display: flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 9px; color: inherit; font-size: 11px; cursor: pointer; }
.hermes-product-cover input { accent-color: var(--primary_color); }
.hermes-product-image-remove { position: absolute; top: 7px; right: 7px; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; background: rgba(12,12,12,.82); color: #fff; cursor: pointer; }
.hermes-product-media-error { margin: 0; color: #ed7777; font-size: 12px; }
.hermes-product-breadcrumb { padding: 18px 0 8px; }
.hermes-product-breadcrumb .hermes-chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; }
.hermes-product-page { padding-top: 12px; }
.hermes-product-detail-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: 28px; align-items: start; }
.hermes-product-gallery-column { min-width: 0; }
.hermes-product-gallery-main { position: relative; display: grid; place-items: center; aspect-ratio: 1.18; min-height: 340px; overflow: hidden; border: 1px solid var(--plx-border); border-radius: 26px; background: radial-gradient(ellipse at 50% 36%, rgba(255,255,255,.075), transparent 68%), var(--plx-surface); }
.hermes-product-gallery-main > img { width: 100%; height: 100%; max-height: 720px; padding: 0; object-fit: cover; }
.hermes-product-sale-badge { position: absolute; top: 18px; left: 18px; padding: 8px 11px; border: 1px solid var(--plx-border); border-radius: 999px; background: rgba(20,20,20,.86); color: #eee; font-size: 12px; font-weight: 600; }
.hermes-product-thumbnails { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 2px 1px 7px; scrollbar-width: thin; }
.hermes-product-thumb { flex: 0 0 76px; width: 76px; padding: 0; overflow: hidden; border: 1px solid var(--plx-border); border-radius: 13px; background: var(--plx-surface); cursor: pointer; }
.hermes-product-thumb.is-active { border-color: var(--primary_color); box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.hermes-product-thumb img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.hermes-product-buy-panel { position: sticky; top: 100px; min-width: 0; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--plx-border); border-radius: 26px; background: var(--plx-surface); }
.hermes-product-kicker { display: flex; flex-wrap: wrap; gap: 8px; color: var(--plx-muted); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.hermes-product-kicker span + span::before { content: "·"; padding-right: 8px; }
.hermes-product-buy-panel h1 { margin: 12px 0 0; color: inherit; font-size: clamp(28px, 3vw, 38px); line-height: 1.14; letter-spacing: -.035em; overflow-wrap: anywhere; }
.hermes-product-summary { margin: 12px 0 0; color: var(--plx-muted); font-size: 14px; line-height: 1.7; }
.hermes-product-quickfacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hermes-product-quickfacts span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid var(--plx-border); border-radius: 999px; color: var(--plx-muted); font-size: 11px; }
.hermes-product-quickfacts i { color: var(--primary_color); }
.hermes-product-buy-divider { height: 1px; margin: 22px 0; background: var(--plx-border); }
.hermes-product-price-block { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; margin-bottom: 18px; }
.hermes-product-price { color: inherit; font-size: clamp(28px, 3vw, 36px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.hermes-product-old-price { display: grid; gap: 2px; color: var(--plx-muted); font-size: 12px; }
.hermes-product-old-price span { font-size: 10px; }
.hermes-product-tax-note { margin: -10px 0 16px; color: var(--plx-muted); font-size: 12px; }
.hermes-product-buy-actions { display: grid; grid-template-columns: auto minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.hermes-product-buy-actions .hermes-btn { min-height: 50px; justify-content: center; }
.hermes-product-quick-buy { white-space: nowrap; }
.hermes-product-quantity { min-width: 116px; justify-content: space-around; }
.hermes-product-purchase-note { display: flex; align-items: flex-start; gap: 7px; margin: 12px 0 0; color: var(--plx-muted); font-size: 11px; line-height: 1.5; }
.hermes-product-purchase-note i { flex: 0 0 auto; margin-top: 1px; }
.hermes-product-owned { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hermes-product-links { display: grid; gap: 8px; margin-top: 14px; }
.hermes-product-links .hermes-btn { justify-content: center; }
.hermes-product-favorite { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; padding: 10px; border: 1px solid var(--plx-border); border-radius: 13px; color: var(--plx-muted); font-size: 12px; text-decoration: none; }
.hermes-product-favorite.is-active { color: var(--primary_color); }
.hermes-product-lower-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr); gap: 18px; margin: 22px 0 24px; }
.hermes-product-lower-layout > * { min-width: 0; margin: 0; padding: clamp(20px, 2.5vw, 30px); border: 1px solid var(--plx-border); border-radius: 22px; background: var(--plx-surface); }
.hermes-product-lower-layout h2 { margin: 4px 0 14px; color: inherit; font-size: 21px; }
.hermes-product-description .hermes-prose { color: var(--plx-muted); line-height: 1.8; overflow-wrap: anywhere; }
.hermes-product-specs dl { display: grid; gap: 0; margin: 6px 0 14px; }
.hermes-product-specs dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--plx-border); font-size: 12px; }
.hermes-product-specs dt { color: var(--plx-muted); }
.hermes-product-specs dd { margin: 0; color: inherit; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 900px) {
    .hermes-product-detail-layout { grid-template-columns: minmax(0,1fr) minmax(300px,.9fr); gap: 18px; }
    .hermes-product-gallery-main { min-height: 280px; }
}
@media (max-width: 700px) {
    .hermes-product-detail-layout, .hermes-product-lower-layout { grid-template-columns: minmax(0,1fr); }
    .hermes-product-buy-panel { position: static; }
    .hermes-product-gallery-main { aspect-ratio: 1 / 1; min-height: 0; border-radius: 20px; }
    .hermes-product-gallery-main > img { max-height: 520px; }
    .hermes-product-breadcrumb .container { padding-left: 14px; padding-right: 14px; }
    .hermes-product-breadcrumb .hermes-chips { justify-content: flex-start; }
}

/* ---------- Flash messages -------------------------------------------- */
.hermes-flash {
    position: fixed;
    top: 92px;
    right: 24px;
    z-index: 99990;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 420px;
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    border: 1px solid var(--plx-border);
    background: var(--plx-surface);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
    animation: hermes-flash-in .28s ease;
}
.hermes-flash i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.hermes-flash-success { border-color: rgba(127, 127, 127, .55); }
.hermes-flash-success i { color: var(--primary_color); }
.hermes-flash-error { border-color: #e5484d; }
.hermes-flash-error i { color: #e5484d; }
.hermes-flash-info { border-color: rgba(255, 180, 58, .55); }
.hermes-flash-info i { color: #FFB43A; }
@keyframes hermes-flash-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Header icon buttons --------------------------------------- */
/* Mirrors .plx-cart-btn exactly so the row reads as one control family. */
.plx-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 20px;
    text-decoration: none;
    transition: background .3s ease, color .3s ease, transform .3s ease;
}
.plx-icon-btn:hover { transform: translateY(-2px); }
html[data-theme='dark'] .plx-icon-btn { background: #323232; color: #ffffff; }
html[data-theme='light'] .plx-icon-btn { background: #0F0F0F; color: #ffffff; }

/* ---------- Generic text helpers -------------------------------------- */
.hermes-muted { color: var(--plx-muted); }
.hermes-lead {
    color: var(--plx-muted);
    font-size: 15px;
    line-height: 1.8;
    max-width: 68ch;
}
.hermes-eyebrow {
    color: var(--primary_color);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ---------- Buttons ---------------------------------------------------- */
.hermes-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: 14px;
    background: var(--dark);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
}
.hermes-btn:hover { transform: translateY(-2px); background: #fff; color: #323232; }
.hermes-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.hermes-btn-ghost {
    background: transparent;
    color: inherit;
    border: 1px solid var(--plx-border);
}
.hermes-btn-ghost:hover { border-color: var(--primary_color); color: var(--primary_color); }
.hermes-btn-danger { background: #e5484d; }
.hermes-btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 12px; }
.hermes-btn-block { width: 100%; }

/* ---------- Cards ------------------------------------------------------ */
.hermes-card {
    min-width: 0;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--plx-border);
    background: linear-gradient(120deg, rgba(255,255,255,.075), rgba(255,255,255,.0125)), #0f0f0f;
}
html[data-theme='light'] .hermes-card { background: #fff; }
.hermes-card h3 { margin: 0 0 6px; font-size: 17px; }

/* ---------- Data grid (prices, meta) ----------------------------------- */
.hermes-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hermes-meta > div { min-width: 96px; }
.hermes-meta p { margin: 0 0 2px; color: var(--plx-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.hermes-meta h4 { margin: 0; font-size: 17px; font-weight: 700; }

/* ---------- Badges ----------------------------------------------------- */
.hermes-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 10px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .2px;
    border: 1px solid var(--plx-border);
    color: var(--plx-muted);
    white-space: nowrap;
}
.hermes-badge-primary { background: var(--dark); border-color: var(--plx-border); color: #fff; }
.hermes-badge-success { background: rgba(46, 160, 67, .16); border-color: rgba(46, 160, 67, .5); color: #57d364; }
.hermes-badge-warning { background: rgba(255, 180, 58, .14); border-color: rgba(255, 180, 58, .45); color: #FFB43A; }
.hermes-badge-danger  { background: rgba(229, 72, 77, .15); border-color: rgba(229, 72, 77, .5); color: #ff6b6f; }
.hermes-badge-neutral { background: rgba(127, 127, 127, .14); }
html[data-theme='light'] .hermes-badge-success { color: #176b2f; }
html[data-theme='light'] .hermes-badge-warning { color: #835700; }
html[data-theme='light'] .hermes-badge-danger  { color: #b4232c; }

/* ---------- Forms ------------------------------------------------------ */
.hermes-field { margin-bottom: 16px; }
.hermes-field > label {
    display: block;
    margin-bottom: 7px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .3px;
}
.hermes-field input[type="text"],
.hermes-field input:not([type]),
.hermes-field input[type="search"],
.hermes-field input[type="email"],
.hermes-field input[type="password"],
.hermes-field input[type="tel"],
.hermes-field input[type="url"],
.hermes-field input[type="number"],
.hermes-field input[type="date"],
.hermes-field input[type="datetime-local"],
.hermes-field select,
.hermes-field textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: 14px;
    border: 1px solid var(--plx-border);
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.hermes-field input:focus,
.hermes-field select:focus,
.hermes-field textarea:focus {
    border-color: var(--primary_color);
    box-shadow: 0 0 0 3px rgba(127, 127, 127, .16);
}
.hermes-field textarea { min-height: 120px; resize: vertical; }
.hermes-field small { display: block; margin-top: 6px; color: var(--plx-muted); font-size: 12px; }
.hermes-field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 16px; }
.hermes-check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.hermes-check input { width: 17px; height: 17px; accent-color: var(--primary_color); }

/* ---------- Tables ----------------------------------------------------- */
.hermes-table-wrap { overflow-x: auto; border: 1px solid var(--plx-border); border-radius: 20px; }
.hermes-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.hermes-table th {
    text-align: left;
    padding: 13px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--plx-muted);
    border-bottom: 1px solid var(--plx-border);
    white-space: nowrap;
}
.hermes-table td { padding: 13px 16px; border-bottom: 1px solid var(--plx-border); vertical-align: middle; }
.hermes-table tr:last-child td { border-bottom: none; }
.hermes-table tbody tr:hover { background: rgba(127, 127, 127, .06); }

/* ---------- Empty state ------------------------------------------------ */
.hermes-empty {
    text-align: center;
    padding: 56px 28px;
    border-radius: 24px;
    border: 1px dashed var(--plx-border);
}
.hermes-empty i { font-size: 38px; color: var(--plx-muted); }
.hermes-empty h3 { margin: 12px 0 6px; font-size: 17px; }
.hermes-empty p { margin: 0 auto 18px; max-width: 44ch; color: var(--plx-muted); font-size: 13.5px; }

/* ---------- Pagination ------------------------------------------------- */
.hermes-pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hermes-pagination a,
.hermes-pagination span {
    min-width: 40px;
    padding: 9px 13px;
    border-radius: 12px;
    border: 1px solid var(--plx-border);
    font-size: 13px;
    text-align: center;
    text-decoration: none;
    color: inherit;
}
.hermes-pagination .is-current { background: var(--dark); border-color: var(--plx-border); color: #fff; }
.hermes-pagination .is-disabled { opacity: .4; }

/* ---------- Filter bar ------------------------------------------------- */
.hermes-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px; }
.hermes-filters input[type="search"],
.hermes-filters input[type="text"],
/* The price range fields are number inputs. Without them they fall back to the
   browser default, which is a white box on the dark theme. */
.hermes-filters input[type="number"],
.hermes-filters select {
    padding: 11px 15px;
    border-radius: 13px;
    border: 1px solid var(--plx-border);
    background: var(--plx-surface);
    color: inherit;
    font-family: inherit;
    font-size: 13.5px;
    outline: none;
}
.hermes-filters input[type="search"] { flex: 1; min-width: 200px; }
.hermes-filters input:focus, .hermes-filters select:focus { border-color: var(--primary_color); }

/* ---------- Chips (filters + admin nav) --------------------------------- */
.hermes-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hermes-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border-radius: 12px;
    border: 1px solid var(--plx-border);
    background: transparent;
    color: var(--plx-muted);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.hermes-chip:hover { color: var(--primary_color); border-color: var(--primary_color); }
.hermes-chip.is-active { background: var(--dark); border-color: var(--plx-border); color: #fff; }

/* ---------- Stat tiles (admin/account) --------------------------------- */
.hermes-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.hermes-stat { padding: 20px; border-radius: 20px; border: 1px solid var(--plx-border); background: var(--plx-surface); }
.hermes-stat .k { display: flex; align-items: center; gap: 8px; color: var(--plx-muted); font-size: 12px; }
.hermes-stat .k i { font-size: 16px; }
.hermes-stat .v { margin-top: 8px; font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.hermes-stat .d { margin-top: 4px; font-size: 11.5px; color: var(--plx-muted); }
.hermes-stat.is-danger .v { color: #ff6b6f; }
.hermes-stat.is-success .v { color: #57d364; }
html[data-theme='light'] .hermes-stat.is-danger .v { color: #cf222e; }
html[data-theme='light'] .hermes-stat.is-success .v { color: #1a7f37; }

/* ---------- Prose (blog body, legal pages) ----------------------------- */
.hermes-prose { font-size: 15px; line-height: 1.85; color: inherit; }
.hermes-prose h2 { margin: 34px 0 12px; font-size: 21px; }
.hermes-prose h3 { margin: 26px 0 10px; font-size: 17px; }
.hermes-prose p { margin: 0 0 16px; }
.hermes-prose ul, .hermes-prose ol { margin: 0 0 16px; padding-left: 22px; }
.hermes-prose li { margin-bottom: 6px; }
.hermes-prose img { max-width: 100%; border-radius: 16px; }
.hermes-prose blockquote {
    margin: 22px 0;
    padding: 16px 20px;
    border-left: 3px solid var(--primary_color);
    background: rgba(127, 127, 127, .08);
    border-radius: 0 14px 14px 0;
}
.hermes-prose code {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(127, 127, 127, .18);
    font-size: .92em;
}
.hermes-prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 13.5px; }
.hermes-prose th, .hermes-prose td { padding: 9px 12px; border: 1px solid var(--plx-border); text-align: left; }

/* ---------- Price block ----------------------------------------------- */
.hermes-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hermes-price .now { font-size: 24px; font-weight: 800; color: var(--primary_color); }
.hermes-price .was { color: var(--plx-muted); text-decoration: line-through; font-size: 14px; }

/* ---------- Gallery ---------------------------------------------------- */
.hermes-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.hermes-gallery img { width: 100%; border-radius: 18px; object-fit: cover; aspect-ratio: 16 / 10; }
.plx-zoomable { cursor: zoom-in; }

/* ---------- Split layout (product detail, checkout) --------------------- */
.hermes-split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.hermes-split > * { min-width: 0; }
@media (max-width: 1090px) { .hermes-admin .hermes-split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .hermes-split { grid-template-columns: minmax(0, 1fr); } }

/* Checkout uses the storefront's charcoal/ivory system with more room and a
   clear sequence so billing details and provider choices stay easy to scan. */
.hermes-checkout-page { padding: clamp(28px, 5vw, 58px) 0 72px; }
.hermes-checkout-page > .container { width: min(100% - 40px, 1180px); max-width: 1180px; }
.hermes-checkout-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 0 0 28px; }
.hermes-checkout-heading .hermes-eyebrow { margin: 0 0 8px; color: var(--plx-muted); font-size: 11px; letter-spacing: .12em; }
.hermes-checkout-heading h1 { margin: 0; color: #f4f1eb; font-size: clamp(30px, 4vw, 42px); line-height: 1.12; letter-spacing: -.035em; text-transform: none; }
.hermes-checkout-heading > div > p:last-child { margin: 9px 0 0; color: var(--plx-muted); font-size: 14px; }
.hermes-checkout-step { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--plx-border); border-radius: 999px; color: var(--plx-muted); font-size: 12px; }
.hermes-checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 24px; }
.hermes-checkout-form-card, .hermes-checkout-summary { min-width: 0; border: 1px solid var(--plx-border); border-radius: 22px; background: var(--plx-surface); }
.hermes-checkout-form-card { padding: clamp(20px, 3vw, 34px); }
.hermes-checkout-form { width: 100%; }
.hermes-checkout-form .hermes-field { margin-bottom: 16px; }
.hermes-checkout-form .hermes-field label { display: block; margin: 0 0 7px; color: #e9e5dd; font-size: 13px; font-weight: 600; }
.hermes-checkout-form .hermes-field input, .hermes-checkout-form .hermes-field select, .hermes-checkout-form .hermes-field textarea { min-height: 48px; border: 1px solid var(--plx-border); border-radius: 12px; padding: 11px 13px; color: #f3f0ea; background: rgba(255,255,255,.025); font: inherit; font-size: 14px; }
.hermes-checkout-form .hermes-field textarea { min-height: 92px; }
.hermes-checkout-form .hermes-field-row { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 14px; }
.hermes-checkout-section-title { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 18px; }
.hermes-checkout-section-title > span { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border: 1px solid var(--plx-border); border-radius: 50%; color: #f0ece4; font-size: 11px; font-weight: 700; }
.hermes-checkout-section-title h2 { margin: 0; color: #f2eee7; font-size: 17px; line-height: 1.3; }
.hermes-checkout-section-title p { margin: 4px 0 0; color: var(--plx-muted); font-size: 12px; line-height: 1.5; }
.hermes-checkout-section .hermes-divider { margin: 20px 0; }
.hermes-checkout-company { margin: 2px 0 16px; border: 1px solid var(--plx-border); border-radius: 14px; overflow: hidden; }
.hermes-checkout-company summary { display: flex; align-items: center; gap: 11px; padding: 13px 15px; color: #eeeae2; cursor: pointer; list-style: none; }
.hermes-checkout-company summary::-webkit-details-marker { display: none; }
.hermes-checkout-company summary > span { display: grid; flex: 1; gap: 2px; }
.hermes-checkout-company summary b { font-size: 13px; }
.hermes-checkout-company summary small { color: var(--plx-muted); font-size: 11px; }
.hermes-checkout-company[open] summary > i:last-child { transform: rotate(180deg); }
.hermes-checkout-company-fields { padding: 0 14px 4px; }
.hermes-checkout-company .hermes-field-row { padding: 0 14px; }
.hermes-checkout-form .hermes-stack { gap: 9px !important; }
.hermes-checkout-form .hermes-card { border: 1px solid var(--plx-border); border-radius: 13px; background: rgba(255,255,255,.025); }
.hermes-checkout-form .hermes-card:has(input[type=radio]:checked) { border-color: rgba(240,236,228,.5); background: rgba(255,255,255,.06); }
.hermes-checkout-form .hermes-card > span { color: #efebe4; font-size: 14px; }
.hermes-checkout-form .hermes-card small { color: var(--plx-muted); font-size: 12px; line-height: 1.5; }
.hermes-checkout-form .hermes-check { align-items: flex-start; color: var(--plx-muted); font-size: 12px; line-height: 1.6; }
.hermes-checkout-form .hermes-check input { flex: 0 0 auto; margin-top: 2px; }
.hermes-checkout-form .submit-btn { min-height: 52px; border-radius: 13px; font-size: 15px; }
.hermes-checkout-summary { position: sticky; top: 94px; padding: 22px; }
.hermes-checkout-summary-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.hermes-checkout-summary-heading .hermes-eyebrow { margin: 0 0 4px; color: var(--plx-muted); font-size: 10px; letter-spacing: .12em; }
.hermes-checkout-summary-heading h2 { margin: 0; color: #f3efe8; font-size: 21px; }
.hermes-checkout-summary-heading > span { padding: 6px 9px; border: 1px solid var(--plx-border); border-radius: 999px; color: var(--plx-muted); font-size: 11px; white-space: nowrap; }
.hermes-checkout-summary > div[style] { align-items: center; gap: 10px !important; }
.hermes-checkout-summary > div[style] img { flex: 0 0 54px; width: 54px !important; height: 48px !important; border: 1px solid var(--plx-border); border-radius: 9px !important; }
.hermes-checkout-summary > div[style] b { color: #f2eee7; font-size: 12px !important; }
.hermes-checkout-summary .plx-cart-total { gap: 10px; color: #e9e5dd; }
.hermes-checkout-summary .plx-cart-total b { padding: 8px 0; color: #fff; font-size: 19px; font-weight: 700; }
.hermes-checkout-back { min-height: 44px; margin-top: 12px; }
.hermes-checkout-safe { display: flex; gap: 8px; margin: 16px 0 0; color: var(--plx-muted); font-size: 11px; line-height: 1.55; }
.hermes-checkout-safe i { flex: 0 0 auto; color: #ded8cc; }
@media (max-width: 920px) { .hermes-checkout-layout { grid-template-columns: minmax(0,1fr) 300px; gap: 16px; } .hermes-checkout-summary { padding: 18px; } }
@media (max-width: 700px) { .hermes-checkout-page { padding-top: 26px; } .hermes-checkout-page > .container { width: min(100% - 28px, 600px); } .hermes-checkout-heading { align-items: flex-start; flex-direction: column; margin-bottom: 18px; } .hermes-checkout-layout { grid-template-columns: minmax(0,1fr); } .hermes-checkout-summary { position: static; grid-row: 1; } .hermes-checkout-form-card { padding: 20px 16px; } .hermes-checkout-form .hermes-field-row { grid-template-columns: minmax(0,1fr); } }

/* Brand footer: compact identity, optional real metrics and a separate legal row. */
.footer-area.hermes-footer { padding: 24px 0 30px; }
.hermes-footer-container { display: grid; gap: 18px; }
.hermes-footer-main { display: grid; grid-template-columns: minmax(250px,.85fr) minmax(0,1.5fr); gap: 18px; }
.hermes-footer-main.is-simple { grid-template-columns: minmax(0,1fr); }
.hermes-footer-brand, .hermes-footer-stats, .hermes-footer-legal { min-width: 0; border: 1px solid var(--plx-border); border-radius: 22px; background: linear-gradient(120deg,rgba(255,255,255,.055),rgba(255,255,255,.012)),var(--plx-surface); }
.hermes-footer-brand { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 12px 22px; text-align: center; }
.hermes-footer-brand .logo { display: inline-flex; flex: 0 1 auto; align-items: center; min-width: 0; }
.hermes-brand-lockup { gap: 9px; text-decoration: none; }
.hermes-brand-lockup img.hermes-brand-emblem { display: block; flex: 0 0 36px; width: 36px; height: 36px; max-width: 36px; max-height: 36px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(139,91,255,.25)); }
.hermes-brand-lockup > span { color: #c994ff; background: linear-gradient(105deg,#f5e6ff 0%,#d19aff 34%,#a45cff 68%,#e1bdff 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-family: 'Palatino Linotype','Book Antiqua',Georgia,serif; font-size: 22px; font-weight: 700; letter-spacing: .015em; line-height: 1; filter: drop-shadow(0 0 7px rgba(164,92,255,.38)); }
.hermes-brand-lockup img.hermes-custom-brand-logo { display: block; width: auto; max-width: 150px; max-height: 36px; object-fit: contain; }
.hermes-brand-lockup img.hermes-brand-logo-light { display: none; }
html[data-theme='light'] .hermes-brand-lockup img.hermes-brand-logo-dark { display: none; }
html[data-theme='light'] .hermes-brand-lockup img.hermes-brand-logo-light { display: block; }
.hermes-footer-brand .logo img.hermes-brand-emblem { flex-basis: 36px; }
.hermes-footer-copyright { display: grid; gap: 2px; margin: 0; color: var(--plx-muted); font-size: 10px; line-height: 1.35; }
.hermes-footer-copyright span { color: inherit; }
.hermes-footer-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(135px,1fr)); align-items: stretch; gap: 0; padding: 8px; }
.hermes-footer-stat { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 12px; }
.hermes-footer-stat + .hermes-footer-stat { border-left: 1px solid var(--plx-border); }
.hermes-footer-stat > img { display: block; flex: 0 0 34px; width: 34px; height: 34px; object-fit: contain; }
.hermes-footer-stat p { display: grid; gap: 2px; min-width: 0; margin: 0; color: var(--plx-muted); font-size: 12px; line-height: 1.35; }
.hermes-footer-stat strong { color: var(--plx-text, #fff); font-size: 14px; font-weight: 650; }
.hermes-footer-stat span { color: #83c9eb; }
.hermes-footer-stat span { overflow-wrap: anywhere; }
.hermes-footer-nav, .hermes-footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding: 16px 20px; border: 1px solid var(--plx-border); border-radius: 22px; background: linear-gradient(120deg,rgba(255,255,255,.055),rgba(255,255,255,.012)),var(--plx-surface); }
.hermes-footer-nav a, .hermes-footer-legal a { color: var(--plx-muted); font-size: 12px; text-decoration: none; transition: color .16s ease; }
.hermes-footer-nav a:hover, .hermes-footer-legal a:hover { color: inherit; }
html[data-theme='light'] .hermes-footer-brand, html[data-theme='light'] .hermes-footer-stats, html[data-theme='light'] .hermes-footer-nav, html[data-theme='light'] .hermes-footer-legal { background: #fff; }
html[data-theme='light'] .hermes-footer-brand .logo img.hermes-custom-brand-logo { filter: brightness(0); }

/* Legacy section headings use intrinsic SVG dimensions when their small
   decorative marks are not constrained. Keep the marks decorative and prevent
   them from expanding the page canvas on wide service/content layouts. */
.section-heading img {
    width: 25px;
    max-width: 25px;
    height: auto;
    flex: 0 0 25px;
}
html[data-theme='light'] .hermes-footer-stat span { color: #246d9a; }
@media (max-width: 720px) {
    .hermes-footer-main { grid-template-columns: minmax(0,1fr); }
    .hermes-footer-brand { align-items: center; }
    .hermes-footer-stats { grid-template-columns: minmax(0,1fr); }
    .hermes-footer-stat + .hermes-footer-stat { border-top: 1px solid var(--plx-border); border-left: 0; }
    .hermes-footer-legal { justify-content: flex-start; gap: 12px 20px; }
}
.hermes-footer-edit-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 18px; }
.hermes-footer-edit-stat { min-width: 0; padding: 16px; border: 1px solid var(--plx-border); border-radius: 16px; }
.hermes-footer-edit-stat h3 { margin: 0 0 12px; font-size: 14px; }
.hermes-footer-edit-stat .hermes-field:last-of-type, .hermes-footer-edit-stat .hermes-field { margin-bottom: 12px; }
.hermes-footer-link-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 14px; padding: 12px; border: 1px solid var(--plx-border); border-radius: 15px; }
.hermes-form-error { display: block; color: #ed7777; font-size: 12px; }
.hermes-license-guide { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--plx-border); border-radius: 15px; }
.hermes-license-guide > summary { color: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.hermes-license-guide[open] > summary { margin-bottom: 12px; }
.hermes-license-guide ol { display: grid; gap: 8px; padding-left: 22px; color: var(--plx-muted); font-size: 13px; line-height: 1.65; }
.hermes-license-guide pre { margin-top: 12px; font-size: 12px; line-height: 1.6; }
@media (max-width: 700px) { .hermes-footer-edit-grid, .hermes-footer-link-row { grid-template-columns: minmax(0,1fr); } }

/* Home hero layout follows the reference composition while retaining the
   existing Hermes card artwork, profile GIF frame, typography and icons. */
.about-area .about-credentials-wrap > .home-reference-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto 320px;
    align-items: stretch;
    gap: 24px;
}
.about-area .home-reference-grid > * { min-width: 0; }
.about-area .home-reference-grid > [data-aos] { height: 320px; min-height: 0; }
.about-area .home-reference-grid .info-box { display: flex; flex-direction: column; box-sizing: border-box; height: 100%; min-width: 0; }
.about-area .home-reference-grid .info-box > .d-flex { margin-top: auto; }
.about-area .home-reference-grid .home-reference-open { grid-column: 1 / -1; }
.about-area .home-reference-open > div,
.about-area .home-reference-open .banner { height: 100%; }
.about-area .home-reference-open .banner {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
}
.about-area .home-reference-open .marquee { flex: 1 1 auto; min-width: 0; }
.about-area .container > .row:first-child > .col-md-6:first-child .about-me-box { height: 100%; min-height: 397px; align-items: center; }
.home-active-product-visual { width: 100%; height: 170px; margin: 0 auto 16px; overflow: hidden; border-radius: 18px; background: rgba(255,255,255,.035); }
.home-active-product-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-cv-signature { display: block; width: 100%; height: 170px; margin: 0 auto 16px !important; object-fit: contain; }
html[data-theme='light'] .home-cv-signature { filter: invert(1); }
.home-open-cta {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid var(--plx-border);
    border-radius: 999px;
    background: #323232;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}
.home-open-cta:hover { background: #3c3c3c; color: #fff; }
.home-open-cta:focus-visible { outline: 2px solid var(--primary_color); outline-offset: 3px; }
@media (max-width: 585px) {
    .about-area .container > .row:first-child { width: 100%; max-width: 100%; margin-inline: 0; }
    .about-area .container > .row:first-child > .col-md-6 { min-width: 0; max-width: 100%; padding-inline: 8px; }
    .about-area .container > .row:first-child > .col-md-6:first-child .about-me-box { width: 100%; max-width: 100%; min-height: 0; height: auto; box-sizing: border-box; }
    .about-area .about-credentials-wrap > .home-reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 220px; gap: 12px; }
    .about-area .home-reference-grid > [data-aos] { height: 220px; min-width: 0; }
    .about-area .home-reference-grid .home-reference-open { grid-column: 1 / -1; }
    .about-area .home-reference-open .banner { gap: 10px; padding-inline: 15px; }
    .about-area .home-reference-grid .info-box { min-width: 0; padding: 14px 12px; border-radius: 21px; }
    .about-area .home-active-product-visual { height: 100px; margin-bottom: 10px; border-radius: 14px; }
    .about-area .home-cv-signature { height: 100px; margin-bottom: 10px !important; }
    .about-area .home-reference-grid .info-box .infos { min-width: 0; }
    .about-area .home-reference-grid .info-box .infos h4 { margin-top: 4px; margin-bottom: 4px; font-size: 9px; }
    .about-area .home-reference-grid .info-box .infos h1 { margin-bottom: 0; font-size: clamp(13px, 3.8vw, 16px); line-height: 1.2; overflow-wrap: anywhere; }
    .about-area .home-reference-grid .info-box .about-btn { flex: 0 0 28px; width: 28px; }
    .about-area .home-reference-grid .info-box .about-btn img { display: block; width: 28px; max-width: 28px; height: auto; }
    .home-open-cta { min-height: 36px; padding-inline: 14px; font-size: 12px; }
}

/* Blog search is app-specific; keep its styling outside the legacy stylesheet. */
.hermes-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border: 1px solid var(--plx-border);
    border-radius: 16px;
    background: var(--plx-surface);
}
.hermes-search-field i { color: var(--primary_color); }
.hermes-search-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 14px;
}

.hermes-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hermes-catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hermes-product-grid > div { min-width: 0; }
.project-details-wrap .hermes-product-hero { background: var(--plx-surface); }
.project-details-wrap .hermes-product-hero > img { width: 100%; height: auto; max-height: 480px; object-fit: contain; }
.hermes-product-grid .project-item { height: 100%; }
.hermes-product-grid .project-info { min-width: 0; }
.hermes-product-grid .project-img > img { width: 100%; height: 240px; object-fit: cover; }
.plx-lightbox-close:hover { background: #323232; }
.hermes-admin .hermes-side em { background: #323232; }
@media (max-width: 1090px) {
    .hermes-product-grid, .hermes-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 585px) {
    .project-details-wrap .hermes-product-hero > img { max-height: 300px; }
    .hermes-product-grid, .hermes-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .projects-area .hermes-product-grid .project-item { padding: 12px 12px 16px; margin-bottom: 0; border-radius: 22px; }
    .hermes-product-grid .project-item .project-img { margin-bottom: 10px; border-radius: 16px; overflow: hidden; }
    .hermes-product-grid .project-item .project-img > img { height: auto; aspect-ratio: 1; border-radius: 16px; }
    .hermes-product-grid .project-item .project-info { flex: 1; }
    .hermes-product-grid .project-item .project-info p { font-size: 10px; line-height: 1.4; margin: 0 0 5px; overflow-wrap: anywhere; min-height: 28px; opacity: 1; color: var(--plx-muted); }
    .hermes-product-grid .project-item .project-info h1 { font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; opacity: 1; }
    .hermes-product-grid .project-item .project-btn { display: none; }
    .hermes-product-grid .project-item .project-info .hermes-flex { font-size: 12px; }
    .header-area .header-actions > .theme-btn { display: none; }
    .header-area .gx-row { gap: 16px; }
    .header-area .header-actions { margin-left: auto; }
    .about-area { padding-top: 36px; }
    .about-area .about-me-box { padding: 24px; }
    .about-area .about-me-box .img-box { width: 160px; height: 160px; flex: none; }
    .about-area .about-me-box .img-box img { width: 100%; height: 100%; object-fit: cover; }
    .about-area .about-me-box .infos h1 { font-size: 30px; }
    .about-area .about-me-box .infos { width: 100%; }
    .about-area .about-me-box .infos p { max-width: none; }
    .hermes-card { padding: 20px; }
    .hermes-filters input, .hermes-filters select { max-width: none; min-width: 0; flex: 1 1 100%; }
}

/* ---------- Account + admin shell -------------------------------------- */
.hermes-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 767px) { .hermes-shell { grid-template-columns: 1fr; } }

.hermes-side { position: sticky; top: 92px; padding: 18px; border-radius: 24px; border: 1px solid var(--plx-border); background: var(--plx-surface); }
.hermes-side nav { display: flex; flex-direction: column; gap: 3px; }
.hermes-side a,
.hermes-side button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--plx-muted);
    font-family: inherit;
    font-size: 13.5px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.hermes-side a:hover, .hermes-side button:hover { color: var(--primary_color); }
.hermes-side a.is-active { background: var(--dark); color: #fff; }
.hermes-side a i, .hermes-side button i { font-size: 17px; }
.hermes-side .group-label {
    margin: 14px 0 6px;
    padding: 0 13px;
    font-size: 10.5px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--plx-muted);
}
.hermes-side .group-label:first-child { margin-top: 0; }
.hermes-side .hermes-panel-menu-toggle { display: none; }
.about-profile-box > .d-flex:last-child { margin-top: auto; }
@media (max-width: 767px) {
    .hermes-admin .hermes-side { position: static; padding: 10px; }
    .hermes-admin .hermes-side .hermes-panel-menu-toggle { display: flex; width: 100%; color: inherit; }
    .hermes-panel-menu-toggle span { flex: 1; }
    .hermes-admin .hermes-side nav { display: none; }
    .hermes-admin .hermes-side.is-open nav { display: flex; margin-top: 8px; }
}

/* ---------- Command palette (admin) ------------------------------------ */
.hermes-cmdk { position: fixed; inset: 0; z-index: 100001; display: none; }
.hermes-cmdk.is-open { display: block; }
.hermes-cmdk-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); }
.hermes-cmdk-panel {
    position: relative;
    width: min(620px, calc(100% - 32px));
    margin: 12vh auto 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--plx-border);
    background: var(--plx-surface);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
}
.hermes-cmdk-input {
    width: 100%;
    padding: 17px 20px;
    border: none;
    border-bottom: 1px solid var(--plx-border);
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 15px;
    outline: none;
}
.hermes-cmdk-list { max-height: 360px; overflow-y: auto; padding: 8px; }
.hermes-cmdk-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 13px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.hermes-cmdk-item i { font-size: 17px; color: var(--plx-muted); }
.hermes-cmdk-item em { font-style: normal; color: var(--primary_color); font-weight: 600; }
.hermes-cmdk-item small { margin-left: auto; color: var(--plx-muted); font-size: 11.5px; }
.hermes-cmdk-item.is-sel { background: var(--dark); color: #fff; }
.hermes-cmdk-item.is-sel i, .hermes-cmdk-item.is-sel small { color: rgba(255, 255, 255, .8); }
.hermes-cmdk-empty { padding: 26px; text-align: center; color: var(--plx-muted); font-size: 13.5px; }
.hermes-cmdk-item:focus-visible { outline: 2px solid var(--primary_color); outline-offset: -2px; }
.hermes-skip-link { position: fixed; top: 12px; left: 12px; z-index: 100002; padding: 10px 14px; border-radius: 10px; background: var(--plx-surface); color: var(--plx-text); transform: translateY(-160%); }
.hermes-skip-link:focus { transform: translateY(0); }
.hermes-media-picker-actions { width: min(100%, 520px); display: grid; gap: 10px; }
.hermes-media-library-secondary { justify-self: start; min-height: 34px; border-color: transparent; background: transparent; color: var(--plx-muted); font-size: 12px; }
.hermes-media-library-secondary:hover, .hermes-media-library-secondary:focus-visible { border-color: var(--plx-border); background: color-mix(in srgb, var(--plx-text) 5%, var(--plx-surface)); color: var(--plx-text); }
.hermes-media-inline-upload { min-width: 0; }
.hermes-media-dropzone { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px; border: 1px dashed var(--plx-border); border-radius: 16px; text-align: center; cursor: pointer; transition: border-color .16s ease, background-color .16s ease; }
.hermes-media-dropzone > .iconoir-cloud-upload { font-size: 24px; color: var(--plx-muted); }
.hermes-media-dropzone > strong { font-size: 13px; }
.hermes-media-dropzone > span { color: var(--plx-muted); font-size: 12px; }
.hermes-media-dropzone.is-dragging, .hermes-media-dropzone:hover, .hermes-media-dropzone:focus-visible { outline: none; border-color: var(--primary_color); background: color-mix(in srgb, var(--primary_color) 8%, var(--plx-surface)); }
.hermes-media-dropzone.is-uploading { opacity: .72; pointer-events: none; }
.hermes-media-dropzone:focus-within { outline: 2px solid var(--primary_color); outline-offset: 3px; }
.hermes-media-upload-status { min-height: 1.2em; margin: 6px 2px 0; font-size: 12px; }
.hermes-secret-generator-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.hermes-secret-generator [data-secret-status] { margin-top:7px; }
.hermes-media-picker-preview img { object-fit: contain; max-width: 100%; max-height: 160px; }
@media (max-width: 767px) { .hermes-media-picker-actions { width: 100%; } .hermes-media-dropzone { min-height: 138px; padding: 14px 10px; } }

/* ---------- Admin: order timeline -------------------------------------- */
.hermes-timeline { position: relative; padding-left: 24px; }
.hermes-timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--plx-border);
}
.hermes-timeline li { position: relative; list-style: none; padding: 0 0 16px; }
.hermes-timeline li::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary_color);
    box-shadow: 0 0 0 3px var(--plx-surface);
}
.hermes-timeline b { display: block; font-size: 13.5px; }
.hermes-timeline small { color: var(--plx-muted); font-size: 11.5px; }

/* ---------- Bar chart (dashboard) -------------------------------------- */
.hermes-bars { display: flex; align-items: flex-end; gap: 3px; height: 130px; }
.hermes-bars > div { flex: 1; min-width: 2px; border-radius: 3px 3px 0 0; background: var(--primary_color); opacity: .82; transition: opacity .2s ease; }
.hermes-bars > div:hover { opacity: 1; }
.hermes-bars > div.is-empty { background: var(--plx-border); }

/* ---------- Misc -------------------------------------------------------- */
.hermes-divider { height: 1px; background: var(--plx-border); margin: 22px 0; border: none; }
.hermes-flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hermes-flex-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hermes-stack { display: flex; flex-direction: column; gap: 16px; }
.hermes-code {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(127, 127, 127, .14);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    letter-spacing: .5px;
    word-break: break-all;
}
.hermes-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;
}

/* ---------- Responsive -------------------------------------------------- */
@media (max-width: 767px) {
    .hermes-flash { left: 16px; right: 16px; top: 80px; max-width: none; }
    .hermes-side { position: static; }
    .hermes-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .hermes-stat .v { font-size: 22px; }
}
/* ---------- Header logo must not be squeezed ----------------------- */
/* The legacy header keeps the logo at its intrinsic width at every viewport:
   on a 390px screen the static site still renders it at 93px and lets the call
   to action absorb the pressure. This build carries one extra icon button in
   .header-actions, so the flex row ran out of room and shrank the logo image to
   41px, which read as a clipped wordmark.

   Only the logo is pinned. Nothing else in the legacy layout is changed, and
   this rule is additive: style.css and style-light.css are untouched. */
.header-area .logo,
.header-area .logo img {
    flex: 0 0 auto;
}
.header-area .logo.hermes-brand-lockup { display: inline-flex; align-items: center; gap: 8px; }
.header-area .logo.hermes-brand-lockup img.hermes-brand-emblem { width: 34px; height: 34px; max-width: 34px; max-height: 34px; object-fit: contain; }
.header-area .logo.hermes-brand-lockup > span { font-size: 20px; }

/* ---------- Header actions on narrow screens ----------------------- */
/* Measured against the legacy static site at 390px and 768px:
     legacy .header-actions = 240px wide, with the logo at its intrinsic 93px
     and no overflow.
   This build's .header-actions measured 298px because it carries an account
   icon button the legacy header has no counterpart for (the legacy site is
   static and has no accounts), which pushed the row to 410px inside a 390px
   viewport.

   Measured across the legacy breakpoints: legacy .header-actions is 240px at 390 and
   312px from 920px up, and this build adds 58px for the icon buttons. That fits
   from 920px up and not below it, so that is where the buttons go. Below 920 the
   same links appear in the menu the burger opens, so nothing becomes unreachable.

   Additive only. style.css and style-light.css are untouched. */
@media (max-width: 919px) {
    .header-area .header-actions .plx-icon-btn {
        display: none;
    }
    .navbar ul.menu .hermes-menu-only {
        display: block;
    }

    /* Between 768px and 920px the navbar is still horizontal and the legacy
       header fills the container to the edge, so the extra menu entry cannot fit
       on one line. Letting the menu wrap keeps every link visible and clickable
       rather than hiding one or letting the row overflow. The legacy menu items
       themselves are untouched; only the line box changes. */
    .header-area .navbar .menu {
        flex-wrap: wrap;
    }
}

/* Keep card actions discoverable before hover and reachable by keyboard. */
.info-box .about-btn,
.info-box.about-contact-box .about-btn,
.about-area .about-me-box .infos .about-btn,
.projects-area .project-item .project-btn {
    opacity: .38;
    transition: opacity .3s ease;
}

.info-box .about-btn:focus-visible,
.info-box.about-contact-box .about-btn:focus-visible,
.about-area .about-me-box .infos .about-btn:focus-visible,
.projects-area .project-item .project-btn:focus-visible {
    opacity: 1;
    outline: 2px solid var(--plx-muted);
    outline-offset: 4px;
    border-radius: 50%;
}

@media (prefers-reduced-motion: reduce) {
    .info-box .about-btn,
    .info-box.about-contact-box .about-btn,
    .about-area .about-me-box .infos .about-btn,
    .projects-area .project-item .project-btn {
        transition: none;
    }
}

@media (min-width: 920px) {
    .navbar ul.menu .hermes-menu-only {
        display: none;
    }
}

/* The mobile navigation control uses the same clean line icon as the legacy
   header. Reset the browser's native button chrome, which otherwise adds a
   small outlined rectangle around the three spans. */
@media (max-width: 767px) {
    .header-area .show-menu {
        appearance: none;
        -webkit-appearance: none;
        box-sizing: border-box;
        width: 26px;
        min-width: 26px;
        height: 24px;
        margin: 0;
        padding: 3px 1px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        flex: 0 0 26px;
        align-items: center;
        justify-content: space-between;
    }
    .header-area .show-menu span {
        width: 24px;
        height: 2px;
        border-radius: 2px;
    }
    .header-area .show-menu.active span:first-child {
        transform: translateY(7px) rotate(45deg);
    }
    .header-area .show-menu span:last-child {
        transform-origin: center;
    }
    .header-area .show-menu.active span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }
    .header-area .show-menu:focus-visible {
        outline: 2px solid var(--primary_color);
        outline-offset: 4px;
    }
}

/* Keep the editorial index readable and compact across desktop and mobile. */
.blog-area { padding-top: 64px; }
.blog-area .blog-items .blog-item + .blog-item { margin-top: 42px; }
.blog-area .blog-items .blog-item .img-box { height: clamp(220px, 28vw, 360px); margin-bottom: 28px; overflow: hidden; border-radius: 18px; }
.blog-area .blog-items .blog-item .content h1 { line-height: 1.25; }
@media (max-width: 767px) { .blog-area { padding-top: 32px; } .blog-area .blog-items .blog-item + .blog-item { margin-top: 34px; } .blog-area .blog-items .blog-item .img-box { height: auto; aspect-ratio: 16 / 10; margin-bottom: 20px; } }

/* The homepage ticker defaults to a calm pace; the CMS can tune this per site. */
.about-area .about-credentials-wrap .banner .marquee > div {
    animation-duration: var(--home-marquee-duration, 32s);
}

/* Lower homepage trio: compact, content-led cards with equal outer heights. */
.about-area .container > .row:nth-child(2) .blog-service-profile-wrap {
    /* Bootstrap's .d-flex uses !important; override it so named tile areas
       actually control visual order and the intended card proportions. */
    display: grid !important;
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
    grid-template-areas: "portfolio blog social";
    gap: 20px;
}
.about-area .container > .row:nth-child(2) .blog-service-profile-wrap > * {
    min-width: 0;
    height: 320px;
}
.home-trio-tile-portfolio { grid-area: portfolio; }
.home-trio-tile-blog { grid-area: blog; }
.home-trio-tile-social { grid-area: social; }
.home-trio-portfolio-card,
.home-trio-blog-card,
.home-trio-social-card {
    position: relative;
    display: flex !important;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: flex-start !important;
    width: 100%;
    height: 100%;
    min-width: 0;
    margin: 0;
    padding: 26px;
    overflow: hidden;
}
.home-trio-heading {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--plx-border);
    color: var(--plx-text, #fff);
    font-size: 18px;
    line-height: 1.3;
}
.home-trio-heading > i { flex: 0 0 auto; color: var(--primary_color); font-size: 20px; }
.home-trio-heading > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-trio-heading > i:last-child { flex: 0 0 28px; margin-left: auto; color: var(--plx-text, #fff); font-size: 22px; line-height: 1; text-align: right; opacity: .48; }
.home-trio-portfolio-preview {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    min-height: 0;
    margin-top: auto;
    margin-bottom: auto;
}
.home-trio-portfolio-preview > img {
    display: block;
    width: 112px;
    height: 150px;
    border-radius: 17px;
    object-fit: cover;
}
.home-trio-portfolio-preview > div { min-width: 0; }
.home-trio-eyebrow { display: block; margin-bottom: 8px; color: var(--primary_color); font-size: 11px; letter-spacing: .12em; line-height: 1.4; }
.home-trio-portfolio-preview h2,
.home-trio-blog-preview h2,
.home-trio-portfolio-empty h2 { margin: 0 0 10px; color: var(--plx-text, #fff); font-size: 18px; font-weight: 550; line-height: 1.35; overflow-wrap: anywhere; }
.home-trio-portfolio-preview p,
.home-trio-blog-preview p,
.home-trio-portfolio-empty p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--plx-muted); font-size: 13px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.home-trio-portfolio-empty,
.home-trio-blog-preview { position: relative; z-index: 1; min-width: 0; margin-block: auto; }
.home-trio-blog-preview h2 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-trio-social-card { justify-content: center !important; padding: 24px; }
.home-trio-social-card > .bg-img {
    /* The shared shadow-box rule gives every child z-index: 2. Keep this
       decorative image behind the social links so it cannot eat pointer input. */
    z-index: 0;
    pointer-events: none;
}
.home-trio-social-heading { position: relative; z-index: 1; margin-bottom: 14px; color: var(--plx-muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.home-trio-social-list {
    position: relative;
    z-index: 3;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.home-trio-social-list:before,
.home-trio-social-list:after,
.home-trio-social-list a:before { display: none !important; }
.home-trio-social-list a {
    display: flex !important;
    position: relative;
    z-index: 4;
    align-items: center;
    justify-content: flex-start !important;
    gap: 12px;
    width: 100% !important;
    height: 44px !important;
    padding: 0 14px;
    border: 1px solid var(--plx-border) !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.035);
    color: var(--plx-text, #fff) !important;
    text-decoration: none;
}
.home-trio-social-list a:hover { background: rgba(255,255,255,.09); }
.home-trio-social-list a i { flex: 0 0 20px; font-size: 18px !important; }
.home-trio-social-list a span { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.home-trio-social-empty { position: relative; z-index: 1; width: 100%; }
.home-trio-social-empty p { margin: 0 0 14px; color: var(--plx-muted); font-size: 13px; line-height: 1.5; }
.home-trio-social-empty a { display: inline-flex; align-items: center; gap: 8px; color: var(--plx-text, #fff); font-size: 13px; text-decoration: none; }
.home-trio-social-empty a:hover { color: var(--primary_color); }
@media (max-width: 900px) {
    .about-area .container > .row:nth-child(2) .blog-service-profile-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "portfolio blog" "social social"; }
    .home-trio-social-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Keep hover contrast consistent with the active theme throughout the storefront. */
html[data-theme='dark'] {
    --plx-hover-surface: #ededed;
    --plx-hover-ink: #111111;
}
html[data-theme='light'] {
    --plx-hover-surface: #171717;
    --plx-hover-ink: #ffffff;
}
html[data-theme='dark'] .theme-btn:hover,
html[data-theme='dark'] .hermes-btn:hover,
html[data-theme='dark'] .info-box .inner-profile-icons a:hover,
html[data-theme='dark'] .credential-area .credential-sidebar .social-links li a:hover,
html[data-theme='dark'] .contact-area .social-links li a:hover,
html[data-theme='dark'] .project-details-wrap .big-btn:hover,
html[data-theme='dark'] .home-trio-social-list a:hover,
html[data-theme='dark'] .portfolio-profile-socials a:hover {
    background-color: var(--plx-hover-surface);
    color: var(--plx-hover-ink) !important;
}
html[data-theme='light'] .theme-btn:hover,
html[data-theme='light'] .hermes-btn:hover,
html[data-theme='light'] .info-box .inner-profile-icons a:hover,
html[data-theme='light'] .credential-area .credential-sidebar .social-links li a:hover,
html[data-theme='light'] .contact-area .social-links li a:hover,
html[data-theme='light'] .project-details-wrap .big-btn:hover,
html[data-theme='light'] .home-trio-social-list a:hover,
html[data-theme='light'] .portfolio-profile-socials a:hover {
    background-color: var(--plx-hover-surface);
    color: var(--plx-hover-ink) !important;
}
.home-trio-social-list a:focus-visible,
.portfolio-profile-socials a:focus-visible,
.info-box .inner-profile-icons a:focus-visible,
.contact-area .social-links li a:focus-visible,
.credential-area .credential-sidebar .social-links li a:focus-visible {
    outline: 2px solid var(--primary_color);
    outline-offset: 3px;
}

/* Portfolio index and case studies use the site's existing dark/light tokens. */
.portfolio-page { padding: 44px 0 84px; }
.portfolio-breadcrumb { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:22px; color:var(--plx-muted); font-size:12px; }
.portfolio-breadcrumb a { color:inherit; text-decoration:none; }
.portfolio-breadcrumb a:hover { color:var(--primary_color); }
.portfolio-list-layout { display:grid; grid-template-columns:minmax(260px, 320px) minmax(0,1fr); align-items:start; gap:26px; }
.portfolio-profile-card { position:sticky; top:24px; display:flex; flex-direction:column; align-items:center; box-sizing:border-box; min-width:0; padding:34px 28px 28px; border:1px solid var(--plx-border); border-radius:28px; background:var(--plx-surface); text-align:center; }
.portfolio-profile-avatar { display:grid; width:152px; height:152px; margin:0 auto 22px; place-items:center; border:12px solid color-mix(in srgb,var(--plx-bg) 82%,#c8d6ea); border-radius:50%; overflow:hidden; background:var(--plx-bg); }
.portfolio-profile-avatar img { display:block; width:100%; height:100%; border-radius:50%; object-fit:cover; }
.portfolio-profile-role { margin-bottom:6px; color:var(--primary_color); font-size:12px; letter-spacing:.08em; text-transform:uppercase; }
.portfolio-profile-card h1,.portfolio-profile-card h2 { margin:0 0 12px; color:var(--plx-text,#fff); font-size:26px; font-weight:600; line-height:1.2; }
.portfolio-profile-card > p { max-width:340px; margin:0; color:var(--plx-muted); font-size:14px; line-height:1.65; }
.portfolio-profile-socials { display:grid; gap:8px; width:100%; margin-top:24px; }
.portfolio-profile-socials a { display:flex; align-items:center; gap:10px; min-width:0; padding:11px 13px; border:1px solid var(--plx-border); border-radius:13px; background:rgba(255,255,255,.035); color:var(--plx-text,#fff); font-size:13px; text-align:left; text-decoration:none; }
.portfolio-profile-socials a > i:first-child { color:var(--primary_color); font-size:17px; }
.portfolio-profile-socials a > span { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.portfolio-profile-socials a > i:last-child { color:var(--plx-muted); font-size:15px; }
.portfolio-profile-socials a:hover { background:rgba(255,255,255,.075); }
.portfolio-profile-cta { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:46px; margin-top:24px; padding:0 22px; border:1px solid #323232; border-radius:15px; background:#323232; color:#fff !important; font-size:14px; font-weight:650; text-decoration:none; transition:transform .18s ease,filter .18s ease; }
.portfolio-profile-cta:hover { background:#414141; filter:none; transform:translateY(-1px); }
.portfolio-profile-card > .portfolio-profile-cta { width:100%; }
.portfolio-list-content { min-width:0; }
.portfolio-list-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin:0 0 20px; }
.portfolio-eyebrow { display:block; margin-bottom:8px; color:var(--primary_color); font-size:11px; font-weight:650; letter-spacing:.14em; line-height:1.4; }
.portfolio-list-heading h2,.portfolio-section-heading h2 { margin:0; color:var(--plx-text,#fff); font-size:clamp(26px,3vw,38px); font-weight:600; line-height:1.16; }
.portfolio-list-heading p { max-width:560px; margin:8px 0 0; color:var(--plx-muted); font-size:14px; line-height:1.55; }
.portfolio-count { flex:0 0 auto; padding:8px 12px; border:1px solid var(--plx-border); border-radius:999px; color:var(--plx-muted); font-size:12px; }
.portfolio-filter-form { display:flex; gap:9px; flex-wrap:wrap; margin-bottom:18px; }
.portfolio-search { display:flex; flex:1 1 240px; align-items:center; gap:9px; min-width:0; height:44px; padding:0 13px; border:1px solid var(--plx-border); border-radius:13px; background:var(--plx-surface); color:var(--plx-muted); }
.portfolio-search input { width:100%; min-width:0; border:0; outline:0; background:transparent; color:var(--plx-text,#fff); font:inherit; font-size:13px; }
.portfolio-filter-form select,.portfolio-filter-submit,.portfolio-filter-reset { min-height:44px; padding:0 14px; border:1px solid var(--plx-border); border-radius:13px; background:var(--plx-surface); color:var(--plx-text,#fff); font:inherit; font-size:13px; }
.portfolio-filter-submit { background:#323232; font-weight:600; cursor:pointer; }
.portfolio-filter-reset { display:flex; align-items:center; color:var(--plx-muted); text-decoration:none; }
.portfolio-project-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.portfolio-project-card { min-width:0; overflow:hidden; border:1px solid var(--plx-border); border-radius:22px; background:var(--plx-surface); transition:transform .2s ease,border-color .2s ease; }
.portfolio-project-card:hover { transform:translateY(-3px); border-color:color-mix(in srgb,var(--primary_color) 45%,var(--plx-border)); }
.portfolio-project-link { display:flex; height:100%; flex-direction:column; color:inherit; text-decoration:none; }
.portfolio-project-cover { position:relative; overflow:hidden; aspect-ratio:1.62; background:var(--plx-bg); }
.portfolio-project-cover img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.portfolio-project-card:hover .portfolio-project-cover img { transform:scale(1.035); }
.portfolio-project-open { position:absolute; right:14px; bottom:14px; display:grid; width:38px; height:38px; place-items:center; border:1px solid rgba(255,255,255,.22); border-radius:50%; background:rgba(15,15,15,.72); color:#fff; font-size:18px; }
.portfolio-project-copy { display:flex; flex:1; flex-direction:column; min-width:0; padding:18px 20px 20px; }
.portfolio-project-meta { display:flex; justify-content:space-between; gap:10px; margin-bottom:9px; color:var(--primary_color); font-size:11px; letter-spacing:.06em; text-transform:uppercase; }
.portfolio-project-copy h3 { display:-webkit-box; margin:0 0 9px; overflow:hidden; color:var(--plx-text,#fff); font-size:18px; font-weight:580; line-height:1.35; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.portfolio-project-copy p { display:-webkit-box; margin:0; overflow:hidden; color:var(--plx-muted); font-size:13px; line-height:1.6; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
.portfolio-project-more { display:flex; align-items:center; gap:7px; margin-top:auto; padding-top:16px; color:var(--plx-text,#fff); font-size:12px; font-weight:600; }
.portfolio-project-more i { color:var(--primary_color); }
.portfolio-empty { display:grid; justify-items:center; padding:52px 24px; border:1px solid var(--plx-border); border-radius:22px; background:var(--plx-surface); text-align:center; }
.portfolio-empty > i { color:var(--primary_color); font-size:28px; }
.portfolio-empty h3 { margin:14px 0 7px; color:var(--plx-text,#fff); font-size:20px; }
.portfolio-empty p { max-width:480px; margin:0; color:var(--plx-muted); font-size:13px; line-height:1.6; }
.portfolio-detail-layout { display:grid; grid-template-columns:minmax(250px,290px) minmax(0,1fr); align-items:start; gap:24px; }
.portfolio-detail-aside { position:sticky; top:24px; display:grid; gap:16px; min-width:0; }
.portfolio-detail-aside .portfolio-profile-card { position:static; padding:26px 22px 22px; }
.portfolio-detail-aside .portfolio-profile-avatar { width:122px; height:122px; margin-bottom:16px; border-width:9px; }
.portfolio-detail-aside .portfolio-profile-card h2 { font-size:23px; }
.portfolio-detail-aside .portfolio-profile-card > p { font-size:13px; }
.portfolio-detail-aside .portfolio-profile-socials { margin-top:16px; }
.portfolio-detail-aside .portfolio-profile-cta { min-height:42px; margin-top:18px; font-size:12px; }
.portfolio-detail-side-card { padding:20px; border:1px solid var(--plx-border); border-radius:20px; background:var(--plx-surface); }
.portfolio-tech-list { display:flex; flex-wrap:wrap; gap:7px; }
.portfolio-tech-list span { padding:7px 10px; border:1px solid var(--plx-border); border-radius:999px; color:var(--plx-muted); font-size:11px; }
.portfolio-case-study { display:grid; gap:16px; min-width:0; }
.portfolio-case-cover { overflow:hidden; height:clamp(260px,38vw,460px); border:1px solid var(--plx-border); border-radius:24px; background:var(--plx-surface); }
.portfolio-case-cover img { display:block; width:100%; height:100%; object-fit:cover; }
.portfolio-case-intro,.portfolio-case-section,.portfolio-case-facts { min-width:0; padding:26px 28px; border:1px solid var(--plx-border); border-radius:22px; background:var(--plx-surface); }
.portfolio-case-topline { display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--plx-muted); font-size:12px; }
.portfolio-case-topline .portfolio-eyebrow { margin:0; }
.portfolio-case-subtitle { margin:16px 0 5px; color:var(--primary_color); font-size:13px; }
.portfolio-case-intro h1 { margin:4px 0 10px; color:var(--plx-text,#fff); font-size:clamp(27px,4vw,44px); font-weight:620; letter-spacing:-.025em; line-height:1.12; overflow-wrap:anywhere; }
.portfolio-case-summary { max-width:760px; margin:0; color:var(--plx-muted); font-size:15px; line-height:1.7; }
.portfolio-case-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.portfolio-case-actions .portfolio-profile-cta { margin-top:20px; }
.portfolio-secondary-link { display:inline-flex; align-items:center; gap:7px; margin-top:20px; color:var(--plx-muted); font-size:13px; text-decoration:none; }
.portfolio-secondary-link:hover { color:var(--primary_color); }
.portfolio-case-section > h2 { margin:0 0 16px; color:var(--plx-text,#fff); font-size:22px; }
.portfolio-case-section .hermes-prose { color:var(--plx-muted); font-size:14px; line-height:1.8; }
.portfolio-case-section .hermes-prose > :last-child { margin-bottom:0; }
.portfolio-case-facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:14px; }
.portfolio-case-facts > div { display:grid; gap:5px; padding:4px 0; }
.portfolio-case-facts span { color:var(--plx-muted); font-size:11px; }
.portfolio-case-facts strong { color:var(--plx-text,#fff); font-size:13px; font-weight:550; overflow-wrap:anywhere; }
.portfolio-gallery-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.portfolio-gallery-grid figure { min-width:0; margin:0; overflow:hidden; aspect-ratio:1.4; border:1px solid var(--plx-border); border-radius:16px; background:var(--plx-bg); }
.portfolio-gallery-grid img { display:block; width:100%; height:100%; object-fit:cover; }
.portfolio-related { padding-top:18px; }
.portfolio-section-heading { margin-bottom:14px; }
.portfolio-section-heading h2 { font-size:24px; }
.portfolio-related-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.portfolio-related-card { display:grid; grid-template-columns:86px minmax(0,1fr); align-items:center; gap:12px; min-width:0; padding:10px; border:1px solid var(--plx-border); border-radius:16px; background:var(--plx-surface); color:var(--plx-text,#fff); text-decoration:none; }
.portfolio-related-card > img { width:86px; height:66px; border-radius:10px; object-fit:cover; }
.portfolio-related-card > span { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12px; font-weight:600; }
.portfolio-related-card > span i { flex:0 0 auto; color:var(--primary_color); }
@media(max-width:1000px) {
    .portfolio-list-layout { grid-template-columns:minmax(230px,270px) minmax(0,1fr); gap:18px; }
    .portfolio-project-grid { grid-template-columns:minmax(0,1fr); }
    .portfolio-detail-layout { grid-template-columns:minmax(220px,260px) minmax(0,1fr); gap:16px; }
}
@media(max-width:760px) {
    .portfolio-page { padding:30px 0 56px; }
    .portfolio-list-layout,.portfolio-detail-layout { grid-template-columns:minmax(0,1fr); }
    .portfolio-profile-card { position:static; display:grid; grid-template-columns:112px minmax(0,1fr); justify-items:start; column-gap:18px; padding:20px; text-align:left; }
    .portfolio-profile-avatar { grid-row:1 / span 4; width:112px; height:112px; margin:0; border-width:8px; }
    .portfolio-profile-role { align-self:end; margin:0 0 4px; font-size:10px; }
    .portfolio-profile-card h1,.portfolio-profile-card h2 { margin:0 0 5px; font-size:22px; }
    .portfolio-profile-card > p { grid-column:2; font-size:12px; line-height:1.5; }
    .portfolio-profile-socials,.portfolio-profile-card > .portfolio-profile-cta { grid-column:1/-1; }
    .portfolio-profile-socials { grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); }
    .portfolio-profile-card > .portfolio-profile-cta { width:auto; justify-self:stretch; }
    .portfolio-project-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
    .portfolio-project-copy { padding:14px; }
    .portfolio-project-copy h3 { font-size:15px; }
    .portfolio-project-copy p { font-size:12px; -webkit-line-clamp:2; }
    .portfolio-detail-aside { position:static; }
    .portfolio-detail-aside .portfolio-profile-card { display:grid; }
}
@media(max-width:520px) {
    .portfolio-list-heading { align-items:flex-start; }
    .portfolio-list-heading p { font-size:12px; }
    .portfolio-count { padding:7px 9px; font-size:11px; }
    .portfolio-filter-form { display:grid; grid-template-columns:minmax(0,1fr) auto; }
    .portfolio-search { grid-column:1/-1; }
    .portfolio-filter-form select { width:100%; }
    .portfolio-project-grid,.portfolio-gallery-grid,.portfolio-related-grid { grid-template-columns:minmax(0,1fr); }
    .portfolio-project-cover { aspect-ratio:1.6; }
    .portfolio-profile-card { grid-template-columns:82px minmax(0,1fr); gap:12px; padding:16px; }
    .portfolio-profile-avatar { width:82px; height:82px; border-width:6px; }
    .portfolio-profile-role { font-size:9px; }
    .portfolio-profile-card h1,.portfolio-profile-card h2 { font-size:19px; }
    .portfolio-case-cover { height:250px; border-radius:19px; }
    .portfolio-case-intro,.portfolio-case-section,.portfolio-case-facts { padding:20px; border-radius:18px; }
    .portfolio-case-summary { font-size:13px; }
    .portfolio-case-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 585px) {
    .about-area .container > .row:nth-child(2) .blog-service-profile-wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "portfolio" "blog" "social"; gap: 12px; }
    .about-area .container > .row:nth-child(2) .blog-service-profile-wrap > *,
    .about-area .container > .row:nth-child(2) .blog-service-profile-wrap > :last-child { grid-column: auto; height: 250px; }
    .home-trio-portfolio-card,
    .home-trio-blog-card { padding: 20px; }
    .home-trio-social-card { height: auto !important; min-height: 250px; padding: 20px; }
    .home-trio-portfolio-preview { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
    .home-trio-portfolio-preview > img { width: 88px; height: 124px; }
    .home-trio-portfolio-preview h2,
    .home-trio-blog-preview h2,
    .home-trio-portfolio-empty h2 { font-size: 16px; }
    .home-trio-social-list { grid-template-columns: minmax(0, 1fr) !important; }
}


/* Keep the owner signature legible without letting its source canvas stretch the CV card. */
.about-area .about-crenditials-box > img.about-cv-signature {
    display: block;
    position: relative;
    width: min(100%, 224px);
    height: 72px;
    margin: 8px auto 16px;
    object-fit: contain;
}
html[data-theme='light'] .about-area .about-cv-signature { filter: invert(1); }

.info-box .about-btn > .iconoir-arrow-right,
.projects-area .project-item .project-btn > .iconoir-arrow-right {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--plx-text, #fff);
    font-size: 27px;
    line-height: 1;
}

/* Public catalogue refresh: keep the dark Hermes surfaces while making every
   control and product readable from desktop through narrow mobile screens. */
.catalog-page { padding: 48px 0 76px; }
.catalog-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:24px; }
.catalog-eyebrow { display:block; margin-bottom:8px; color:var(--primary_color); font-size:11px; font-weight:650; letter-spacing:.14em; }
.catalog-heading h1 { margin:0; color:var(--plx-text,#fff); font-size:clamp(30px,4vw,44px); font-weight:600; letter-spacing:-.035em; line-height:1.1; }
.catalog-heading p { margin:9px 0 0; color:var(--plx-muted); font-size:14px; line-height:1.6; }
.catalog-count { flex:0 0 auto; padding:9px 13px; border:1px solid var(--plx-border); border-radius:999px; color:var(--plx-muted); font-size:12px; }
.catalog-filters { display:grid; grid-template-columns:minmax(220px,1.5fr) repeat(2,minmax(140px,.8fr)) minmax(160px,.9fr) minmax(170px,.95fr) auto; align-items:end; gap:10px; margin:0 0 22px; padding:14px; border:1px solid var(--plx-border); border-radius:20px; background:linear-gradient(120deg,rgba(255,255,255,.045),rgba(255,255,255,.01)),var(--plx-surface); }
.catalog-search,.catalog-filter-field,.catalog-price-range { min-width:0; }
.catalog-search { display:flex; height:44px; align-items:center; gap:10px; padding:0 13px; border:1px solid var(--plx-border); border-radius:12px; background:rgba(255,255,255,.025); color:var(--plx-muted); }
.catalog-search:focus-within,.catalog-filter-field select:focus,.catalog-price-range input:focus { border-color:color-mix(in srgb,var(--primary_color) 62%,var(--plx-border)); outline:2px solid color-mix(in srgb,var(--primary_color) 16%,transparent); outline-offset:1px; }
.catalog-search input { width:100%; min-width:0; border:0; outline:0; background:transparent; color:var(--plx-text,#fff); font:inherit; font-size:13px; }
.catalog-filter-field { display:grid; gap:5px; color:var(--plx-muted); font-size:10px; }
.catalog-filter-field select { width:100%; min-width:0; height:44px; padding:0 11px; border:1px solid var(--plx-border); border-radius:12px; background:rgba(255,255,255,.025); color:var(--plx-text,#fff); font:inherit; font-size:12px; }
.catalog-filter-field select option { background:#191919; color:#fff; }
.catalog-price-range { display:flex; height:44px; align-items:center; gap:7px; padding:0 8px; border:1px solid var(--plx-border); border-radius:12px; color:var(--plx-muted); }
.catalog-price-range label { min-width:0; flex:1; }
.catalog-price-range input { width:100%; min-width:0; height:34px; padding:0 4px; border:1px solid transparent; border-radius:7px; outline:0; background:transparent; color:var(--plx-text,#fff); font:inherit; font-size:12px; }
.catalog-filter-submit { display:inline-flex; min-height:44px; align-items:center; justify-content:center; gap:8px; padding:0 16px; border:1px solid #373737; border-radius:12px; background:#303030; color:#fff; font:inherit; font-size:12px; font-weight:650; cursor:pointer; transition:background .18s ease,transform .18s ease; }
.catalog-filter-submit:hover { background:#414141; transform:translateY(-1px); }
.catalog-filter-reset { display:inline-flex; min-height:38px; align-items:center; justify-content:center; padding:0 12px; border:1px solid var(--plx-border); border-radius:11px; color:var(--plx-muted); font-size:12px; text-decoration:none; }
.catalog-filter-reset:hover { color:var(--plx-text,#fff); }
.catalog-product-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:stretch; gap:18px; }
.catalog-product-card { min-width:0; overflow:hidden; border:1px solid var(--plx-border); border-radius:22px; background:linear-gradient(145deg,rgba(255,255,255,.035),transparent 50%),var(--plx-surface); transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.catalog-product-card:hover { transform:translateY(-3px); border-color:color-mix(in srgb,var(--primary_color) 38%,var(--plx-border)); box-shadow:0 18px 44px rgba(0,0,0,.18); }
.catalog-product-link { display:flex; height:100%; flex-direction:column; color:inherit; text-decoration:none; }
.catalog-product-cover { position:relative; overflow:hidden; aspect-ratio:1.48; background:#111; }
.catalog-product-cover::after { position:absolute; inset:45% 0 0; background:linear-gradient(transparent,rgba(0,0,0,.24)); content:""; pointer-events:none; }
.catalog-product-cover > img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.catalog-product-card:hover .catalog-product-cover > img { transform:scale(1.035); }
.catalog-product-open { position:absolute; z-index:1; right:13px; bottom:13px; display:grid; width:38px; height:38px; place-items:center; border:1px solid rgba(255,255,255,.27); border-radius:50%; background:rgba(14,14,14,.72); color:#fff; font-size:17px; backdrop-filter:blur(8px); }
.catalog-stock-badge { position:absolute; z-index:1; top:13px; left:13px; padding:6px 9px; border:1px solid rgba(255,255,255,.2); border-radius:999px; background:rgba(14,14,14,.74); color:#fff; font-size:10px; }
.catalog-product-copy { display:flex; flex:1; flex-direction:column; min-width:0; padding:17px 18px 16px; }
.catalog-product-type { margin-bottom:7px; color:var(--primary_color); font-size:10px; font-weight:600; letter-spacing:.08em; line-height:1.4; text-transform:uppercase; }
.catalog-product-copy h2 { display:-webkit-box; margin:0 0 8px; overflow:hidden; color:var(--plx-text,#fff); font-size:18px; font-weight:580; line-height:1.32; overflow-wrap:anywhere; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.catalog-product-copy > p { display:-webkit-box; min-height:40px; margin:0; overflow:hidden; color:var(--plx-muted); font-size:12px; line-height:1.65; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.catalog-product-bottom { display:flex; align-items:flex-end; justify-content:space-between; gap:10px; margin-top:auto; padding-top:16px; }
.catalog-product-price { display:flex; min-width:0; align-items:baseline; flex-wrap:wrap; gap:7px; }
.catalog-product-price strong { color:var(--plx-text,#fff); font-size:15px; font-weight:650; }
.catalog-product-price s { color:var(--plx-muted); font-size:11px; }
.catalog-sale-badge { padding:3px 6px; border:1px solid rgba(164,92,255,.3); border-radius:999px; color:#d5aaff; font-size:10px; }
.catalog-product-cta { display:inline-flex; flex:0 0 auto; align-items:center; gap:6px; color:var(--plx-muted); font-size:11px; font-weight:600; }
.catalog-product-cta i { color:var(--primary_color); font-size:15px; transition:transform .18s ease; }
.catalog-product-card:hover .catalog-product-cta i { transform:translateX(3px); }
.catalog-empty { display:grid; justify-items:center; gap:8px; padding:48px 20px; border:1px solid var(--plx-border); border-radius:22px; background:var(--plx-surface); text-align:center; }
.catalog-empty > i { color:var(--primary_color); font-size:27px; }
.catalog-empty h2 { margin:5px 0 0; color:var(--plx-text,#fff); font-size:20px; }
.catalog-empty p { max-width:440px; margin:0; color:var(--plx-muted); font-size:13px; line-height:1.6; }
.catalog-result-count { margin:18px 0 0; color:var(--plx-muted); font-size:12px; text-align:center; }
html[data-theme='light'] .catalog-product-card { background:#fff; }
html[data-theme='light'] .catalog-filter-field select option { background:#fff; color:#111; }

/* Match the About profile frame and centered hierarchy on the portfolio page. */
.portfolio-profile-card { top:28px; padding:24px; border-radius:30px; background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.012)),var(--plx-surface); }
.portfolio-profile-avatar { width:156px; height:156px; margin-bottom:18px; border:0; border-radius:30px 0 30px 0; background:var(--plx-bg); }
.portfolio-profile-avatar img { border-radius:30px 0 30px 0; }
.portfolio-profile-role { margin-bottom:5px; font-size:11px; font-weight:600; }
.portfolio-profile-card h1,.portfolio-profile-card h2 { margin-bottom:7px; font-size:25px; }
.portfolio-profile-card > p { font-size:13px; line-height:1.55; }
.portfolio-profile-socials { gap:8px; margin-top:20px; }
.portfolio-profile-socials a { min-height:44px; border-radius:13px; }
.portfolio-profile-card > .portfolio-profile-cta { min-height:44px; margin-top:18px; border-radius:13px; }
.portfolio-project-card { background:linear-gradient(145deg,rgba(255,255,255,.035),transparent 45%),var(--plx-surface); }
.portfolio-project-cover { aspect-ratio:1.52; }
.portfolio-filter-form select:focus-visible,.portfolio-filter-submit:focus-visible,.portfolio-filter-reset:focus-visible,.catalog-filter-submit:focus-visible,.catalog-filter-reset:focus-visible,.catalog-product-link:focus-visible { outline:2px solid var(--primary_color); outline-offset:3px; }

/* The message field and submit action must always occupy separate rows. */
.contact-area .contact-form form { display:grid; gap:16px; }
.contact-area .contact-form form .input-group + .input-group { margin-top:0; }
.contact-area .contact-form form .input-group { display:block; min-width:0; }
.contact-area .contact-form form .input-group textarea { min-height:145px; height:145px; }
.contact-area .contact-form form [data-form-result]:not([style*="display: none"]) { margin:0; }

@media(max-width:1100px) {
    .catalog-filters { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:12px; }
    .catalog-search { grid-column:1/-1; }
    .catalog-price-range { grid-column:span 2; }
    .catalog-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:900px) {
    .catalog-filters { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .catalog-search { grid-column:1/-1; }
    .catalog-price-range { grid-column:span 2; }
}
@media(max-width:760px) {
    .catalog-page { padding:32px 0 54px; }
    .catalog-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .catalog-search { grid-column:1/-1; }
    .catalog-sort-field { grid-column:1/-1; }
    .catalog-price-range { min-width:0; }
    .catalog-filter-submit { width:100%; }
    .catalog-filter-reset { grid-column:1/-1; }
    .portfolio-list-layout { grid-template-columns:minmax(0,1fr); }
    .portfolio-profile-card { position:static; display:flex; align-items:center; padding:22px; text-align:center; }
    .portfolio-profile-avatar { grid-row:auto; width:144px; height:144px; margin:0 auto 15px; }
    .portfolio-profile-role { align-self:auto; margin-bottom:5px; }
    .portfolio-profile-card > p { grid-column:auto; max-width:420px; font-size:13px; }
    .portfolio-profile-socials,.portfolio-profile-card > .portfolio-profile-cta { grid-column:auto; }
    .portfolio-profile-socials { grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); }
    .portfolio-profile-card > .portfolio-profile-cta { width:min(280px,100%); justify-self:auto; }
    .portfolio-project-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:520px) {
    .catalog-heading { align-items:flex-start; gap:10px; }
    .catalog-heading p { max-width:250px; font-size:12px; }
    .catalog-count { padding:7px 9px; font-size:11px; }
    .catalog-filters { grid-template-columns:minmax(0,1fr); gap:9px; padding:12px; }
    .catalog-search,.catalog-sort-field,.catalog-filter-reset { grid-column:auto; }
    .catalog-product-grid,.portfolio-project-grid { grid-template-columns:minmax(0,1fr); gap:13px; }
    .catalog-product-cover { aspect-ratio:1.55; }
    .catalog-product-copy { padding:15px 16px; }
    .catalog-product-copy h2 { font-size:17px; }
    .portfolio-list-heading { flex-wrap:wrap; }
    .portfolio-count { margin-left:auto; }
    .portfolio-profile-card { padding:20px 16px; }
    .portfolio-profile-avatar { width:132px; height:132px; }
}

/* Product detail purchase controls keep their labels intact and usable at every width. */
.hermes-product-buy-actions { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:center; }
.hermes-product-quantity { grid-column:1/-1; width:136px; min-width:0; }
.hermes-product-buy-actions > .hermes-btn { min-width:0; padding-inline:10px; font-size:13px; white-space:nowrap; }
@media(max-width:920px) {
    .hermes-product-detail-layout { grid-template-columns:minmax(0,1fr); }
    .hermes-product-gallery-main { aspect-ratio:1.55; min-height:0; }
    .hermes-product-gallery-main > img { max-height:620px; }
    .hermes-product-buy-panel { position:static; }
}
@media(max-width:380px) {
    .hermes-product-buy-actions { grid-template-columns:minmax(0,1fr); }
    .hermes-product-quantity { grid-column:auto; }
}

.section-heading > .section-heading-icon {
    flex: 0 0 auto;
    color: var(--primary_color);
    font-size: 30px;
    line-height: 1;
}

.about-area .about-details .about-details-inner > .about-details-icon {
    position: absolute;
    top: 22px;
    left: 30px;
    color: var(--primary_color);
    font-size: 27px;
    line-height: 1;
}

.about-area .about-details .about-details-inner > .section-heading {
    position: absolute;
    top: 28px;
    left: 30px;
    right: 30px;
    display: block;
    width: auto;
    margin: 0;
    color: var(--plx-text, #fff);
    font-size: 36px;
    line-height: 1.1;
    text-align: center;
}
.about-area .about-me-wrap { align-items: stretch !important; }
.about-area .about-me-wrap > [data-aos] { min-width: 0; }
.about-area .about-profile-panel { display: flex; min-width: 0; flex-direction: column; align-items: stretch; }
.about-area .about-image-box {
    display: flex;
    height: 100%;
    flex: 1 1 auto;
    box-sizing: border-box;
    flex-direction: column;
}
.about-area .about-image-box .image-inner {
    display: grid;
    flex: 0 0 144px;
    width: 144px;
    height: 144px;
    align-self: center;
    min-height: 0;
    place-items: center;
    overflow: hidden;
    border-radius: 30px 0 30px 0;
    background: linear-gradient(90deg, #3C58E3 -15%, #C2EBFF 58%, #5AB5E2 97%);
}
.about-area .about-image-box .image-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px 0 30px 0;
}
.about-area .about-profile-content { width: min(100%, 300px); margin: 18px auto 0; text-align: center; }
.about-area .about-profile-role { margin: 0 0 5px; color: var(--primary_color); font-size: 11px; font-weight: 600; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
.about-area .about-profile-content h2 { margin: 0 0 7px; color: var(--plx-text, #fff); font-size: 25px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.about-area .about-profile-summary { margin: 0; color: var(--plx-muted); font-size: 13px; line-height: 1.55; }
.about-area .about-profile-cta { position: relative; display: flex; width: min(280px, 100%); min-height: 42px; box-sizing: border-box; align-items: center; justify-content: center; margin: auto auto 0; padding: 0 38px; border: 1px solid var(--plx-border); border-radius: 13px; color: var(--plx-text, #fff); font-size: 15px; font-weight: 600; text-align: center; text-decoration: none; transition: background .18s ease, border-color .18s ease; }
.about-area .about-profile-cta:hover { border-color: var(--primary_color); background: color-mix(in srgb, var(--primary_color) 12%, transparent); }
.about-area .about-profile-cta i { position: absolute; right: 14px; color: var(--plx-muted); font-size: 18px; }
.about-area .about-social-carousel {
    flex: 0 0 48px;
    align-self: center;
    width: min(280px, 100%);
    box-sizing: border-box;
}
.about-area .about-details .about-details-inner {
    height: 100%;
    box-sizing: border-box;
    text-align: center;
}
.about-area .about-details .about-details-inner > h1,
.about-area .about-details .about-details-inner > p,
.about-area .about-details .about-details-inner > .hermes-prose {
    text-align: center;
}
.about-area .about-details .about-details-inner > p,
.about-area .about-details .about-details-inner > .hermes-prose { margin-right: auto; margin-left: auto; }
@media (max-width: 810px) {
    .about-area .about-me-wrap { align-items: center !important; }
    .about-area .about-profile-panel { height: auto; }
    .about-area .about-image-box,
    .about-area .about-details .about-details-inner { height: auto; }
    .about-area .about-image-box .image-inner { display: grid; flex: 0 0 144px; width: 144px; height: 144px; align-self: center; overflow: hidden; }
    .about-area .about-image-box .image-inner img { height: 100%; }
}

/* Compact profile social carousel, styled like the homepage social links. */
.about-area .about-social-carousel {
    position: relative;
    display: flex;
    align-items: center;
    height: 48px;
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid var(--plx-border);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
}
.about-area .about-social-slide {
    position: absolute;
    inset: 0 45px 0 0;
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 0 13px;
    color: var(--plx-text, #fff);
    opacity: 0;
    pointer-events: none;
    text-decoration: none;
    transform: translateX(18px);
}
.about-area .about-social-slide > i:first-child { flex: 0 0 auto; color: var(--primary_color); font-size: 18px; }
.about-area .about-social-slide > span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    padding-left: 11px;
    border-left: 1px solid var(--plx-border);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.about-area .about-social-slide > .about-social-open { flex: 0 0 auto; color: var(--plx-muted); font-size: 15px; }
.about-area .about-social-slide.is-active {
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    animation: hermes-social-enter .65s cubic-bezier(.2,.7,.25,1) both;
}
.about-area .about-social-slide.is-leaving { z-index: 1; animation: hermes-social-leave .55s ease both; }
.about-area .about-social-slide:focus-visible,
.about-area .about-social-next:focus-visible { outline: 2px solid var(--primary_color); outline-offset: -3px; }
.about-area .about-social-next {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    display: grid;
    width: 44px;
    height: 100%;
    place-items: center;
    border: 0;
    border-left: 1px solid var(--plx-border);
    background: transparent;
    color: var(--plx-muted);
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}
.about-area .about-social-next:hover { color: var(--plx-text, #fff); background: rgba(255,255,255,.06); }
.about-area .about-social-next svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .25s ease;
}
.about-area .about-social-next:hover svg { transform: translateX(2px); }
@keyframes hermes-social-enter { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
@keyframes hermes-social-leave { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-18px); } }
@media (prefers-reduced-motion: reduce) {
    .about-area .about-social-slide.is-active { animation: none; }
    .about-area .about-social-next, .about-area .about-social-next svg { transition: none; }
}
@media (max-width: 767px) {
    .about-area .about-social-carousel { margin-top: 12px; }
}

@media (max-width: 767px) {
    .about-area .about-details .about-details-inner > .section-heading {
        top: 20px;
        left: 24px;
        right: 24px;
        font-size: 30px;
    }
}

.info-box.about-contact-box > .star-icon {
    color: var(--primary_color);
    font-size: 27px;
    line-height: 1;
}


.about-area .about-credentials-wrap .banner .marquee .iconoir-spark {
    display: inline-block;
    margin: 0 5px;
    vertical-align: middle;
}

/* Use the same subtle metallic surface on the homepage profile tile. */
.about-area .about-me-box {
    border: 1px solid var(--plx-border);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.012)), var(--plx-surface);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 18px 44px rgba(0,0,0,.14);
}
.about-area .about-me-box > .bg-img { opacity: .08; }

/* Portfolio case studies read as one editorial page, without stacked frame effects. */
.portfolio-detail-page .portfolio-detail-layout { grid-template-columns:minmax(0,270px) minmax(0,1fr); gap:28px; }
.portfolio-detail-page .shadow-box::before,
.portfolio-detail-page .shadow-box::after { display:none; }
.portfolio-page .shadow-box::before,
.portfolio-page .shadow-box::after { display:none; }
.portfolio-detail-page .portfolio-detail-aside { gap:14px; }
.portfolio-detail-page .portfolio-profile-card,
.portfolio-detail-page .portfolio-detail-side-card,
.portfolio-detail-page .portfolio-case-intro,
.portfolio-detail-page .portfolio-case-section,
.portfolio-detail-page .portfolio-case-facts { border:1px solid var(--plx-border); background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.008)),var(--plx-surface); box-shadow:0 14px 38px rgba(0,0,0,.12); }
.portfolio-detail-page .portfolio-case-study { gap:18px; }
.portfolio-detail-page .portfolio-case-cover { height:auto; aspect-ratio:1.72; border-radius:24px; }
.portfolio-detail-page .portfolio-case-intro { padding:clamp(22px,3vw,34px); }
.portfolio-detail-page .portfolio-case-facts { align-items:start; padding:18px 24px; }
.portfolio-detail-page .portfolio-case-tools { grid-column:1/-1; gap:9px; padding-top:12px; border-top:1px solid var(--plx-border); }
.portfolio-detail-page .portfolio-case-tools > span { color:var(--plx-muted); font-size:11px; }
.portfolio-detail-page .portfolio-tech-list { margin-top:8px; }
.portfolio-detail-page .portfolio-tech-list span { padding:7px 11px; background:rgba(255,255,255,.035); }
.portfolio-detail-page .portfolio-case-section { padding:24px clamp(20px,3vw,32px); }
.portfolio-detail-page .portfolio-gallery-grid { gap:16px; }
.portfolio-detail-page .portfolio-gallery-grid figure { border-radius:18px; }
@media(max-width:1000px){
    .portfolio-detail-page .portfolio-detail-layout { grid-template-columns:minmax(220px,250px) minmax(0,1fr); gap:18px; }
    .portfolio-detail-page .portfolio-case-cover { aspect-ratio:1.5; }
}
@media(max-width:760px){
    .portfolio-detail-page .portfolio-detail-layout { grid-template-columns:minmax(0,1fr); }
    .portfolio-detail-page .portfolio-detail-aside { grid-template-columns:minmax(0,1fr); }
    .portfolio-detail-page .portfolio-detail-aside .portfolio-profile-card { display:flex; flex-direction:column; align-items:center; max-width:none; text-align:center; }
    .portfolio-detail-page .portfolio-detail-aside .portfolio-profile-avatar { margin:0 auto 14px; }
    .portfolio-detail-page .portfolio-detail-aside .portfolio-profile-socials { grid-template-columns:minmax(0,1fr); width:100%; }
    .portfolio-detail-page .portfolio-detail-aside .portfolio-profile-card > p { max-width:420px; }
    .portfolio-detail-page .portfolio-detail-aside .portfolio-profile-card > .portfolio-profile-cta { width:min(320px,100%); }
    .portfolio-detail-page .portfolio-case-cover { aspect-ratio:1.45; }
    .portfolio-detail-page .portfolio-case-facts { grid-template-columns:repeat(2,minmax(0,1fr)); padding:16px; }
    .portfolio-detail-page .portfolio-case-tools { grid-column:1/-1; }
}
@media(max-width:520px){
    .portfolio-detail-page .portfolio-case-study { gap:13px; }
    .portfolio-detail-page .portfolio-case-cover { aspect-ratio:1.25; border-radius:18px; }
    .portfolio-detail-page .portfolio-case-intro,
    .portfolio-detail-page .portfolio-case-section { padding:18px 16px; border-radius:18px; }
    .portfolio-detail-page .portfolio-case-intro h1 { font-size:clamp(25px,8vw,34px); }
    .portfolio-detail-page .portfolio-case-summary { font-size:13px; }
    .portfolio-detail-page .portfolio-case-actions { align-items:stretch; flex-direction:column; gap:4px; }
    .portfolio-detail-page .portfolio-case-actions > a { justify-content:center; }
    .portfolio-detail-page .portfolio-case-facts { gap:12px; padding:14px; border-radius:18px; }
}
