/*
Theme Name: Excello Developers
Theme URI: https://excello.lk/
Author: Excello Developers
Description: Complete editorial glassmorphism WordPress website for Excello Developers. Includes all core pages, starter content, legal pages, journal, contact form and Elementor compatibility.
Version: 3.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: excello-developers
*/

:root {
  --ex-ink: #262725;
  --ex-paper: #f3f0e8;
  --ex-bronze: #92755b;
  --ex-sage: #899080;
  --ex-grey: #77756f;
  --ex-white: #fffdf8;
  --ex-line: rgba(63, 61, 55, 0.22);
  --ex-shadow: 0 24px 60px rgba(35, 31, 24, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ex-paper);
  color: var(--ex-ink);
  font-family: Inter, Arial, sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.ex-glass,
.ex-glass-card,
.ex-glass-button,
.ex-floating-button {
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  backdrop-filter: blur(22px) saturate(125%);
}
.ex-glass-card {
  background: linear-gradient(135deg, rgba(255,255,255,.58), rgba(255,255,255,.22));
  border: 1px solid rgba(255,255,255,.68);
  box-shadow: 0 14px 38px rgba(62,55,45,.08);
}

.ex-site-header {
  position: sticky;
  top: 16px;
  z-index: 60;
  margin: 16px 4.4vw 0;
  padding: 14px 16px 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ex-ink);
  background: rgba(247,244,237,.68);
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(18,18,15,.12);
  transition: top .25s, background .25s, box-shadow .25s, border-radius .25s;
}
.ex-site-header.scrolled { top: 8px; background: rgba(247,244,237,.84); box-shadow: 0 14px 42px rgba(18,18,15,.16); }
.ex-wordmark {
  display: inline-flex;
  align-items: center;
  font: 500 18px "Cormorant Garamond", Georgia, serif;
  letter-spacing: .25em;
}
.ex-custom-logo { width: auto; max-width: 170px; max-height: 42px; object-fit: contain; }
.ex-site-nav { display: flex; align-items: center; gap: 8px; }
.ex-nav-list { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ex-site-nav a {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
  transition: background .25s, transform .25s;
}
.ex-site-nav a:hover { background: rgba(255,255,255,.55); transform: translateY(-1px); }
.ex-menu-button {
  display: none;
  padding: 8px;
  border: 0;
  background: none;
  color: var(--ex-ink);
  cursor: pointer;
}
.ex-menu-button span { display: block; width: 24px; height: 1px; background: currentColor; }
.ex-menu-button span + span { margin-top: 7px; }

.ex-hero { min-height: 100svh; padding: 20px 2.6vw 30px; }
.ex-edition-bar {
  height: 64px;
  margin: 0 1.8vw;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--ex-line);
  border-bottom: 1px solid var(--ex-line);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
}
.ex-hero-frame {
  position: relative;
  min-height: 690px;
  height: calc(100svh - 114px);
  margin: 24px 1.8vw 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 22px;
  background: #282b27;
  box-shadow: var(--ex-shadow);
  color: var(--ex-white);
}
.ex-hero-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ex-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(9,11,9,.72),rgba(8,9,8,.12) 68%), linear-gradient(0deg,rgba(8,9,8,.58),transparent 54%); }
.ex-hero-copy {
  position: absolute;
  left: 34px;
  bottom: 34px;
  z-index: 2;
  width: min(670px, calc(100% - 68px));
  padding: 34px 38px 32px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 20px;
  background: linear-gradient(135deg,rgba(20,23,20,.52),rgba(20,23,20,.24));
  box-shadow: 0 18px 50px rgba(0,0,0,.16);
}
.ex-eyebrow, .ex-label {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
}
.ex-hero-copy h1 {
  margin: 16px 0 18px;
  font: 400 clamp(66px,7vw,108px)/.82 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.04em;
}
.ex-hero-copy > p:last-of-type { max-width: 500px; font-size: 15px; line-height: 1.65; color: rgba(255,255,255,.82); }
.ex-actions { display: flex; gap: 12px; margin-top: 24px; }
.ex-glass-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 12px;
  background: rgba(255,255,255,.22);
  box-shadow: inset 0 1px rgba(255,255,255,.25), 0 8px 22px rgba(0,0,0,.1);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  transition: transform .25s, background .25s;
}
.ex-glass-button:hover { transform: translateY(-2px); background: rgba(255,255,255,.34); }
.ex-button-subtle { background: rgba(27,29,27,.24); }
.ex-hero-aside {
  position: absolute;
  right: 34px;
  bottom: 34px;
  z-index: 2;
  width: 310px;
  padding: 20px 24px;
  display: grid;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 16px;
  background: rgba(243,240,232,.55);
  color: var(--ex-ink);
  box-shadow: 0 18px 48px rgba(0,0,0,.14);
}
.ex-hero-aside small { margin-bottom: 7px; font-size: 9px; text-transform: uppercase; letter-spacing: .14em; }
.ex-hero-aside strong { padding-bottom: 14px; border-bottom: 1px solid rgba(38,39,37,.25); font: 500 23px "Cormorant Garamond",Georgia,serif; }
.ex-hero-aside span { padding: 10px 0; border-bottom: 1px solid rgba(38,39,37,.15); font-size: 10px; }
.ex-hero-aside span:last-child { padding-bottom: 0; border: 0; }
.ex-hero-marker { position: absolute; right: 34px; top: 106px; display: flex; align-items: center; gap: 12px; font-size: 8px; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.75); }
.ex-hero-marker i { width: 18px; height: 1px; background: rgba(255,255,255,.5); }

.ex-section { padding: 120px 6vw; }
.ex-section-head {
  display: grid;
  grid-template-columns: .65fr 1.65fr .8fr;
  gap: 5vw;
  align-items: end;
  margin-bottom: 68px;
}
.ex-section h2,
.ex-section-head h2 {
  margin: 0;
  font: 400 clamp(48px,5.2vw,82px)/.98 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.035em;
}
.ex-section-head > p:last-child { margin: 0; font-size: 14px; line-height: 1.7; color: #65615b; }
.ex-tag {
  display: inline-flex;
  width: max-content;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 100px;
  background: rgba(255,255,255,.34);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--ex-grey);
}

.ex-company {
  display: grid;
  grid-template-columns: .65fr 1.65fr 1fr;
  gap: 5vw;
  align-items: start;
  min-height: 72vh;
  border-bottom: 1px solid var(--ex-line);
}
.ex-company h2 { margin-top: 22px; }
.ex-company-copy { margin-top: 38px; padding: 26px; border-radius: 18px; font-size: 15px; line-height: 1.8; }
.ex-company-copy p { margin: 0; }
.ex-company-copy p + p { margin-top: 20px; }
.ex-text-link { display: inline-flex; gap: 26px; margin-top: 20px; padding-bottom: 5px; border-bottom: 1px solid rgba(38,39,37,.38); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .11em; }
.ex-text-link-light { border-color: rgba(255,255,255,.45); color: #f0ece4; }

.ex-founder { min-height: 760px; padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; background: var(--ex-paper); }
.ex-founder-image { position: relative; overflow: hidden; border-radius: 22px; background: linear-gradient(145deg,transparent,rgba(18,18,17,.7)),url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=1600&q=85") center/cover; }
.ex-founder-image > span { position: absolute; left: 34px; bottom: 34px; padding: 24px 28px; border: 1px solid rgba(255,255,255,.24); border-radius: 18px; background: rgba(20,22,19,.34); color: white; font: 400 58px/.9 "Cormorant Garamond",Georgia,serif; }
.ex-founder-copy { position: relative; overflow: hidden; padding: 8vw 7vw; display: flex; flex-direction: column; justify-content: center; border-radius: 22px; background: linear-gradient(145deg,#2d302c,#1e201e); color: white; }
.ex-founder-copy::after { content: ""; position: absolute; top: -120px; right: -120px; width: 340px; height: 340px; border-radius: 50%; background: rgba(137,144,128,.16); filter: blur(60px); }
.ex-tag-dark { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: #bbb7af; }
.ex-founder-copy blockquote { position: relative; z-index: 1; margin: 44px 0; font: 400 clamp(42px,4.5vw,72px)/1 "Cormorant Garamond",Georgia,serif; }
.ex-founder-copy h3 { margin: 0 0 18px; font-size: 16px; letter-spacing: .04em; }
.ex-founder-copy > p { max-width: 610px; color: #d7d2ca; font-size: 14px; line-height: 1.75; }

.ex-project-stage { position: relative; height: 72vh; min-height: 620px; overflow: hidden; border-radius: 22px; background: #ccc; box-shadow: var(--ex-shadow); }
.ex-project-stage > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.ex-project-stage:hover > img { transform: scale(1.018); }
.ex-project-panel {
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: min(510px,calc(100% - 56px));
  padding: 28px 30px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 18px;
  background: rgba(27,29,27,.48);
  color: white;
}
.ex-project-panel span { font-size: 9px; text-transform: uppercase; letter-spacing: .16em; color: #d3cfc7; }
.ex-project-panel h3 { margin: 8px 0 2px; font: 400 42px "Cormorant Garamond",Georgia,serif; }
.ex-project-panel em { font-size: 11px; color: #c1bcb4; }
.ex-project-panel p { max-width: 430px; font-size: 13px; line-height: 1.65; color: #e1ddd6; }
.ex-project-tabs { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 14px; }
.ex-project-tabs button {
  min-height: 126px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 15px;
  background: rgba(255,255,255,.28);
  color: var(--ex-ink);
  text-align: left;
  cursor: pointer;
  transition: transform .25s, background .25s, box-shadow .25s;
}
.ex-project-tabs button span { display: block; margin-bottom: 28px; font-size: 9px; color: var(--ex-grey); }
.ex-project-tabs button strong { display: block; font: 500 22px/1.05 "Cormorant Garamond",Georgia,serif; }
.ex-project-tabs button em { display: block; margin-top: 8px; color: var(--ex-grey); font-size: 10px; font-style: normal; }
.ex-project-tabs button.active, .ex-project-tabs button:hover { transform: translateY(-4px); background: rgba(255,255,255,.7); box-shadow: 0 18px 40px rgba(48,43,35,.1); }

.ex-approach { background: radial-gradient(circle at 90% 10%,rgba(137,144,128,.23),transparent 28%),#242623; color: white; }
.ex-section-head-dark > p:last-child { color: #aaa59d; }
.ex-capabilities { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 70px; }
.ex-capability { min-height: 310px; padding: 26px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.065); }
.ex-capability span { font-size: 10px; color: #a19e98; }
.ex-capability h3 { margin: 78px 0 18px; font: 400 31px "Cormorant Garamond",Georgia,serif; }
.ex-capability p { font-size: 13px; line-height: 1.65; color: #aaa59d; }
.ex-process { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 22px 26px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.06); font-size: 9px; text-transform: uppercase; letter-spacing: .16em; }
.ex-process i { font-style: normal; color: #777; }
.ex-section-action { margin-top: 24px; }

.ex-news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.ex-news-card { min-height: 350px; padding: 28px; border-radius: 18px; display: flex; flex-direction: column; transition: transform .25s; }
.ex-news-card:hover { transform: translateY(-5px); }
.ex-news-card span { font-size: 9px; text-transform: uppercase; letter-spacing: .14em; color: var(--ex-grey); }
.ex-news-card h3 { font: 400 32px/1.08 "Cormorant Garamond",Georgia,serif; }
.ex-news-card p { font-size: 14px; line-height: 1.7; color: #625f5a; }
.ex-news-card b { margin-top: auto; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }

.ex-research, .ex-record-note { padding: 110px 6vw; display: grid; grid-template-columns: .65fr 2.45fr; gap: 5vw; background: linear-gradient(135deg,#d6d0c5,#e9e4db); }
.ex-research > div, .ex-record-note > div { padding: 42px; border-radius: 20px; }
.ex-research h2, .ex-record-note h2 { margin: 0; font: 400 clamp(46px,5vw,78px)/.98 "Cormorant Garamond",Georgia,serif; letter-spacing: -.035em; }
.ex-research p:last-child, .ex-record-note p:last-child { max-width: 820px; font-size: 15px; line-height: 1.8; }

.ex-footer { padding: 120px 6vw 35px; background: radial-gradient(circle at 75% 5%,rgba(146,117,91,.17),transparent 26%),#171816; color: white; }
.ex-footer h2 { margin: 30px 0 90px; font: 400 clamp(70px,10vw,154px)/.82 "Cormorant Garamond",Georgia,serif; letter-spacing: -.04em; }
.ex-footer-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5vw; padding: 28px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.06); }
.ex-footer-row div { display: flex; flex-direction: column; gap: 12px; }
.ex-footer-row p { margin: 0; line-height: 1.7; color: #aaa; }
.ex-footer-base { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding: 18px 20px; border-top: 1px solid #333; }
.ex-footer-base strong { letter-spacing: .28em; }
.ex-footer-base small { color: #777; }
.ex-footer-base a { color: #aaa; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }

.ex-inner-page { min-height: 100svh; }
.ex-inner-hero { position: relative; min-height: 78svh; margin: 20px 2.6vw 30px; padding: 34px; display: flex; align-items: flex-end; overflow: hidden; border: 1px solid rgba(255,255,255,.52); border-radius: 22px; background: linear-gradient(135deg,#b5ada0,#6f746c); box-shadow: var(--ex-shadow); color: white; }
.ex-inner-hero-image { background-image: linear-gradient(90deg,rgba(12,14,12,.64),rgba(8,9,8,.12) 72%),linear-gradient(0deg,rgba(8,9,8,.5),transparent 52%),var(--ex-hero-image); background-position: center; background-size: cover; }
.ex-inner-hero-content { width: min(760px,100%); padding: 34px 38px; border: 1px solid rgba(255,255,255,.24); border-radius: 20px; background: linear-gradient(135deg,rgba(20,23,20,.48),rgba(20,23,20,.2)); box-shadow: 0 18px 50px rgba(0,0,0,.16); }
.ex-inner-hero h1 { margin: 16px 0 24px; font: 400 clamp(66px,8vw,118px)/.83 "Cormorant Garamond",Georgia,serif; letter-spacing: -.045em; }
.ex-inner-hero-content > p:last-child { max-width: 620px; margin: 0; color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.7; }

.ex-story-grid, .ex-services-intro { padding: 120px 6vw; display: grid; grid-template-columns: .65fr 1.65fr 1fr; gap: 5vw; align-items: start; }
.ex-story-grid h2, .ex-services-intro h2 { margin: 20px 0 0; font: 400 clamp(48px,5.2vw,82px)/.98 "Cormorant Garamond",Georgia,serif; letter-spacing: -.035em; }
.ex-prose-card { margin-top: 38px; padding: 28px; border-radius: 18px; }
.ex-prose-card p, .ex-services-intro > p:last-child { margin: 0; color: #5e5a54; font-size: 15px; line-height: 1.8; }
.ex-prose-card p + p { margin-top: 20px; }
.ex-founder-page { margin: 0; }
.ex-values-section { padding: 120px 6vw; }
.ex-value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.ex-value-grid article { min-height: 330px; padding: 28px; display: flex; flex-direction: column; border-radius: 18px; }
.ex-value-grid span { color: var(--ex-grey); font-size: 10px; }
.ex-value-grid h3 { margin: auto 0 18px; font: 400 34px/1.05 "Cormorant Garamond",Georgia,serif; }
.ex-value-grid p { margin: 0; color: #625f5a; font-size: 14px; line-height: 1.7; }

.ex-project-index, .ex-journal-index { padding: 120px 6vw; }
.ex-project-catalogue { display: grid; gap: 22px; }
.ex-project-entry { min-height: 650px; display: grid; grid-template-columns: 1.45fr .75fr; gap: 16px; }
.ex-project-entry:nth-child(even) { grid-template-columns: .75fr 1.45fr; }
.ex-project-entry:nth-child(even) .ex-project-entry-image { order: 2; }
.ex-project-entry-image { position: relative; min-height: 560px; overflow: hidden; border-radius: 22px; background: #ccc; box-shadow: var(--ex-shadow); }
.ex-project-entry-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.ex-project-entry:hover img { transform: scale(1.018); }
.ex-project-entry-image span { position: absolute; top: 22px; left: 22px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.5); border-radius: 12px; background: rgba(243,240,232,.58); font-size: 10px; }
.ex-project-entry-copy { padding: 42px; display: flex; flex-direction: column; justify-content: center; border-radius: 22px; }
.ex-project-entry-copy > p:first-child { margin: 0; color: var(--ex-bronze); font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; }
.ex-project-entry-copy h2 { margin: 18px 0 8px; font: 400 clamp(44px,4.5vw,72px)/.94 "Cormorant Garamond",Georgia,serif; letter-spacing: -.035em; }
.ex-project-entry-copy em { color: var(--ex-grey); font-size: 11px; }
.ex-project-entry-copy > p:not(:first-child) { margin-top: 28px; color: #5d5953; font-size: 14px; line-height: 1.75; }

.ex-service-list { padding: 0 6vw 120px; display: grid; gap: 12px; }
.ex-service-row { min-height: 220px; padding: 32px; display: grid; grid-template-columns: .3fr 1.25fr 1fr; gap: 4vw; align-items: center; border-radius: 18px; }
.ex-service-row > span { color: var(--ex-grey); font-size: 10px; }
.ex-service-row h2 { margin: 0; font: 400 clamp(38px,4vw,64px)/.95 "Cormorant Garamond",Georgia,serif; letter-spacing: -.03em; }
.ex-service-row p { margin: 0; color: #5e5a54; font-size: 14px; line-height: 1.75; }
.ex-process-section { padding: 120px 6vw; background: radial-gradient(circle at 90% 10%,rgba(137,144,128,.23),transparent 28%),#242623; color: white; }
.ex-process-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.ex-process-steps article { min-height: 300px; padding: 26px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.065); }
.ex-process-steps span { color: #aaa59d; font-size: 10px; }
.ex-process-steps h3 { margin: 86px 0 18px; font: 400 34px "Cormorant Garamond",Georgia,serif; }
.ex-process-steps p { color: #aaa59d; font-size: 13px; line-height: 1.65; }

.ex-contact-layout { padding: 120px 6vw; display: grid; grid-template-columns: .8fr 1.2fr; gap: 7vw; align-items: start; }
.ex-contact-details h2, .ex-form-card h2 { margin: 28px 0 40px; font: 400 clamp(46px,5vw,78px)/.96 "Cormorant Garamond",Georgia,serif; letter-spacing: -.035em; }
.ex-contact-card { padding: 30px; display: grid; border-radius: 18px; }
.ex-contact-card span { margin-top: 24px; color: var(--ex-grey); font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; }
.ex-contact-card span:first-child { margin-top: 0; }
.ex-contact-card a { margin-top: 8px; font: 500 28px "Cormorant Garamond",Georgia,serif; }
.ex-contact-card p { margin: 8px 0 0; color: #5e5a54; font-size: 14px; line-height: 1.7; }
.ex-form-card { padding: 38px; border-radius: 22px; }
.ex-contact-form { display: grid; gap: 18px; }
.ex-contact-form label { display: grid; gap: 8px; }
.ex-contact-form label > span { color: var(--ex-grey); font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .13em; }
.ex-contact-form input, .ex-contact-form textarea, .ex-contact-form select { width: 100%; padding: 14px 15px; border: 1px solid rgba(38,39,37,.14); border-radius: 10px; outline: none; background: rgba(255,255,255,.48); color: var(--ex-ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.ex-contact-form input:focus, .ex-contact-form textarea:focus, .ex-contact-form select:focus { border-color: var(--ex-sage); background: rgba(255,255,255,.78); box-shadow: 0 0 0 3px rgba(137,144,128,.14); }
.ex-form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ex-submit-button { min-height: 50px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #31332f; border-radius: 12px; background: #292b28; color: white; cursor: pointer; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .11em; }
.ex-honeypot { position: absolute; left: -9999px; }
.ex-form-status { margin-bottom: 20px; padding: 14px 16px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.ex-form-success { background: rgba(137,144,128,.2); color: #40503f; }
.ex-form-error { background: rgba(146,117,91,.17); color: #694d38; }

.ex-compact-footer { padding: 34px 6vw; display: grid; grid-template-columns: .6fr 1fr .6fr; align-items: center; gap: 4vw; background: #171816; color: white; }
.ex-compact-footer strong { letter-spacing: .28em; }
.ex-compact-footer p { color: #888; font-size: 10px; line-height: 1.6; }
.ex-compact-footer a { justify-self: end; font-size: 11px; }

.ex-floating-tools { position: fixed; right: 22px; bottom: 22px; z-index: 70; display: flex; align-items: flex-end; gap: 12px; }
.ex-floating-stack { display: flex; flex-direction: column; gap: 9px; }
.ex-floating-button {
  position: relative;
  width: 52px;
  height: 52px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 15px;
  background: rgba(245,241,232,.72);
  color: var(--ex-ink);
  box-shadow: 0 12px 30px rgba(31,29,24,.16), inset 0 1px rgba(255,255,255,.5);
  cursor: pointer;
  transition: transform .22s, background .22s;
}
.ex-floating-button:hover, .ex-floating-button:focus { transform: translateX(-3px); background: rgba(255,253,248,.92); outline: none; }
.ex-floating-button > span { font: 500 19px "Cormorant Garamond",Georgia,serif; }
.ex-floating-button.ex-whatsapp { background: rgba(114,134,111,.8); color: white; }
.ex-floating-button.ex-whatsapp > span { font: 600 9px Inter,Arial,sans-serif; }
.ex-floating-button small { position: absolute; right: 62px; top: 50%; width: max-content; padding: 7px 10px; border-radius: 8px; background: rgba(24,25,23,.9); color: white; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; transform: translate(8px,-50%); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.ex-floating-button:hover small, .ex-floating-button:focus small { opacity: 1; transform: translate(0,-50%); }
.ex-legal-popover { display: none; width: min(330px,calc(100vw - 92px)); padding: 20px; border: 1px solid rgba(255,255,255,.78); border-radius: 18px; background: rgba(243,240,232,.88); box-shadow: 0 24px 65px rgba(31,28,22,.2); }
.ex-legal-popover.open { display: block; }
.ex-legal-head { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--ex-line); }
.ex-legal-head div { display: grid; gap: 5px; }
.ex-legal-head span { font-size: 8px; text-transform: uppercase; letter-spacing: .16em; color: var(--ex-grey); }
.ex-legal-head strong { font: 500 24px "Cormorant Garamond",Georgia,serif; }
.ex-legal-close { width: 30px; height: 30px; border: 1px solid rgba(38,39,37,.15); border-radius: 9px; background: rgba(255,255,255,.34); cursor: pointer; }
.ex-legal-popover > p { font-size: 11px; line-height: 1.55; color: #625f59; }
.ex-legal-links { display: grid; gap: 7px; }
.ex-legal-links a { display: flex; justify-content: space-between; padding: 12px 13px; border: 1px solid rgba(38,39,37,.1); border-radius: 10px; background: rgba(255,255,255,.3); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

.ex-page-shell { width: min(1040px,calc(100% - 40px)); min-height: 65vh; margin: 100px auto; padding: 48px 54px; border-radius: 22px; }
.ex-page-shell h1 { margin: 0 0 36px; font: 400 clamp(54px,7vw,96px)/.9 "Cormorant Garamond",Georgia,serif; }
.ex-entry-content h2 { margin: 42px 0 16px; font: 400 38px/1 "Cormorant Garamond",Georgia,serif; }
.ex-entry-content p, .ex-entry-content li { font-size: 15px; line-height: 1.8; color: #595750; }
.elementor-page .ex-page-shell { width: auto; min-height: 0; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.elementor-page .ex-page-shell > h1 { display: none; }

.ex-legal-page, .ex-generic-page, .ex-article-page { min-height: 100svh; padding-top: 1px; background: radial-gradient(circle at 80% 5%,rgba(137,144,128,.18),transparent 28%),var(--ex-paper); }
.ex-legal-hero, .ex-generic-hero, .ex-article-hero { max-width: 1360px; margin: 0 auto; padding: 110px 10vw 78px; }
.ex-legal-back { display: inline-flex; margin-bottom: 76px; padding-bottom: 5px; border-bottom: 1px solid var(--ex-line); color: var(--ex-grey); font-size: 9px; text-transform: uppercase; letter-spacing: .13em; }
.ex-legal-hero .ex-eyebrow, .ex-article-hero .ex-eyebrow { color: var(--ex-bronze); }
.ex-legal-hero h1, .ex-generic-hero h1, .ex-article-hero h1 { max-width: 1040px; margin: 18px 0 0; font: 400 clamp(70px,10vw,142px)/.82 "Cormorant Garamond",Georgia,serif; letter-spacing: -.05em; }
.ex-article-hero > p:last-child { max-width: 760px; color: #595750; font-size: 16px; line-height: 1.8; }
.ex-legal-content, .ex-page-content, .ex-article-content { width: min(1020px,calc(100% - 40px)); margin: 0 auto 100px; padding: 48px 54px; border-radius: 22px; }
.ex-legal-content h2, .ex-page-content h2, .ex-article-content h2 { margin: 46px 0 16px; font: 400 40px/1 "Cormorant Garamond",Georgia,serif; }
.ex-legal-content h2:first-of-type, .ex-page-content h2:first-of-type, .ex-article-content h2:first-of-type { margin-top: 0; }
.ex-legal-content p, .ex-legal-content li, .ex-page-content p, .ex-page-content li, .ex-article-content p, .ex-article-content li { color: #5c5954; font-size: 14px; line-height: 1.85; }
.ex-legal-content a, .ex-page-content a, .ex-article-content a { border-bottom: 1px solid var(--ex-line); }
.ex-legal-updated { margin: 0 0 44px; color: var(--ex-bronze) !important; font-size: 9px !important; font-weight: 600; text-transform: uppercase; letter-spacing: .13em; }
.ex-article-image { width: min(1180px,calc(100% - 40px)); max-height: 720px; margin: 0 auto 30px; overflow: hidden; border-radius: 22px; box-shadow: var(--ex-shadow); }
.ex-article-image img { width: 100%; height: 100%; object-fit: cover; }
.ex-pagination { margin-top: 40px; }
.ex-pagination .nav-links { display: flex; gap: 8px; }
.ex-pagination a, .ex-pagination span { min-width: 42px; min-height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.72); border-radius: 10px; background: rgba(255,255,255,.3); font-size: 11px; }
.ex-pagination .current { background: var(--ex-ink); color: white; }
.ex-empty-card { padding: 34px; border-radius: 18px; }
.ex-empty-card h3 { font: 400 34px "Cormorant Garamond",Georgia,serif; }
.ex-not-found { min-height: calc(100svh - 110px); padding: 70px 20px; display: grid; place-items: center; }
.ex-not-found > div { width: min(760px,100%); padding: 52px; border-radius: 22px; }
.ex-not-found h1 { margin: 20px 0; font: 400 clamp(58px,8vw,108px)/.85 "Cormorant Garamond",Georgia,serif; letter-spacing: -.045em; }
.ex-not-found p:not(.ex-eyebrow) { color: #5d5953; line-height: 1.7; }
.ex-not-found .ex-glass-button { margin-top: 24px; border-color: rgba(38,39,37,.16); background: rgba(255,255,255,.4); }

.elementor-page .ex-inner-page,
.elementor-page .ex-generic-page { padding: 0; background: transparent; }

@media (max-width: 980px) {
  .ex-menu-button { display: block; position: relative; z-index: 72; }
  .ex-site-nav { display: none; position: fixed; inset: 12px; z-index: 71; flex-direction: column; justify-content: center; border: 1px solid rgba(255,255,255,.75); border-radius: 18px; background: rgba(243,240,232,.94); box-shadow: var(--ex-shadow); }
  .ex-site-nav.open { display: flex; }
  .ex-nav-list { flex-direction: column; justify-content: center; }
  .ex-site-nav a { font: 400 34px "Cormorant Garamond",Georgia,serif; text-transform: none; }
  .ex-hero-aside, .ex-hero-marker { display: none; }
  .ex-section-head, .ex-company, .ex-story-grid, .ex-services-intro, .ex-research, .ex-record-note { grid-template-columns: 1fr; }
  .ex-company { min-height: auto; }
  .ex-founder { grid-template-columns: 1fr; }
  .ex-founder-image { min-height: 540px; }
  .ex-founder-copy { padding: 80px 36px; }
  .ex-project-tabs, .ex-capabilities { grid-template-columns: 1fr 1fr; }
  .ex-project-entry, .ex-project-entry:nth-child(even) { min-height: 0; grid-template-columns: 1fr; }
  .ex-project-entry:nth-child(even) .ex-project-entry-image { order: 0; }
  .ex-project-entry-image { min-height: 560px; }
  .ex-value-grid, .ex-process-steps { grid-template-columns: 1fr 1fr; }
  .ex-service-row { grid-template-columns: .25fr 1fr; }
  .ex-service-row p { grid-column: 2; }
  .ex-contact-layout { grid-template-columns: 1fr; }
  .ex-news-grid { grid-template-columns: 1fr; }
  .ex-news-card { min-height: 270px; }
  .ex-footer-row { grid-template-columns: 1fr; }
  .ex-compact-footer { grid-template-columns: 1fr; gap: 10px; }
  .ex-compact-footer a { justify-self: start; }
}

@media (max-width: 560px) {
  .ex-site-header { top: 10px; margin: 10px 12px 0; padding: 12px 12px 12px 18px; }
  .ex-hero { padding: 12px; }
  .ex-edition-bar { height: 54px; margin: 0; padding: 0 16px; font-size: 9px; }
  .ex-edition-bar span:last-child { display: none; }
  .ex-hero-frame { min-height: 680px; height: calc(100svh - 80px); margin: 14px 0 0; }
  .ex-hero-copy { left: 18px; bottom: 18px; width: calc(100% - 36px); padding: 26px; }
  .ex-hero-copy h1 { font-size: 58px; }
  .ex-actions { flex-direction: column; }
  .ex-section { padding: 82px 20px; }
  .ex-inner-hero { min-height: 680px; margin: 14px 12px 24px; padding: 16px; }
  .ex-inner-hero-content { padding: 26px; }
  .ex-inner-hero h1 { font-size: 58px; }
  .ex-story-grid, .ex-services-intro, .ex-values-section, .ex-project-index, .ex-journal-index, .ex-contact-layout, .ex-process-section { padding: 82px 20px; }
  .ex-founder { padding: 12px; gap: 12px; }
  .ex-founder-image > span { left: 18px; bottom: 18px; font-size: 46px; }
  .ex-project-stage { min-height: 580px; }
  .ex-project-panel { left: 14px; bottom: 14px; width: calc(100% - 28px); padding: 22px; }
  .ex-project-tabs, .ex-capabilities, .ex-value-grid, .ex-process-steps { grid-template-columns: 1fr; }
  .ex-project-entry-image { min-height: 440px; }
  .ex-project-entry-copy { padding: 28px; }
  .ex-service-list { padding: 0 20px 82px; }
  .ex-service-row { grid-template-columns: 1fr; gap: 18px; }
  .ex-service-row p { grid-column: auto; }
  .ex-process { flex-wrap: wrap; gap: 18px; }
  .ex-form-card { padding: 26px; }
  .ex-form-pair { grid-template-columns: 1fr; }
  .ex-footer { padding: 82px 20px 24px; }
  .ex-footer-base { align-items: flex-start; flex-direction: column; gap: 20px; }
  .ex-floating-tools { right: 12px; bottom: 12px; }
  .ex-floating-button { width: 46px; height: 46px; border-radius: 13px; }
  .ex-floating-button small { display: none; }
  .ex-legal-popover { width: calc(100vw - 76px); padding: 16px; }
  .ex-page-shell { width: calc(100% - 24px); margin: 70px auto; padding: 30px 22px; }
  .ex-legal-hero, .ex-generic-hero, .ex-article-hero { padding: 92px 28px 62px; }
  .ex-legal-back { margin-bottom: 56px; }
  .ex-legal-hero h1, .ex-generic-hero h1, .ex-article-hero h1 { font-size: 64px; }
  .ex-legal-content, .ex-page-content, .ex-article-content { width: calc(100% - 24px); margin-bottom: 60px; padding: 30px 22px; }
  .ex-not-found > div { padding: 34px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
