/* Mary Rose Obsuna portfolio
   Palette taken from the design reference: blue #1976D2 and brown #A1622B, with white, cream and charcoal neutrals.
   Sharp corners everywhere, no decorative underlines. Oswald headings, DM Sans body. */

@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/oswald-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/oswald-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/oswald-latin-700-normal.woff2") format("woff2"); }

:root {
  --blue: #1976D2;
  --brown: #A1622B;
  --ink: #2B2B2B;
  --body: #4A4A4A;
  --muted: #6B6B6B;
  --line: #E4DED5;
  --line-soft: #EEE9E1;
  --cream: #F6F1EA;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --display: "Oswald", "DM Sans", "Arial Narrow", system-ui, sans-serif;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.06);
  --container: 1160px;
  --gutter: 16px;
  --section: 64px;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 32px; --section: 88px; } }

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--brown); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-left)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 16px; z-index: 200; }
.skip:focus { left: 16px; }

/* ---------- Top bar + header ---------- */
.topbar { background: #EEF4FB; color: var(--blue); font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.topbar p span { color: var(--ink); }
.topbar ul { list-style: none; padding: 0; display: flex; gap: 18px; align-items: center; }
.topbar li { display: inline-flex; align-items: center; gap: 6px; }
.topbar a { color: var(--blue); }
@media (max-width: 860px) { .topbar p { display: none; } .topbar-inner { justify-content: center; } .topbar li:nth-child(2) { display: none; } }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header.scrolled { box-shadow: var(--shadow-soft); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 44px; height: 44px; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: .03em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links > a:not(.nav-phone) { color: var(--ink); font-size: 14.5px; font-weight: 500; }
.nav-links > a:not(.nav-phone):hover, .nav-links > a.active { color: var(--blue); }
.nav-phone { color: var(--blue); font-weight: 700; font-size: 15px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-links .btn { margin-top: 14px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 420px) { .brand-name { display: none; } }
.scroll-progress { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border: 1px solid transparent;
  font: 500 15px/1.2 var(--sans); letter-spacing: .01em; text-transform: uppercase; cursor: pointer;
  transition: filter .2s ease, background .2s ease, color .2s ease;
}
.btn-blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-brown { background: var(--brown); color: #fff; border-color: var(--brown); }
.btn-white { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-white:hover { background: var(--ink); color: #fff; filter: none; }
.btn:hover { filter: brightness(.9); color: inherit; }
.btn-blue:hover, .btn-brown:hover { color: #fff; }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: 13px; font-weight: 700; }
.btn-block { width: 100%; font-weight: 700; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Hero: cozy virtual-assistant office ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; background: linear-gradient(90deg, rgba(255, 255, 255, .93) 0%, rgba(255, 255, 255, .82) 50%, rgba(255, 255, 255, .22) 100%), url("../img/office-bg.webp?v=3") center / cover no-repeat, #fff; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; color: var(--ink); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 56px; } .hero { padding: 80px 0 88px; } }
.hero-id { display: flex; align-items: center; gap: 18px; }
.hero-photo { width: 96px; height: 96px; object-fit: cover; flex: none; }
.hello { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--brown); line-height: 1.2; }
.name { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(34px, 5.2vw, 56px); line-height: 1.05; color: var(--ink); }
.role-banner { display: inline-block; margin-top: 18px; padding: 6px 16px; background: var(--brown); color: #fff; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: .05em; text-transform: uppercase; }
.hero-text { margin-top: 16px; font-size: 16px; line-height: 1.7; color: var(--body); max-width: 34em; }
.hero-list { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 8px; font-size: 15px; font-weight: 500; }
.hero-list li { display: flex; align-items: center; gap: 12px; }
.hero-list li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--blue); outline: 3px solid rgba(25, 118, 210, .35); }
.hero-callout { margin-top: 26px; font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; letter-spacing: .01em; text-transform: uppercase; color: var(--blue); max-width: 20em; }
.hero-cta-title { margin-top: 10px; font-weight: 700; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.hero-actions .btn { font-size: 13px; }

.va-form { display: grid; gap: 10px; align-content: start; }
.va-form input, .va-form select, .va-form textarea {
  width: 100%; padding: 12px 14px; font: 15px/1.4 var(--sans); color: #fff;
  background: rgba(0, 0, 0, .55); border: 1px solid #fff;
}
.va-form select option { color: var(--ink); background: #fff; }
.va-form input::placeholder, .va-form textarea::placeholder { color: #fff; opacity: .9; }
.va-form textarea { resize: vertical; min-height: 110px; }
.va-form input:focus, .va-form select:focus, .va-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; }
.va-form .invalid { border-color: #FF8A80; outline: 2px solid #FF8A80; }
.va-form [hidden], .field[hidden] { display: none !important; }
.hero-form { padding: 26px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .10); }
.hero-form input:not(.hp), .hero-form select, .hero-form textarea { color: var(--ink); background: #fff; border: 1px solid #B9B2A6; }
.hero-form input::placeholder, .hero-form textarea::placeholder { color: var(--muted); opacity: 1; }
.hero-form .form-status { color: var(--muted); }
.hero-form .form-status.error { color: #B42318; }
.hero-form .form-status.success { color: var(--blue); font-weight: 700; }
.hero-form .invalid { border-color: #B42318; outline: 2px solid #B42318; }

/* Mairetini-style hero decoration: soft blue blur and dashed orbit rings */
.hero::before { content: ""; position: absolute; z-index: 0; right: -140px; top: -160px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(25, 118, 210, .22), transparent 66%); filter: blur(28px); animation: breathe 7s ease-in-out infinite; pointer-events: none; }
.hero::after { content: ""; position: absolute; z-index: 0; right: -190px; top: -210px; width: 660px; height: 660px; border-radius: 50%; border: 1.5px dashed rgba(25, 118, 210, .35); animation: spin 60s linear infinite; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Trust bar + quick actions */
.trust { background: transparent; padding-bottom: 36px; }
.trust-bar { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); background: var(--cream); max-width: 1100px; }
@media (min-width: 760px) { .trust-bar { grid-template-columns: repeat(4, 1fr); } }
.trust-bar li { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 10px; font-size: 15px; text-align: center; border-right: 1px solid var(--line); }
.trust-bar li:last-child { border-right: 0; }
.trust-bar li::before { content: ""; flex: none; width: 16px; height: 16px; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.quick-actions { display: grid; gap: 16px; margin-top: 32px; max-width: 1100px; }
@media (min-width: 760px) { .quick-actions { grid-template-columns: 1fr 1fr; } }
.quick-actions .btn { font-size: 17px; text-transform: uppercase; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; background: transparent; }
.section-alt { background: rgba(246, 241, 234, .78); }

/* Site-wide background: soft blue and brown glows with a faint dot grid, fixed behind every section */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 560px at 100% 0%, rgba(25, 118, 210, .14), transparent 65%),
    radial-gradient(760px 520px at 0% 100%, rgba(161, 98, 43, .14), transparent 65%),
    radial-gradient(520px 380px at 50% 55%, rgba(25, 118, 210, .05), transparent 70%),
    #FFFFFF; }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(25, 118, 210, .18) 1px, transparent 1.3px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .12) 70%, transparent);
          mask-image: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .12) 70%, transparent); }
body { position: relative; }
.eyebrow { color: var(--brown); font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.section-title { color: var(--ink); font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: .01em; margin-bottom: 32px; }
.section-intro { color: var(--body); font-size: 18px; margin: -16px 0 32px; max-width: 42em; }
.label { display: block; color: var(--ink); font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.panel { background: #fff; border: 1px solid var(--line); padding: 28px; }
.section-alt .panel, .section-alt .card, .section-alt .tool-card { background: #fff; }

/* About */
.about-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; } }
.about-text p { color: var(--body); }
.about-text p + p { margin-top: 16px; }
.about-sub { margin: 32px 0 12px; font-size: 18px; color: var(--ink); }
.about-text .quote { font-size: 20px; line-height: 1.6; color: var(--ink); font-weight: 500; }
.facts { background: var(--cream); }
.facts dl { display: grid; }
.facts dl > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dl > div:first-child { padding-top: 0; }
.facts dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { display: flex; align-items: center; gap: 10px; color: var(--brown); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.facts dt::before { content: ""; flex: none; width: 16px; height: 16px; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.facts dd { margin: 0; padding-left: 26px; color: var(--ink); font-size: 18px; font-weight: 700; line-height: 1.35; text-align: left; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); padding: 24px 26px; }
.card h3 { color: var(--ink); font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.card-flat + .card-flat { margin-top: 14px; }
.org { color: var(--ink); margin-top: 2px; }
.place { color: var(--muted); font-size: 15px; }
.date { color: var(--brown); font-weight: 700; font-size: 15px; }
.note { margin-top: 16px; color: var(--muted); font-size: 15px; }
.two-col { display: grid; gap: 40px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; gap: 48px; } }
.two-col .section-title { font-size: clamp(24px, 3vw, 30px); margin-bottom: 20px; }
.two-col .card h3 { font-size: 18px; margin-bottom: 4px; }
.two-col .date { display: block; margin-top: 6px; }

/* ---------- Folders ---------- */
.folder-grid { --f-back: var(--blue); --f-select: var(--blue); --f-tint: rgba(25, 118, 210, .08); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
@media (min-width: 640px) { .folder-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.folder-grid--services { --f-back: var(--blue); --f-select: var(--blue); --f-tint: rgba(25, 118, 210, .08); }
@media (min-width: 640px) { .folder-grid--services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.folder-grid--skills { --f-back: var(--brown); --f-select: var(--brown); --f-tint: rgba(161, 98, 43, .09); }
.folder-grid--projects { --f-back: var(--blue); --f-select: var(--blue); --f-tint: rgba(25, 118, 210, .08); }
.folder-heading { margin: 0; font-size: inherit; font-weight: inherit; }
.folder-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; padding: 16px 10px 14px; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; text-align: center; transition: background-color .2s ease; }
.folder-btn:hover, .folder-btn[aria-expanded="true"] { background: var(--f-tint); }
.folder-icon { position: relative; display: block; width: 96px; height: 74px; transition: transform .25s ease; }
.folder-back { position: absolute; left: 0; right: 0; top: 8px; bottom: 0; background: var(--f-back); }
.folder-back::before { content: ""; position: absolute; left: 0; top: -8px; width: 40%; height: 10px; background: var(--f-back); }
.folder-paper { position: absolute; left: 10%; right: 10%; top: 13px; height: 40px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); transform: translateY(6px); transition: transform .3s ease; }
.folder-front { position: absolute; left: 0; right: 0; top: 17px; bottom: 0; background: var(--f-back); box-shadow: inset 0 0 0 100px rgba(255, 255, 255, .22); transform-origin: 50% 100%; transition: transform .3s ease; }
.folder-btn:hover .folder-icon { transform: translateY(-3px); }
.folder-btn:hover .folder-paper { transform: translateY(0); }
.folder-btn[aria-expanded="true"] .folder-paper { transform: translateY(-7px); }
.folder-btn[aria-expanded="true"] .folder-front { transform: perspective(260px) rotateX(-24deg); }
.folder-name { padding: 3px 10px; color: var(--ink); font-size: 15.5px; font-weight: 700; line-height: 1.35; transition: background-color .2s ease, color .2s ease; }
.folder-btn[aria-expanded="true"] .folder-name { background: var(--f-select); color: #fff; }
.folder-count { margin-top: -4px; color: var(--muted); font-size: 13px; }
.folder-content { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; text-align: center; font-size: 14.5px; color: var(--body); }
.folders-ready .folder-content { display: none; }
.folder-panel { position: relative; grid-column: 1 / -1; margin-top: -12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); animation: folder-open .3s ease both; }
.folder-panel::before { content: ""; position: absolute; top: -8px; left: var(--caret-x, 50%); width: 14px; height: 14px; margin-left: -7px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); transition: left .25s ease; }
@keyframes folder-open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.folder-panel-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line-soft); }
.folder-mini { position: relative; flex: none; width: 24px; height: 18px; }
.folder-mini::before { content: ""; position: absolute; left: 0; top: 0; width: 45%; height: 6px; background: var(--f-back); }
.folder-mini::after { content: ""; position: absolute; inset: 3px 0 0; background: var(--f-back); }
.folder-panel-title { color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.3; }
.folder-panel-count { color: var(--muted); font-size: 14px; white-space: nowrap; }
.folder-close { display: grid; place-items: center; flex: none; width: 40px; height: 40px; margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; }
.folder-close:hover { background: var(--cream); color: var(--ink); }
.folder-files { list-style: none; margin: 0; padding: 16px; display: grid; gap: 8px; }
@media (min-width: 640px) { .folder-files { grid-template-columns: repeat(2, 1fr); padding: 18px 22px 22px; } }
@media (min-width: 980px) { .folder-files { grid-template-columns: repeat(3, 1fr); } }
.folder-files li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--cream); border: 1px solid var(--line-soft); color: var(--ink); font-size: 15.5px; line-height: 1.4; animation: pop-in .35s ease both; animation-delay: calc(.08s + var(--i, 0) * 45ms); }
.folder-files svg { flex: none; color: var(--f-select); }
.folder-files li.is-link { padding: 0; }
.folder-link { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 14px 16px; color: inherit; transition: background-color .2s ease; }
.folder-link:hover { background: var(--f-tint); color: inherit; }
.folder-link svg { margin-top: 2px; }
.folder-link-text { display: grid; gap: 4px; flex: 1; }
.folder-link-title { color: var(--ink); font-weight: 700; }
.folder-link-desc { color: var(--body); font-size: 14.5px; line-height: 1.5; }
.folder-link-go { flex: none; color: var(--f-select); transition: transform .2s ease; }
.folder-link:hover .folder-link-go { transform: translateX(3px); }
@media (min-width: 640px) { .folder-grid--projects .folder-files { grid-template-columns: repeat(2, 1fr); } }
.folder-text { padding: 18px 22px 22px; color: var(--body); font-size: 17px; line-height: 1.6; max-width: 46em; animation: pop-in .35s ease both .08s; }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Sample work: browser-window previews */
.sample-grid { display: grid; gap: 28px 24px; }
@media (min-width: 640px) { .sample-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .sample-grid { grid-template-columns: repeat(3, 1fr); } }
.sample-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.sample-link:hover { color: inherit; }
.browser { border: 1px solid var(--line); background: #fff; overflow: hidden; box-shadow: var(--shadow-soft); transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease; }
.sample-link:hover .browser { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-4px); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 0 14px; height: 44px; background: var(--cream); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.browser-bar i { width: 10px; height: 10px; background: #D3CBBE; flex: none; }
.browser-bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; transition: transform .5s ease; }
.sample-link:hover .browser img { transform: scale(1.03); }
.sample-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 16px 2px 0; flex: 1; }
.sample-info h3 { color: var(--ink); font-size: 20px; font-weight: 700; line-height: 1.3; }
.sample-cat { color: var(--brown); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 2px 0 6px; }
.sample-info p:not(.sample-cat) { color: var(--body); font-size: 15px; line-height: 1.55; }
.sample-tag { flex: none; padding: 6px 12px; background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.sample-link:hover .sample-tag { background: var(--brown); }

/* Tools */
.tool-cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .tool-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .tool-cards { grid-template-columns: repeat(3, 1fr); } }
.tool-card { background: #fff; border: 1px solid var(--line); padding: 24px 26px; transition: box-shadow .25s ease, transform .25s ease; }
.tool-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tool-card-title { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.tool-icon { flex: none; color: var(--blue); }
.tool-card:nth-child(even) .tool-icon { color: var(--brown); }
.tool-level { margin-left: auto; padding: 2px 10px; background: var(--cream); color: var(--muted); font-size: 12px; font-weight: 700; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 5px 12px; background: var(--cream); color: var(--ink); font-size: 14px; }
.in .chips li { animation: pop-in .45s ease both; animation-delay: calc(.15s + var(--i, 0) * 45ms); }

/* Contact */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; } }
.contact-info .lead { font-size: 22px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.contact-list { list-style: none; padding: 6px 24px; margin-top: 24px; display: grid; background: var(--cream); }
.contact-list li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .label { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.contact-list a { font-weight: 700; color: var(--ink); }
.contact-list a:hover { color: var(--blue); }
.profiles { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.profile-link { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 700; transition: border-color .2s ease; }
.profile-link .icon { display: grid; place-items: center; width: 26px; height: 26px; background: var(--blue); color: #fff; }
.profile-link:hover { color: var(--blue); border-color: var(--blue); }
.contact-form { }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; font-size: 14px; }
.contact-form input:not(.hp), .contact-form select, .contact-form textarea { width: 100%; padding: 12px 14px; font: 16px/1.5 var(--sans); color: var(--ink); background: #fff; border: 1px solid #B9B2A6; }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.contact-form .invalid { border-color: #B42318; outline: 2px solid #B42318; }
.form-status { margin-top: 4px; font-size: 15px; color: var(--muted); min-height: 1.5em; }
.form-status.error { color: #B42318; }
.form-status.success { color: var(--blue); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #BDBDBD; padding: 28px 0; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #E8B98C; }
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; display: grid; place-items: center; width: 44px; height: 44px; background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brown); color: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Pop-up ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .6); overflow-y: auto; animation: fade .25s ease both; }
.modal[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-box { position: relative; width: 100%; max-width: 1080px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.modal-head h2 { flex: 1; color: var(--blue); font-size: clamp(17px, 2.4vw, 22px); font-weight: 700; line-height: 1.25; }
.modal-badge { padding: 8px 16px; background: #EEF4FB; color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.modal-close { display: grid; place-items: center; width: 40px; height: 40px; background: var(--cream); border: 0; color: var(--ink); cursor: pointer; flex: none; }
.modal-close:hover { background: var(--brown); color: #fff; }
.modal-body { display: grid; }
@media (min-width: 820px) { .modal-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.modal-form { padding: 24px; gap: 12px; }
.modal-lead { text-align: center; color: var(--blue); font-weight: 700; font-size: 17px; line-height: 1.5; margin-bottom: 6px; }
.modal-form input:not(.hp), .modal-form select, .modal-form textarea { color: var(--blue); background: #fff; border: 1px solid var(--blue); padding: 14px 16px; font-size: 16px; }
.modal-form input::placeholder, .modal-form textarea::placeholder { color: var(--blue); opacity: 1; }
.modal-form select option { color: var(--ink); }
.modal-form .form-status { color: var(--blue); text-align: center; }
.modal-form .form-status.error { color: #B42318; }
.modal-note { text-align: center; color: var(--blue); font-size: 13px; }
.modal-side { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--cream); }
.poster { flex: 1; min-width: 0; padding: 20px 22px 18px; }
.poster-title { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: .06em; text-transform: uppercase; color: var(--brown); text-align: center; margin-bottom: 14px; }
.poster-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.poster-grid li { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.poster-grid img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }
.poster-grid span { display: block; padding: 6px 8px; font-size: 12.5px; font-weight: 700; color: var(--blue); text-align: center; }
@media (max-width: 819px) { .poster { display: none; } }
.modal-call { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px; background: var(--brown); color: #fff; font-size: 22px; font-weight: 700; line-height: 1.2; }
.modal-mail { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 18px; background: var(--blue); color: #fff; font-size: 18px; font-weight: 700; line-height: 1.2; }
.modal-mail strong { display: block; font-size: 22px; }
.modal-mail .modal-call-icon { color: var(--blue); }
.modal-mail:hover { color: #fff; filter: brightness(.92); }
.modal-call:hover { color: #fff; filter: brightness(.92); }
.modal-call strong { display: block; font-size: 22px; }
.modal-call-icon { display: grid; place-items: center; width: 48px; height: 48px; background: #fff; color: var(--brown); flex: none; }
@media (max-width: 560px) { .modal-badge { display: none; } }
body.modal-open { overflow: hidden; }
