/* Portfolio-only visual refresh. Loaded after shared mobile styles. */
.arrow-svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.button > .arrow-icon,
.text-link > .arrow-icon,
html[data-theme=light] .button > .arrow-icon,
html[data-theme=light] .text-link > .arrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  line-height: 1;
}
.button {gap: 12px; min-height: 52px; padding: 14px 20px; border-radius: 12px}
.text-link {display: inline-flex; align-items: center; gap: 10px; min-height: 44px}
.nav-contact {align-items: center; gap: 9px}
.nav-contact .arrow-svg {width: 20px; height: 20px}
.mini-icon .arrow-svg {width: 21px; height: 21px; flex-basis: 21px}
.line-icon .arrow-svg {width: 24px; height: 24px; flex-basis: 24px}
.round-arrow,
html[data-theme=light] .round-arrow {display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: transparent; box-shadow: none}
footer > a:last-child {display: inline-flex; align-items: center; gap: 8px; min-height: 44px}
.button:hover > .arrow-icon,
.text-link:hover > .arrow-icon,
html[data-theme=light] .button:hover > .arrow-icon,
html[data-theme=light] .text-link:hover > .arrow-icon {background: transparent}

/* A real website preview, then image-first project and service cards. */
.project-grid, .bot-grid {align-items: stretch}
.project {display: flex; flex-direction: column; min-width: 0}
.project-info {display: flex; flex-direction: column; align-items: flex-start; flex: 1; min-width: 0}
.project-info > .text-link {margin-top: auto}
.project-featured {grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr)}
.project-featured .project-info {padding: clamp(26px, 3.5vw, 46px); justify-content: center}
.project-featured .project-info > .text-link {margin-top: 4px}
.project-featured h3 {font-size: clamp(28px, 3vw, 38px); letter-spacing: -1.2px; margin-top: 22px}
.project-featured p {max-width: 34ch}
.project-domain {display: block; margin-top: 16px; color: var(--muted); font-size: 12px; letter-spacing: .06em}
.tabrik-preview {display: flex; flex-direction: column; min-width: 0; align-self: stretch; background: #faf8f4; border-right: 1px solid var(--line); overflow: hidden}
.preview-browser {display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; padding: 10px 18px; color: #6f716e; background: #edece7; font-size: 11px; letter-spacing: .02em; line-height: 1}
.preview-browser .arrow-svg {width: 14px; height: 14px; flex-basis: 14px}
.browser-dots {display: flex; gap: 5px}
.browser-dots i {width: 6px; height: 6px; border-radius: 50%; background: #c0c1b9}
.tabrik-preview > img {display: block; width: 100%; height: auto; aspect-ratio: 1280 / 900; object-fit: cover; object-position: top; flex: 1; min-height: 0; transition: filter .25s}
.tabrik-preview:hover > img {filter: brightness(.97)}
.visual-service.bot-card {padding: 0; overflow: hidden; background: var(--panel, #15171b); border-color: var(--line); display: flex; align-items: stretch}
html[data-theme=light] .visual-service.bot-card {background: #fff}
.service-cover {display: block; position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: #15171b; border-bottom: 1px solid var(--line)}
.service-cover img {display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease}
.cover-caption {position: absolute; right: 14px; bottom: 12px; font-size: 9px; line-height: 1; letter-spacing: .12em; color: #fff; background: #0d0e11c9; padding: 7px 9px; border-radius: 5px}
.service-info {display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 28px; min-width: 0}
.service-info h3 {font-size: 28px; letter-spacing: -.8px; margin: 18px 0 12px}
.service-info p {margin: 0 0 24px; line-height: 1.75}
.service-info > .button {margin-top: auto; min-height: 48px; font-size: 14px; padding: 12px 17px}
.service-info > small {margin-top: 16px}
.service-cover:focus-visible, .tabrik-preview:focus-visible {outline-offset: -5px}
@media (hover:hover) and (pointer:fine) {.service-cover:hover img {transform: scale(1.025)}}
@media (max-width: 760px) {
  .hero.wrap::before {inset: 0}
  .project-featured {display: flex}
  .project-featured .project-info, .service-info {padding: 24px}
  .tabrik-preview {border-right: 0; border-bottom: 1px solid var(--line)}
  .tabrik-preview > img {flex: none; aspect-ratio: 1280 / 900}
  .project-featured h3 {font-size: 28px}
  .project-featured p {max-width: none}
  .service-info > .button {width: auto; max-width: 100%}
  .channel-card .round-arrow {display: none}
  .button:hover > .arrow-icon, .text-link:hover > .arrow-icon {transform: none}
}
@media (max-width: 380px) {
  .project-featured .project-info, .service-info {padding: 20px}
  .service-info .tags {gap: 6px; flex-wrap: wrap}
  .service-info .tags span {font-size: 9px; letter-spacing: .04em}
}
@media (prefers-reduced-motion:reduce) {
  .service-cover img, .tabrik-preview > img, .arrow-icon {transition: none !important; transform: none !important}
}

/* v2: recognizable channel icons and clearly outlined project links. */
.channel-icon {
  width: 48px; height: 48px; border-radius: 14px;
  color: #b6cdf0; background: #233043; border-color: #3c506a;
}
.channel-svg {display: block; width: 24px; height: 24px; flex: none}
.channel-card {display: grid; grid-template-columns: 48px minmax(0, 1fr) 36px; gap: 20px; padding: 28px}
.channel-card > div {min-width: 0}
.channel-card .round-arrow,
html[data-theme=light] .channel-card .round-arrow {
  position: static; display: grid; place-items: center; align-self: start;
  width: 36px; height: 36px; margin-top: 6px; border: 1px solid #465364;
  border-radius: 50%; background: #ffffff05; color: #c4d1e4;
  transform: none;
}
.channel-card .round-arrow .arrow-svg {width: 18px; height: 18px; flex-basis: 18px}
html[data-theme=light] .channel-icon {background: #e8eff8; border-color: #c5d2e3; color: #405f88}
html[data-theme=light] .channel-card .round-arrow {border-color: #bbc8d9; background: #fff; color: #405775}
.project-info > .text-link {
  min-height: 46px; max-width: 100%; padding: 11px 17px; gap: 12px;
  border: 1px solid #706044; border-radius: 11px; background: #f4bb4d08;
  color: var(--text); line-height: 1.4; font-weight: 600;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
html[data-theme=light] .project-info > .text-link {border-color: #b7a57f; background: #fffaf0}
.project-info > .text-link:focus-visible {outline: 2px solid var(--gold); outline-offset: 4px}
.project-info > .text-link:active {background: #f4bb4d24}
@media (hover:hover) {
  .project-info > .text-link:hover {border-color: var(--gold); background: #f4bb4d18; box-shadow: 0 0 0 1px #f4bb4d16}
  html[data-theme=light] .project-info > .text-link:hover {background: #fff0ca; border-color: #926000}
  .channel-card:hover .round-arrow {background: #f4bb4d12; border-color: var(--gold); color: var(--gold); transform: none}
}
@media (max-width: 760px) {
  .channel-card {grid-template-columns: 40px minmax(0, 1fr) 32px; gap: 12px; padding: 20px}
  .channel-icon {width: 40px; height: 40px; border-radius: 12px}
  .channel-svg {width: 22px; height: 22px}
  .channel-card .round-arrow, html[data-theme=light] .channel-card .round-arrow {width: 32px; height: 32px; margin-top: 4px}
}
@media (max-width: 480px) {
  .channel-card {grid-template-columns: 1fr 32px; gap: 16px}
  .channel-card > .channel-icon {grid-row: 1; grid-column: 1}
  .channel-card > .round-arrow {grid-row: 1; grid-column: 2}
  .channel-card > div {grid-row: 2; grid-column: 1 / -1}
}
@media (prefers-reduced-motion:reduce) {.project-info > .text-link {transition: none}}
