/* Homepage presentation, isolated from the client workspace. */
.homepage .hero { background: radial-gradient(ellipse at 90% 0%, #e6ebfc 0, transparent 55%); }
.homepage .hero-meta { display: flex; gap: 10px 24px; flex-wrap: wrap; max-width: 520px; line-height: 1.7; }
.homepage .hero-meta span::before { content: none; color: var(--blue); margin-right: 8px; }
.homepage .ticker-inner { gap: 20px 28px; justify-content: flex-start; }
.homepage .service { transition: border-color 160ms ease; }
.homepage .service:hover { border-top-color: var(--blue); }
.homepage .service > a { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; align-self: start; border-radius: 50%; background: #e9edf8; color: var(--blue); }
.homepage .service { grid-template-columns: 24px minmax(0, 1fr) 44px; }
.homepage .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.homepage .work-card { background: #fff; border: 1px solid #d5d9d1; border-radius: 18px; overflow: hidden; }
.homepage .work-visual { position: relative; height: 280px; border-radius: 0; padding: 58px 18px 24px; }
.homepage .visual-note { position: absolute; left: 14px; top: 15px; right: 14px; display: block; width: fit-content; max-width: calc(100% - 28px); background: #ffffffeb; color: #27332d; font-size: 10px; line-height: 1.5; border: 1px solid #ffffff88; border-radius: 5px; padding: 5px 8px; }
.homepage .browser-frame { width: 100%; transform: rotate(-3deg); }
.homepage .nibrax .browser-frame { transform: rotate(3deg); }
.homepage .browser-body { padding: 20px 16px; }
.homepage .preview-big { font-size: clamp(24px, 2.3vw, 34px); }
.homepage .preview-row i { height: 36px; }
.homepage .project-copy { padding: 26px 22px 18px; }
.homepage .project-category { font-size: 10px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
.homepage .project-copy h3 { font-size: 25px; letter-spacing: -.035em; line-height: 1.15; margin-bottom: 14px; overflow-wrap: anywhere; }
.homepage .project-copy > p:not(.project-category) { font-size: 13px; min-height: 66px; }
.homepage .project-tags { padding: 0; margin: 20px 0; list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.homepage .project-tags li { border: 1px solid #dce1ed; background: #f6f8fc; border-radius: 5px; padding: 5px 7px; font-size: 10px; line-height: 1.5; }
.homepage .project-detail { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; margin: 0 0 8px; }
.homepage .project-detail summary { cursor: pointer; font-size: 12px; font-weight: 600; padding: 16px 0; min-height: 48px; }
.homepage .project-detail p { font-size: 12px; margin: 0 0 14px; }
.homepage .project-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; min-height: 48px; font-size: 12px; color: var(--blue); font-weight: 600; }
.homepage .academic { background: #dfe6fb; }
.homepage .desktop-concept { width: 100%; border: 1px solid #b8c7eb; border-radius: 8px; background: #f8faff; box-shadow: 0 18px 30px #1834741a; transform: rotate(-2deg); overflow: hidden; }
.homepage .desktop-bar { display: flex; justify-content: space-between; gap: 8px; padding: 10px; border-bottom: 1px solid #d7e0f3; font-size: 7px; color: #53648a; letter-spacing: .07em; }
.homepage .desktop-body { padding: 14px 20px; text-align: center; }
.homepage .academic-symbol { width: 62px; height: 62px; border: 1px solid #b5c7f3; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 9px; font-size: 16px; color: var(--blue); background: #e7edfc; }
.homepage .desktop-body > span { font-size: 8px; color: #53648a; letter-spacing: .13em; }
.homepage .desktop-body small { display: block; font-size: 6px; letter-spacing: .09em; color: #53648a; margin-top: 8px; }
.homepage .concept-lines { display: flex; gap: 5px; margin: 12px 0; }
.homepage .concept-lines i { height: 5px; background: #cbd8f5; flex: 1; border-radius: 3px; }
.homepage .work-next { display: flex; justify-content: space-between; align-items: center; gap: 26px; margin-top: 36px; padding: 30px 0 0; border-top: 1px solid #cfd2cb; }
.homepage .work-next .eyebrow { margin-bottom: 9px; }
.homepage .work-next h3 { font-size: 27px; letter-spacing: -.03em; margin-bottom: 8px; }
.homepage .work-next p:not(.eyebrow) { font-size: 13px; margin-bottom: 0; }
.homepage .work-next > .btn { flex-shrink: 0; }
.homepage .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.homepage a:focus-visible, .homepage summary:focus-visible, .homepage button:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
@media (max-width: 1100px) { .homepage .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .homepage .work-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; } .homepage .work-card:last-child .work-visual { height: 100%; min-height: 300px; } }
@media (max-width: 760px) {
  .homepage .hero-meta { font-size: 11px; gap: 8px 16px; }
  .homepage .ticker-inner { font-size: 10px; gap: 14px 22px; }
  .homepage .work-grid { grid-template-columns: 1fr; }
  .homepage .work-card:last-child { grid-column: auto; display: block; }
  .homepage .work-card:last-child .work-visual { height: 280px; min-height: 0; }
  .homepage .project-copy > p:not(.project-category) { min-height: 0; }
  .homepage .work-next { align-items: stretch; flex-direction: column; }
  .homepage .service { gap: 10px; grid-template-columns: 22px minmax(0, 1fr) 44px; }
  .homepage .service h3 { font-size: 23px; }
  .homepage .form-grid input, .homepage .form-grid select, .homepage .form-grid textarea { font-size: 16px; }
  .homepage .nav-toggle, .homepage .site-nav a { min-height: 44px; }
  .homepage .contact-email { font-size: clamp(16px, 5.5vw, 22px); overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { .homepage .service { transition: none; } }

.homepage .work-visual.project-screenshot { background: #e4e9df; padding: 50px 12px 18px; }
.homepage .project-screenshot img { width: 100%; height: 100%; object-fit: contain; object-position: center; border-radius: 6px; }

.homepage .work-visual.nibrax.project-screenshot { background: #101c22; }

.homepage .work-visual.academic.project-screenshot { background: #dfe6fb; }

/* Clear enquiry expectations without adding more form fields. */
.homepage .enquiry-next { margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.homepage .enquiry-next h3 { font-size: 20px; margin-bottom: 14px; }
.homepage .enquiry-next ol { padding-left: 20px; margin: 0 0 16px; }
.homepage .enquiry-next li { margin-bottom: 12px; line-height: 1.7; }
.homepage .enquiry-intro { margin: 0; line-height: 1.7; font-size: 14px; }
.homepage #project-message-help { margin-top: -8px; }
.homepage .project-detail strong { color: var(--ink, #202823); }

/* Phone refinement: prioritise the brief, legible service copy and primary actions. */
@media screen and (max-width: 600px) {
  .homepage .hero { padding: 36px 0 32px; }
  .homepage .hero h1 { font-size: clamp(40px, 10.8vw, 60px); margin-bottom: 22px; }
  .homepage .hero-intro { font-size: 15px; line-height: 1.7; }
  .homepage .hero .actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .homepage .hero .actions .btn { width: 100%; justify-content: space-between; }
  .homepage .hero-meta { margin-top: 24px; font-size: 12px; }
  .homepage .hero-art { max-height: 280px; }
  .homepage .service { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 24px 0; align-items: start; }
  .homepage .service > span { grid-column: 1; grid-row: 1; }
  .homepage .service > div { grid-column: 2; grid-row: 1 / 3; }
  .homepage .service > a { grid-column: 1; grid-row: 2; min-width: 44px; width: 44px; min-height: 44px; }
  .homepage .service h3 { font-size: 24px; line-height: 1.18; letter-spacing: -.035em; }
  .homepage .service p { font-size: 14px; line-height: 1.7; }
  .homepage .service small { display: block; font-size: 12px; line-height: 1.7; }
  .homepage .project-copy { padding: 22px 18px 14px; }
  .homepage .project-copy > p:not(.project-category), .homepage .project-detail p { font-size: 14px; line-height: 1.7; }
  .homepage .project-tags li, .homepage .project-category, .homepage .visual-note { font-size: 11px; }
  .homepage .work-visual, .homepage .work-card:last-child .work-visual { height: clamp(210px, 66vw, 280px); }
  .homepage .contact-grid { gap: 28px; }
  .homepage .enquiry-next { padding: 18px; }
  .homepage #inquiry-form .btn { width: 100%; }
  .homepage .promo-row { gap: 12px; flex-wrap: wrap; }
  .homepage .footer-links { gap: 12px 20px; }
  .homepage .footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Service shortcuts: equal weight, concise names and local vector icons. */
.homepage .service-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.homepage .service-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; min-width: 0; }
.homepage .service-tile:hover { border-color: var(--blue); background: #f6f8ff; }
.homepage .service-tile > .ui-icon { width: 30px; height: 30px; color: var(--blue); }
.homepage .service-tile h3 { font-size: 22px; line-height: 1.2; margin: 0; letter-spacing: -.035em; }
.homepage .service-tile p { font-size: 13px; line-height: 1.5; margin: 0; color: var(--muted); }
.homepage .hero-meta span::before { content: none; }
.homepage .art-letter .ui-icon { width: 70px; height: 70px; }
.homepage .module-three .ui-icon { width: 48px; height: 48px; }
@media screen and (max-width: 760px) {
  .homepage .hero { padding: 28px 0; }
  .homepage .hero-grid { gap: 0; }
  .homepage .hero-art, .homepage .ticker { display: none; }
  .homepage .hero h1 { font-size: clamp(38px, 10vw, 58px); margin: 12px 0 18px; }
  .homepage .hero .eyebrow { font-size: 11px; }
  .homepage .hero-intro { margin-bottom: 20px; }
  .homepage .hero-meta { margin-top: 18px; gap: 8px; font-size: 11px; }
  .homepage .hero-meta span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 20px; }
  .homepage .section { padding: 32px 0; }
  .homepage .section-head { gap: 12px; margin-bottom: 22px; }
  .homepage .section-head h2, .homepage .workspace-promo h2, .homepage #contact h2 { font-size: 32px; line-height: 1.12; }
  .homepage .service-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .homepage .service-tile { padding: 18px 14px; gap: 10px; border-radius: 16px; min-height: 145px; }
  .homepage .service-tile h3 { font-size: 17px; letter-spacing: -.02em; }
  .homepage .service-tile p { font-size: 12px; }
  .homepage .service-tile > .ui-icon { width: 27px; height: 27px; }
  .homepage .site-nav.open { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 16px; border-bottom: 1px solid var(--line); }
  .homepage .site-nav a { display: flex; align-items: center; gap: 10px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 12px; min-width: 0; }
  .homepage .site-nav a:last-child { grid-column: 1 / -1; }
  .homepage .nav-toggle { padding: 10px; min-width: 44px; }
  .homepage .work-visual, .homepage .work-card:last-child .work-visual { height: 180px; }
  .homepage .project-copy > p:not(.project-category) { display: none; }
  .homepage .project-copy h3 { font-size: 22px; margin-bottom: 12px; }
  .homepage .project-tags { margin: 12px 0; }
  .homepage .project-copy { padding: 18px 16px 10px; }
  .homepage .process { gap: 16px; }
  .homepage .process article { padding-top: 16px; }
  .homepage .process h3 { font-size: 21px; }
  .homepage .workspace-promo { padding: 24px 18px; gap: 20px; }
}

/* Compact, single-row SVG shortcuts with consistent spacing. */
.homepage .site-nav.icon-nav { display: flex; position: static; flex-direction: row; align-items: center; justify-content: flex-end; gap: 4px; padding: 0; background: transparent; box-shadow: none; max-height: none; overflow: visible; width: auto; }
.homepage .site-nav.icon-nav a { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; padding: 11px; border: 0; border-radius: 10px; background: transparent; color: #27313f; }
.homepage .site-nav.icon-nav a:hover { color: var(--blue); background: #edf1ff; }
.homepage .site-nav.icon-nav .ui-icon { width: 22px; height: 22px; stroke-width: 1.7; }
@media screen and (max-width: 760px) {
  .homepage .header-inner { width: calc(100% - 24px); height: 60px; min-height: 60px; padding: 0; display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
  .homepage .header-inner .logo { flex: 0 0 auto; }
  .homepage .header-inner .logo img { width: 96px; height: auto; }
  .homepage .site-nav.icon-nav { width: auto; flex: 0 0 auto; gap: 0; justify-content: flex-end; }
  .homepage .site-nav.icon-nav a { width: 40px; min-width: 40px; height: 44px; padding: 9px; }
  .homepage .site-nav.icon-nav a:last-child { grid-column: auto; }
}
@media screen and (max-width: 360px) {
  .homepage .header-inner { width: calc(100% - 16px); gap: 6px; }
  .homepage .header-inner .logo img { width: 76px; }
  .homepage .site-nav.icon-nav a { width: 38px; min-width: 38px; padding: 8px; }
}

/* Selected work stays compact until a project is opened. */
.homepage .work-grid.compact-work { display: grid; grid-template-columns: 1fr; gap: 12px; }
.homepage .work-card.work-compact, .homepage .work-card.work-compact:last-child { display: block; grid-column: auto; padding: 0; }
.homepage .work-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 66px; padding: 20px 22px; cursor: pointer; list-style: none; font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.025em; }
.homepage .work-title::-webkit-details-marker { display: none; }
.homepage .work-title span { min-width: 0; overflow-wrap: anywhere; }
.homepage .work-title .ui-icon { width: 20px; height: 20px; color: var(--blue); }
.homepage .work-compact[open] > .work-title { border-bottom: 1px solid var(--line); }
.homepage .work-compact[open] > .work-title .ui-icon { transform: rotate(45deg); }
.homepage .work-expanded { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.homepage .work-compact .work-visual, .homepage .work-compact:last-child .work-visual { height: 100%; min-height: 260px; }
.homepage .work-compact .project-copy > p:not(.project-category) { display: block; min-height: 0; }
.homepage .expanded-story { border-bottom: 0; padding-top: 16px; }
@media screen and (max-width: 760px) {
  .homepage .work-title { padding: 16px; min-height: 58px; font-size: 17px; }
  .homepage .work-expanded { display: block; }
  .homepage .work-compact .work-visual, .homepage .work-compact:last-child .work-visual { height: 190px; min-height: 0; }
}
